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

Close Window 'OnInputProcessing'

Hello,

i have a page (page1) with a link to a new page(page2) that opens in a new window. at this new page2 i can do some inputs. after clicking the 'SAVE-Button' (at page2) the event 'OnInputProcessing:SAVE' will be called. this event checks the changes and modify some tables. after the modify (stil in the event) i would close page2 .... but i don't know how ... 😔

thanks for your replies, sorry for my english .... 😊

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 Jul 09, 2009 at 10:54 AM

    Hi Stephen,

    Go to 'Page Attributes' tab of your bsp page. Declare a variable 'l_close' type c.In OnInputProcessing event, set the value of the variable l_close to 'X', after making the changes into the database table. Then in the Layout tab of your bsp page, add the following java script function.

    open script tag

    function close_page()

    Open ABAP Tag: if l_close EQ 'X'. 'Close apap tage here

    window.close();

    Open ABAP Tag: ENDIF. 'Close apap tage here

    close script tag.

    Again in the layout of your page, call the java script function in 'onClientClick' of the 'Save' button as shown in the below example.

    <htmlb:button id = "save"

    text = "SAVE"

    onClientClick = "close_page()" />

    • If the above things are done properly, your requirement will be solved.

    Thanks & Regards,

    John

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 02, 2009 at 01:27 AM

    In OnInputProcessing of Page 2, after the table modify, set some flag say F_CLOSE = 'X'.

    Declare the Page attribute F_CLOSE TYPE CHAR1.

    In Layout: If F_CLOSE = 'X' the execute code self.close.

    Hope this solves the issue.

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 09, 2009 at 10:47 AM

    test reply

    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.