‎2009 Nov 02 3:20 PM
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
‎2009 Nov 02 9:25 PM
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 ,
‎2009 Nov 06 10:11 AM
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.