Skip to Content
0
Former Member
Sep 13, 2007 at 09:03 PM

How to pass internal table to a form(sap script)

623 Views

Hi,

I want to know how can I pass internal table to a sapscript. I have added my piece of code in the driver program and I want this to be displayed in the output.

code in the driver program:

FORM get_data

my select statements and internal table declarations(it_output)

CALL FUNCTION 'OPEN_FORM'

EXPORTING

form = 'ZFORM'.

loop at it_output.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ITEM'

WINDOW = 'MAIN'.

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

ENDFORM. "get_data

I want to know how can I access the surbroutine GET_DATA from my Sap Script(ZFORM). any examples will be greatly appreciated

Thanks for your help!

siddu