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

Shipping Cost document Timing Issue

Former Member
0 Likes
897

Hey All,

We have an IDOC interface which does a lot of steps, the first one being reversing the SCD item and creating a Cancel Service Entry Document. The code for this step was picked up from standard SAP code MV54AF0. Recently after applying support packs we are getting issue with the scd item reversal. The reversal step is not reflected in the database.

The biggest problem is it works in debug mode every time. but does not run when executed normally for single line item orders. I am suspecting this to be at timing issue as it works fine in debug, but am not able to figure out where to put the wait. The commit work already has a wait. I increased the wait period, but still no luck. It was initally using update task, but was later modified to not use it.

I am using FM's SD_SCD_VIEW, SD_SCD_CHANGE and SD_SCDS_SAVE.

Any suggestions???

I looked for othe BAPI's to do the same thing but couldnt find any.

Any input is highly appreciated.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
799

Hello Aparna Shekhar ,

Open a OSS message with your service market place id in www.service.sap.com

Issue opened after you had applied the patch. This needs to be fixed my SAP as this was working before. It's working fine in our system.

Thanks,

Greetson

Hello Aparna Shekhar ,

Open a OSS message with your service market place id in www.service.sap.com

Issue opened after you had applied the patch. This needs to be fixed my SAP as this was working before. It's working fine in our system.

Thanks,

Greetson

6 REPLIES 6
Read only

Former Member
0 Likes
800

Hello Aparna Shekhar ,

Open a OSS message with your service market place id in www.service.sap.com

Issue opened after you had applied the patch. This needs to be fixed my SAP as this was working before. It's working fine in our system.

Thanks,

Greetson

Read only

0 Likes
799

The interface is a custom interface, It has been developed by copying SAP standard code and adding our code. SAP will not touch Custom code, and i cannot prove the SAP standard code is not working as it works fine if i just do the reverse document, It is just because we are doing multiple steps after cancel in our custom code, and the step is not getting done in time for the second step, we are getting this timing Issue. I placed waits betweens steps, but no luck.

Read only

0 Likes
799

Hello Aparna Shekhar ,

Try using the DEQUE function by using the appropirate object id in that Function call.

Thanks,

Greetson

Read only

0 Likes
799

check in SM12 if somethings gettin locked...... and also call the FM in back ground task.

Read only

0 Likes
799

Thanks you for your replies. It is not a locking issue, as it happens everytime for single line items. I will look into the deque option.

Any other suggestions??

Read only

0 Likes
799

Hi Aparna,

DEQUE is the only option I have right now. Try that and let me know if that fix your issue or not.

Thanks,

Greetson