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

BAPI for changing the sales order loading date

faisal_pc
Active Contributor
0 Likes
1,337

Hi All,

Could anyone of you please suggest a BAPI for changing the sales order's loading date by passing order number, item number and loading date?.

Thanks,

Faisal

4 REPLIES 4
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
813

Not sure what you mean by "loading date" (it might be helpful to use the SAP terminology and specify technical field name to be clear). If you meant the order creation date (ERDAT) then it's not feasible to change it.

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
813

OK, thanks to the clarification by Jürgen L (hm, can't make @ to work with his name - sorry, Jürgen!) the field appears to be VBEP-LDDAT. In such case this is one of the "let me google it for your" questions since it's not difficult to find the BAPI for sales order change. And from there it doesn't take a lot of brain activity to look at the table  SCHEDULE_LINES.

Please read Rules of Engagement and do the research before posting on SCN. Thank you.

Read only

0 Likes
813

Hi Jelena,

I have done it via the BAPI SD_SALES_SCHEDULE_MAINTAIN already. But was thinking whether it's possible to do with any other BAPIs only for loading date so that it will execute quickly. This takes some time to execute.

Thanks for understanding.

Faisal

Read only

0 Likes
813

Plot thickens. SD_SALES_SCHEDULE_MAINTAIN is not a BAPI. There are ways to analyze the performance in SAP to determine what could be causing long runtime. Just from the top of my head - probably the change triggers ATP check.

I doubt you'd get better result regardless of what function is used, although I would recommend using a real BAPI instead of an unreleased function module.

As a side note - you might want to read this blog and put more specific question and all the facts in the initial post.