cancel
Showing results for 
Search instead for 
Did you mean: 

Need to debug IDoc creation from BAPI - BAPI_INB_DELIVERY_CONFIRM_DEC

former_member199670
Participant
0 Kudos

Hello All,

During inbound delivery verification the BAPI - BAPI_INB_DELIVERY_CONFIRM_DEC is creating an outbound IDoc with message type SHP_IBDLV_CONFIRM_DECENTRAL which will be send to ECC.

I would like to debug to know how the IDocs are getting created and segments are filled during the BAPI process.

The issue is I am not able to debug that particular piece of logic where IDocs details are populated and created.

I tried by putting internal/external/update/system break point but still not able to figure out.

Please provide your suggestions on how to debug the IDoc creation.

Thanks

Manimaran K

Sandra_Rossi
Active Contributor

Look at SQL trace with call stack, for INSERT on tables EDIDC, EDID4 (or EDI40 before S/4HANA).

It's likely to happen inside the update task, in that case add a statement break-point on CALL FUNCTION IN UPDATE TASK till you reach the update function module.

Accepted Solutions (0)

Answers (2)

Answers (2)

FredericGirod
Active Contributor
0 Kudos

Copy your IDOC using WE19, with this transaction you could process your idoc in foreground

former_member199670
Participant
0 Kudos

Hello Frederic,

Thanks for your suggestion.

Its an Outbound IDoc so i am not sure how to check from WE19.

Thanks

Manimaran K

FredericGirod
Active Contributor

sreemani sorry, I read too fast.

Outbound idoc should not be an issu. As you try to set all option of the debug ...

Maybe try to put an SQL trace, to check when SAP populate Idoc tables, and go directly to the code corresponding to the insert.

Maybe you failed to debug, because the function is called using RFC ...

ST05 or ST01 should help you

venkateswaran_k
Active Contributor
0 Kudos
former_member199670
Participant
0 Kudos

Hello Venkat,

Thanks for your time and response.

I followed the same kind of procedure. I can debug through BAPI but i am not able to debug that IDoc creation part alone.

Thanks

Manimaran K