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

Delete contents of the window dynamically in sap-scripts

Hi Friends,

I have issue regarding deletion of secondary window in sap-scripts.. I have to delete the header window after satisfying a particular condition.

I have to display the long text from the main window in the last page after printing all the data.

The condition is " if the data printing from the main window ends in the same page.... then the next-page which will be the last-page should not display the header window."

if possible, is there any system variable or the sapscript symbol which gives information ...that next-page has been triggerd or not.. just like sy-tabix or end-0f-page event like...that may be helpful...

Thanks...

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2009 at 11:34 AM

    HI,

    You can use the condition

    if &next-page& ne 0

    print the header window what you need

    endif.

    you can find the next-page is last or not using the same sap-script symbol &next-page&

    if next-page is zero then it is the last page

    Regards

    Sarves

    Edited by: Sarves Sombhatla on Sep 17, 2009 5:05 PM

    Add a comment
    10|10000 characters needed characters exceeded

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

    HI,

    you can use &page& for current page, &nextpage& for the next page & &formpages& for total number of pages.

    Rgds,

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2009 at 12:28 PM

    Hi !

    You can do as below...

    If you want a particular text element under which u have written some command to be printed on the page conditions

    your condition checking can go as &PAGE& which contains the current page number you can check it in the script and write your particular code.

    &nextpage& always gives the next page.

    /: if &page(C)& NE &SAPSCRIPT-FORMPAGES(C)&

    • write the data you want to get.(this gets printed in all pages leaving the last page)

    /: endif.

    &SAPSCRIPT-FORMPAGES(C)& is for the last page.

    accordingly you can use these fields as desired.

    Regards.

    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.