‎2009 Apr 28 11:18 AM
Hello SDN,
I have created a Custom BAPI FM. This BAPI FM structure has been imported to XI and is being called from XI.
Data is being passed from XI and the BAPI FM updates details on the R/3 Side. This BAPI is called from XI as a Remote enabled FM call.
The problem is when I am trying to pass records with multiline , or a table with multiple lines of data, the BAPI updates only the first entry of the table.
The Import Tab in the Function Module is a custom structure and only one value can be passed at a time.
The Tables Tab in the FM has the structure of the table which needs to be updated using the BAPI.
Please suggest how shall I program my BAPI so that , it receives data as Table Entries and , these entries get updated in the Table.
Thanks a lot,
Manu
‎2009 Apr 28 11:22 AM
‎2009 Apr 28 11:42 AM
‎2009 Apr 28 12:16 PM
Hello,
Can you give the bapi which u r using.
U have all the values in the internal table.
Keep the loop to the internal table which have records.
call bapi Fm.
endloop.
‎2009 Apr 28 12:32 PM
Its a custom Bapi that I created. Values are passed from XI. The BAPI Structure is imported to XI from R3.
Mappings are done with corresponding fields.
If records are passed one by one, for each BAPI Call, it works fine, but if we pass a table, no entries are populated.
The import parameters in BAPI are single fields.
I want to pass them as a table.
Is there a way in which data can be passed as a table to BAPI import parameters.
Thanks,
Manu
‎2009 Apr 28 12:37 PM
Hello,
Check in the BAPI FM that any flag should be 'X' for multiple lines.
‎2009 Apr 28 12:41 PM
I don't think there is any flag in any FM to specify it to be multiline.
The BAPI business Object has a Multiline field. I have already created it as Multi line.