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

Append VBAK

Former Member
0 Likes
3,106

Hi!

I need to add 2 fields to the table VBAK. The question is Next : Can I save this fields with a Z'Transaction?, or Do i have to use the Standar transaction to write this new fields??.

Thanks a lot!

Soraya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,883

Use SE11 to create an APPEND structure to VBAK.

You new fields should start with ZZ. SAP can add a standard field to VBAK in future releases. An APPEND with the same name would cause problems.

You can update with standard user exits. Form USEREXIT_MOVE_FIELD_TO_VBAK in program MV45AFZZ can be used to move data to the new ZZ fields.

If a user needs to fill the fields, you can use the enhancement for additional data during sales order processing.

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,883

Either way, it would be best to write your code in the user exits for sales document processing to fill these custom fields. Since they are custom fields, you can do a direct db update, but be careful since it is a standard SAP table.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,883

Hi,

You should be updating this to fields using a BAPI - "BAPI_SALESORDER_CHANGE" and use table user this BAPI "EXTENSIONIN" to update this fields. You should not direct update because that may cause future inconsistency of data.

Regards,

Tim

Read only

Former Member
0 Likes
1,883

hi

good

you can do it two process

1-by using the UPDATE statement.

2-create a structure using sell and include that structure in the table VBAK.

no need to save it in any ztransction.

thanks

mrutyun^

Read only

0 Likes
1,883

Hi Mrutyun^

Sorry, but i did'nt understand the sell part, can you be more specific ?, please?.

Thanks a lot!

Regards

Soraya

Read only

0 Likes
1,883

Use the SE11 trnsaction to define an own structure.

Then you can append this structure to VBAK table.

Because there is no pre-defined include structure in the VBAK table, you have to ask SSCR code from SAP to modify this table - and that will be a standard modification.

Best wishes

Read only

0 Likes
1,883

SE11

Read only

0 Likes
1,883

Sorry, now i understand, of course i know the SE11 , but i was a little confused because Mrutyun^ wrote sell, so i tought it was some other item.

Thanks a lot.

Regards

Soraya

Read only

Former Member
0 Likes
1,884

Use SE11 to create an APPEND structure to VBAK.

You new fields should start with ZZ. SAP can add a standard field to VBAK in future releases. An APPEND with the same name would cause problems.

You can update with standard user exits. Form USEREXIT_MOVE_FIELD_TO_VBAK in program MV45AFZZ can be used to move data to the new ZZ fields.

If a user needs to fill the fields, you can use the enhancement for additional data during sales order processing.