on 12-14-2006 2:05 AM
hii frnds
plz tell me how to pass a table from a script and to get it back from the program .
i am talking about a external program not the driver program .
i know how to pass a variable using itcsy structure . but i am not able to pass a table and to print the fileds .
i need this table to print the line items in the main window .
thanks
rohit
u cannot pass the table as such from the external program. Better call the external program from the element which is called in the loop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CAN WE INCLUDE A TEXT ELEMENT IN A STANDARD PROGRAM . I AM USING RIPRGI00. AS MY PROGRAM .
CAN ANY BODY SHOW ME HOW TO INCLUDE A TEXT ELEMENT IN IT . I HAVE ALREADY COPIED THE STANDARD PROGRAM . AND ADDED THE TEXT ELEMENT BY USING WRITE_FORM . BUT ITS NOT WORKING . I THINK THERE IS A WRITE PLACE WHICH I CANT FIND OUT.
Hi
SELECT SINGLE * FROM stxl WHERE relid EQ 'TX' AND
tdobject EQ 'VBBK' AND
tdname EQ ebkn-vbeln AND
tdid EQ '0002' AND
tdspras EQ 'EN'.
TXT = ' Ref Order No. :'.
PERFORM set_text_symbol USING: '&txt&' txt.
IF sy-subrc EQ 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = stxl-tdid
language = stxl-tdspras
name = stxl-tdname
object = stxl-tdobject
TABLES
lines = ctxt
EXCEPTIONS
OTHERS = 8.
LOOP AT ctxt.
IF ( ctxt-tdline IS NOT INITIAL ).
PERFORM set_text_symbol USING: '&TEXT_LINE1&' ctxt-tdline.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ITEM_TEXT'
function = 'APPEND'
window = 'MAIN'
EXCEPTIONS
OTHERS = 7.
ENDIF. "if not line is initial
ENDLOOP.
Try this ..
hi,
its fine that u know the ITCSY way. it is not possible to send table like u want. what should happen is,
<b>1. collect values in ITAB in program.
2. LOOP AT ITAB, Call function 'WRITE_FORM' with window MAIN the element 'MAIN'.
3. now in script under element /E MAIN, you will have the header contents, i.e one item details. print it.
4. ENDLOOP.</b>
hope that helps...
pls. reward if useful...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.