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

Getting the error when using the ZBAPI_APPREQUEST_CREATE

Former Member
0 Likes
367

Hi All,

I have copied the BAPI_APPREQUEST_CREATE into Z to create the Appopriate Request (IMA1N transaction). If the input file consists 4 records, then the program is uploading the 1st and 3rd records,but giving the following error for the 2nd and 4th records.That means the program is dropping the every 2nd record.

Distribution of MATERIAL_GRP not allowed

Distribution of DIVISION not allowed

Distribution of INVESTMENT_REASON not allowed

Distribution of ENVIRONMNT_INVEST not allowed

Can anybody tell me how to resolve this error << removed >>.

1 REPLY 1
Read only

Sm1tje
Active Contributor
0 Likes
326

Well it's very hard to say just based on what you are 'giving' us. Have you tried to change the order of the input records? Or did you try and process all lines individually? This way you can make sure it is not due to errors in the data itself.

The COMMIT WORK, are you doing this after every record (including WAIT?) or only at the end after processing all records?