on 12-18-2008 2:43 PM
Hi,
What is the use of USING and Changing which we use in perform statements..
Thanks in advance.
BAlu
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FOR GODS SAKE, YOU SHOULD BE EITHER USING THE SAP HELP OR SEARCHING ON THIS FORUM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
10 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.