‎2006 Jul 01 10:53 AM
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
‎2006 Jul 01 11:07 AM
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>
‎2006 Jul 01 11:07 AM
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>
‎2006 Jul 01 1:27 PM
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.
‎2006 Jul 01 3:11 PM
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. "
‎2006 Jul 01 7:57 PM
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