Application Development 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: 

Custom BAPI Updation Multiple Line.

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

How to fetch data and fill the structures of the Bapi totally depends on the requirement.

What fields you take from your front end and what fields are to be updated from the database tables.

which standard bapi you use inside your custom bapi etc,

Regards,

Lalit Mohan Gupta.

0 Kudos

HI Lalit,

I have a created a custom BAPI and XI is sending some data which I need to update in Z tables.

Nothing to do with the standard any of the Standard BAPI.

Please suggest.

Thanks,

Manu

Former Member
0 Kudos

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.

think, do u need a LOOP......ENDLOOP?

thanq

0 Kudos

I can see only one record at a time.

I could use Loop .. Endloop, but I am getting only one record at a time.

0 Kudos

Hi,

Witin loop ...endloop, call ur ZBAPI.

Check COMMIT WORK and WAIT upto n seconds being used in the BAPI, here n can be 3 or 5...

WAIT upto 3 seconds.

Regards,

Naveen

0 Kudos

My Bapi is called from XI. The BAPI Structure has been imported to XI and fields mapped in source and target destinations.

Thanks,

Manu

0 Kudos

Hi,

I have started working on custom BAPI development,

required some custome BAPI development and process inputs, i mean your developments in R/3 side , because I am having same kind of some similar requirement, I have not worked so far on custome BAPI's.

Thanks,

Rahman

0 Kudos

I am no longer maintaining it as a BAPI. I am now using it as a simple remote enable F module.

Made a few changes to the import parameters in FM.

Let me know if you need more information.

Thanks,

Manu Kapur