05-12-2016 7:54 PM
Hi Experts,
We are created po using bapi it not returns any custom error messages please advise on this.
Thanks for advance.
Regards,
Upendra
05-12-2016 8:01 PM
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!
05-12-2016 8:13 PM
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.
05-12-2016 10:02 PM
05-13-2016 6:28 AM
HI Maria,
I did the develop the custom validation's in BADI IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM method.
Regards,
Upendra.
05-14-2016 12:50 PM
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
05-15-2016 7:10 PM
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.
05-16-2016 8:26 AM
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
05-16-2016 8:32 AM