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

sap scripts

Former Member
0 Likes
683

what is the use of structure itcsy

5 REPLIES 5
Read only

valter_oliveira
Active Contributor
0 Likes
666

Hi there.

This question has been answered previously in this forum. Search SDN before posting.

Structure ictsy is used for statement PERFORM in scripts.

Check this link for more info:

http://help.sap.com/saphelp_nw70/helpdata/EN/d1/80318f454211d189710000e8322d00/frameset.htm

Regards.

Valter Oliveira.

Read only

Former Member
0 Likes
666

Hi Madhu,

To call a subroutine from scripts we use perform in scripts text elements.

Syntax :

/: Perform <form-name> in program <program name>

/: using &in_var1&

/: changing &out_var1&

/: endperform

In se38

Form <form_name> tables itab itscy otab itcsy

Structure of itcsy

it has two fields name of the program symbol and value (text symbol value)

You can check it in se11 by typing itcsy

Pls also have a look at this link aswell,,,

Regards,

Viveks

Read only

Former Member
0 Likes
666

Hi madhu sudhana ,

The structure ITCSY contain 2 fields:

1) field name

2) field value

This structure is usefull when u want to add a additional field to the SAP Script layout without modifying the print program.

this structure we use in program logic i.e

FORM <form-name> TABLES in_par structure ITCSY

out_par structure ITCSY.

IN_PAR table will get it's value from PERFORM statement declared in layout.

OUT_PAR table will get filled with the new field.

Read only

Former Member
0 Likes
666

HI MADHUSUDAN

The structure ITCSY contain 2 fields:

1) field name

2) field value.

Syntax :

/: Perform <form-name> in program <program name>

/: using &in_var1&

/: changing &out_var1&

/: endperform

For an example :- DEFINE &ADRNR& = &LFA1-ADRNR&

DEFINE &LIFNR& = &EKKO-LIFNR&

DEFINE &ADDRNUMBER& = &ADRC-ADDRNUMBER&

DEFINE &NAME2& = &ADRC-NAME2&

DEFINE &STREET& = &ADRC-STREET&

DEFINE &CITY1& = &ADRC-CITY1&

DEFINE &COUNTRY& = &ADRC-COUNTRY&

DEFINE &POST_CODE1& = &ADRC-POST_CODE1&

DEFINE &TEL_NUMBER& = &ADRC-TEL_NUMBER&

PERFORM ADDRESS_FUNC IN PROGRAM Z_TEL_FAX_FUNC

USING &EBELN&

USING &LIFNR&

USING &ADRNR& TAKEN FROM THE TABLE,STORED IN ITCSY

USING &ADDRNUMBER&

CHANGING &NAME1&

CHANGING &NAME2&

CHANGING &FAX_NUMBER& WE WILL FETCH THESE VALUES BY PERFORM

CHANGING &CITY1&

CHANGING &COUNTRY&

CHANGING &POST_CODE1&

ENDPERFORM

In se38

FORM <form-name> TABLES in_par structure ITCSY

out_par structure ITCSY.

IN_PAR table will get it's value from PERFORM statement declared in layout.

OUT_PAR table will get filled with the new field

FORM <FROM NAME> TABLES it_intab STRUCTURE itcsy

it_outtab STRUCTURE itcsy.

READ TABLE it_intab WITH KEY name = '<NAME OF THE FIELD GIVEN>'.

        • FETCHING VALUES FROM ITCSY.

****

READ TABLE it_outtab WITH KEY name = 'FIELD TO BE PASSED'.

VALUES TO BE SEND TO THE ITCSY

REGARDS

PRASHANT

Read only

Former Member
0 Likes
666

Hi madhu,

ITCSY is a structure. It is used to pass data from the script

or add additional logic to subroutine without modifying the print program.

Example

perform <formname) using itcsy
                   changing itcsy.

Best of luck,

Bhumika