Application Development 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: 

Function parameter is unknown.

former_member308319
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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