cancel
Showing results for 
Search instead for 
Did you mean: 

internal table in sapscript

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

Please find the solution here

Regards

Kathirvel

venkata_ramisetti
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

I believe you cannot pass internal tables in the sapscript subroutines..

Thanks,

Naren

Former Member
0 Kudos

I know how ITCSY structure works. But it helps only USING and CHANGING additions. how would TABLE be handled?

Former Member
0 Kudos

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