Skip to Content
0
Former Member
Sep 15, 2013 at 02:42 PM

How to pass internal table to Smartform

27 Views

Hello Guys,

I am facing difficulty in passing a internal table ( IT_VBRP) to smartforms. I have found a lot of related posts but unfortunately the solutions are not matching exactly to my requirement.

I have done the below steps

1) Created a structure in se11 ( ZST_VBRP ).

2) Created a IT_VBRP (of type ZST_VBRP) and inserted some values by select query.

3) Passed IT_VBRP to smartform

-----------------

CALL FUNCTION fm_name
EXPORTING
PVBELN = P_VBELN
IT_VBRP_EX = IT_VBRP
-----------------------------------

4) In the Form interfaces section of the SMARTFORM defined the parameter ( screenshot#1 )
IT_VBRP_EX TYPE TABLE OF ZST_VBRP

5) In the global data section defined variable IT_VBRP TYPE TABLE OF ZST_VBRP ( screenshot#2 )

6) In the initialization section written ( screenshot#3 )

IT_VBRP = IT_VBRP_EX.

Now I was expecting the content of IT_VBRP as filled in the report in the smartform but instead I am getting the error "

@8O@ Type specification "TYPE TABLE OF" not allowed

on performing a check.

Can any one help me out with it.

Regards,

Sayantan

.


Attachments

screenshot 3.png (14.8 kB)
screenshot 2.png (32.7 kB)
screenshot 1.png (39.5 kB)