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

Smartforms

Dear all,

I have supplier data in Header and corresponding line item data in another internal table.

I am passing both to my smart form. I am using loop in Main Window with both the internal tables linked with GUID field.

I am having 1 problem with smart form output.

1. One more extra page is displaying at the end (With header and footer but without data).

Can any one help ...

Regards,

Srini

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 01:37 AM

    Hi,

    Here i am giving a sample code in ABAP just reflecting the flow of smarform. I think you might have do it as follows.

    Ex:

    Loop at Header.

    LOOP AT item where id = header-id.

    ......

    Endloop.

    Trigger New page. (You are triggering new page for next header.)

    Endloop.

    In the above case, after the last header record is processed, still you are triggering the NEW PAGE (even though no more records exist in the header.). so while triggering the new page, check whether still records exist or not. if exist, then only trigger the New Page.

    You can do it as :

    Describe table Header lines l_f_lines.

    Loop at Header.

    LOOP AT item where id = header-id.

    ......

    Endloop.

    count = count + 1.

    If count < l_f_lines.

    Trigger New page.

    Endif.

    Endloop.

    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.