on 10-13-2008 8:57 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.???
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.