on 06-04-2007 4:35 PM
how to declare and use internal table in a smartform without using print program
Hi Vinil,
1>Go to the Global definitions.
2> In "Types" tab declare the TYPES Declarations.( internal tables using types statement.)
3>In Global data tab, declare the internal tables and work area.
4>Pass the data into the required Texts.
This should solve your query.
Reward Points if useful.
Thanks,
Tej..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinil,
u can define an internal table within smartform itself...use following steps:
1) goto global definitions node
2) click on types tab. define internal in the same way which we define in abap editor...consider following code:
TYPES : BEGIN OF ty_tab,
matnr type mara-matnr,
ernam type mara-ernam,
maktx type makt-maktx,
end of ty_tab.
TYPES : tt_tab type standard table of ty_tab.
define the above in types node.
now click on global data tab.
in that define following
gt_tab type tt_tab "internal table
gs_tab type tt_tab " workarea
this way u will be defining a global internal table within samrtform....
u can also define the local internal table in program lines within SF...
hope this will help u out...
please reward points in case useful
regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the Types tab of the Samrtform declre the internal table in the following way
types: begin of types_sales,
vbeln type vbeln,
vkorg type vkorg,
posnr type posnr,
matnr type matnr,
end of types_sales,
types_tab_sales type standard table of types_Sales.
in the Global Definition section declare
t_sales type types_tab_sales.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi vinil,
select Global Definations,
go to Global Data tab,
there u can define as below,
Variable Name Type assignmentAssociated Type Default Value
L_WA_ITAB TYPE ZINV_STR_ITEM
VRKME TYPE VRKME
WAERK TYPE WAERK
TOT TYPE WAERK
L_WA_TOT TYPE FKIMG
L_WA_TOT1 TYPE ZINV_STR-TOT
L_WA_TOT2 TYPE KBETR
TOT3 TYPE IN_WORDS
WORD TYPE IN_WORDS
L_WA_NAME TYPE ZINV_STR
VBELN TYPE VBELN_VF
L_WA_TOT3 TYPE MWSBP
regards,
seshu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Vinil,
You can declare them in Global definitions under types tab section.
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to global definitions. In types tab declare the internal tables using types statement.In Global data tab, you have to declare the internal tables and work area.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.