2012 Feb 15 4:46 AM
Hi Gurus ,
I want to debug the idoc Acc_document02 and message type is Acc_document in Inbound function module in we19 .
In the dialogue box i click the function module search help i get two Bapi , Bapi_idoc_input1 and Bapi_idoc_inputp. which one should i select and whats the difference between these two Bapi.
Thanks,
Lakshmi Rajkumar.
2012 Feb 15 5:39 AM
Hi Lakshmi,
Please try to follow the below process you can easily find out which FM is the correct one to debugg the inbound idoc.
Please try to check the partner profile in WE20 for the inbound idoc which you want to debug.
To know the partner profile details give the idoc number in WE02 execute. Right side of the display idoc you can see Technical Short info tab there you will get the Partner number and partner type.
Go to WE20 check the partner profile details. Right side you can see the outbound parameters , and inbound parameter. Go to inbouund parameters tab double click on the message type Acc_document there you can see Process code under Inbound Options tab. Again double click on the process code it will take you to the FM which is being used for the message type Acc_document. That FM you can utilize for debugging inbound idoc debugging.
I hope this will helpful.
Regards,
Mufee.
2012 Feb 15 5:42 AM
Hi Lakshmi,
Please check in Partner profiles what process code is assigned to that message type.
Process code - BAPI (attached FM - BAPI_IDOC_INPUT1) is for Individual processing.
Process code - BAPP (attached FM - BAPI_IDOC_INPUTP) is for Package/Packet Processing.
Hope it helps.
Regards,
SG.
2012 Feb 15 9:24 AM
Thanks a lot for both Mufeebugga and sravan .
Both your answers were useful. I have awarded points for both.
Mufeebugga
your answer was so perfect and clear i can find the correct bapi .One part of my question is answered , still i want to know the difference between these both and on what condition the one is choosen. If you know any details regarding the selection of the bapi plz share it .
Sravan has mentioned one is based on individual and other on packet , still not clear . need explanation on it plz.
Waiting for your reply .
Thanks,
Lakshmi Rajkumar.
2012 Feb 15 10:02 AM
Hi Lakshmi,
BAPI selection is depends on your requirement. Ex:-- For sales order message ORDERS inbound FM would be IDOC_INPUT_ORDERS.
Regards,
Mufee