Skip to Content
0
Former Member
May 09, 2005 at 11:00 AM

Perform in script

23 Views

Dear All,

I am using perform statement in script.

the code for subroutine in separate program type (e).

But unable to get the output.

Following is my code of subroutine & form.

Regards,

Dilip

Script code

/:PERFORM GET_VAL IN PROGRAM ZGET_VAL

/:USING &IT_MARA-MATNR&

/:CHANGING &DESCR&

/:ENDPERFORM

Subroutine code

Form get_val tables in_tab structure itcsy

out_tab structure itcsy.

select * from makt into table it_makt

where matnr = in_tab-value.

data temp(40).

loop at it_makt.

temp = it_makt-maktx.

out_tab-name = 'maktx'.

out_tab-value = temp.

append out_tab.

endloop.

endform.