Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CREATE1 not return custom error messages.

0 Likes
1,956

Hi Experts,

We are created po using bapi it not returns any custom error messages please advise on this.

Thanks for advance.

Regards,

Upendra

Hi Experts,

We are created po using bapi it not returns any custom error messages please advise on this.

Thanks for advance.

Regards,

Upendra

8 REPLIES 8
Read only

Former Member
0 Likes
1,614

Hi, I assume that you're working on Classic Scenario and using PI to create PO in ECC side.

You must activate FEH in order to get the errors otherwise you will need to debug the proxy to get the error messages.

After you activate FEH, you may use /n/SAPPO/PPO2 transaction to get the detailed messages from bapi.

Please if your scenario is different explain in detail so we can help you.

Best Regards!

Read only

0 Likes
1,614

Hi Maria,

I am not using PI to create PO. we are using interfaces to create po's through BAPI'S i save the test data to function module. we are getting all standard errors for faulty items but we are not getting custom error messages.

Regards,

Upendra.

Read only

0 Likes
1,614

Where did you develop the custom validations?

Read only

0 Likes
1,614

HI Maria,

I did the develop the custom validation's in BADI  IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM method.

Regards,

Upendra.

Read only

0 Likes
1,614

Did you raise the errors with the provided macros like:


include mm_messages_mac.

* (...)

if <some test>.

  im_item->invalidate( ).

  mmpur_metafield mmmfd_matnr.

  mmpur_message_forced 'E' 'ZFSM' '123' ls_item-matnr ls_item-werks space space.

endif.

Regards,

Raymond

Read only

0 Likes
1,614

Hi Raymond,

Thanks for your reply.

Yes i am using that type of macros to raise errors. Is there any problem with that macros.

Regards,

Upendra.

Read only

0 Likes
1,614

No problem, using those is correct,I was expecting answer no...

So problem should be elsewhere, did you use some customer field(s), and are you filling EXTENSIONIN parameters, or is your code raising error controled by some event only related to actual transaction?

Regards,

Raymond

Read only

0 Likes
1,614

Hi,

try to move your checks in the method CHECK of the BAdI.