Two SAPScript forms on a single page

Hello
Is there a way (in SAPScript) to have two forms (sapscript forms defined in SE71) printed in a single page ?
What I would like to achieve is to have several sapscript forms defined in the system and to be able to combine them in a single page dynamicallly - I mean: the printing program would decide which of them should be output.
I have one sapscript form which I want to output always - it contains some header and main window with some items. Apart from this form I need to print some additional information on the same page.
This additional information may be formated in a few different ways - depending on the case. I need to include this info at the top of the page - formatted in one of possible ways mentioned. The rest of the page is always the same (some header and main window with items).
I know I could just use windows definitions in a single sapsript form and let the printing program decide which of those windows to print. But my problem is: I would like to have different sizes of the information printed at the top of the pages - when I define a window I must declare height which will be occupied on the page - I'd like to have different height values for different cases.
Is there a way to achieve that ?
thanks in advance
regards

Hi,
It is not possible.
But instead of creating sapscript, why dont you create different standard text and call in same sap-script based on condition.
You can create standard text in tcode so10. Its similar to editor in sap-script.
Reward if useful

Similar Messages

  • Struts : Validating two forms in a single page , on a single submit

    In my JSP page, i have two forms, with modifiable feilds. I'm using submit button of the 2nd form to submit both forms (ie. <form action="someAction2.do" onsubmit="return firstForm.submit();"> )
    Two forms have different actions which is specified in structs-config.xml. Validation(server-side) is done using validation.xml file.On success/failure, both these actions are mapped to the same (input) JSP page.
    Problem is that, validation errors in second form only is displayed. This is because, as soon as 1st form returns validation errors, the second form gets submitted. How can i specify that 2nd form should be submitted only if the 1st form doesnot return any validation errors. I know its possible using javascript at client side, but i want this validation on server-side.
    Can any one please help me out. Thanks

    Off hand I dont know the answer to your question. But since no one answered your question, here are my 2 cents worth:
    I suggest all your JSP pages have one and only one form tag. Re write your JSP page. Make sure all your variables your submitting have unique names. (no duplicate names). As far as I know, having multiple forms on a JSP page is not normallly done and makes it difficult to alter by another programmer after you leave the company.

  • Muliple forms on a single page???

    Hello guys,
    I have 3 tables, all of these tables have one column(p_id) in common to maintain one-one relationship btw 1st n 2nd table and in the same way 1st and the 3rd table.
    Using the 1st table I am creating a form on the 1st page, and I have created trigger with sequence for auto increment of the primary key value.
    Now after clicking "Enroll " button(which does two things first is it increments the p_id(pk key) value and second is navigating to next page, and into the enter application I'm playing with this newly creating p_id value)
    So this is what I have achieved so far, now I am creating two forms on next coming 6th page(both the forms on same page) and both the forms are design using two different tables(i mean to say 2nd and 3rd table, which I describe above) and both these table have one-to-one relationship with the 1st tables(1st page form).
    Now I am aware about the limitation for of the automatic "row fetch" and "row processing" processes: they were designed to work with one table, hence as per the below link:-
    Report & form on Multiple table
    I created "view" and "instead of" trigger for add/update/delete, but some how I am unable to do so.
    So if somebody can help me out with the critical issue, I would be appreciated to him very much...
    If anybody want I can create example on apex.oracle.com workspace and can give credentials.
    regards,
    Kumar

    I'm afraid I have to agree with Dan, I have lost track of the goal here. If you will permit the use of an idiom, you seem to be swimming against the current. My experience with Apex indicates that this almost always means you are doing something wrong (again, spoken from hard experience).
    Please give this a try, invest an hour or so in experimentation and I don't think you will be sorry:
    1. Take a piece of paper and lay out your complete page flow from beginning to end. Try to keep each step small and simple. Take 5 minutes, tops.
    2. Use the Wizard page template to set up a basic set of pages, one for each page in your flow.
    3. On each page, set up the fields you need to capture; just start with a few and don't worry about the layout or look and feel.
    4. If you want to capture what a user has entered on a step, regardless of how far they made it through the process (say you want to find out where people are "giving up" on a work flow), create a pl/sql process on each page to log that page's data into a table and only execute the process when the Next button is pressed (you will have to deal with the case where someone is updating something that has already been saved one or more times).
    5. On the last page, create a pl/sql process to "finalize" the flow and associate that with the Finish button. You can also clear the cache for all of the pages in the flow if the user clicks the Cancel button or after your "finalize" procedure is complete.
    Unless you really need to capture where someone is dropping out of a flow, I don't see why you want to store each page's data in a table. You are just giving yourself something to (a) keep up with and (b) clean up later.
    -Tom
    PS - I worked through a quick example and saw that misspoke in my previous post: the values for fields entered on earlier pages in a wizard are cached, not stored as hidden fields on the current page.

  • How to print two delivery challans in one single page

    Hi Experts,
    Here we have a requirement that,
    The user wants the two Delivery challan outputs in one page.
    and also for some documents he requires header and for some documents he doesn't require,
    for this what condition should require.
    Any idea regarding this...
    Thanks in adv
    Thushara

    do 2 times
    perform write_form.
    end do.
    for header u can give condtion in form.
    use if condition in the editor...
    this will help u...
    Reward IF....... <= IF what? Points removed... read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]!
    Regards
    Anbu
    Edited by: Julius Bussche on Jul 17, 2008 7:01 PM

  • Two tabular form on the same page

    Hi,
    There is a tutorial or a standard way to build two tabular form on same page?
    thanks in advance
    lukx

    Hi,
    You can see this example also.
    http://htmldb.oracle.com/pls/otn/f?p=31517:163:1033737280330848:::RP,::
    Thanks
    Tauceef

  • My sapscript form prints a blank page...

    Hello experts,
    I am currently modifying a sapscript wherein it prints a page that doesnt contain any data in its main window. How do I prevent this? Again, thank you guys and have a nice day!

    Hi Viraylab,
    Assign a text element say it is 'TEST' to that window, and try to call the write_form with that text element.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TEST'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
      ELEMENT                        = 1
      FUNCTION                       = 2
      TYPE                           = 3
      UNOPENED                       = 4
      UNSTARTED                      = 5
      WINDOW                         = 6
      BAD_PAGEFORMAT_FOR_PRINT       = 7
      SPOOL_ERROR                    = 8
      CODEPAGE                       = 9
      OTHERS                         = 10
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Then whatever u write after this text element will get displayed on that particular window.

  • Two or more table based forms on a single page

    Hi,
    Is it possible to have two or more forms fetching their respective tables on the same page ? I mean , to have two Automated fetching processes . I tried to change each page item source from ('DB Column' ... column_name) into ('DB Column' ... "TABLE".column_name) but is not working.
    Any idea ?
    Thanks.

    Actually I am trying to give you a solution but not 100% sure what you exactly you want?
    According to your subject, i understood that you have a page based on two more tables so if it is then
    create a view on these tables and create a page on view and then create a trigger (Instead of triggers)
    for insert /update into the columns related tables.
    hope it work!
    Regards

  • Error on Two DML process in a single page by condition

    Hi all,
    I have a page where i have two forms region on table and two DML processes,
    i want to execute these two DML process one by one conditionally, such as initially when page load the second DML process will not execute after page submit, the first DML process will execute and successfully inserted table data then the second DML process will execute.
    I have tried to do it by conditionally executing the them one after one by button pressed but failed to do so, when i submit the page its executing two DML process though i have make the second one to execute conditionally.
    Any help is highly appreciate.
    adnan

    Hi,
    Can you please replicate the same in apex.oracle.com for more clarity?
    Regards,
    Sakthi.

  • How can I use two tabular forms on the same page.

    I have create one tabular form in page and try to create second tabular form so
    it gives below error.
    1 error has occurred Updatable SQL Query already exists on page XXXXX.
    You can only add one updatable SQL query per page. Select a different page.

    I can get this to work but the page is submitted, either when I use a button with URL link or from a link on a display only text field.
    Is this how it is supposed to work? I thought it was supposed to work just on the browser so it is fast.
    IGNORE THIS!
    =============================
    I resolved it easily by modifying the URL from f?p=blah blah to #LINK_NAME
    Message was edited by:
    user530800

  • Displaying all the records in a tabular form on a single page

    Hello,
    After setting up a data entry page, I have hit an unexpected problem.
    The logic in my page requires that all the records in my tabular form should be displayed .
    The tabular form is based on a collection, and the user selects rows through a checkbox.
    Any reload of the page due to pagination will break the logic, as some calculation and display events occur during page load,
    based on the previous page.
    I need to display about 25 rows.
    I have changed the report attribute to display 50 rows, but it displays rows only up to the bottom of the screen,
    i.e. 11 rows.
    Unfortunately I only just added some new rows and saw this behaviour else I would not have gone that way,
    as I expected APEX to display all rows if required.
    Some help will be much appreciated.
    Regards
    Leckraj

    leckj wrote:
    Hello,
    After setting up a data entry page, I have hit an unexpected problem.
    The logic in my page requires that all the records in my tabular form should be displayed .
    The tabular form is based on a collection, and the user selects rows through a checkbox.
    Any reload of the page due to pagination will break the logic, as some calculation and display events occur during page load,
    based on the previous page.
    I need to display about 25 rows.
    I have changed the report attribute to display 50 rows, but it displays rows only up to the bottom of the screen,
    i.e. 11 rows.
    Unfortunately I only just added some new rows and saw this behaviour else I would not have gone that way,
    as I expected APEX to display all rows if required.Pagination settings are cached for the duration of the session. For this change to be instantly visible, either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL.

  • Internet Explorer doesn't handle Flash Form on a single page

    On FireFox 2.0.0.12 (Linux), the attach code displays two
    accordions.
    On Internet Explorer 7 (Windows XP), only one accordion is
    displayed.
    First, How do I determine if this Internet Explorer or a
    Flash error?
    Second, Is there a fix?
    <!--- Code --->
    <!---
    Name: Sample.cfm
    --->
    <cffunction access="private" name="WriteBookFlashSample"
    returntype="void">
    <cfargument name="ProcessingName" required="true"
    type="String" >
    <cfargument name="Catalog" required="true" type="String"
    >
    <cfoutput>
    <!--- Traverse through all of the Books in each processing
    queue for the given processing type --->
    <div style="background-color:##BDDFff">#ProcessingName#
    - 1</div>
    <cfform format="flash" method="POST" skin="haloBlue" >
    <cfformgroup type="accordion">
    <cfformgroup type="page" label="#Catalog# - 'title'">
    <cfformitem type="html">
    Catalog Number: #Catalog#<br />
    Title: title<br />
    Queue: #ProcessingName#<br />
    </cfformitem>
    </cfformgroup>
    </cfformgroup>
    </cfform>
    </cfoutput>
    </cffunction>
    <html>
    <head>
    <title >Sample</title>
    </head>
    <cfoutput>
    <body >
    <cfform id="Main" name="Main" action="Sample.cfm"
    method="POST">
    <cfinvoke
    method="WriteBookFlashSample"
    ProcessingName="First"
    Catalog="555-55555-5555">
    <cfinvoke
    method="WriteBookFlashSample"
    ProcessingName="Second"
    Catalog="777-7777-7777">
    </cfform>
    </body>
    </cfoutput>
    </html>

    Hi,
    Which version of CF you are using there?.. If this is because
    of any recent migration (like from MX7 to 8) then try replacing the
    "Scripts" directory from CF8 with the one you have with MX7.
    HTH

  • Making form just a single page

    There is a huge gap in my form, how do i make my form just one page that flows?

    Are you making a PDF form or a web form?
    If you are making a PDF form go the the Design Tab and look under the View menu and choose "Page View". Make sure that there are no page break elements on the Page View where you are not expecting them.
    Page Breaks are specific to their view so Page Breaks on the Page View only affect the PDF form and don't apply to web form and vice versa.
    Gen

  • Two  ALV Grid Display  format on the Single page

    Hi guru's
    I have two plant details. I want to be  display these two plant details in the single page with ALV Grid display format.. like
    plant no 1(Details):
    xxxx  xxxx xxxx xxxx with ALV Grid Display format
    plant no 2 (Details):
    xxx  xxxx xxxx xxxx ALV Grid Display format
    Can any body help on the .. if you have sample code pls paste.
    Thanks in Advance
    Surendra

    hi,
    Grid display is not possible but u can display two list on same page by Block ALV....
    TYPE-POOLS : slis.
    TABLES : mara,
             makt.
    SELECT-OPTIONS : mat FOR mara-matnr.
    DATA : BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
            matkl LIKE mara-matkl,
            mtart LIKE mara-mtart,
           END OF itab.
    DATA : BEGIN OF itab1 OCCURS 0,
            mtart LIKE mara-mtart,
            count TYPE i,
           END OF itab1.
    DATA : BEGIN OF itab1_col OCCURS 0,
            mtart LIKE mara-mtart,
            count TYPE i,
           END OF itab1_col.
    DATA : t_fcat1 TYPE slis_t_fieldcat_alv,
           t_fcat2 TYPE slis_t_fieldcat_alv,
           wa_fcat TYPE slis_fieldcat_alv,
           t_eve TYPE slis_t_event,
           wa_eve TYPE slis_alv_event,
           t_layout TYPE slis_layout_alv.
    DATA : v_repid LIKE sy-repid,
           t_mat LIKE mara-matnr.
    DEFINE create_fcat.
      clear wa_fcat.
      wa_fcat-fieldname = &1.
      wa_fcat-seltext_l = &2.
      wa_fcat-outputlen = &3.
      append wa_fcat to t_fcat1.
    END-OF-DEFINITION.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM dis_data.
    *&      Form  get_data
          text
    FORM get_data.
      SELECT amatnr bmaktx amtart amatkl INTO CORRESPONDING FIELDS OF TABLE itab
      FROM mara AS a INNER JOIN makt AS b ON
      amatnr = bmatnr
      WHERE a~matnr IN mat.
      LOOP AT itab.
        itab1-mtart = itab-mtart.
        itab1-count = 1.
        APPEND itab1.
      ENDLOOP.
      SORT itab1 BY mtart.
      LOOP AT itab1.
        MOVE-CORRESPONDING itab1 TO itab1_col.
        COLLECT itab1_col.
      ENDLOOP.
    ENDFORM.                    "get_data
    *&      Form  dis_data
          text
    FORM dis_data.
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program      = v_repid.
      REFRESH t_fcat1.
      CLEAR t_fcat1.
      REFRESH t_eve.
      wa_eve-name = 'TOP_OF_PAGE'.
      wa_eve-form = 'TOP_OF_PAGE1'.
      APPEND wa_eve TO t_eve.
      create_fcat:
      'MATNR' 'Material' '10',
      'MAKTX' 'Material Description' '40',
      'MTART' 'Type' '10',
      'MATKL' 'Group' '10'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = t_layout
          it_fieldcat = t_fcat1
          i_tabname   = 'ITAB'
          it_events   = t_eve
        TABLES
          t_outtab    = itab.
      REFRESH t_fcat1.
      CLEAR t_fcat1.
      REFRESH t_eve.
      wa_eve-name = 'TOP_OF_PAGE'.
      wa_eve-form = 'TOP_OF_PAGE2'.
      APPEND wa_eve TO t_eve.
      create_fcat:
      'MTART' 'Type' '10',
      'COUNT' 'Total' '5'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = t_layout
          it_fieldcat = t_fcat1
          i_tabname   = 'ITAB1_COL'
          it_events   = t_eve
        TABLES
          t_outtab    = itab1_col.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    ENDFORM.                    "dis_data
    *&      Form  top_of_page1
          text
    FORM top_of_page1.
      FORMAT COLOR COL_POSITIVE.
      WRITE:/ 'First Block'.
      FORMAT COLOR OFF.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page2
          text
    FORM top_of_page2.
      FORMAT COLOR COL_NEGATIVE.
      WRITE /5 'Second Block'.
      FORMAT COLOR OFF.
    ENDFORM.                    "top_of_page
    reward if usefull....

  • OIM 11g R2 PS1 error in App instances page due to multiple prcoess forms for a single RO

      By mistake I attached two process definitions to a single resource object (RO) and it in turn mapped two process forms to the single resource object.
    Now when I go to application instances page and do a searc, it shows the below error in the UI
    IAM-4067027 : An error occurred in findAppInstances and the cause of error is An error occurred in getParentFormInfo and the cause of error is Multiple process forms exist for Test_Emp_RO.. 
    I tried to assign a different RO and Form to the second process def in teh design console, but it throws SDK update failure error. How to resolve this error?  Any inputs are appreciated.

    Check the for duplicacy in OBJ_KEY column of the process defination. If duplicate values exit then set them to 'null'  and commit. Restart OIM if required

  • Two Manual Tabular forms in a same page

    Since i have to create two tabular forms in a same page, i created tabular forms manually.
    Both the forms are working fine if the columns are not defined as conditional display.
    Based on item value set by user, few fields should be either displayed as text field (editable) or read only (display).
    I created two columns for a same field one as editable another one as non editable.
    Based on item value any one of the column will be displayed.
    Since the manual tabular form update process is using 'apex_application.g_f02', if any one of the column is not visible,
    multiple row update is failing.
    can any one please help me or suggest me to solve this.
    Edited by: Ravi on Apr 19, 2012 9:02 AM

    I'm guessing you have a page item that is used to control display of the columns as display only or editable.
    If that's true and the page item tells you to display the editable column, then you end up with say a g_f02 and a g_fo3, where you otherwise might only have a g_fo2.
    Use the value of the page item in your update process to control which tabular form element to use.

Maybe you are looking for

  • SUM for a field in ALV

    Hello Guys, CAn any one tell me how to do the SUM for a particular column in ALV.It should display at the End of the records.The column field is TYPE N(4). My CODE is like this: CLEAR fc_tmp.   fc_tmp-col_pos         =  5.   fc_tmp-reptext_ddic    =

  • How to monitor MySQL Server installed in Windows Server using Nagios

    You can do this via NSClient as Gary posted. The NSClient is a communications system that allows nagios to send commands to a target system over the nsclient protocol and they are executed on the remote system. You will still have to build some kind

  • I have multiple pages I need to scan and email. How do I do this at one time?

    I have multiple pages to send by email. How do I scan and send them all at once instead of 10 separate emails?

  • Help finding files

    I have 4 different hard drives and have very poor organization skills. all hard drives have been used as my scratch disk at one time or another. I lost a *.fcp file and can't find it.I don't remember what I named it. I do know that in the browser I h

  • Latest update, now have a grey screen

    I just ran the latest sofware update for my MacBook Pro which involved a firmware update. However, I did not read the message carefully. Now my MacBook just has a blank grey screen. Should I restart it?