on 05-31-2005 2:56 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.