cancel
Showing results for 
Search instead for 
Did you mean: 

Update "Additional data b" tab.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

I think that SAP Note 143580 - Information on SD BAPIs and customer enhancement concept will help you

Regards

Eduardo

Former Member
0 Kudos

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