Application Development 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: 

Update Delivery block (VBEP-LIFSP) using BAPI_SALESORDER_CHANGE

Former Member
0 Kudos

Hi Gurus,

Can anyone please help me to update the VBEP-LIFSP (Delivery Block) using the FM - 'BAPI_SALESORDER_CHANGE'. This is for a CRM order. For Normal order the below code works, but for CRM order the ETENR value is changed to 4001 in program - SAPFV45E --FV45EF0V_VBEP-ETENR_ERMITTELN (SEarch for Set etenr from CRM Order). There the exisitng value is changed to 4001. Please let me know if there is any other FM /BAPI to update the VBEP-LIFSP. Thanks in advance for your help.

Regards

2 REPLIES 2

Former Member
0 Kudos

Hi

Try changing the value of following schedule lines internal table

SCHEDULE_LINESX-REQ_DLV_BL = 'X'

SCHEDULE_LINES-REQ_DLV_BL = 2 digit value

any of the following values

01-Credit limit

02 - Political reasons

03 - Bottleneck material

04 Export papers missng

05 Check free of ch.dlv

06 No printing

07 Change in quantity

08 Kanban Delivery

09 JIT delivery (PDS)

30 Price Chng Approval

Regards

Madhan D

Former Member
0 Kudos

hii,

try using Function Module SD_SALES_SCHEDULE_MAINTAIN

CALL FUNCTION 'SD_SALES_SCHEDULE_MAINTAIN'

EXPORTING

FVBEPKOM = VBEPKOM

EXCEPTIONS

ERROR_MESSAGE = 01.

regards,

Shweta