on 11-20-2006 10:33 PM
hi,
Am using a standard driver program(cant be changed) and a custom form. I call a external subroutine in another custom program to fill up a internal table.
how to pass the itab values to the form, so that the contents will be printed a window, below the main ?
-Ram
As said above the using Subroutines(Perform-Endperform), u can call single record only.
But u can do one thing,try to place the subroutine after the event which is in the loop of standard print program.
Try in this way andlet me know.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
We can not pass whole internal table directly to the external subroutine.
But you can pass single record of the internal table at a time.
1. Create a Text element and call this text element in the LOOP..ENLOOP of the print program.
2. Write logic like below to pass internal table record.
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &ITAB-FIELD1&
/: USING &ITAB-FIELD2&
....
....
/: CHANGING &ITAB-FIELD1&
/: CHANGING &ITAB-FIELD2&
.....
....
/: ENDPERFORM
3. Use STATIC variable to calculate the totals
Thanks
Ramakrishna
Message was edited by:
Ramakrishna Ramisetti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I believe you cannot pass internal tables in the sapscript subroutines..
Thanks,
Naren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know how ITCSY structure works. But it helps only USING and CHANGING additions. how would TABLE be handled?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check in this link for an example of how to pass the values and retrieve values in sapscript subroutine..
http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.