‎2007 Jun 01 6:57 AM
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
‎2007 Jun 01 7:10 AM
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
‎2007 Jun 01 7:16 AM
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.