cancel
Showing results for 
Search instead for 
Did you mean: 

Func Module

Former Member
0 Kudos

Hi,

What is the use of USING and Changing which we use in perform statements..

Thanks in advance.

BAlu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try this:

REPORT ztest LINE-SIZE 80 MESSAGE-ID zc.

DATA: new_job TYPE string,
      old_job TYPE string VALUE 'ABAPER'.

PERFORM find_new_career
  USING old_job
  CHANGING new_job.

WRITE: /001 'I was an', old_job,
       /001 'I should be', new_job.

*&---------------------------------------------------------------------*
*&      Form  FIND_NEW_CAREER
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM find_new_career  USING    p_old_job
                      CHANGING p_new_job.

  IF p_old_job = 'ABAPER'.
    p_new_job  = 'anything else'.
  ENDIF.

ENDFORM.                    " FIND_NEW_CAREER

Rob

JanStallkamp
Employee
Employee
0 Kudos

Rob, that was the best posting in the SDN I read this year.

(and it was one the worst questions I read, too...)

Thread locked, points given, coffee corner will get notice...

/Jan

Answers (1)

Answers (1)

Former Member
0 Kudos

FOR GODS SAKE, YOU SHOULD BE EITHER USING THE SAP HELP OR SEARCHING ON THIS FORUM.