08-09-2010 9:47 AM
Hi All
Can any one tell me how to call a perfrom from other program with paramenters.
*perform update_lt_cc in program Z_SUBROUNTINES_002 if found* .
i am trying to use above statement ,but where shouid i pass the parameters like using ,,changing , and tables.
thanks for help
Regards
CB
08-09-2010 9:55 AM
Hello channappa sajjanar
Just like this :
*---- Program1 (containing the form) :
REPORT zform1.
FORM form1
USING ip_param1 TYPE i
CHANGING ep_param2 TYPE char3.
IF ip_param1 = 1.
ep_param2 = 'one'.
ELSEIF ip_param1 = 2.
ep_param2 = 'two'.
ENDIF.
ENDFORM.
*----Program 2 , calling this form :
REPORT zform2.
data return TYPE char3.
START-OF-SELECTION.
PERFORM form1 IN PROGRAM zform1
USING 1
CHANGING return.
ENDFORM. "form1
It works...
08-09-2010 10:04 AM
08-09-2010 10:51 AM
Hi,
We can call the subroutine of other programs using following syntax.
perform FORMNAME(PROGRAM NAME) using value(p_value) type i
changing value(p_value2) type i.
Regards
Srav..