cancel
Showing results for 
Search instead for 
Did you mean: 

Associated type of form interface

former_member636068
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member217544
Active Contributor
0 Kudos

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.

former_member636068
Participant
0 Kudos

thnk u swarna sir,

but can i use existing ddict?

like i_vtab type mara.?

if i want to take only 4 fileds from mara then how should i do that?

Former Member
0 Kudos

Hi

In this case just create a "Z 'STRUCTURE with your required fields and use that in the form interface .

USER_SETTINGS TYPE TDBOOL

WA_FINAL TYPE ZFINAL -


> Zfinal will be structure with fields from MARA....

and when u call ur Smartform pass the values from Driver prog to SSF.

surya

former_member217544
Active Contributor
0 Kudos

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 )

former_member636068
Participant
0 Kudos

Thnks swarna,

but if i create a structure with four fileds then how would i create entries in those fields?

former_member217544
Active Contributor
0 Kudos

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

former_member636068
Participant
0 Kudos

thnks swarna...

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member636068
Participant
0 Kudos

thnks sir,

but when m defining in global tab ty_vbak den also it is showing error 'ty_vtab' does not exist.

e.g. in tables tab of global definitions..

types:

begin of type ty_vbak,

matnr type matnr,

matkl type matkl,

end of ty_vbak.