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

Making Inout table array from a input as a string

Former Member
0 Likes
442

Hi,

We have made a RFC for F-28 with document number posting, to enetr the document number we have a table in which we can enter the document number to add multiple docum,ent after entering first document number then after click on new line we are enering the second document number it is working fine in SAP with SE37, my problem is that we are using this RFC with cordys and that can pass only one document number at a time or it can pass value seperated by , (comma) so i want to know how to make array in sap by receving document number as as string from cordys software lit will send me string as 5000000000, 50000000001, 50000000002, 50000000003.

then in SAP i want to pass this value in a loop with internal table.

regards,

zafar

1 ACCEPTED SOLUTION
Read only

former_member585060
Active Contributor
0 Likes
402

Hi,

Declare a table with the Importing field, and use the SPLIT command to split.

TYPES : BEGIN of t_itab,
                 donum TYPE donum,
             END of t_itab.

DATA : i_itab TYPE STANDARD TABLE of t_itab,
            wa_itab TYPE t_itab.

SPLIT string AT ',' INTO TABLE i_itab.

LOOP at i_itab INTO wa_itab.

....  " Call the RFC FM

ENDLOOP.

Regards

Bala Krishna

1 REPLY 1
Read only

former_member585060
Active Contributor
0 Likes
403

Hi,

Declare a table with the Importing field, and use the SPLIT command to split.

TYPES : BEGIN of t_itab,
                 donum TYPE donum,
             END of t_itab.

DATA : i_itab TYPE STANDARD TABLE of t_itab,
            wa_itab TYPE t_itab.

SPLIT string AT ',' INTO TABLE i_itab.

LOOP at i_itab INTO wa_itab.

....  " Call the RFC FM

ENDLOOP.

Regards

Bala Krishna