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

pass parameters to function th_create_mode?

Former Member
0 Likes
1,592

Hi,

I'm trying to call function th_create_mode for transaktion CM25, but I should pass 4 parameters with the call function.

the function has an importing parameter: REFERENCE(PARAMETERS) TYPE STRING OPTIONAL.

So it seems all the passing parameters should be placed in a string.

What format should this string have? In other words, how do I place the passing parameters in the string?

Thx.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
902

HI christophe,

see the sample code how to pass apramteres to FM 'TH_CREATE_MODE'


concatenate 'GUID=' l_async_data-id into l_async_parameter.
        CALL FUNCTION 'TH_CREATE_MODE'
          EXPORTING
            transaktion    = 'SWO_ASYNC'
            parameters     = l_async_parameter
            process_dark   = 'X'
            del_on_eot     = 1
          IMPORTING
            mode           = mode_id .
 

Regards,

Prabhudas

1 REPLY 1
Read only

Former Member
0 Likes
903

HI christophe,

see the sample code how to pass apramteres to FM 'TH_CREATE_MODE'


concatenate 'GUID=' l_async_data-id into l_async_parameter.
        CALL FUNCTION 'TH_CREATE_MODE'
          EXPORTING
            transaktion    = 'SWO_ASYNC'
            parameters     = l_async_parameter
            process_dark   = 'X'
            del_on_eot     = 1
          IMPORTING
            mode           = mode_id .
 

Regards,

Prabhudas