Skip to Content

How to print items in the MAIN window of the NEXT page (smartform)?

Dear forumers,

There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.

I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.

How may I achieve this? Please help.

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2009 at 07:38 AM

    Hi,

    First, we put the Next page for FIRST as 'NEXT' and Next page for NEXT as 'NEXT' in General attributes tab of both the pages.

    create a COMMAND in starting of FIRST page & check the check box 'Go to New Page' and select the Next page, then in CONDITIONS tab of COMMAND give the condition as V_MAT_PRINT EQ 'X'.

    Hope it works!!

    Rgds,

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ansari,

      I think you're right.

      I've done the following and it now works.

      MAIN window:-

      - TABLE1

      - TABLE2

      - ALTERNATIVE (V_MAT_PRINT = 'X')

      - TRUE

      - Command (Go to New Page <NEXT>)

      - Table3

      - FALSE

      - Table3

      - TABLE4

      - TABLE5

      A huge, huge THANKS to all here who have helped. Really appreciate your ideas and sincere support here.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2009 at 08:18 AM

    Hi,

    You need to create the main window in the first page.. then copy the main window to the second page.

    Now you need to use the command option. in the command option u need to set the conditon for the field. if the conditin is set then call the next page.

    Regards

    Ansari

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ansari,

      You need to create the main window in the first page.. then copy the main window to the second page.

      -- This was already done earlier.

      Now you need to use the command option. in the command option u need to set the conditon for the field. if the conditin is set then call the next page.

      -- I did this as well, but it did not seem to change anything.

      Items contained in the MAIN window:-

      - TABLE1 (printing logic should remain unchanged)

      - TABLE2 (printing logic should remain unchanged)

      - TABLE3 (to change printing logic)

      - COMMAND

      - TABLE4 (printing logic should remain unchanged)

      - TABLE5 (printing logic should remain unchanged)

      COMMAND

      General Attributes Tab:

      (Y) Go to New Page <NEXT>

      Conditions Tab:

      Conditions:

      V_MAT_PRINT = 'X'

      And Additional Event:

      ( ) Only on First Page

      ( ) Not on First Page

      ( ) Only After End of Main Window

      ( ) Only Before End of Main Window

      ( ) Only on Page <FIRST or NEXT>

      Any other ideas on where I could have gone wrong?

      How can I control the printing just for TABLE3 contents only?

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2009 at 08:40 AM

    Hi,

    Try to put a condition in Conditions tab of Table3 :

    V_MAT_PRINT = 'X'

    SFSY-PAGE > '1'

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2009 at 08:59 AM

    Hi Deborah,

    I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.

    Thanks,

    Ahsan

    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.