Monday, December 20, 2010
  • Create one program with name ZTEST_PROGRAM and One subroutine in that.

Report ZTEST_PROGRAM.
data: x type p,
y type p.
x = 1.
y = 2.
perform get_changed_values using x CHANGING y.
WRITE:/ x,y.
*&---------------------------------------------------------------------*
*&      Form  get_changed_values
*&---------------------------------------------------------------------*
form get_changed_values  using    p_x
changing p_y.
p_y = p_y + p_x + 1.
endform.                    " get_changed_values 

  • Create another program with name ZTEST_NOTEPAD and call subroutine used in the above program.

REPORT ztest_notepad.
data: x type p,
y type p.
x = 2.
y = 3.
perform get_changed_values(ZTEST_PROGRAM) using x CHANGING y.
WRITE:/ x,y.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.