cancel
Showing results for 
Search instead for 
Did you mean: 

Creating only view Sales: General/Plant Data using BAPI MATERIAL_SAVEDATA

former_member533179
Participant
0 Kudos

I want to create material using BAPI MATERIAL_SAVEDATA. As per the requirement we just want to maintain the Sales: General/Plant Data among the Sales views. This is a part of the Plant Data i.e.MARC table which is set to Active in the BAPI.

I pass on the fields of the view Sales: General/Plant Data but this view is not generated when the material master is created.

I cannot use the below mentioned sales data fields of the BAPI as it activates the other sales views which I do not want.

  1. SALESDATA = BAPI_SALESDATA
  2. SALESDATAX = BAPI_SALESDATAX

Is there any way to achieve this?

Thanks in Advance

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

Did you pass values in SALES_ORG and DISTR_CHAN of SALESDATA[X] table parameter and fields MATERIAL and SALES_VIEW of HEADDATA parameter, or could you reformulate your 'as it activates the other sales views'?

former_member533179
Participant
0 Kudos

Hi Raymond,

If we set the parameter SALESDATA[X] then the sales Org view 1 and sales org view 2 will also be activated. We only want the plant level view Sales General/Plant.

When we create material master manually, then we need to enter only the plant and if we select the Sales General Plant view then we can activate this view.

Other sales views are not activated.

Is this anyhow possible using BAPI MATERIAL SAVE_DATA

raymond_giuseppi
Active Contributor
0 Kudos

Which fields are required, are they available in PLANTDATA[X] parameters, also which views did you check in HEADDATA parameter?