cancel
Showing results for 
Search instead for 
Did you mean: 

jack-smartforms

Former Member
0 Kudos

hi all,

i have a smartform, my problem is when i loop it gives me this error.

error: @8O@ %LOOP1 "ZIM_FS_VBRK" cannot be converted to the line type of "IM_T_VBRK".

i have declared the FORM INTERFACE and the GLOBAL INTERFACE as like this

form interface: IM_FS_KNA1 type KNA1

IM_T_VBRK type Y_TY_VBRK

IM_T_VBRP type Y_TY_VBRP

global interface : IM_T_KNA1 TYPE TABLE OF kna1

ZIM_FS_VBRK type vbrk

IM_FS_VBRP type vbrp

M_TOTAL type VBRP-NETWR

loop: IM_T_VBRK into IM_FS_VBRK where kunag = im_fs_kna1-kunnr.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

\parameters: p_vbeln like vbrk-vbeln.
data: im_fs_kna11 like kna1,
im_t_vbrp1 like VBRP.

CALL FUNCTION '/1BCDWB/SF00000079'
EXPORTING
im_fs_kna1 = im_fs_kna11
im_t_vbrp = im_t_vbrp1
vbeln = p_vbeln
.
IF sy-subrc 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO 
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
ENDIF.

While call function of the function module of the smartform check

EXPORTING

im_fs_kna1 = im_fs_kna11

im_t_vbrp = im_t_vbrp1

vbeln = p_vbeln ---> ????

Regards,

Sravanthi

0 Kudos

Hi ,

Try to execute the smartform through the print program bcoz when we execute directly there will not be any data in the internal table.

Check 2 more things.

1.Whether the data is passed through table in the print program.

2.Whether u r using the structure IM_FS_VBRK to print the value.

Regards

D.Vadivukkarasi

0 Kudos

Hi ,

You have declare the IM_T_VBRK as structure as IM_T_VBRK type Y_TY_VBRK.

Try to declare it as IM_T_VBRK type standard table of Y_TY_VBRK in the form interface under the tab table.

Regards

D.Vadivukkarasi

Former Member
0 Kudos

hi D.Vadivukkarasi,

i have done it and when i execute the function module from smartforms itself it is not displaying the data what would be the reason pls pls .... let me now as soon as possible. thanks in advance.

Former Member
0 Kudos

Hey!!

When u execute from smartform tcode, there wont be data..Obviously...because your data comes from the print program..

The tables u declare in Form Interface, you have to pass values to these in the Print Program....

Regards,

Vishwa.

Former Member
0 Kudos

hi vishwa,

thanks alot for the reply and when i call the function module from the se38 it gives me runtime error.

this is my code:

\parameters: p_vbeln like vbrk-vbeln.

data: im_fs_kna11 like kna1,

im_t_vbrp1 like VBRP.

CALL FUNCTION '/1BCDWB/SF00000079'

EXPORTING

im_fs_kna1 = im_fs_kna11

im_t_vbrp = im_t_vbrp1

vbeln = p_vbeln

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

what would be the reason.???

Former Member
0 Kudos

Jacob,

I think you need to work on the basics of Smartforms first.... Please search in SDn..you will get lot of materials??

Where is SSF_FUNCTION_MODULE_NAME???????????????????????????????

Please go through some material and then u will know exactly how to work on the print program of smartforms?

Regards,

Vishwa.

Former Member
0 Kudos

hai,

i dont know how u declared this structure Y_TY_VBRK , it should be like this Y_TY_VBRK type vbrk bec zim_.._vbrk is like vbrk..

both structure should be same..

shan.

Former Member
0 Kudos

Hi

The declarations of IM_T_VBRK and IM_FS_VBRK are different...

They should be same.. I mean type..... should be same for both to pass on the values....

Regards,

Vishwa.

Former Member
0 Kudos

hi vishwa,

thanks alot for the reply

i have declared both as same structures like

IM_T_VBRK like vbrk.

IM_FS_VBRK like vbrk.

even it gives me this error:%LOOP1 "IM_T_VBRK" is neither specified under "TABLES" nor defined as an internal table.

pls can u assist me in this regard. pls........

Former Member
0 Kudos

Hi

In form interface, you have a tab called Tables...declare the internal tables there.

Regards,

Vishwa.