08-10-2011 7:04 PM
Hi all,
I'm using BAPI_MATERIAL_SAVEDATA and it is working well for all types of material, less for NLAG. The material has only the views NLAG Basic, Purchasing and Accounting active.
when 'NLAG'.
st_headdata-basic_view = c_x.
st_headdata-purchase_view = c_x.
st_headdata-account_view = c_x.
However, when running my program, the BAPI returns errors requesting fields as VKORG, LGORT, which are fields of visions of Storage and Sales.
I can not find anything wrong in the program, since it works the same way for all other types.
There may be some setting wrong for this particular type of material or someone has an idea what might be happening?
Thank you!
08-10-2011 8:17 PM
Hello,
NLAG - Nonstock materials are not held in stock because they are consumed immediately.
I can assume that is the reason it is expecting sales org (?) and storage location value...
Could you please try to do same activity online transaction after removing parameter value in user profile (if any)?
Thanks.
08-10-2011 8:54 PM
Hi,
I've done to manually enter successfully and haven´t parameters in the user profile.
If NLAG is a Nonstock material , doesn´t make sense it ask for storage location... No?
Thanks.