Skip to Content

Internal table in Smartforms

Hi!

I know there are lots of similar topics on these forums, however non of them can help me.Here is what I have

In Global Definitions->Types

types:begin of t_absence,

begda type begda,

endda type endda,

awart type awart,

lgart type lgart,

abznr type abznr,

stdaz type stdaz,

KLBEW type PC20I-KLBEW,

betrg type betrg,

END OF t_absence.

In GlobalDefinitions->Global Data

it_absence type table of t_absence with key begda endda with header line.

Later in Smarform 'Code' I put some rows in it_absence and then try to read some.

The error I get is '"IT_ABSENCE" is neither specified under "TABLES" nor is it defined as an internal table"

I fill it_absence in smartform and want to read it form here.

If I wanted to provide it as arg for TABLES I would have create a driver progra, wouldn't I? Unfortunately as I call FM Name for this smartform I have to provide some arguments which I dont know where to take from (originaly it was developed by someone else).

How can I manage with this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 11:45 AM

    Hi,

    Have you passed it as either input parameter or output parameter in the program lines area.

    Please check it

    regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 11:47 AM

    when u r using internal table in code...at that time u have to include that internal table in INPUT and OUTPUT parameters of the code....

    ok

    Reward points if helpful...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 11:50 AM

    Hi,

    You might have not declared that internal table " "IT_ABSENCE" in the output parameters of the Code block.. Try putting that. It will work....

    Please reward points if it helps.

    Cheers

    Phani

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 11:59 AM

    hi,

    all parameters that are passed by fm to smart forms should be declared in smart forms.

    declare the internal table in tables section of smart form under global declarations and save it. otherwise u ll get error.

    reward all useful points.

    with regards,

    Suresh Aluri.

    Add a comment
    10|10000 characters needed characters exceeded

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.