Web Interface - "Execute function before displaying the layout" issue

Hi Experts,
In my project we have converted some BPS planning folder to Web interface. The steps are as below:
1) Open the BPS planning folder using upspm. Copy the web interface as Web Enabled folder.
2) Generate the web interface by clicking on go to --> Generate web interface
3) Run transaction bps_wb. Open the web interface. Then generate web interface again
4) Run the web interface by clicking on 'Display perview'
5) In the web interface there are some some functions which get executed before displaying the layout.
6) For such functions, push button gets created.
7) I have set the visible property of such push button as false.
8) Most of the time, when I am running the web interface, it
is getting executed successfully.
9) Some times, the web interface is not displaying the layouts successfully.In such cases I have observed that "Execute function before displaying the layout" is not working. Due to this some values like Fiscal Year is not getting set. So, the layout is not getting displayed.
10) I understand that it may be due to compilation error.
For example, I might have made some changes in the web interface. It must be saved and web interface must be regenerated before I diplay the interface again. Can you please help me in understanding the reason of this problem.
11) Can you please help me understand the cause of point no 9. Is it a non-issue? What may be the reason that "Execute function before displaying the layout" does not work every time.
Thanks

Will a function that runs, before the data gets saved, work for you? You can configure such a function to run before the save command behind the save button you create in the planning application.

Similar Messages

  • Execute function before layout display

    Hi.
    I created planning folder where I assigned function to layout and set its Function attributes equal to
    Execute function before layout display.
    When I execute my planning folder from SAP GUI everything works fine.
    But when I generate Web interface on base of planning folder and execute that one, function is not performed and
    corresponding to function button appears.
    What should I do in order that function is automatically executed from web?

    Hi Marc,
    The planning function is supposed to do that i.e. based on certain other variables change the data in the layout. After the data is locked obviously there should not be any changes.
    What I was trying to achieve is somehow to be able to access the Planning Folder even though the pre-function is run. Else we would have to go with the way you suggested i.e. create either a separate folder or create a separate layout with no Planning Functions attached. The issue becomes the user has to first get the error message.. realise that the data is locked and then go to another layout / folder.

  • MWA: Issue while capturing the values entered, before displaying the LOV

    I have created a LOV in Mobile Web Application using PL/SQL procedure.
    I'm not able to get the values entered by the user before displaying the List of values.
    I need the values entered to pass it to the query.
    There might be a seeded event or method to capture these values.
    Any help would be appreciated.
    Thanks,

    Before invoking Input task, I have created a transformation to initailize the payload elements, so that in the UI these field elements will be become editable.
    I have an ADF table which is used to insert account details elements which is initialized in the transformation with namespace.You can simple use a ADF form to do this. Create ADF editable input fields in a panelFormLayout and wehn user enters values and clicks ona button .. pass those values to BPM payload.
    See - http://andrejusb.blogspot.com/2010/10/initializing-oracle-bpm-11g-process.html

  • About BPS Automatically executed function before the WEB display.

    First i has already create the layout and parameter group and assigned the parameter group in "automatically plng funct." of layout.
    i want to execute the parameter group before the layout display in web set.
    but it never do it. help me please!

    The configuration you have maintained has no influence in Web. Take a look at how to document "How to Run Planning Sequences on Save and Other Events -WEB.pdf". There you can find detail step by step guide. Good luck!

  • Function to get the layout and variant info of a report

    Hi ,
    I have report zmm4. I have created a variant 'var1' .
    The output format of the report is defined in the layout
    'lay1'. Which is the function which gives the complete info about the displaying coulmns of those layout ?  because I need replicate these functionality in EP .
    Please don't say USE "SAP transaction Iviews'.
    any hint is appreciated
    thanks
    pkiran

    Hi Prashant,
    Does your report should look like portal format? or is it ok if you show SAP report in portal then easiest would be having a layout variant in the report selection.
    Assuming you are using ALV display. Specify the layout variant 'lay1' and save the variant 'var1'.
    Create Iview using SAP Transaction Iview and pass the  Tcode  - 'Start_Report'
    Application Parameters - D_SREPOVARI-REPORT=ZMM4 & D_SREPOVARI-VARIANT = VAR1.
    Choose option process first screen.
    Other suggestion would be to create a function module which is RFC enabled and pass the report values in the specified format to the FM output table and use SAP RFC IVIEW and report would look in portal format.
    You can also use com.sap.pct.srv.portaldataviewer par file and choose PortalALVTemplate. PortalALVTemplate is FM in R3 and gives u an idea how you can present the ALV report in Portal.
    Hope this helps,
    Thanks,
    Praveen
    PS.Dont forget to reward points for useful/solved answers

  • [Forum FAQ] How do I display disclaimer message popup window before display the SSRS report?

    Question:
    The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
    disagree with it, you can click the “Disagree” button to back to the home or other path you want.
    Answer:
    To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
    Find the path of the report.aspx file and add these code in to it.
    <script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
     $(function() {
            var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
    //get the path of the folder which the report exists
            var reportFolder = result.split('%2f')[1];
    //get the report name which you want to add this pop up window.
    var reportName = result.split('%2f')[result.split('%2f').length - 1]; 
     //hide the report before you click the agree button
           document.getElementById("ui_form").style.display = "none";
                //alert(result);
                //alert(reportFolder); //test the report folder name to see if it is correct
           if (reportName == "your report name" && reportFolder=="your folder name") {           
     $("#dialog").dialog({
                    title: "jQuery Dialog Popup",
                    height: "250",
                    modal: true,
                    buttons: {
                        "Agree": {
                            text: "Agree",
                            id: "my-button-id1",
                            click: function() {
                                $(this).dialog('close');
    //display the report after you click the agree button.
    document.getElementById("ui_form").style.display = "block";                         }
                        "Disagree": {
                            text: "Disagree",
                            id: "my-button-id2",
                            click: function() {
                                location.href = '/Reports'
            else {
                document.getElementById("ui_form").style.display = "Block";
    </script>
    <div id="dialog" style="display: none; z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    When you click the report you will the popup window as below:
    when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Question:
    The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
    disagree with it, you can click the “Disagree” button to back to the home or other path you want.
    Answer:
    To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
    Find the path of the report.aspx file and add these code in to it.
    <script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
     $(function() {
            var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
    //get the path of the folder which the report exists
            var reportFolder = result.split('%2f')[1];
    //get the report name which you want to add this pop up window.
    var reportName = result.split('%2f')[result.split('%2f').length - 1]; 
     //hide the report before you click the agree button
           document.getElementById("ui_form").style.display = "none";
                //alert(result);
                //alert(reportFolder); //test the report folder name to see if it is correct
           if (reportName == "your report name" && reportFolder=="your folder name") {           
     $("#dialog").dialog({
                    title: "jQuery Dialog Popup",
                    height: "250",
                    modal: true,
                    buttons: {
                        "Agree": {
                            text: "Agree",
                            id: "my-button-id1",
                            click: function() {
                                $(this).dialog('close');
    //display the report after you click the agree button.
    document.getElementById("ui_form").style.display = "block";                         }
                        "Disagree": {
                            text: "Disagree",
                            id: "my-button-id2",
                            click: function() {
                                location.href = '/Reports'
            else {
                document.getElementById("ui_form").style.display = "Block";
    </script>
    <div id="dialog" style="display: none; z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    When you click the report you will the popup window as below:
    when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • WEB.SHOW_DOCUMENT sometimes doesn't display the generated PDF file

    Hi all,
    I'm using the following code to generated my report from Forms:<br><br>
    V_REPORT_ID := FIND_REPORT_OBJECT(V_REPORT_NAME);
    V_REPORT_SERVER_JOB:= RUN_REPORT_OBJECT(V_REPORT_ID,P_LIST);
        V_JOB_ID := substr(V_REPORT_SERVER_JOB,length(:GLOBAL.REPORTS_SERVER)+2,length(V_REPORT_SERVER_JOB));
        V_REPORT_STATUS := REPORT_OBJECT_STATUS(V_REPORT_SERVER_JOB);
    LOOP
       IF V_REPORT_STATUS = 'FINISHED' THEN          
          V_TMP_PDF := :GLOBAL.APACHE_HTML_FOLDER ||'rpt'|| V_JOB_ID  ||'.pdf' ;
         COPY_REPORT_OBJECT_OUTPUT(V_REPORT_SERVER_JOB, V_TMP_PDF );
        WEB.SHOW_DOCUMENT(:GLOBAL.AS_HOME_URL ||  'rpt'|| V_JOB_ID  ||'.pdf' ,'_BLANK');     
        END IF;
    END LOOP; <br><br>
    Everything works fine except the WEB.SHOW_DOCUMENT part. In some clients, this command does what it required from it and opens a new browser window with the PDF report displayed on it. In some other clients, this command does nothing: now window dispalyed. When I refer to the Application Server, I see the PDF report successfully generated there. When I put the URL of the generated report manually in the browser address, I can see the report.
    <br><br>
    <b>Why the WEB.SHOW_DOCUMENT doesn't display the generated PDF report in some clients?</b>

    I agree with the previous 2 posters.
    Also firefox and ie handle it differently. Make sure you test on what your clients use.
    Sometimes acrotray.exe is completely retarded and doesn't work.

  • Is it possible to prevent the See Also function from displaying the topic window when only one "see also" topic exists?

    When you have several topics assigned to a see also button,
    the see also button displays several topics within the pop-up
    window in the compiled help. However, if you have only one see also
    topic assigned to the button, the button automatically displays the
    topic window for that topic. The first time I saw this, I thought
    it was a bug. When I've asked other people to test my help
    projects, they also think this is a bug.
    Is it possible to "make" the see also function display the
    pop-up window, regardless of how many topics are assigned to the
    button?
    thanks in advance,
    ChristyG

    Are you sure that you can change the permissions of symlinks themselves? I think I've tried to make files read-only via symlinks on a local server but ended up using bindfs because it wasn't possible. Even if you can, symlinking everything that might be necessary for a given environment would not be ideal, plus I don't think symlinks can be used across different filesystems.
    If a real-life human can figure out if it's he/she is in a chroot and break out of it, then he/she can write a script to do the same. I want a sandbox that could run malicious code with no effect on the system (if that's possible). Also, I think if the chroot idea were truly feasible, makepkg would have been using it for years already to simply install packages in the chroot as you normally would and then package them. There would also be several sandbox applications that could run applications safely. So far I have yet to find any.
    I admit that I haven't looked into using a chroot in detail though and of course I may have missed some application which creates such a setup. Right now I think using per-application namespaces with fuse seems the most promising but I won't know until I've finished implementing a test application. If it turns out that it's a dead end I'll take harder look at chroot but it really doesn't seem to be able to do what I want.

  • Error displaying the layout tab

    Hi,
    As I tried to open the layout tab,while creating a new view , its generarting an error " Error in the HTML control preview is deactivated".
    How do I resolve it?

    http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
    make sure all the services are running
    Abhi

  • 'Internet Explorer cannot display the webpage' issue

    Hi,
    I'm having problem with the web interface. After a few minutes (sometimes seconds) I get 'page cannot be displayed' error. I usually have to wait some time before the logon screen shows again.
    This happens at different times during the day. I have tried using IE 6 and 7 and Mozilla 3. Also tried from different computers.
    MARS version 4.2.2
    Thanks

    Yup thats spot on, for generation 1 appliances (Protego ones) 4.3.5 is the latest version. For gen-2 its 5.3.5 I think. Let me know how the GUI thing turns out.
    Btw, if you have important data on your box you have to go through the upgrade process. You cannot directly install 4.3.5. You have to go through many updates in the middle to get this done. If the data/configs are not important and can easily be done again, you can just re-image your box from a boot-cd and that will take you directly to the latest version.
    Regards
    Farrukh

  • "Output could not be issued" when trying to display the layout of the order

    "Output could not be issued" error comes when trying the display layout of the order confirmation.
    Thanks

    Hi,
    This error is faced generlly when output type has not been assigned to the document type.In sales order Follow the path
    Goto-Extras-Output-Header-Edit.
    Here mention the output type and communication medium and save the document.
    Now try to issue the output.
    I assume that you have maintain the output determination procedure in SPRO.
    For automatic determination of output maintain the output condition record
    Reward points if useful
    Regards,
    Amrish Purohit

  • Making particular rows as non editable before displaying the TABLE

    Hi everyone,
                               I would like to know how to make a particular rows as non editable in UI element "TABLE" before it is displayed . The scenario is :
    On entering the Personnel number, I am getting family dependants in the table. Then, I am selecting any of the family members on some condition and saving each member with the request.
    Next time when i enter the same personnel number, I would like to show the table with already saved request for the family members rows as non editable & other members row as editable.????
    Please provide a feasible solution.

    Hi Pradeep,
    follow as per suggested. if not work use cell variants concept. it will work.
    Please check this wiki...
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants
    Cheers,
    Kris.

  • The web address bar no longer displays the url of the open tab, the refresh button doesn't work any longer, and the more time FF is open, the slower it eventually runs.

    Downloaded FF4 a while back. Not the beta version. All seemed to work well for a while. Then the aforementioned problems began. I did not add any plugins or make any changes at all. Web site addresses do not show in tabs, and the refresh button is non-functional. After FF4 has been open a while, it begins to run slower and slower as if there is a memory leak.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • KE5Z - Actual Line Item report freezes before displaying the result

    Hi,
    We have a situation. We have a Z report in Finance. We have linked KE5Z to this Z report using the Report Painter along with 15 others. When we run the Z report it works fine and displays result. In the displayed result, if we futher drill down for the actual line items for a particular profit center, system freezes. It does not display any result even after a long wait.
    We did our analysis and found that the program takes the profit center number range from the least available in the profit center group to highest available in the profit center group and starts checking for every line item in it. This happens when the profit center group has more than 50 profit centers in them. When we run KE5Z tcode individually, it runs fine.
    We are not sure how to go about finding a way out of it.
    Has anyone faced such issue? Do you know of any OSS note that can help us? or If anyone of you can think of a solution or a way to go about it?
    Your help on this is much appriciated.
    Regards,
    Mukund S

    Hi,
    Any pointers to this will be appriciated...
    Regards,
    Mukund S

  • User Exit for tcode PA20 check before displaying the employee details.

    Dear All,
    I want to restrict some of the user to see the details of some employee..  Can you please suggest how I can achieve this.. I would like the user from viewing the details of the employee even if employee comes in the  help. If user select these employee and select an  infotype to view the details a message should come You are not allowed to see this details'.
    It will be good if we can stop these employee from even coming in the F4 help.
    Regards,
    Vidya.

    Hi JB,
    Infact we are using the structural authorisation concept.  The requirements is to allow the user to see the employee belonging to one site only while the user should be able to view the complete org structure..
    We have achieved this by creating a profile which gives access to the complete org unit and restricting the employee for site specific value. This we have achieved by creating a profile in tcode OOSP and then assigning this to the user in OOSB.
    This works fine and user is able to see complete org unit and only the people belonging to his site but he is also able to see all the employee who has left the company irrespective of their site.
    We don't want the user to see leaver from other site so we were thinking of writting some some code which will stop them from coming in the help or if they appear in the help then stop user from viewing the details of other site leaver.
    Please suggest any other way if possible..
    Thanks,
    Vidya.

Maybe you are looking for

  • File share is not working in conference

    Hi, Please help me to resolve this issue.  In conference i am not getting any option to share file and to make call. I have deployed 2 Lync front end server . In both front end server conference services not showing in services.msc window.

  • Selection of usage type for EHP7 SPS02 ERP 6.0 Upgrade

    Hi Experts, We are planning to upgrade our SAP ECC 6.0 to EHP7 SP02 ERP 6.0, But during MOPZ configuration to generate the side effect report, its prompting to choose at least one technical usage type. I am not able to judge which is the right usage

  • Best price for g4ti4200128mb?

    HI, Im gonna buy an MSI Geforce 4 Ti4200 128Mb VTD...the best price I can find is £100 from dabs. Does anyone know anywhere with a lower price, advanced thankyou.

  • Just installed iWork 08 on my new Macbook Air (Mavericks) - writing 'invisibly' in Pages

    Hi All I've just installed iWork08 but when I try and type something in Pages, it's as though I've written it in invisible ink. I have to highlight the whole page to see what I've just written (it comes up as a mauve colour). Does anyone have any ide

  • Sync settings with Creative Cloud

    Sooo .... I drank the cool aid and subscribed to CC - If anything just to look at how it works and how it helps ME. I have been a PS user since 2006 and while I'm not a professional artist I am a very keen photographer. Additionally, I can still pull