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
560

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 >>.

Edited by: Rob Burbank on Nov 2, 2009 11:00 AM

2 REPLIES 2
Read only

Former Member
0 Likes
497

Hi Srinivas,

Instead of Copying standard BAPI, Can you call the Standard Bapi inside your ZBAPI , so that you can have the same Import/Export Parameters are you can reduced your Inputs,

BEFORE Calling the Standard BAPi ,your customer code can validate the inputs ,AFTER output of the Standard BAPi you can write custom code for changing the standard output.

Answer for your error: if standard is also throwing same error then it is having some logic inside the BAPI for skipping 2,4,....

records.

Otherwise there will error in the data.

Regards ,

Read only

0 Likes
497

Hi Girish,

Thanks for ur reply.

I need to copy the standard BAPI beacuse, in the USER_FIELDS structure i have Z Fields.So i need to upload the data for those Z fields.