cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass static rows to an input table of a BAPI

Former Member
0 Kudos

Hi all,

I am using BAPI_ALM_ORDER_MAINTAIN for creating service orders through my VC application.

This BAPI uses an import table called METHODS table which is used to indicate what methods should execute when we execute the BAPI.

Example is given below:

Creating an order with operation and long text

Methods table

REFNUMBER OBJECTTYPE METHOD OBJECTKEY

1 HEADER CREATE %00000000001

1 OPERATION CREATE %00000000001

1 TEXT CREATE %000000000010010

In this example, it is shown that I need to pass 3 rows to the import table METHODS in the BAPI.

Without this, I cannot execute the BAPI and save the data in R/3 system.

Ofcourse, I can pass one static row into the table.

I would like to know how I can pass multiple rows to the import table.

Can anyone please help me out?

Points will be awarded.

Thanks alot in Advance

Shobin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shobin,

I can tell you how to pass entire table to a BAPI but I am not sure if I am aswering your question.

1. Drag your BAPI to the board;

2. Drag a table component to the board (select 'Editing Mode' as 'Editable' and 'Selection Mode' as 'Multiple');

3. Add in your table as many fields as you wanted (Input field for example);

4. Right click in your table and 'Create a tool bar';

5. Click on '+' name your Button and choose 'Submit' as action;

6. Select the Line between table and BAPI and map your table fields to your BAPI fields and choose submit at Event Name;

7. Deploy your model.

I don't know if you want input data manually or have this tables field with a default value. Let me know if this helps at all.

Kind Regards,

Gilson

Former Member
0 Kudos

Hi Gilson,

Thanks a lot for your reply.

In fact, I wanted to pass a 3 or 4 rows of static data to one of the import tables of the BAPI which actually instruct the BAPI which all methods it should internally call.

I guess it is not directly possible using normal ways.

I would like to know if there is any work around for this kind of a requirement.

I would really appreciate any help on this.

Thanks again

Shobin