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

Update BWTTY data through BAPI_MATERIAL_SAVEDATA Bapi.

Former Member
0 Likes
826

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

2 REPLIES 2
Read only

Former Member
0 Likes
616

You have to use BAPI_MBEW structure.

Read only

Former Member
0 Likes
616

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