on 07-01-2010 1:08 PM
Hi All,
I am declaring Internal table in Global Definition' TYPE tab:
TYPES: BEGIN OF Ty_EKBE,
MANDT TYPE EKBE-MANDT,
EBELN TYPE EKBE-EBELN,
EBELP TYPE EKBE-EBELP,
BWART TYPE EKBE-BWART,
BUDAT TYPE EKBE-BUDAT,
MENGE TYPE EKBE-MENGE,
BPMNG TYPE EKBE-BPMNG,
DMBTR TYPE EKBE-DMBTR,
WRBTR TYPE EKBE-WRBTR,
MATNR TYPE EKBE-MATNR,
WERKS TYPE EKBE-WERKS,
KNUMV TYPE EKBE-KNUMV,
MWSKZ TYPE EKBE-MWSKZ,
END OF TY_EKBE.
types: c_ekbe type standard table of ty_ekbe," initial size 0,
w_ekbe type standard table of ty_ekbe.
and write select Query in one of the window' Program line
select * from ekbe into corresponding fields of t_ekbe
where ebeln = w_ekpo-ebeln
and ebelp = w_ekpo-ebelp.
and trying to activeta the form but it will give the error to me:
""T_EKBE" is neither specified under "TABLES" nor is it defined as an internal table."
Pleaze help me how can i declare internal table in Smartform? thet i can get data of table EKBE.
thanx,
Jahnavee
Hi..
Declare the TYPE in Global Definitions ->Types.
Declare the internal Table and Work Area in Global Definitions ->Global Data using the declared types.
Regards,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Instead of maintaining the types use one structure (Zstructure )of the same structure with the types
That is i shelapful when your going to pass the the same structure as form attributes (this will be helpful to avoid the same structure in the form itself )
Let me know if you have any concerns.....
Regards,
Lokesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is an input output values screen in your code section in smartforms.You need to put your variable name (table, structure, parameter ) to this intput output values table .
Regards.
Edited by: Gungor Ozcelebi on Jul 1, 2010 2:40 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Declare the internal tbale and the work area in the Global Data Tab of Global Definitions.
Regards,
Runal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.