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

BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
1,622

Hi,

I am using the BAPI 'BAPI_MATERIAL_SAVEDATA' to change the Material.

I want to update the the field SSTUF of MVKE table, can anyone help me under which field to BAPI I need to pass this to update the table MVKE-SSTUF.

this SSTUF is avilable in MM03 under tab SALES: SALES ORG. 1 (UNDER GENERAL DATA 'Prc Extrct Tier')

Edited by: chand_100 on May 10, 2011 1:15 PM

Edited by: chand_100 on May 10, 2011 1:23 PM

4 REPLIES 4
Read only

0 Likes
1,227

Hi,

Structure MWLI_DAT is not yet included in BAPI_MVKE from Sales data.

Thanks,

Sriram

Read only

0 Likes
1,227

Yes correct, but how to overcome this.

Because the present program is in PRD from years, now they came saying they want to update the field SSTUF along with other fields.

Read only

0 Likes
1,227

Hi,

pleae check BAPI_ASSORTMENT_MAINTAINDATA .

(BAPIE1WRS6-ASSORT_LEV)

Regards,

Klaus

Read only

Former Member
0 Likes
1,227

Hi,

>

> I am using the BAPI 'BAPI_MATERIAL_SAVEDATA' to change the Material.

>

> I want to update the the field SSTUF of MVKE table, can anyone help me under which field to BAPI I need to pass this to update the table MVKE-SSTUF.

>

>

> this SSTUF is avilable in MM03 under tab SALES: SALES ORG. 1 (UNDER GENERAL DATA 'Prc Extrct Tier')

Most of the standard BAPI provide interface to take care of customer fields. These parameters are named as EXTENTIONIN , if the BAPI is meant to save data, and EXTENTIONOUT, if the BAPI is meant to retrieve data.

Try this-

1. Extend BAPI_TE_MVKE by appending your structure/ fields.

2. Create a corresponding append structure for appending to BAPI_TE_MVKEX.

Note: The field names should be exactly same but the data element should be BAPIUPDATE (CHAR1)

3. Maintain an entry in T130F table for each field and the fields T130F-PSTAT (Maintenance status) and T130F-SFGRU (Special field selection group).

To do this, go to SPRO> Logistics- General>Material Master> Field Selection> Assign Fields to Field Selection Groups.

4. Save the data and come back to the previous screen. Assign the selection group for this field.

Repeat this for the entire field for which we want the BAPI to work for. This step will complete the customization required for the BAPI to work.

5. Now call the BAPI_MATERIAL_SAVEDATA to update the your fields under EXTENTIONIN and EXTENTIONOUT.

Happy Troubleshooting!