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: 

How to call a perform from other porgramm haviing paramenters

Former Member
0 Kudos
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
3 REPLIES 3

bbalci
Contributor
0 Kudos

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...

Former Member
0 Kudos

Hi Bulent ,

Thanks for your answer .

Regards

CB

Former Member
0 Kudos

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..