‎2013 Sep 04 7:00 PM
Hi All,
When I create or change a sales order it will trigger an IDOC. My issue is some fields are not getting populated in the IDOC. Now I did the coding and when testing it is working in debugging . It is also working when I directly create the order. But when I change the order without debugging the values are not populated.
Im using a customized Function module in my logic.
I'm not sure why this is happening . Can someone help me out
Thanks!!
‎2013 Sep 04 7:36 PM
Hi Keerthi,
Is there a custom logic that triggers the IDOC, as far as I can understand from the above query, you may be missing COMMIT statement.
‎2013 Sep 04 8:23 PM
I'm changing the value that is getting populated into one of the field. I tried putting wait statement in the logic and tested it but no use
‎2013 Sep 04 8:08 PM
Based on the code you've shared with us, it looks like your problem is that you haven't shared any.
Can you do that so we can help?
‎2013 Sep 04 8:27 PM
Hi Eric,
Im trying to send a new value into a field of the segment. This value is fetched from a custom Function module. When I change an order and trigger IDOC in debugging, the value is populated and IDOC has the new value. But when I directly trigger order without any debugging I don't see the new valuye which is supposed to be present from my code.
‎2013 Sep 05 9:21 AM
Hello Keerthi,
Try calling function module - 'BAPI_TRANSACTION_COMMIT'.
Regards,
‎2013 Sep 05 9:29 AM
If COMMIT is already there, try assing a WAIT UPTO <X> SECONDS statement after it.
BR,
Shankar.