Application Development 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: 

Material Group1 in VA01 Non editable

Former Member
0 Kudos

Hi Experts,

We have created a BDC For creating a sales order in VA01 but we are getting an error for material group1(WGRU1) and material group2(WGRU2) that "it is not an input field". If we create a sales order manually with reference then those fields are editable but otherwise they are coming as non editable(greyed out).

Kindly suggest a solution as entering data in those fields is the main requirement.

10 REPLIES 10

Former Member
0 Kudos

Hi Mansi,

The field attributes are controlled in configuration. The field attributes are controlled by number of parameter ie we can set the mat group1 as invisible/read only/mandatory for a particular sales order type etc. You functional consultant will be able to check the same in SPRO.

Thanks,

Kumaran

0 Kudos

Hi Kumaran,

Thanks for your reply. But is there any other way to upload data in these two fields through BAPI or something?

0 Kudos

Hi Mansi

You can create sales order through BAPI_SALESORDER_CREATEFROMDAT2. Please search SCN you will find many links

Nabheet

philipdavy
Contributor
0 Kudos

Hi Mansi,

What is preventing you from using BAPI or IDOC method ? We will be able to help you out if you could tell us why you are preferring BDC ahead of the other methods.

Regards,

Philip.

0 Kudos

I have searched the BAPI's as well but I could not find any BAPI which would take the value of WGRU1 and WGRU2 fields.........If you know any suitable BAPI kindly tell.

0 Kudos

This BAPI BAPI_SALESORDER_CREATEFROMDAT2 in item table has material group1 to 6

0 Kudos

Regard's

Smruti

0 Kudos

That is different. What I need is material group hierarchy...specific field names as (WGRU1 AND WGRU2 of VBAP). Its there in VA01 after material group1 to 6 with name as MATERIAL GROUP1 AND MATERIAL GROUP 2 but is non editable.

jayaprakashhj
Participant
0 Kudos

Hi,

can please you post your BDC code?

Regards,

JP

sivaprasad_paruchuri
Active Participant
0 Kudos

hi,

u might have given input for the material group field , comment the bdc field input for material group1 then u will not get that error.. it will automatically pick from material master..

regards

Siva