on 01-22-2007 5:52 AM
Hi i want wht return in subroutine and how to call subroutine in scripts ,,,, This is urgent requirment for me quikck ans will be more help ful for me ... THanking U
hi
write this code in script
/: perform getdata in program zmat_data
/: using &matnr&
/:changing &mtart&
/: endperform
and write the below code in program zmat_data
REPORT ZMAT_data .
TABLES : MARA.
DATA : W_MTART(255).
FORM GETdata TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
READ TABLE IN_TAB WITH KEY NAME = 'EKPO-EMATN'.
IF SY-SUBRC EQ 0.
SELECT SINGLE MTART FROM MARA INTO W_MTART
WHERE MATNR = IN_TAB-VALUE.
ENDIF.
READ TABLE OUT_TAB WITH KEY NAME = 'V_MTART'.
OUT_TAB-VALUE = W_MTART.
MODIFY OUT_TAB INDEX SY-TABIX.
ENDFORM.
it is the code to be used
i will work n do reward point if useful
Message was edited by:
Srinivas Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.