cancel
Showing results for 
Search instead for 
Did you mean: 

help in smartforms

Former Member
0 Kudos

hi folks,

had a small question. I have to read the data into the body of the smartform from different tables. i.e (two fields from one table, two from the other and so on). I have declared the internal table with the respective field names(different tables) that forms the structure as below.

types: begin of structbdata,

bdate type jhtfp-fbuda,

predition type jhtfp-vavtyp,

adnumber type jhtfp-aubel,

adsize type jhamot-breite_ieh,

bunits type jhamot-hoehe_i_eh,

end of structbdata.

then

data: bdata type structbdata occurs 0 with header line,

end of bdata.

It is throwing error - saying that the data declarations of different categories cannot be mixed.

Also, I need to use this as aninterface paramter before reading the data into the body of the smartform.

Accepted Solutions (1)

Accepted Solutions (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Welcome to SDN.

You can do it in TYPES tab in GLOBAL DEFINITIONS.

Here is the sample.

types: begin of ty,

matnr type mara-matnr,

maktx type makt-maktx,

end of ty.

In GLOBAL DATA tab in GLOBAL DEFINITIONS,

declare internal table[itab] and work area[wa] as below.

variable name type assignment Ref. type

ITAB TYPE STANDARD TABLE OF TY

WA TYPE TY

THen in Program lines pass approriate input & output parameter.

Reward points if the answer is useful by clicking any of the three stars[yellow if useful,green if very useful & blue if problem solved].

Regards,

J.Jayanthi

Former Member
0 Kudos

okay. I have the query that includes join statements in the abap program i need to read the data into the internal table in the abap program and then into the body of the form using global definitions. So I have declared types for the structure but I am getting the errors there in the abap program.

Answers (0)