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

Questeion to IDoc processing

Former Member
0 Likes
340

Hello @ll,

I'm creating IDocs for debtor master and I have to fill additional fields of an append-structure in table KNA1.

Now I only want to fill these additional fields if the IDoc is correctly booked with status = 53. Because only with status = 53 the debtor master is correctly saved in table KNA1.

Is there any possibility how to get the last IDoc status and if it is 53 than to save the additional fields in table KNA1. There aren't any user exits which could I use for my problem.

I use the function module INBOUND_IDOC_PROCESS for creating the IDocs.

Thanks for any help.

Chris

2 REPLIES 2
Read only

Former Member
0 Likes
309

Hi

You can try using the Table EDIDS for getting the STATUS 53 of the Last IDOC Status

since it stores the status of all the IDCO date wise and TIME wise

fetch the data for that date and sort them as per time and take the last record for that date and its status if it is 53.

then write the code in the fun module

Reward points if useful

Regards

Anji

Read only

0 Likes
309

but I need to know the IDoc-no. for searching the status, how could I get the IDoc-no.? The function INBOUND_IDOC_PROCESS which I use doesn't send the IDoc-no. back.