on 11-18-2009 10:20 AM
Hi experts,
can naybody help with what is associated type of import tab of form interface in smartforms.
e.g. parameter name type assignment Associated type
T_VBAK TYPE TY_VBAK
In the above example what is TY_VBAK? I mean whether it is structure or ddic table to be created?
plz help.
thnks n regards
Ashmita
Hi Ashmita,
Yes. If TY_VBAK is used in form interface then it should be already defined dictionary element ( structure / table/ data element)
Regards,
Swarna Munukoti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Even if you want only four fields you can use complete table name mara and pass only the required fields when called from program or
2.You can declare a structure with these 4 fields and use the structure name.
3 or else you can define all these 4 fields as 4 different parameters in the form interface and use
Regards,
Swarna Munukoti. (Madam - But no need to addressas sir /madam )
Hi Ashmita,
Structure just defines teh associated type. Selection will be from the main table only (eg. mara)
For example:
The structure you have created is z_mara1 with four fields (: MATNR, ERSDA, ERNAM and LAEDA)
In form interface you defined a input parameter wa_mara type z_mara1
Now to pass the values to the form interface parameter wa_mara, define the foloowing code in dirver program
data: t_mara type standard table of z_mara1,
wa_mara type z_mara1.
select single MATNR
ERSDA
ERNAM
LAEDA
into wa_mara
from mara
where <where condition>
.
Regards,
Swarna Munukoti
hi
Create a structure ZMARA
as below fields.. using SE11 shoosing DATA TYPE option.
MANDT MANDT CLNT
ZMATNR MATNR CHAR
ZMAKTX MAKTX CHAR
ZMTART MTART CHAR
ZMATKL MATKL CHAR
& in the Smartform in the FORM INTERFACE -IMPORT PARAMETERS-
OUTPUT_OPTIONS TYPE SSFCOMPOP
USER_SETTINGS TYPE TDBOOL
ZMARA1 TYPE ZMARA
and in the Driver Program pass/MOVE the values to this structure ZMARA1 and use this information in the Smartform and perform u required operation usiing this ZMARA1...
surya
Hi
Check the TYPES tab in the GLOBAL Definations or the TABLES in FORM INTERFACE of the smartforms u will find what is TY_VBAK and whats it conatins.
T_VBAK TYPE TY_VBAK => T_VBAK is of type TY_VBAK which is Structure.
surya
Edited by: suryareddy on Nov 18, 2009 11:35 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.