Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using BAPI for Material Extend for new plant

Hi Experts,

I am creating Material using Reference Material in which the reference material has 12 views selected then i need to select that 12 views to create material against new plant, new sloc and new division with reference plant, ref sloc and ref division.

New Matnr: LIC-REP-460H

Mattype : DFRT

Ref Matnr : LIC-REP-460H

New Plant : 4000 Ref Plant : P100

New Sorg : 4000 Ref Sorg : 1000

New Division : 20 Ref Div : 10

In which the Tax indicator = 1

If Ref Mat has 20 views then i need to select 20 views and create material with ref to that mat.

Using BDC it's difficult to handle views.

Any one worked on above using BDC for above condition do give idea to maintain views.

I am using BAPI< BAPI_MATERIAL_GET_ALL>

To get all the data related to that material no based on plant , sorg and division.

Then using BAPI_MATERIAL_SAVEDATA to create material.

My question is that how should in header data the views to be selected for new material based on

details i got from the BAPI_MATERIAL_GET_ALL.

any with code for the above condition using BAPI will solve my pblm..

thanks for ur help to all in advance.

Not what you were looking for? View more on this topic or Ask a question