Parameter giveover to a new page

Hello Together,
i created a Form for editing some tabledata.
Now i have created a master-detail report on the same page like the formular.
Now i want to press the create button of in the report-region and give a item on the called page the value of a item in the calling form.
how it this possible?
Please help me.
Regards
Mario

HI Alejandro,
Did the same what you have told me. I am getting the following error
oracle.jbo.JboException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters are {0=java.io.EOFException, 1=null}
at oracle.adf.model.bc4j.DCJboDataControl.setCurrentRowWithKey(DCJboDataControl.java:1554)
at oracle.adf.model.binding.DCIteratorBinding.setCurrentRowWithKey(DCIteratorBinding.java:3829)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1588)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2189)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:751)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:407)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:255)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
Thanks

Similar Messages

  • Show new page table record based on parameter value in first page in ADF

    I have to show a selected record on a new page whose input query value is in first page. For example I choose to edit an order id  by selecting order id and then pressing Edit Record button then in new page selected order record should show. I am working in ADF JSF pages. I can pass parameter from one page to another by pageFlowScope. but how to display selected record on next page.

    any one to help. I want to use an input parameter on first page to edit the table on new page

  • Open Jasper Report in new page using servlet

    Guys,
    Looks very simple but i am having problem making this process work. I am using 11.1.1.4
    This is my use case:
    - From a employee page, user clicks on a menu item to open report for current employee. I need to pass appropriate report parameters to servlet and open report into new page.
    I can successfully call servlet using commandmenuitem and set request parameters and call servlet from backing bean.... but that doesn't open report in a new page.... any way i can do this?
    Another option i tried was that using gomenuitem and setting target=blank but in that case i need to pass the parameter using servlet url which i like to avoid.(in case i need to pass many parameters in future) (also values will be set on page so i need to generate url when then click the menuitem...... so there are some hoops and loops i need to go through) I don't know a way to pass the request parameter using backing bean to servlet... i don't think it is possible.
    Those are the two approaches i tried.
    If you have any better approach...I would appreciate if you can let me know. (i have searched on internet for two days now.... for the solution)
    -R
    Edited by: polo on Dec 13, 2011 7:22 AM

    Hi,
    Hope following will useful
    http://sameh-nassar.blogspot.com/2009/10/using-jasper-reports-with-jdeveloper.html
    http://www.gebs.ro/blog/oracle/jasper-reports-in-adf/

  • How to open a new page from a Spry Table click, with element info?

    Hello, Spry experts!
    This is probably simple, but I've searched for hours and can't find what I need. I'm using Dreamweaver CS4 and Spry 1.6.1 to create a simple Spry Table from an XML data set using PHP as my back end.  I've used Dreamweaver's Insert->Spry->Spry Data Set to create everything, and the table is working fine.  Colors, clicks, sorts, etc., are all working correctly as expected.
    What I want is to be able to add a behavior such that when a table row is clicked, I can open a new page.  Moreover, I want to pass a parameter from the table to the new page, like http://www.mydomain.com/newpage.php?aid=12345 or whatever.
    So, for example, my table has two columns, "a_id" and "a_name", and my repeat region looks like this:
    <div spry:region="xml_assignments">
    <table width="500">
    <tr>
    <th spry:sort="a_id" class="spry_header">ID</th>
    <th spry:sort="a_name" class="spry_header">Assignment</th>
    </tr>
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select">
    <td>{a_id}</td>
    <td>{a_name}</td>
    </tr>
    </table>
    </div>
    What I want is to be able to open an entirely new URL, passing the value of the {a_id} in the selected row as a parameter to the new URL, as in something like:  http://www.mydomain.com/newpage.php?aid={a_id}
    So my questions are: 
    1. How best to apply the action to the table?  Add an onclick to the tr tag?  Something else?
    2. How to extract the {a_id} value from the current row and pass it as a parameter to the action?
    Or maybe just take another approach entirely?
    I know that I can make the actual text in the table cells hyperlinks, and use them to link to the new page, which is fine.  The desire here is just to make it so that the user can click "anywhere" on the table row (as they can currently do with the spry:select behavior) and have the link kick off, whether they actually click on the linked text or somewhere in the row where there is no text.
    I'm sure this is obvious and simple, but I'm new to this level of Spry detail, and my brain is fried from hunting.  Any guidance will be gratefully appreciated!
    Glen Barney

    I found the answer myself, after posting this, of course!
    I changed:
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select">
    to
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select" onclick="window.location.href='./newpage.php?aid={a_id}';">
    Basically just added the onclick parameter...
    And it all just worked!

  • SAP Script info req to print new line iten on new page

    hi
    i had an req to print the list of MATNR & KUNNR on script,but the req is like this,at NEW MATNR,the script shd start with new page,say,if there are 5 MATNR,2 are same & 3 are same with diff KUNNR.
    On first page:2 MATNR shd be printed
    On Second Page:3 MATNR shd be printed & so on each time on new page...
    Please tell me how to do it,in window MAIN,how shd i wirte code for this?
    regds

    hey,
    Check this,
    First in your print program call FM 'START_FORM'.
    Then call FM 'WRITE_FORM'
    After this call FM 'CONTROL_FORM' :
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    command = 'NEW-PAGE'
    EXCEPTIONS
    UNOPENED = 1
    UNSTARTED = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    At last call FM 'CLOSE_FORM'.
    By using FM control_form and passing parameter 'NEW-PAGE' you will get one new page even thow if content of ur main window of previous page is not exceeding..
    hey call new-page for every new matnr
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 11, 2008 8:47 AM

  • New-page for smartform

    Hello all,
    I am facing a problem using smartforms. I am printing a report where there is a loop running for a list of plants. For printing the information of each plant, I need to use a new page. Information of one plant may take several pages but for every new plant, I need to insert a page break.
    I am using a COMMAND with a checked next page option in my EVENT ON SORT BEGIN for the plant code.
    This does the trick, but if I use the command at the bottom, it inserts a blank page at the end of the report. If I use the command at the top of the event, it first shows a blank page and then the data from the 2nd page.
    Please sugest how can I fix this.
    Anmol

    Hi Friend,
            You can use following tips for generating smartforms for every new plant.I have generated sales order report using this steps.You can refer it.Tips are given below:
    1.Define the structure,workarea and internal table for sales order header and details and also define
    select-options for sales order.
    2.Also define the one STRUCTURE which has type as ssfctrlop.
    e.g. control type ssfctrlop.
         This variable we have to define because we are going to use this in
    SSF_OPEN function.This is used to avoid print preview while openning smartform
    for every sales order.
    3. Select data from vbak for sales header.
    4. Call function SSF_FUNCTION_MODULE_NAME.
    e.g.*CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = w_formname
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  =  w_functionname
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2
         OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    5.Now here define the various features or field in control structure.
    This is controls for smartform.
    e.g.  control-no_dialog = 'X'.
         control-preview   = 'X'.
         control-no_open   = 'X'.
         control-no_close  = 'X'.
    6. Call function SSF_OPEN.
         Here you have to pass the control structure which you have define in declaration.
    e.g.
    CALL FUNCTION 'SSF_OPEN'
        EXPORTING
      ARCHIVE_PARAMETERS       =
      USER_SETTINGS            = 'X'
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
      OUTPUT_OPTIONS           =
          control_parameters       = control
    IMPORTING
      JOB_OUTPUT_OPTIONS       =
       EXCEPTIONS
         formatting_error         = 1
         internal_error           = 2
         send_error               = 3
         user_canceled            = 4
         OTHERS                   = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    7. Take loop at header internal table .
    8. Select data from vbak for sales details. Also select data from respective tables
    like makt,kna1 here.
    9.Then call function module which generated after executing smartform. And also pass the control structure
    in import parameter in this function module.
    e.g.  CALL FUNCTION '/1BCDWB/SF00000397'
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        control_parameters         = control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          wa_vbak                    = wa_vbak
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_vbak                    = it_vbak
          it_vbap                    = it_vbap
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    10.After endloop call function SSF_CLOSE.
         If it will help you reward me points.
    Regards,
    Santosh.

  • REUSE_ALV_HIERSEQ_LIST_DISPLAY and new Page

    Hi all,
    I am using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY to display ALV List. Now, i want to print a New page on every Header record , is it possible?if Yes, then how?
    thanks in advance.

    Hi VIpin,
    Please find the code and function module ..
    *& Report  Z8AS_PROGRAM_ALV
    REPORT  Z8AS_PROGRAM_ALV.
    TABLES : STKO,STPO,MAKT,MAST.
    TYPE-POOLS : SLIS.
    DATA : BEGIN OF ISTKO OCCURS 0,
           STLNR LIKE STKO-STLNR,
           DATUV LIKE STKO-DATUV,
           MATNR LIKE MAST-MATNR,
           BMENG LIKE STKO-BMENG,
           BMEIN LIKE STKO-BMEIN,
           END OF ISTKO.
    DATA : BEGIN OF ISTPO OCCURS 0,
           STLNR LIKE STPO-STLNR,
           IDNRK LIKE STPO-IDNRK,
           MENGE LIKE STPO-MENGE,
           MEINS LIKE STPO-MEINS,
           MAKTX LIKE MAKT-MAKTX,
           END OF ISTPO.
    DATA : BEGIN OF IMAKT OCCURS 0,
           MATNR LIKE MAKT-MATNR,
           MAKTX LIKE MAKT-MAKTX,
           END OF IMAKT.
    DATA : BEGIN OF IMAST OCCURS 0,
           MATNR LIKE MAST-MATNR,
           STLNR LIKE MAST-STLNR,
           END OF IMAST.
    DATA : IFIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WFIELDCAT TYPE SLIS_FIELDCAT_ALV,
           ILAYOUT   TYPE SLIS_LAYOUT_ALV,
           IKEYINFO  TYPE SLIS_KEYINFO_ALV,
           IEVENT    TYPE SLIS_T_EVENT,
           WEVENT    TYPE SLIS_ALV_EVENT.
    PARAMETERS : P_NUM TYPE I .
    START-OF-SELECTION.
      PERFORM GETDATA.
      PERFORM GETHEADERMAT.
      PERFORM GET_MAT_DESC.
      PERFORM BUILD_FCAT_HEAD.
      PERFORM BUILD_FCAT_ITEM.
      PERFORM BUILD_KEYINFO.
      PERFORM BUILD_EVENT_TAB.
      PERFORM BUILD_LAYOUT.
      PERFORM DISPLAY_DATA.
    *&      Form  GETDATA
          text
    -->  p1        text
    <--  p2        text
    FORM GETDATA .
      SELECT STLNR DATUV BMENG BMEIN INTO CORRESPONDING FIELDS OF TABLE ISTKO
                                     FROM STKO UP TO P_NUM ROWS.
      IF NOT ISTKO[]  IS INITIAL.
        SELECT STLNR IDNRK MENGE MEINS INTO TABLE ISTPO FROM STPO FOR ALL ENTRIES IN ISTKO
                      WHERE STLNR = ISTKO-STLNR AND POSTP = 'L'.
      ENDIF.
    ENDFORM.                    " GETDATA
    *&      Form  BUILD_FCAT_HEAD
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_FCAT_HEAD .
      WFIELDCAT-TABNAME   = 'ISTKO'.
      WFIELDCAT-FIELDNAME = 'STLNR'.
      WFIELDCAT-SELTEXT_L = 'BOM no'.
      WFIELDCAT-OUTPUTLEN = 15.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTKO'.
      WFIELDCAT-FIELDNAME = 'DATUV'.
      WFIELDCAT-SELTEXT_L = 'BOM date'.
      WFIELDCAT-OUTPUTLEN = 15.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTKO'.
      WFIELDCAT-FIELDNAME = 'MATNR'.
      WFIELDCAT-SELTEXT_L = 'Header mat no'.
      WFIELDCAT-OUTPUTLEN = 18.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTKO'.
      WFIELDCAT-FIELDNAME = 'BMENG'.
      WFIELDCAT-SELTEXT_L = 'Base qty'.
      WFIELDCAT-OUTPUTLEN = 15.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTKO'.
      WFIELDCAT-FIELDNAME = 'BMEIN'.
      WFIELDCAT-SELTEXT_L = 'UOM'.
      WFIELDCAT-OUTPUTLEN = 3.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
    ENDFORM.                    " BUILD_FCAT_HEAD
    *&      Form  BUILD_FCAT_ITEM
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_FCAT_ITEM .
      WFIELDCAT-TABNAME   = 'ISTPO'.
      WFIELDCAT-FIELDNAME = 'IDNRK'.
      WFIELDCAT-SELTEXT_L = 'Material no'.
    *WFIELDCAT-HOTSPOT   = 'X'.
      WFIELDCAT-OUTPUTLEN = 18.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTPO'.
      WFIELDCAT-FIELDNAME = 'MAKTX'.
      WFIELDCAT-SELTEXT_L = 'Material desc'.
      WFIELDCAT-JUST      = 'C'.
      WFIELDCAT-OUTPUTLEN = 30.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTPO'.
      WFIELDCAT-FIELDNAME = 'MENGE'.
      WFIELDCAT-SELTEXT_L = 'Item qty'.
      WFIELDCAT-OUTPUTLEN = 15.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
      WFIELDCAT-TABNAME   = 'ISTPO'.
      WFIELDCAT-FIELDNAME = 'MEINS'.
      WFIELDCAT-SELTEXT_L = 'UOM'.
      WFIELDCAT-OUTPUTLEN = 3.
      APPEND WFIELDCAT TO IFIELDCAT.
      CLEAR WFIELDCAT.
    ENDFORM.                    " BUILD_FCAT_ITEM
    *&      Form  BUILD_KEYINFO
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_KEYINFO .
      IKEYINFO-HEADER01 = 'STLNR'.
      IKEYINFO-ITEM01   = 'STLNR'.
    ENDFORM.                    " BUILD_KEYINFO
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_DATA .
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK              = ' '
         I_CALLBACK_PROGRAM             = SY-REPID
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = 'USER_COM'
         IS_LAYOUT                      = ILAYOUT
         IT_FIELDCAT                    = IFIELDCAT[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
         IT_EVENTS                      = IEVENT[]
      IT_EVENT_EXIT                  =
          I_TABNAME_HEADER               = 'ISTKO'
          I_TABNAME_ITEM                 = 'ISTPO'
      I_STRUCTURE_NAME_HEADER        =
      I_STRUCTURE_NAME_ITEM          =
          IS_KEYINFO                     = IKEYINFO
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB_HEADER                = ISTKO
          T_OUTTAB_ITEM                  = ISTPO
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA
    *&      Form  GET_MAT_DESC
          text
    -->  p1        text
    <--  p2        text
    FORM GET_MAT_DESC .
      IF NOT ISTPO[] IS INITIAL.
        SELECT MATNR MAKTX INTO TABLE IMAKT FROM MAKT FOR ALL ENTRIES IN ISTPO
                                WHERE MATNR = ISTPO-IDNRK.
      ENDIF.
      LOOP AT ISTPO.
        READ TABLE IMAKT WITH KEY MATNR = ISTPO-IDNRK.
        IF SY-SUBRC = 0.
          ISTPO-MAKTX = IMAKT-MAKTX.
        ENDIF.
        MODIFY ISTPO.
      ENDLOOP.
    ENDFORM.                    " GET_MAT_DESC
    *&      Form  BUILD_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_LAYOUT .
      ILAYOUT-ZEBRA             = 'X'.
      ILAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    ENDFORM.                    " BUILD_LAYOUT
    *FORM USER_COM USING PUCOM LIKE SY-UCOMM PSELFIELD TYPE SLIS_SELFIELD.
    *CASE PUCOM.
    *WHEN '&IC1'.
    SET PARAMETER ID 'MAT' FIELD PSELFIELD-VALUE.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    *ENDCASE.
    *ENDFORM.
    *&      Form  BUILD_EVENT_TAB
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_EVENT_TAB .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = IEVENT
      EXCEPTIONS
        LIST_TYPE_WRONG       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE IEVENT INTO WEVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC = 0.
        WEVENT-FORM = 'TOPOFPAGE'.
        MODIFY IEVENT FROM WEVENT INDEX SY-TABIX.
      ENDIF.
    ENDFORM.                    " BUILD_EVENT_TAB
    *&      Form  TOPOFPAGE
          text
    FORM TOPOFPAGE.
      DATA : ILISTHEAD TYPE SLIS_T_LISTHEADER,
             WLISTHEAD TYPE SLIS_LISTHEADER.
      WLISTHEAD-INFO = 'Its a test hierarchical sequential alv dispaly'.
      WLISTHEAD-TYP = 'H'.
      APPEND WLISTHEAD TO ILISTHEAD.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = ILISTHEAD
        I_LOGO                   =  ''
        I_END_OF_LIST_GRID       =
      ENDFORM.
    *&      Form  GETHEADERMAT
          text
    -->  p1        text
    <--  p2        text
    FORM GETHEADERMAT .
    IF NOT ISTKO[] IS INITIAL.
      SELECT MATNR STLNR INTO TABLE IMAST FROM MAST FOR ALL ENTRIES IN ISTKO
                                    WHERE STLNR = ISTKO-STLNR.
    ENDIF.
    LOOP AT ISTKO.
    READ TABLE IMAST WITH KEY STLNR = ISTKO-STLNR.
    IF SY-SUBRC = 0.
      ISTKO-MATNR = IMAST-MATNR.
    ENDIF.
    MODIFY ISTKO.
    ENDLOOP.
    ENDFORM.                    " GETHEADERMAT
    What more you can do is go to that function module in se37 , and inside that function module you can use At New
    command , like at new matnr or ebeln .
    Reward points if helpful
    Regards,
    Amber S
    Message was edited by:
            Amber Soni

  • How can i use link in report to go to new page with parameters??

    Hello
    I've created a report and have added a link (to a html url) to one of the columns. Whenever i click that column in a row, a new page appears. At this moment this page is static. However, i want to show the details of the selected row in the report. This means that somehow i have to pass a parameter to the second page with the primary key of the selected report row.
    Is there any way to do this?
    Thanx
    Ben

    You can do this using SQL based reports.
    Here is an example
    select ''||empno||'' emplink,ename
    from SCOTT.EMP
    Here the link "http://forums.oracle.com/forums/message.jsp?id=" takes a parameter whose value is the empno.
    In the column formatting section of SQL reports you should display this column as HTML and not TEXT.

  • Table every row in new pages leaves a blank page at the end.

    Hi All,
    I have a nested table in a output form.
    All I have in this form is a nested table nothing else.
    as per the requirement to have every new row in a new page, I set the after parameter to next page / next content area for the parent row pagination.
    Now the result is if I have 5 rows, it creates 6 pages document where each row in each page and the last page is blank.
    I understand that the after parameter is intended to move to next page immediately after publishing each row, but how can I stop it at the last instance. or how can I overcome this blank page issue.
    If somebody has already gone through this, please share the solution with me.
    Thanks in advance,
    Sai

    After a long and annoying series of attempts and consulting your links, nancy, there has been no change. The page breaks works in internet explorer and google chrome but when i go to print in safari there are all type of blank page scattered about. Please open up this link in safari, http://onlinedevelopments.com/backend/csrSafetyServices.php?
    then go to print, and see the problem. I don't know what to do.
    idC=1157&id=947&vW=c&aD=3&vP=L5sJWFYsMs

  • Form Before_line and New Page

    Hi all,
    Implementing ALV LIST where alv table contains cost center as one of the fields. For every new cost center i want to call a new page. I did it but the page-size is equal to the no of record a particular cost center has.
              I want a fixed page-sixe of 30lines. For that i will have to introduce blank lines? Where do i code for this? Because the no of records in the table is equal to the no of times before_line is performed. Then how do i introduce blank lines? Please help!

    Hi,
    I think you r using  REUSE_ALV_HIERSEQ_LIST_DISPLAY function module. In this function module there is export parameter IS_PRINT, in this there is field called  <b>reserve_lines</b> you can fill the number of lines that u want at the end of page . This u should calculate each time depending on the no .of filled lines and get that into a variable and send it.
    Regards

  • Passing parameters from report to new page with portlets.

    Hello everyone:
    I have a plsql report portlet on a page that has a column that I would like to pass as a parameter to a new page to populate more portlets. I tried setting up a link but I can't seem to get the value in the column to pass as the parameter. I am a novice when it comes to developing portlets.
    Thanks in advance!

    The link is the way to go (at first). You have to create the link first. Then assign this link to the column that you want to the hyperlink to appear on - this assignment happens on the 2nd tab of the report (Column formatting) by choosing the newly created link in the link dropdown. After you have assigned the link to the column you must edit the assigned link where you can then choose the value that must be passed across.
    The link approach works fine, but there are limitations. I just do all the links in code these days - so in the report select statement I have <a href....>. This gives more flexibility. Ultimately there is the issue of passing parameters to forms: using links (or hand coded) you can pass parameters to reports (if param is also defined as input param with ":") and also forms, but all you can do with a form is to pass param that can be used to uniqeuly identify one record which is the one that will show in the form. Anything else (e.g. pass a param to prepopulate a field on the form) needs an even more complicated solution (:).
    Cheers.
    Anton.

  • Is it possible to hide a forms user parameter in the wrapper HTML page?

    Is it possible to hide a forms user parameter in the wrapper HTML page? I.E I want to start my form with MODULE=myForm userid=scott/tiger@db myParameter=SECRET.
    The http://myserver/servlet/f60servlet?config=myconfig successfully starts the application (after update of the basejini.htm and adding this section to the formsweb.cfg
    [myconfig]
    userid=scot/tiger@db
    myParameter=SECRET)
    However, when looking at the source of the wrapper html page one can see MODULE=myForm userid= myParameter=SECRET.
    As you can see the userid is nicely hidden by my secret parameter is not.
    Thanks in advance for ideas for solving this…

    We logged a similar issue through Oracle support recently (hiding the password) and we did get a very unsatisfactory response :
    ====
    View source is the functionality for browser . So that can't be done.
    You have two possible workaround for your problem.
    1.
    Invoke Registry & move to HKEY_LOCAL_MACHINES &gt;&gt; SOFTWARE &gt;&gt; ORACLE. Here create a new string value with the name LOCAL & value as the connect string you want. Now when you run the form on web, just give user name & password, the form picks the connect string from Registry.
    Note : You need to make registry entry in a machine where Forms Server is running.
    2.
    You can hardcode the username, password & connect string in the form's ON-LOGON trigger. To do this use LOGON built-in.
    ====
    Should you receive a better response : we are also interested.

  • Cannot separate to new page according to WERKS

    Hi there!
    I have succesfully display my result according to each new WERKS.
    BUT if i add <i>NEW-PAGE PRINT ON</i> and <i>NEW-PAGE PRINT OFF</i> in order to send my report to spool. The <b>NEW-PAGE</b> no longer work out.
    May I know how to solve this?
    thanks for helping..
    NEW-PAGE PRINT ON NEW-SECTION
                      PARAMETERS PRIPAR
                      ARCHIVE PARAMETERS ARCPAR
                      NO DIALOG.
      LOOP AT ITAB.
        AT NEW WERKS.
          <b>NEW-PAGE.</b>
            NEW_WERKS = 'Y'.
        ENDAT.
        IF NEW_WERKS = 'Y'.
           PERFORM WRITE_RESULT.
        ENDIF.
      ENDLOOP.
    NEW-PAGE PRINT OFF.

    Hi,
    Check the below SAP help on NEW-PAGE PRINT ON...
    NEW-PAGE PRINT ON
    Extras:
    8. ... PRINT ON ...
       ... PARAMETERS params
       ... ARCHIVE PARAMETERS arparams
       ... NEW-SECTION
       ... NO DIALOG
    Addition 8
    ... PRINT ON ...
      ... PARAMETERS params (Structure with print parameters)
      ... ARCHIVE PARAMETERS arparams (Structure with archiving parameters)
      ... NEW-SECTION (Beginning of a new section)
      ... NO DIALOG (Skip print control screen)
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Print Parameters Missing in NEW-PAGE Statement.
    Effect
    Page break and redirection of output to the SAP spool.
    Starting with the new page, all WRITE statements (and also SKIP, ULINE, ...) are interpreted as print statements (see Printing in ABAP).
    Before the first page is printed, the user sees a screen for setting the print parameters unless the addition NO DIALOG has been specified. The print parameters are passed through the structure params. This structure must have the structure of PRI_PARAMS. The structure can be filled and modified using the function module GET_PRINT_PARAMETERS.
    If you specify arparams with ARCHIVE PARAMETERS, the structure of ARC_PARAMS must be used. You should only edit this parameter using the function module GET_PRINT_PARAMETERS.
    If you specify the addition NEW-SECTION, the page count is reset to 1. If data is being printed, the current spool request is closed. If the print parameters specified are compatible with those set earlier, the new spool request is attached to the spool request just closed.
    Note
    It is not possible to add records to the spool on a cross-event basis (AT LINE-SELECTION, AT PFx, AT USER-COMMAND). In such cases, NEW-PAGE PRINT OFF (see addition 10) is processed even if this has not been coded explicitly.
    Example
    Printing without archiving
    DATA PARAMS LIKE PRI_PARAMS.
    DATA: DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'Test NEW-PAGE PRINT ON'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
      WRITE / 'First line'.
    ENDIF.
    Example
    Printing with archiving
    DATA: PARAMS   LIKE PRI_PARAMS,
          ARPARAMS LIKE ARC_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION            = 'LT50'
                COPIES                 = COUNT
                LIST_NAME              = 'TEST'
                LIST_TEXT              = 'Test NEW-PAGE PRINT ON'
                IMMEDIATELY            = 'X'
                RELEASE                = 'X'
                NEW_LIST_ID            = 'X'
                EXPIRATION             = DAYS
                LINE_SIZE              = 79
                LINE_COUNT             = 23
                LAYOUT                 = 'X_PAPER'
                SAP_COVER_PAGE         = 'X'
                RECEIVER               = 'SAP*'
                DEPARTMENT             = 'System'
                SAP_OBJECT             = 'RS'
                AR_OBJECT              = 'TEST'
                ARCHIVE_ID             = 'XX'
                ARCHIVE_INFO           = 'III'
                ARCHIVE_TEXT           = 'Description'
                NO_DIALOG              = ' '
      IMPORTING OUT_PARAMETERS         = PARAMS
                OUT_ARCHIVE_PARAMETERS = ARPARAMS
                VALID                  = VALID.
    IF VALID <> SPACE.
      NEW-PAGE PRINT ON PARAMETERS PARAMS
                        ARCHIVE PARAMETERS ARPARAMS
               NO DIALOG.
      WRITE / 'First line'.
    ENDIF.
    Notes
    NEW-PAGE PRINT ON must not be called when nested. Nested print lists are not supported. Each NEWPAGE PRINT ON call must be completed with a NEW-PAGE PRINT OFF call.
    It is not possible to add records to the spool on a cross-event basis ( AT LINE-SELECTION, AT PFx, AT USER-COMMAND). In such cases, NEW-PAGE PRINT OFF (see addition 10) is processed if this has not been coded.
    If you submit only NEW-PAGE PRINT ON NO DIALOG without additional parameters, the corresponding values from the user defaults are used as spool parameters.
    Thanks,
    Ramakrishna

  • Spawning a new page depending on whether a text field is populated or not

    I am trying to create a form that once the last line is in the description field contains text it will automatically spawn a new page directly below the page being filled in. I am so googled out.
    if (getField("DOD20").value === "");
    else
    var a = this.templates;
      for (i = 0; i < a.length; i++)
      a[i].spawn(this.numPages, false, false);

    The renaming of the form fields is controlled by the spawn method. It is a passed parameter. By default the new page will be inserted after the first page, the fields will be renamed, the form will not overlay.
    Because the fields are renamed in a standard manner, you need to create your scripts to allow for this. I usually do this by using JavaScript to access the focused field name, event.target.name, and split the field name into an array and then compute the field names that need to be accessed.
    Did you open the JavaScript console and see if there are any errors?
    Have you opened the form and looked at the form in the edit mode?

  • Opening new page to a Specific frame

    I am still learning Action Script but I have a problem with
    writing the full script for combing navigate to new URL and
    gotoAndPlay. More specifically what I want to do is use a button
    which when clicked will open a new page and then start playing my
    Flash movie at a certain frame on the Timeline. I have used buttons
    to navigate to a new URL and used the gotoAndPlay ( ) ; command to
    play a certain frame, both have been successful but when I combine
    the two I run into trouble. What happens is the new page loads
    correctly and goes to the specific frame but then opens the browser
    in a new window with the movie playing from the beginning. The
    correct sequence within the correct Webpage is playing but only if
    I close the current page, in other words what I am trying to
    achieve is running but in the background.
    I have attached some of the code I have tried if that helps.
    Many Thanks.

    How extensive are the corresponding text changes on the HTML
    page? How many HTML pages are there? The reason I am asking is that
    if HTML content is not big - your best bet may be to load all the
    HTML content at once and hide/unhide parts of it based on the
    commands that come from Flash.
    But if you are sticking to your guns:
    Your use case, as you described it, is:
    1. user clicks a button on a column
    2. the column clicked moves across the movie
    3. the movie starts to play a different section
    4. the text on the web page changes to match the new movie
    sequence.
    There is a problem here - No 4 requires browser reloading. I
    believe user experience will not be all that good because of the
    visual break (new html page loading) after all the animation
    sequence after the click occurs. Perhaps a better experience can
    be:
    click --> load appropriate page --> perform animation
    sequence.
    As for the variables that you add to the request,
    conceptually it is not different from appending url variables to
    the url string:
    You can do it this way:
    var url:String =
    "www.domain.com/mypage.html?myVariable1=something&myVariable2=somethingElse";
    Or you can do it this way:
    ar url:String = "www.domain.com/mypage.html";
    var variables:URLVariables = new URLVariables();
    variables.myVariable1 = "something";
    variables.myVariable2 = "somethingElse";
    var request:URLRequest = new URLRequest(url);
    request.data = variables;
    I hope you see the similarity. The result is the same - Flash
    sends request with the variables.
    You may perceive the second way as more cumbersome but there
    are several advantages of doing it this way. One of the most
    important is that Flash automatically makes variables values url
    formatted which is critical when you send strings with special
    characters. In addition, when you send many variables - it is much
    more manageable than keeping track of the variable and making
    assignments in one-line url string.
    How you deal with it further depends on how good you are with
    HTML and JavaScript OR server side processing.
    Say you need to start your Flash movie from a certain frame
    (say No 50). You may want to:
    1. Load HTML page with a url that contains a frame number:
    variables.startframe = 50;
    2. You need to read this variable with JavaScript and write
    an appropriate embed tag. There are several ways to do that. Read
    about FlashVars. It could be (in the embed tag):
    src="myMovie.swf?startframe=50" where 50 comes from browser
    location string.
    3. Inside Flash you will utilize LoaderInfo.parameters method
    to extract the value of the variable startframe.
    4. Write code that will perform and animation based on this
    variable/parameter.
    I guess a question is "How good are you at HTML and
    JavaScript?"

Maybe you are looking for

  • PI 7.11 CSV file

    Hello All, I have a simple scenerio IDOC to File. We had a requirement of making a XML file of IDOC received in PI , ery simple and straight forward. Now Target side as a requirement to place a file in CSV format. I mean the IDOC received in PI shoul

  • Fotomagico into FCP

    Fotomagico boards are rare and very few topics on FCP integration so I thought I'd try here. Here's the problem. I've made a slideshow of 18 slides. When I import into FCP and drop in the timeline I first off have to drag the clip on both ends to res

  • SXMB_ADM settings in Integration engine Configuration

    Hi , with reference to the blog How do you activate ABAP Proxies? --- refer to the step ---2 Configuration Business system as local Integration Engine. 1. Goto Transaction SXMB_ADM 2. Choose Edit --> Change Global Configuration Data. 3. Select Role o

  • FI-AA Normal and Special Periods

    hi, In Asset Accounting there are normal and special periods for a fiscal year,why do we use the special periods? Vinay

  • Multiple columns for the rows

    Hello everyone, Can anyone give me a logic in the below scenario. Table A Col1 Col2 Col3 Peter 01-jan-2009 1000 Peter 7-mar-2009 1000 Peter 13-dec-2009 1000 i need a sql which displays all the data in a single row in such a way that 1) if col2 month