‎2006 Dec 06 11:23 PM
Hello Guru's,
I have a dought whether we can create any internal table in script. Coz if driver program is standard T.code. how should we trouble shoot this... How about external subroutine? and how to use this?
Regards
Ram
‎2006 Dec 06 11:27 PM
Hi,
You cannot create internal tables in sapscript..
For subroutines check this link..
http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm
Thanks,
Naren
‎2006 Dec 06 11:27 PM
Hi,
You cannot create internal tables in sapscript..
For subroutines check this link..
http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm
Thanks,
Naren
‎2006 Dec 06 11:28 PM
The usual practice is that you copy the standard print program and make the necessary modifications you need. This way it will allow you to create yoru own internal tables and access it in the form. Later you need to map this custom program to a output type so that this print program and the form is triggered.
-Guru
‎2006 Dec 07 4:02 AM
hi
good
you cant directly declare the internal table in sapscript but you can creat the external subroutine and call that in your sapscript,
go through this
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
......
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
......
/: ENDPERFORM
INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
...
ENDFORM.
thanks
mrutyun^