2011 Feb 21 8:41 AM
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
2011 Feb 21 9:12 AM
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.
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.
2011 Feb 21 8:54 AM
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.
2011 Feb 21 8:54 AM
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.
2011 Feb 21 8:58 AM
Thanks
to you both for the quick response- I will give it a try
Elisabeth
2011 Feb 21 9:12 AM
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.
2011 Feb 21 9:24 AM
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
2011 Feb 21 10:03 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |