HOW CAN I DIRECTLY WRITE ON NEXT PAGE OF SAPSCRIPT

HI,
HOW CAN I DIRECTLY WRITE ON NEXT PAGE OF SAPSCRIPT.
I want to  call certain fields on next page only is it possible?
How?
Regards
mave

Hi
You can use -
IF &PAGE& = 2. ENDIF.
But this will work only when you sapscript triggers two pages. Multiple pages can be triggered by main window if the window is filled up. Otherwise you can define two pages statically in your script .
Cheers.

Similar Messages

  • How can I pass paramters to next page with session protection on?

    Hi, guys:
    I encounter a problem of session protection problem. In a report page I set up a column of "map" link, so I can pass several parameters extracted from the same row to the new page where I can show map. I was using javascript popup2, and it worked well.
    javascript:popUp2('f?p=&APP_ID.:3006:&SESSION.::&DEBUG.::P3006_H_OFFENDER_NAME,P3006_H_OFFENDER_ID,P3006_H_ADDRESS_LATITUDE,P3006_H_ADDRESS_LONGITUDE,P3006_H_PHYSICAL_LATITUDE,P3006_H_PHYSICAL_LONGITUDE,P3006_H_ADDRESS,P3006_H_PHYSICAL_ADDRESS:#Offender Name#,#Offender ID#,#Address Latitude#,#Address Longitude#,#Physical Latitude#,#Physical Longitude#,#Address#,#Physical Address#','650','450');However, I am required to set all of pages, items with session protection now. after that I got problem as:
    Attempt to save item P3006_H_OFFENDER_NAME in session state during show processing, item has Internal Only protection.
    Contact your application administrator.
    So I changed it as redirect a page in application, and try to pass less parameters and query other parameters, but I got the similar problem:
    Attempt to save item P3006_H_OFFENDER_ID in session state during show processing, item has Internal Only protection.
    Contact your application administrator.
    I notice most of solutions would be turning the session protection as unrestricted for these items, but I am not allowed to do this. Is there any way that I can pass parameters from a row in a report while session protection is on?
    Thanks a lot!
    Sam

    I can quickly show you what I've done to solve for this:
    First, create a PL/SQL Anonymous block, application level process of type "On Demand"  Here is an example of what I'm using - I named the process is SIMPLE_SSP (name is important later)
    declare
    l_url varchar2(1000);
    s_url varchar2(2000);
    begin
    l_url := wwv_flow.g_x01; -- the apex name is g_x01 - note the key in the key value we pass later in javascript
    s_url := apex_util.prepare_url(p_url => l_url,p_checksum_type => 'SESSION'); -- and here's where we get checksum
    htp.p(s_url); -- and here's where we return it
    end;
    Next, I create a javascript function that can be called in the link
    function redir_ssp(p1,p2,p3) {
    var param1 = p1;
    var param2 = p2;
    var param3 = p3;
    // notice when creating our Ajax object we reference the Application process by name
    var ajaxReq = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=SIMPLE_SSP', 0);
    var sURL = 'f?p=&APP_ID.:4:&SESSION.::::P4_PARAM1,P4_PARAM2,P4_PARAM3:'+param1+','+param2+','+param3;
    // notice the 'x01' literal mirrors the built in apex var we used above. x01, x02, x03 ... etc match their counterparts.
    // you can use many parameters as long as you deal with them in the proc the same way
    ajaxReq.addParam('x01',sURL);
    var retURL = ajaxReq.get(); // and the htp.p is passed into the ajax get which is then returned in the retURL
    //alert(retURL); // for debug
    window.location.href = retURL; //this is the redirect.
    Finally in the link
    <a href="#" onclick="Javascript:redir_ssp(p1,p2,p3)">link text</a>
    This can be easily altered to use in a pop up.

  • If I expand a web page using Control +, how can I make sure the next page I go to on that site will also be in expanded mode, and the 1st page will still be in expanded mode when I come back to it? This is automatic in Chrome browser.

    Right now the pages always revert to small size. It's a hassle having to expand them every time to make them readable for my vision-impaired eyes.

    Try the [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint] add-on, it gives greater control over the zoom options.

  • How can i use my custom login page in a custom partner application ?

    Dear All,
    I'm trying to customize a login page displayed other than the default sso login page
    by submiting my form to the regular pl/sql procedure : "PORTAL.wwptl_login.login_url"
    but i tried to type the requested partner application url in the browser i got the sso
    login page other than my custom login page. So, How can i use my custom login page in a custom partner application ?
    Regards,
    Mohammed Amin
    [email protected]

    I cannot begin to express my level of frustration. I have been trying to use the composition widget light box display for some time now. I drag the widget to my document. The default widget has three small trigger boxes and a large area made up of a forward and backward button, a background, a text box and a frame for your image.
    My steps have been …
    I click on the little trigger box.
    I click on the frame that holds the main image.
    I go to the fill menu and browse my computer for my image and then click OK.
    IT shows up on my screen. Yay
    I attempt to continue using the next two trigger boxes provided in the widget.
    After that, I add more by clicking on the little plus sign.
    This is where all heck breaks loose.
    Every single time I attempt to add thumbnails, something messes up. When I go to preview, either not all of my main images show up, or it starts with the wrong one, or some are missing. I have looked and looked for help on this and the only thing I can find is how easy it is to create a great portfolio lightbox display.  But as we know, that only works when your thumbnails are the same image as the images in your lightbox. If you want something different, you have to use the composition wizard. I am finding it extremely difficult and confusing to customize.
    Is there an exact sequence you need to use to add images to the slideshow? I am my wits end.

  • How can i move to a new page in smartform?

    hi friends
    i hav a smartform with two pages.
    the fist page contains the Main window and 3 Secondary windows.
    in the 1st page i'm displaying some line items and in the main window i gave the command to
    go to Page 2.
    the 2nd page contains only one Secondary Window.
    in that i want to display a table with many line items.
    if it contains only 20 line items its works fine; becoz of the window size.
    how can i move to a new page if it contains more line items?

    Hi,
    You need to create main Window on second page also.
    And in Form Attributes..there is an option for Next page.
    So there you mention the next page name.
    This will solve the problem.
    Thanks.
    Swati.

  • Can't get to the next page in a pages document

    can't get to the next page in my pages document

    Is it a technical problem or writer's block?

  • How can I add a language on pages (Greek) to check the spelling when that language is not on the list?

    how can I add a language on pages (Greek) to check the spelling when that language is not on the list?
    I can see other languages available for spelling check, but not Greek and I dont see how to add it.
    I have added the Greek keyboard on the Mac, so I can write in Greek , but I dont know how to check the spelling in Greek on pages

    You can try to add a 3rd party spellchecker
    http://milaraki.com/blog/2010/11/greek-spelling-at-pages-how-to/

  • How to get data on the next page in case of templates if data is more ?

    please tell me how to get data on the next page while i m using template in my first page , if data is more howw it can be displayed on the next page ?

    HI Asim,
    template is fixed we  it can't be expand . u can better to use table line it can automaticlly expending if data is more ... u can create one more page like page 2 and create a window for entire second page ..then assign it in first page (next page page2).
    regards
    kiran kumar.

  • How can detect and remove scanned white pages in an OCRd pdf file?

    How can detect and remove scanned white pages in an OCRd pdf file?

    Acrobat does not support an automated way of doing this directly. You can
    remove completely blank pages (pages that don't have any "marking
    objects"), but a scanned page does contain an image, so Acrobat won't help
    you here. There are a number of 3rd party applications and plug-ins
    available. Try a Google search for
    remove blank pages from scanned
    pdf<http://www.google.com/search?client=safari&rls=en&q=removeblankpagesfromscanned+pdf&ie=UTF-8&oe=UTF-8>
    This will bring up a few different solutions.
    Another way is to use JavaScript to find text. You say that these documents
    are OCRed, so if you have a blank page, it should not have any text on it.
    With some JavaScript, you can identify pages that don't contain text. This
    may however fail if you have a page that contains just e.g. a photographic
    image. There won't be any text, but the page is certainly not blank.
    Karl Heinz Kremer
    [signature removed by host]

  • How can I divide a A4 size page into 4 equal parts ?

    How can I divide a A4 size page into 4 equal parts, so that I can write individually on each part. that is 4 separated column : 2 columns on upper half of the page and 2 columns on lower half of the page. I only know how to create 2 column on a page but do not know how to create "2 rows', thank you

    I would use text boxes but you could use Layout breaks and column breaks, but is more of a hassle. I am not a fan of a lot of text in tables.

  • How to move floats to the next page?

    Hi All,
    Can anyone help me on this?
    How to move floats to the next page the same position?
    Thanks in advance

    @Learner – you can duplicate the object to the next page and remove the original.
    If the original one is anchored you also have to account for its position, because duplicating an anchored object will move it.
    Here an example for duplicating a selected object to the same page.
    //DuplicateAnchoredObject_SELECTION_SNIPPET.jsx
    //Uwe Laubender
    * @@@BUILDINFO@@@ DuplicateAnchoredObject_SELECTION_SNIPPET.jsx !Version! Fri Apr 12 2013 07:53:31 GMT+0200
    var sel = app.selection[0];
    var x = sel.geometricBounds[1];
    var y = sel.geometricBounds[0];
    //The duplicate() method without an optional argument:
    var dup = sel.duplicate();
    //NOW: the duplicated objects is at the inner border of the page
    //To move it to its original position we need the following:
    var xd = dup.geometricBounds[1];
    var yd = dup.geometricBounds[0];
    dup.move(undefined,[x-xd,y-yd]);
    That snippet can be enhanced for duplicating to a certain page, because the duplicate() methods can take arguments like "Page", "Layer", "Spread" etc. For details see the DOM documentation at:
    http://www.jongware.com/idjshelp.html
    One caution here: to make that work the way you want with facing pages, you have to take into account, that your coordinate system must be changed to "per page" by the property "RulerOrigin" of the ViewPreferences.
    This said, here is a working example for duplicating a selected object to page 3 of the current document:
    //DuplicateAnchoredObject_TO-DIFFERENT-PAGE_SELECTION_SNIPPET.jsx
    //Uwe Laubender
    * @@@BUILDINFO@@@ DuplicateAnchoredObject_TO-DIFFERENT-PAGE_SELECTION_SNIPPET.jsx !Version! Tue May 14 2013 10:11:29 GMT+0200
    var d=app.documents[0];
    var oldRulerOrigin = d.viewPreferences.rulerOrigin;
    var sel = app.selection[0];
    var x = sel.geometricBounds[1];
    var y = sel.geometricBounds[0];
    //In case of facing pages we change the ruler origin:
    d.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    //Duplication of selected object:
    var dup = sel.duplicate(d.pages[2]);
    //NOW: the duplicated objects is at the inner border of the page
    //To move it to its original position we need the following:
    var xd = dup.geometricBounds[1];
    var yd = dup.geometricBounds[0];
    dup.move(undefined,[x-xd,y-yd]);
    //Restore the original ruler origin:
    d.viewPreferences.rulerOrigin = oldRulerOrigin;
    Of course, thiese snippets are working also with not anchored objects…
    Uwe

  • How can i see flash enable w pages on ipad 2

    How can i see flash enable w pages on ipad 2

    So i cannot see flash enabled web pages in my browser?
    Correct; not on the iPad.
     Cheers, Tom
    FYI- You posted your iPad question in the wrong forum. Next time post in the Using iPad forum at
    https://discussions.apple.com/community/ipad/using_ipad

  • How can i print all the tab pages not just the first page (tab)

    how can i print all the tab pages not just the first page (tab)

    You would need to do this programmatically. Here's one way:
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • How can I open the EP login page in the same pop-up window?

    is it possible for me to using / only one window(Browser) pop-up to EP Page(Login or iView...).
    In the firs general html page I create a EP login page link action[eg. "window.open('url', 'target_name')"],
    but always launching new pop-up window(Browser).
    How can I open the EP login page in the only one window(pop-up)?
    Could anybody help me by giving suggestion and codding?
    Thanks,
    jin.

    Hi,
    if you want to redirect the root of portal system (http://portal/) to the login page, edit the
    file and change the body tag as follow:
    \usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\_default\root\index.html
    <body onload="location.replace('irj/portal' + document.location.search)"></body>

Maybe you are looking for