Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tables in Script

Former Member
0 Likes
425

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
401

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

3 REPLIES 3
Read only

Former Member
0 Likes
402

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

Read only

Former Member
0 Likes
401

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

Read only

Former Member
0 Likes
401

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^