cancel
Showing results for 
Search instead for 
Did you mean: 

form

Former Member
0 Kudos

what is the use of itcsy?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

ITCSY is a structure name which has Program symbol field name and it value.

like using statement in perform...

Using &REGUP-BUKRS& is a program symbol field name and its value.

pls make sure the the structure name is ITCSY....

in my above code by mistake i wrote it as itscy... pls change to ITCSY.. make sure the Subroutine name and ZTEST program name is same as u given in Sapscript form.

I am not sure what is the problem that it cant see the structure in ur program

FORM TEST_ROUTINE TABLES IN_PAR STRUCTURE ITCSY OUT_PAR STRUCTURE ITCSY.

READ TABLE IN_PAR WITH KEY 'REGUP-BUKRS'.

IF SY-SUBRC = 0.

L_BUKRS = IN_PAR-VALUE.

ENDIF.

READ TABLE IN_PAR WITH KEY 'REGUP-BELNR'.

IF SY-SUBRC = 0.

L_BELNR = IN_PAR-VALUE.

ENDIF.

READ TABLE IN_PAR WITH KEY 'REGUP-GJAHR'.

IF SY-SUBRC = 0.

L_GJAHR = IN_PAR-VALUE.

ENDIF.

SELECT SINGLE AWKEY FROM BKPF INTO L_AWKEY WHERE BUKRS = L_BUKRS BELNR = L_BELNR GJAHR = L_GJAHR.

READ TABLE OUT_PAR WITH KEY 'MY_BKPF_AWKEY'.

IF SY-SUBRC = 0.

MY_BKPF_AWKEY = L_AWKEY.

ENDIF.

MODIFY OUT_PAR INDEX SY-TABIX.

ENDFORM.

for further help u can double clcik on any field or table name .....

and on commands place the cursor and press F1 for help.

Former Member
0 Kudos

Hi,

ITCSY is a structure which is having the fields NAME and VALUE, we use this in the SAPSCRIPT external performs, to pass the values from Scrip to Program and Program to Script.

Regards

Sudheer

Former Member
0 Kudos

Hi..

ITCSY is the Structure. Which is used For subroutine.

In ITCSY structure there are two fields .

1,Name

2,Value

In NAME field we send the Variable name

IN VALUE field we may receive the Value of the Variable name..

Eg:-

In Layout:-


PERFORM GET_DATA IN PROGRAM

ZFR006_CHEQUE

**Program Name
USING ®UH-UBKNT&
USING ®UH-ZBUKR&
CHANGING &W_TEXT1&
CHANGING &W_TEXT2&
CHANGING &W_TEXT3&
CHANGING &W_TEXT5&
CHANGING &W_TEXT6&
ENDPERFORM.

In Program:-

ZFR006_CHEQUE




form get_data tables input_table structure itcsy
output_table structure itcsy .

read table input_table with key name = 'REGUH-UBKNT'.
move input_table-value to w_gl.

read table input_table with key name = 'REGUH-ZBUKR'.
move input_table-value to w_ccode.



In this code the fields REGUH-UBKNT
REGUH-ZBUKR
are passed to the subroutine.

and in the form we create two structures

input_table and output_table

..

By using read statement We r getting the Name and the value from the input_table..

As shown in the above example...

Hope it will helps .

Reward points if it helps .

Regards

Bala..