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

BAPI_MATERIAL_SAVEDATA for NLAG

miguel_motta
Participant
0 Likes
604

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!

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!

2 REPLIES 2
Read only

Former Member
0 Likes
544

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.

Read only

0 Likes
544

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.