Skip to Content
0
Former Member
Jan 29, 2008 at 11:36 PM

how to pass internal table to form routine..?

348 Views

Gurus,

I am creating a custom Function module in which i have declared few perform statements and passing internal table to it..but when i declare the form it gives me error that the internal table is unknown...Can u please suggest me what am i doing wrong...

DATA: Begin of tb_set_values occurs 0.

include structure rgsb4.

DATA: End of tb_set_values.

PERFORM read_sets_with_values USING wa_setheader CHANGING tb_set_values[].

FORM read_sets_with_values USING value(rwa_setheader) LIKE setheader

CHANGING rtb_set_values LIKE tb_set_values[].

DATA: v_setid TYPE setid.

*DATA: Begin of rtb_set_values occurs 0.

  • include structure rgsb4.

*DATA: End of rtb_set_values.

CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'

EXPORTING

SHORTNAME = rwa_setheader-setname

IMPORTING

NEW_SETID = v_setid.

CALL FUNCTION 'G_SET_GET_ALL_VALUES'

EXPORTING

SETNR = v_setid

TABLES

SET_VALUES = rtb_set_values.

ENDFORM.

What can be the error..please help