Application Development 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: 

BAPI_PO_CREATE1 not return custom error messages.

0 Kudos

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

Former Member
0 Kudos

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!

0 Kudos

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.

0 Kudos

Where did you develop the custom validations?

0 Kudos

HI Maria,

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

Regards,

Upendra.

0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

Hi,

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