‎2009 Sep 11 4:08 PM
Hi,
I'm looking for a way to update the valuation category in MARC( (BWTTY) but i can't find the equivalent in the structure BAPI_MARC.
So, first, is there any way to update it through the bapi BAPI_MATERIAL_SAVEDATA ?
then, if not, is there any other way to do it ?
Thanks
‎2009 Sep 11 4:14 PM
‎2009 Sep 11 4:14 PM
Hi
I think u shoud use the EXTENSIONIN parameter:
TABLES: BAPI_TE_MARC, BAPI_TE_MARCX, BAPIPAREX, BAPIPAREXX.
DATA: EXTENSIONIN TYPE TABLE OF BAPIPAREX,
EXTENSIONINX TYPE TABLE OF BAPIPAREX.
BAPIPAREX-STRUCTURE = 'BAPI_TE_MARC'.
BAPI_TE_MARC-PLANT = .....
BAPI_TE_MARC-BWTTY = ......
BAPIPAREX+30 = BAPI_TE_MARC.
APPEND BAPIPAREX TO EXTENSIONIN.
BAPIPAREXX-STRUCTURE = 'BAPI_TE_MARC'.
BAPI_TE_MARCX-PLANT = .....
BAPI_TE_MARCX-BWTTY = 'X'.
BAPIPAREXX+30 = BAPI_TE_MARCX.
APPEND BAPIPAREXX TO EXTENSIONINX.U need to append the new field BWTTY to structure BAPI_TE_MARC, and the new field BWTTY (but like CHAR 1) to BAPI_TE_MARCX.
Max