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

Issue in debugging

Former Member
0 Likes
860

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!!

6 REPLIES 6
Read only

Former Member
0 Likes
827

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.

Read only

0 Likes
827

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

Read only

Former Member
0 Likes
827

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?

Read only

0 Likes
827

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.

Read only

Former Member
0 Likes
827

Hello Keerthi,

              Try calling function module - 'BAPI_TRANSACTION_COMMIT'.

Regards,

Read only

former_member188251
Active Participant
0 Likes
827

If COMMIT is already there, try assing a WAIT UPTO <X> SECONDS statement after it.

BR,

Shankar.