question for :BAPI_SALESORDER_CHANGE

Question:
I want to update the Field:VBEP-LIFSP,for use va02 is too slow,there are so many sales order.
I want user ''BAPI_SALESORDER_CHANGE",but i cant update the field VBEP-LIFSP.
Can anyone help me?
thanks.
Answer:
Thanks.
Answer:
I think you can update this field :
Use the field REQ_DLV_BL ('X') of the table BAPISCHDL
AND the corresponding field REQ_DLV_BL ('X') of the table BAPISCHDLX.
Don't forget to move 'U' to bapisdh1x-updateflag.
Eventually, do not forget to call BAPI_TRANSACTION_COMMIT at the end of your program ...
JL
Answer:
JL,Thank you very much.
But But the sales order is not update.Why?PLease help me
THE RETURN IS :
T ID NUM MESSAGE
S V4 233 ORDER_HEADER_IN has been processed successfully
S V4 233 SCHEDULE_IN has been processed successfully
S V1 311 Standard Order 0000000267 has been saved
Answer:
Erratum :
Don't forget to move 'U' to bapisdh1x-updateflag must be replace by
Don't forget to move 'U' to BAPISCHDLX-updateflag.
**********************************************
Here is an exemple we use to update the 2 header fields "delivery block and billing block of the sales order :
*----------------------------------------------------
form maj_cmdes.
loop at t_vbak.
clear : s_bapisdh1 , s_bapisdh1x, s_bapiret2.
refresh t_bapiret2.
move 'U' to s_bapisdh1x-updateflag.
case t_vbak-errone.
when ' '.
move : ' ' to s_bapisdh1-dlv_block,
'X' to s_bapisdh1x-dlv_block,
' ' to s_bapisdh1-bill_block,
'X' to s_bapisdh1x-bill_block.
when 'X'.
move : p_lifsk to s_bapisdh1-dlv_block,
'X' to s_bapisdh1x-dlv_block.
endcase.
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = t_vbak-vbeln
order_header_in = s_bapisdh1
order_header_inx = s_bapisdh1x
tables
return = t_bapiret2.
loop at t_bapiret2.
move-corresponding t_bapiret2 to t_bapiret.
append t_bapiret. clear t_bapiret.
endloop.
endloop.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'
importing
return = s_bapiret2.
move-corresponding s_bapiret2 to t_bapiret.
append t_bapiret. clear t_bapiret.
endform. " MAJ_CMDES
*******************************************************
Hope it will be help full.
Answer:

Hi, youre a wizard...!!!!
it work well.....
congratulations....

More Articles:

Call Transaction question?
Excel Upload?
Performance Issue?
Fn Mod for reading a BDC Session Log, and restarting session?
Is BUS2032.CHANGED a usable event for a job ?
Downloading from table to flat file in special format.?