Skip to Content
author's profile photo Former Member
Former Member

help in smartforms

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 31, 2005 at 02:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.