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

BAPI Multi Line

Former Member
0 Likes
1,033

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

6 REPLIES 6
Read only

Former Member
0 Likes
814

hi,

use the bapi in loop from xi system .

Read only

0 Likes
814

How can we do that.

Read only

Former Member
0 Likes
814

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.

Read only

0 Likes
814

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

Read only

Former Member
0 Likes
814

Hello,

Check in the BAPI FM that any flag should be 'X' for multiple lines.

Read only

0 Likes
814

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.