on 01-10-2011 7:11 PM
Hi all,
I have a requirement to change SD Orders in background. Function module BAPI_SALESORDER_CHANGE is working fine, but I need to update u201Cnotification number fieldu201D at Sales Order header. In transaction VA02 notification number appears in the tab u201Cadditional data bu201D (field VBAK-QMNUM). However, I canu2019t find this field to be updated through BAPI_SALESORDER_CHANGE. Has anyone faced this issue before? Is there any technique to update vbak-qmnum in background?
Thanks,
Marcos Vilela.
Hi,
I think that SAP Note 143580 - Information on SD BAPIs and customer enhancement concept will help you
Regards
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcos,
I can suggest 3 alternatives for what you want:
(1) use fm SD_SALES_DOCU_MAINTAIN instead:
It is more complicated to use, cause you have to populate all the
relevant structures and internal tables with SO data. However it can handle
VBAK-QMNUM in I_VBAKKOM
(2) use the EXTENSIONIN parameter of the BAPI
To do this, you should first create append structures for BAPE_VBAK and BAPE_VBAKX
Introduce the QMNUM field in append str. for BAPE_VBAK with data element QMNUM (12chars),
in append str. for BAPE_VBAKX with data element BAPIUPDATE (1 char)
Then populate the EXTENSIONIN parameter with 2 lines:
1. extensionin-structure = 'BAPE_VBAK'
extensionin-valuepart1 = vbak-vbeln(10 chars) + vbak-qmnum(12 chars)
2. extensionin-structure = 'BAPE_VBAKX'
extensionin-valuepart1 = vbak-vbeln(10 chars) + 'X'(1 char)
(3) simply update VBAK-QMNUM with SQL statement UPDATE.
BR,
Barna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.