Skip to Content
0
Former Member
Nov 16, 2005 at 07:10 AM

Query regerding Sapscript : Calling abap subroutines

15 Views

Hello everybody

Hope everyone is doing fine.

I've a small query. Whenever we require to call an abap subroutine from an abap sapscript we do the same using PERFORM statement. The syntax for the same is as below:

PERFORM SUBROUTINE_NAME IN PROGRAM PROGRAM_NAME

USING &VARAIABLE&

CHANGING &VARAIABLE&

ENDPERFORM

Here we are passing the varaiables to the subroutine and getting back values in varaibles. In the actual program we then read values from in_tab and out_tab having structures similar to itcsy.

The above mentioned is as per my understanding. My query is as follows:

If in the above statement instead of passing varaibles abnd getting back variables can be pass/get back an internal table?

I had read somewhere that it is possible using structures. If anyone is aware of how to do the same can you please give me the syntax. Actually how to get value from subroutine into an internal table. What will be the structure? Will it be same as itcsy?

Thanks a lot to everybody in advance.

Thanks & Regards

Kabir Radhakrishnani