on 05-06-2009 12:46 PM
I'm preparing a smartform &
In Form Interface,
I have declared these values:
IM_FS_KNA1 TYPE KNA1
IM_T_VBRK TYPE VBRK
IM_T_VBRP TYPE VBRP
In Global Definitions:
IM_T_KNA1 TYPE TABLE OF KNA1
IM_FS_VBRK TYPE VBRK
IM_FS_VBRP TYPE VBRP
W_TOTAL TYPE VBRP-NETWR
& there is a secondary window in which i have added a loop as:
Internal Table :IM_T_VBRK INTO IM_FS_VBRK
where condition:
KUNAG = IM_FS_KUNNR
I have added the following text under this window :
Invoice No.: &IM_FS_VBRK-VBELN&
Sales Organisation: &IM_FS_VBRK-VKORG&
Distribution Channel: &IM_FS_VBRK-VTWEG&
Division: &IM_FS_VBRK-SPART&
Date: &IM_FS_VBRK-FKDAT&
& when i check this code, i'm getting this error :
LOOP_BILL : "IM_T_VBRK" is neither specified under "TABLES" nor defined as an internal table.
Please reply what more i need to do to correct this?
Hi,
Declare IM_T_VBRK this table in tables tab of form interface.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please make sure you have declared the table in "Tables" tab of Form Interface and not in "Import" tab.
If yes, then try to use "like" instead of "type".
If that also doesn't work, then create a Z structure is SE11 of same type as you want and then declare your table as:
<tab_name> LIKE <z_struct_name> in "Tables" tab.
Hope it would solve your problem.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In Form Interface,
I have declared these values:
IM_FS_KNA1 TYPE KNA1
IM_T_VBRK TYPE VBRK
IM_T_VBRP TYPE VBRP
why u r declaring this in form interface? R u populating values in this from your driver program?
better u select data in smartform itself by writing code iunder initialization tab of global definition.
then just use that wa/table in loop.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neha
Create the line type in se11 for IM_T_VBRK as Y_TY_VBRK and than include in the import in the form interface
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,
u have to declare like below in Global Definitions in TYPES tab.
TYPES: g_t_vbrk TYPE STANDARD TABLE OF VBRK .
now in Global Data tab declare the table like below:
IM_FS_VBRK TYPE g_t_vbrk .
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IM_T_VBRK TYPE VBRK
IM_T_VBRP TYPE VBRP
These are declared using type. This means these are merely work areas.
You have to declare using type table of referring to teh table types.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you have to define IM_T_VBRK TYPE TABLE OF VBRK in Form interface also.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.