on 10-16-2008 7:01 AM
Hai Friend
I am new of the smartforms, i dont know the how to declare the workarea and internal table in smartforms, already i declared the structure in types, how to call this structure to smartform global defination area , for example
types: begin of t_mara,
matnr type matnr,
meins type meins,
ersda type ersda,
end of t_mara.
already i declared this structure in global defination-> global data-> wa_mara type t_mara, and again i called this wa_mara in global setting->intilization -> i_mara like standard table of wa_mara
in intilization it shows the error.
can u plese send the screen shots for declaration of workarea and internal table declarations.
thanks
Hi,
You can declare the internal table in driver program and delcare that internal table as structure in Form interface(SMARTFORMS)
or decalre internal table in Global->Initialization
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
i have one more doubts, now i want to print particular data in smartform, thats mean it shows the output what ever given input between ranges,(select-options) ty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In Global defintion --> global data -->
Just include these within the global data itself
fs_mara type t_mara,
t_tab type table of t_mara.
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 Vijendra,
You need to declatre the workarea and internal tables in global declaration, in the begining of the smart form. You can find this label on the left hand side column of the smart form.
There you need to write:
********type declaration
BEGIN OF ty_marc,
matnr TYPE matnr, " Material
werks TYPE werks_d, "Plan
END OF ty_marc.
---------------------------------------------------------------------*
Internal Table declarations *
---------------------------------------------------------------------*
DATA :
it_marc TYPE STANDARD TABLE OF ty_marc.
---------------------------------------------------------------------*
Work area definitions *
---------------------------------------------------------------------*
wa_marc type ty_marc.
regards,
Nikita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Please see below example
In Types tab
types: begin of ty_kna1,
kunnr type kunnr,
name1 type name1,
land1 type land1,
end of ty_kna1.
Types:ty_t_kna1 type standard table of ty_kna1.
In Global data tab
***Internal table declaration
data:i_kna1 type ty_t_kna1.
***Work area declaration
data:wa_kna1 type ty_kna1.
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 |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.