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

About BAPI tables paramter(dynamic column)

com_2018
Participant
0 Likes
669

Hi,

I write one bapi function module: Z_bapi_XXXX, the columns of Parameters table must be dynamic.I do not know how implement these.

Could you help me?

Thanks & Regards,

Collysun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
558

Hi,

This wont be possible using SE37.

You can declare all of them and selectively fill the values of the required ones at the run time.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

4 REPLIES 4
Read only

Former Member
0 Likes
559

Hi,

This wont be possible using SE37.

You can declare all of them and selectively fill the values of the required ones at the run time.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

Read only

Former Member
0 Likes
558

Hi,

actually dynamic column creation in SE37 not possible. U can pass dynamic values to same parameter.

Ex.

u can pass variable or structure to the same field.

Just declare the col in any of parameters ( Import / Export ) without type .

Regards,

Sudhakar.

Read only

0 Likes
558

Hi,

Example:

One time run: Columns are 'A', 'B','C'

next time run: Columns maybe are 'A','B','D'

.

.

.

Etc.

BTW: I want define one alterable data type.So I create the BAPI structure(ZBAPI_0001),and data type of field is STRING. But when I refer to the structure(ZBAPI_0001) in SE37,display error:"ZBAPI_0001" must be a flat structure. You cannot use int

references, or structures as components. "

Read only

Clemenss
Active Contributor
0 Likes
558

Hi,

you could do as SAP does with BAPI extension tables: Have a table with two fields, the first for the structure name actually used, the second for the data.

Look at some BAPIs with extensions and the respective documentation.

Regards,

Clemens