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 material type by bapi

Former Member
0 Likes
773

Hi all,

I am working on LSMW by BAPI method. i want to update the Material Type of a given material.So, I have gone to MM01 then I copy that material but in BAPI I do not find any structure related to Refrence Material No. Field. Kindly tell me the structure regarding this Refrence Material No. field.

Sulabh

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Likes
609

I doupt that you can change the material type, as it cannot be changed in the standard transaction MM02, and not in the MM17 mass maintenance transaction (which uses BAPI method).

A material type is usally changed with an extra transaction: MMAM as it has to perform a couple extra checks that are not needed in a standard maintenance.

3 REPLIES 3
Read only

Former Member
0 Likes
609

Hi,

May i know which BAPI you are using. If you are using the BUS Object BUS1001006 and method SAVEDATA, then it has the structure BAPI_MARA and the field for reference material is PL_REF_MAT.

Read only

JL23
Active Contributor
0 Likes
610

I doupt that you can change the material type, as it cannot be changed in the standard transaction MM02, and not in the MM17 mass maintenance transaction (which uses BAPI method).

A material type is usally changed with an extra transaction: MMAM as it has to perform a couple extra checks that are not needed in a standard maintenance.

Read only

Former Member
0 Likes
609

Hi Jürgen L.,

By LSMW BAPI method i want to update Material type. I know about the tcode MMAM. Is there any BAPI related to that . Kindly tell me.

Sulabh