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

Updating SAP fields through BAPI (which are not BAPI parameters)

Former Member
0 Likes
648

Hello,

I need to update season and collection fields in sales order (AFS), these fields are not in sales order creation BAPI. Can I still somehow use them in extensionin as parameters?? How do we do it?? BAPI: /AFS/BAPI_SALESORD_CREATEFDATA

Also there is another BAPI /AFS/VBAK_SALESDOCUMENT_CHANGE which has these fields in ITEM_EX table (which is extension for item table provided by SAP), but this dosent update the sales order as well.

I would appreciate if anyone has a clue how to do this.

Thanks,

Amit.

Hello,

I need to update season and collection fields in sales order (AFS), these fields are not in sales order creation BAPI. Can I still somehow use them in extensionin as parameters?? How do we do it?? BAPI: /AFS/BAPI_SALESORD_CREATEFDATA

Also there is another BAPI /AFS/VBAK_SALESDOCUMENT_CHANGE which has these fields in ITEM_EX table (which is extension for item table provided by SAP), but this dosent update the sales order as well.

I would appreciate if anyone has a clue how to do this.

Thanks,

Amit.

1 REPLY 1
Read only

Former Member
0 Likes
452

/AFS/VBAK_SALESDOCUMENT_CHANGE

Append structure BAPE_VBAP

J_3ASEAN

/AFS/COLLECTION

/AFS/THEME

Append structure BAPE_VBAPX

J_3ASEAN              CHAR1

/AFS/COLLECTION              CHAR1

/AFS/THEME              CHAR1



Table: ITEMS_EX

OPERATION                      009

DOC_NUMBER                     200000608

ITM_NUMBER                     000000

MATERIAL                       2000010022

UPDAT_FLAG                     I

SEASON                         C1

COLLECTION                     DAM

THEME                          SEG


Pass the season Fields through EXTENSIONIN structure to update data into tables.

STRUCTURE                      BAPE_VBAP

VALUEPART1                         020000060800000000000000C1 DAM SEG


STRUCTURE                      BAPE_VBAPX

VALUEPART1                         0200000608000000XXXX