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

Function parameter is unknown.

Former Member
0 Likes
3,062

Hello guys of new. Who can help me please? I have the next error in my code:

Function parameter "TARGETTEXT" is unknown. 

-----------------------------------------------------------------------

method IF_EX_ME_PROCESS_PO_CUST~CHECK .

DATA:

  v_ewaers  TYPE WAERS.

    "DATA: ls_mepoheader  TYPE mepoheader.

    "ls_mepoheader = im_header->get_data( ).

    IMPORT v_ewaers TO v_ewaers FROM MEMORY ID 'ewaers'.

 

      data: text type TRM080-TEXT.

      CALL FUNCTION 'TRM_POPUP_TEXT_INPUT'

       EXPORTING

*         SOURCETEXT         = 'asasasa'

         TITEL              = 'Test'

         START_COLUMN       = 25

         START_ROW          = 6

*       CHANGING

         TARGETTEXT         = text.

endmethod.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,657

Juan,

It looks like the CHANGING keyword is comment out. Because of this, the call function interprets the parameter TARGETTEXT as an importing parameter, which it is not. This is why you receive an error message.

To correct this, either comment out TARGETTEXT as it is optional or uncomment out CHANGING.

Hope this helps.

Thanks,

Brian

2 REPLIES 2
Read only

Former Member
0 Likes
1,658

Juan,

It looks like the CHANGING keyword is comment out. Because of this, the call function interprets the parameter TARGETTEXT as an importing parameter, which it is not. This is why you receive an error message.

To correct this, either comment out TARGETTEXT as it is optional or uncomment out CHANGING.

Hope this helps.

Thanks,

Brian

Read only

0 Likes
1,657

It is true that I am clumsy . No I was thinking. Thank you.