on 10-10-2008 10:12 AM
hi all,
i am fetching data from the vbrk and when i loop it it gives an error saying that :
@8O@ %LOOP1 "IM_FS_VBRK" cannot be converted to the line type of "IM_T_VBRK".
can u pls tell me as to how to deal with this error and my loop is like this
and my form interface is like this : IM_T_VBRK type Y_TY_VBRK.
and my global interfac is like this: IM_FS_VBRK like vbrk.
and my loop is : IM_T_VBRK into IM_FS_VBRK.
so please help me out.
regards,
jacob.
Hi kata,
Create the line type for Y_TY_VBRK .
In se11-->data type : Y_TY_VBRK.
table type-->in line type give VBRK.
In the smartform..Form interface..
t_vbrk type y_ty_vbrk.
In the driver program...
DATA :
fs_vbrk LIKE LINE OF t_vbrk, " Holds BillingDoc Header Details
fs_vbrp LIKE LINE OF t_vbrp. " Holds BillingDoc Item Details
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 ,
from ur explanation , i think that Y_TY_VBRK is table type ...
u cant simply change that to VBRK ... it should be same in the calling program also ... if u are changing in the calling program also than use TAB_VBRK which is table type of VBRK ...
or else goto se11 .... open Y_TY_VBRK
and give copy the line type of that (say y_vbrk)
now declare IM_FS_VBRK as that type ( IM_FS_VBRK type y_vbrk) ....
hope it helps ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
declare
form interface : IM_T_VBRK like vbrk.
and global interface : IM_FS_VBRK like vbrk.
when u loop your internal table into ur work area both should have same structure . thats why its showing error for u.
regards,
sreelakshmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.