Application Development and Automation 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: 
Read only

IIDOC_STATUS_WRITE_TO_DATABASE Usage

0 Likes
2,076

Hi Everyone,

I am using IDOC_STATUS_WRITE_TO_DATABASE to change the status of the idoc from success to error,its working properly that the status of the IDOC in WE02 is getting as per my requirement.But my issue is iam unable to get the error message on the output screen.Can anyone please help me out how to get my error message on the output screen.

5 REPLIES 5
Read only

ThangaPrakash
Active Contributor
0 Likes
1,786

Can you please elaborate your issue, which output screen? are you running a program which has this FM called and you wanted a output message once the program is run?

Read only

0 Likes
1,786

Yes, when i run the program(Interface program) i should get the output like "There is some error in the Delivery". Actually i am calling the FM IDOC_STATUS_WRITE_TO_DATABASE in to the class.

Read only

Sandra_Rossi
Active Contributor
1,786

I think you should not use IDOC_STATUS_WRITE_TO_DATABASE. I don't understand why you need to handle the status outside the inbound process. Maybe you want to explain the whole scenario?

Read only

ThangaPrakash
Active Contributor
0 Likes
1,786

Mortha Sri Lakshmi Praveena If you are looking for IDOC status you can get it from EDIDS table by passing IDOC number or by using FM 'IDOC_READ_COMPLETELY'

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,786

I'm also confused by the question. Why is it necessary to change the IDoc status from success to error? If it's already processed successfully then it must not be processed again since the transaction it's meant to perform already occurred.

There is a standard SAP program that can change the IDoc status but it's not advertised for obvious reasons. I'm reluctant to mention it here since it's not clear what you're trying to achieve.