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: 

Populating error status message in outbound idoc

gajendra_bhakuni
Active Participant
0 Kudos

Hello,

Could you pls. help me with the following:

I am looking for a general BADI/User-exit for outbound IDocs where I can populate error message in the status segment of IDoc based on certain condition. By this I want the IDoc to fail and later reprocess it when the error condition is resolved.

I do not want to code this in each and every user-exit for each IDoc type. So if there is a generic exit which is called during outbound processing of all IDocs then it will be helpful to my cause.

Thanks.

Best Regards,

Gajendra.

3 REPLIES 3

Former Member
0 Kudos

Hi,

please check the following BADi´s

IDOC_DATA_INSERT (to insert new values into IDoc)

IDOC_DATA_MAPPER (to map values)

I think this i what you need

IDOC_CREATION_CHECK (to check the creation of an IDoc)

Regards,

Gordon

0 Kudos

Hello Gordon,

Thanks for your reply. These BADI are really very useful, but actually I do not want to stop the creation of IDoc. My requirement is to populate certain error status code in the IDoc and let the IDoc fail.

This will be based on entries on some customizing table.

Later when the customizing table says create idoc successfully then the IDoc should be created successfully (in green status).

Best Regards,

Gajendra.

0 Kudos

try FM: IDOC_STATUS_WRITE_TO_DATABASE