Application Development and Automation 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: 
Read only

BAPI_SALESORDER_CHANGE

Former Member
0 Likes
1,412

Hello,

I already read a lot about this - I do have customer fields added to VBAK - I understand to change the extension structures from BAPI - BAPI_SALESORDER_CHANGE as well - my question is do I have to add ALL my VBAK customer fields - these are about 70 and with different formats (CHAR DATS NUM) as well and I only want to change 1 or is it enough only to add the ones that should be changed with BAPI_SALESORDER_CHANGE

in the example there are always just 2 customer fields then it's not the issue

many thanks

1 ACCEPTED SOLUTION
Read only

asik_shameem
Active Contributor
0 Likes
1,259

Hi,

I assume that you are talking about Adding Z fields in the bapi extension structures from your below quote. Correct me if I was wrong.

my question is do I have to add ALL my VBAK customer fields

Yes. You should add all the Z fields in BAPE_VBAK, VBAKKOZ and their X structures too. Because all the Z fields in VBAK are passed as a single (perhaps till 4 depends on the length of Z fields) into structure valuepart1 (2,3 and 4). In case if you miss even a single field, Field positions will be collapsed.

As per my understading of BAPI extensions, we should create Z fields in above structures AT LEAST till the field you want to change. But I've never tried this before.

Hello,

I already read a lot about this - I do have customer fields added to VBAK - I understand to change the extension structures from BAPI - BAPI_SALESORDER_CHANGE as well - my question is do I have to add ALL my VBAK customer fields - these are about 70 and with different formats (CHAR DATS NUM) as well and I only want to change 1 or is it enough only to add the ones that should be changed with BAPI_SALESORDER_CHANGE

in the example there are always just 2 customer fields then it's not the issue

many thanks

6 REPLIES 6
Read only

former_member186491
Contributor
0 Likes
1,259

Hi Elisabeth Roith,

Yeah, you can update as many Fields as you wish to. There isn't any compulsion to update whole table. Hence, in your case, you can update only those fileds which are required to be changed.

Thanks.

Kumar Saurav.

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,259

Hi,

Did you go through the documentation of the BAPI? You have to pass mandatory fields like sales document number and the fields which you want to change. No need to pass all the fields of VBAK.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,259

Thanks

to you both for the quick response- I will give it a try

Elisabeth

Read only

asik_shameem
Active Contributor
0 Likes
1,260

Hi,

I assume that you are talking about Adding Z fields in the bapi extension structures from your below quote. Correct me if I was wrong.

my question is do I have to add ALL my VBAK customer fields

Yes. You should add all the Z fields in BAPE_VBAK, VBAKKOZ and their X structures too. Because all the Z fields in VBAK are passed as a single (perhaps till 4 depends on the length of Z fields) into structure valuepart1 (2,3 and 4). In case if you miss even a single field, Field positions will be collapsed.

As per my understading of BAPI extensions, we should create Z fields in above structures AT LEAST till the field you want to change. But I've never tried this before.

Read only

0 Likes
1,259

Hello Asik Shameem

this was my issue too what I was wondering about - only to take out one from my 70 customer fields - does the BAPI find the right assignment through the name

thanks

Read only

0 Likes
1,259

Yes. BAPI transfers the data from extension by the field names. You don't need write any code.

Flow is like this: EXTENSIONIN -> BAPE_VBAK -> VBAKKOZ -> VBAK