Skip to Content
0
Former Member
Feb 29, 2008 at 06:52 AM

BAPI_SALESDOCUMENT_CHANGE header block

223 Views

Hi Friends,

I have a sales order no, here i want to change delivery block(Header)and make them space. here i am passing salesorder no and passing DLV_BLOCK = space and using

UPDATEFLAG = 'U'. but also it is not changing that record.

can any one help me its urgent.

Please find my code

t_BAPISDH1-COLLECT_NO = i_list-vbeln.

t_BAPISDH1-DLV_BLOCK = space.

APPEND t_BAPISDH1.

CLEAR t_BAPISDH1.

t_bapisdh1x-UPDATEFLAG = 'X'.

APPEND t_bapisdh1x .

CLEAR t_bapisdh1x.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = i_list-vbeln

order_header_in = t_BAPISDH1

order_header_inx = t_bapisdh1x

TABLES

return = t_bapiret2

schedule_lines = t_bapischdl

schedule_linesx = t_bapischdlx

EXCEPTIONS

OTHERS = 1.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

Or else i want to change this code.

Regards,

DVNS