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.
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.
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].