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

Problem with Material Master upload

Former Member
0 Likes
1,900

Hi All,

I am uploading material type of UNBW using my conversion pogram in which bapi_material_savedata. While testing the bapi is returning an error "Field LGORT has been transferred inconsistently or is blank". But in my test file i am not using the filed LGORT. I did'nt understand why its giving error whether my program nor test file has that field.

Thanks

8 REPLIES 8
Read only

Former Member
0 Likes
1,297

Are you saying that you are not entering either of the two optional parameters STORAGELOCATIONDATA or STORAGELOCATIONDATAX?

Or are you saying you are entering them without LGORT being filled out?

Rob

Read only

0 Likes
1,297

I am entering the stoage location with field lgpro. BUt in my code and test file i dont have any field by name lgort. But the Bapi is returning an error "Field LGORT has been transferred inconsistently or is blank".

Read only

0 Likes
1,297

Try putting it in BAPI_MARD-STGE_LOC and BAPI_MARDX-STGE_LOC (if you're using them).

Rob

Read only

0 Likes
1,297

Its already there

Read only

nitesh_jain3
Active Participant
0 Likes
1,297

Dear ben,

The reason why this is happening is that you are trying to define an Issue storage location (LGPRO) for a material when the material is not extended in that storage location..

You will need to create the storage view of the material in the store you are defining in the field LGPRO.

Cheers

Nitesh

Read only

Former Member
0 Likes
1,297

got it

Read only

0 Likes
1,297

What was the problem?

Rob

Read only

0 Likes
1,297

In program for storage location lgpro field is passed which internally assigned to lgort. In the test file lgpro is null or blank. This makes lgort blank and forced to bapi to throw an error.