SetParam not passing value to XAcute transaction

Hi all,
I am missing something as this always works, but here goes...
I had an iCommand applet with javascript that set Param.1 and Param.2
The query mapped Param.1 to materialList and Param.2 to qtyList
The XAcute transaction has inputs for materialList and qtyList
This was working fine.  Then I needed to add three new inputs, so...
I added javascript to set Param.3,4,5
The query mapped the Param.3,4,5 to names
The transaction added those names as input parameters
I'm not getting any values in the input parameters for 3,4,5 in the transaction.
Params 1 and 2 are still fine.
Here is the javascript.  I checked the spelling of the names in the query and transaction.
What am I missing?
func  tion submitRequest
     v ar applet = document.requestMaterialPickApplet
     v ar query = applet.getQueryObject()
     v ar materials = buildMaterialList()
     v ar quantities = buildQuantityList()
     q uery.setParam(1, materials)
     q uery.setParam(2, quantities)
     i  f (document.getElementById('specialStockCheckbox').checked)
          query.setParam(3, $('#salesOrderNumber').val())
          query.setParam(4, $('#salesOrderItem').val())
          query.setParam(5, 'E')
      e lse
          query.setParam(3, '')
          query.setParam(4, '')
          query.setParam(5, '')
v ar msg = ''
f or (var i=1; i < 6; i++)
     msg += query.getParam(i) + ':'
a l ert(msg);
     aft erTra nsaction (applet.executeCommand());
And the Applet tag
<APPLET NAME="requestMaterialPickApplet" CODEBASE="/XMII/Classes" CODE="iCommand" ARCHIVE="illum8.zip" WIDTH="1" HEIGHT="1" MAYSCRIPT>
     <PARAM NAME="QueryTemplate" VALUE="APEX/Queries/EX/requestMaterialPickQuery">
     <PARAM NAME="CreationEvent" VALUE="requestMaterialPickAppletCreation">
</APPLET>
Thanks,
--Amy Smith
--Haworth

Thanks Christian,
I shutdown the PC overnight and now it is working.  Must have been the java cache. 
Maybe I learned the lesson now.
Thanks again and Happy Holidays,
--Amy Smith

Similar Messages

  • Pass value to desktop transaction shortcut

    Hi experts,
    I have created the desktop shortcut for transaction VA03.
    And I am calling this shortcut from another system(JAVA).
    Can I pass values during call to this shortcut.
    regards,
    Gopan

    Hi Roberto,
    I have found your replay on of forum regarding FEB_BADI for FF_5 transaction.
    We have implemented the FEB_BADI to change the GL account at runtime based on the business rules. The document posting is happening as per the requirement but the out put of FF_5 is not reflecting the GL account changes made in BADI.
    Have to come across this scenario.
    Appreciate your help on this.
    Thanks,
    Venkat Bomma

  • MSS report not passing values from portal to selection screen fields

    Hello Gurus,
    We have a problem with Sickness Absences report in MSS which is a Z copy of the standard report RPTABS20.
    The problem is when the manager defines the selection criteria and selects the other period dates and under Organizational View - selects All Organizational Units and highlights one org unit and report results, then the report displays the employees which are currently not part of same org unit as selected in selection criteria. But these employees were present in this org unit in past when they took leave, which comes under the same period as given on selection screen. So in a way it seems to be right. But the requirement is to only display the employees which are currently present in this org unit.
    The report seems to be working fine in backend where we specified the same date range and org unit on selection screen.
    On our investigation in portal we came to know that the org unit field on selection screen PNPORGEH is not getting filled with org unit number selected on portal.
    On further investigation in debugging we came across the fm HRWPC_RPT_START_REPORT which calls fm HRWPC_RPT_FCODE_EXEC which in turn calls fm HR_HIS_EXECUTE and it executes the report with following code:
        SUBMIT (repos-repid)  AND RETURN
               USING SELECTION-SET repos-varit
               WITH pnpindex IN objid_ranges
               WITH pnptimed eq ' '
               WITH pnpbegps eq act_begda
               WITH pnpendps eq act_endda
               WITH pnpbegda eq act_begda
               WITH pnpendda eq act_endda
               WITH p_super  eq space.
    Looks like the standard code is not passing the org unit to the selection screen of the report.
    Request you to kindly guide if this is a SAP standard problem or the report is not configured properly ?

    Please check steps as mentioned here
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
    and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
    check tje note 1431691
    When the report is launched from
    the portal, the program is reading the table:T77eo for the object
    type-'O' , since there are no entries for the object 'O' in the table,
    the switch INREL is not set, therefore the structure pchobjid is not
    filled while calling the report as shown below. Now I know the
    rootcause, but I don;t know the reason behind the table: T77EO not
    having entries for object "O".
    ==============================================================
        SUBMIT (fcode_rec-progname)
        USING SELECTION-SET fcode_rec-variant
        AND RETURN
                       WITH pchplvar EQ act_plvar
                       WITH pchotype EQ act_otype
                       WITH pchobjid IN pchobjid
                       WITH pchsobid IN pchsobid
                       WITH pchobeg  EQ act_begda
                       WITH pchoend  EQ act_endda
                       WITH pchbegda EQ act_begda
                       WITH pchendda EQ act_endda.
    try to use PNP database for seleciton only these paramters are passed to backend!

  • BULKING and FORALL statement does not pass values to non DML statements.

    Hi
    I've got million rows that i need to manapulate and insert into various procedures depending on the bussiness rule to be applied, but my dilemma is that the BULIKNG with a combination of a FORALL statement its not compatible(only considers straightforward DML calls) or the the FORALL does not like other SQL statements or calls as it prefers only DML's.
    Below is code fragment that is problamatic as the compiler keeps sending me this error: PLS-00201: identifier 'INDX' must be declared
    I want to manupulate data on the implicity cursor and call a procedure to do other stuff which don't use INSERT/DELETE or UPDATE statements.
    Declare
    TYPE tab_person_id is of table of number(15);
    l_person_id tab_person_id;
    BEGIN
    SELECT person_id
    BULK COLLECT INTO l_person_id
    FROM person_details; /*-Million records-*/
    FORALL indx IN l_tdtl.FIRST..l_tdtl.LAST
    pj_pkg.ins_intf
    (p_user => p_user,
    p_typ_cd => '00',
    p_person_id => l_person(indx)
    Commit;
    END;
    How do I pass this value 'l_person(indx)' on the package procudure ?
    Thanks
    Amos

    @prabodh:
    SQL> declare
      2  TYPE tab_person_id is of table of number(15) index by pls_integer;
      3  begin
      4  null;
      5  end;
      6  /
    TYPE tab_person_id is of table of number(15) index by pls_integer;
    ERROR at line 2:
    ORA-06550: line 2, column 23:
    PLS-00103: Encountered the symbol "OF" when expecting one of the following:
    ( array limited new private range record VARRAY_ char_base
    number_base decimal date_base clob_base blob_base bfile_base
    table ref object fixed varying opaque sparse
    The symbol "OF" was ignored.Check What you are posting.
    @ qwestion: What is your Database Version? It is a implementation restriction.

  • Popup2 in SQL report not passing values of table fields

    Hello All,
    Can some one help me with this popup 2 case statement.
    Instead of the values behind the fields being passed the literal text of "A.Metric" & "A.Month" is beaing passed into the new page instead.
    A.Metric has a value of 10 and A.Month has a value of '01/May/2008'
    CASE WHEN ANALYSIS IS NOT NULL THEN
    '<a href="javascript:popUp2('''
               || 'f?p=&APP_ID.:305:&SESSION.::&DEBUG.::'
               || 'P305_METRIC_TYPE,P305_METRIC_MONTH:A.METRIC_TYPE,A.MONTH'
               || ''', 890, 460);style="text-decoration:underline;color:black; font-size: 90%">'
    || '<img src="#APP_IMAGES#notes.jpg">'
    || '</a>' END "Analysis"
    Frank

    Species 5618 wrote:
    Hello All,
    Can some one help me with this popup 2 case statement.
    Instead of the values behind the fields being passed the literal text of "A.Metric" & "A.Month" is beaing passed into the new page instead.
    A.Metric has a value of 10 and A.Month has a value of '01/May/2008'
    ----------------------------------------------------------------------------------------------------------------------<font face="Arial">CASE WHEN ANALYSIS IS NOT NULL THEN
    '&lt;a href=&quot;javascript:popUp2('''
               || 'f?p=&amp;APP_ID.:305:&amp;SESSION.::&amp;DEBUG.::'
               || 'P305_METRIC_TYPE,P305_METRIC_MONTH:'
               ||  A.METRIC_TYPE,A.MONTH
               || ''', 890, 460);&quot;style=&quot;text-decoration:underline;color:black; font-size: 90%&quot;&gt;'
               || '&lt;img src=&quot;#APP_IMAGES#notes.jpg&quot;&gt;'
               || '&lt;/a&gt;' END &quot;Analysis&quot;</font>
    Franksorry did not realise that my text was being changed by this forum's application edit tool
    Here is the SQL statement again
    Frank
    Edited by: Species 5618 on Apr 15, 2009 10:03 AM
    I also Tried this with no success (&
    <font face="Arial">CASE WHEN ANALYSIS IS NOT NULL THEN
    '&lt;a href=&quot;javascript:popUp2('''
               || 'f?p=&amp;APP_ID.:305:&amp;SESSION.::&amp;DEBUG.::'
               || 'P305_METRIC_TYPE,P305_METRIC_MONTH:'
               ||  &A.METRIC_TYPE.,&A.MONTH.
               || ''', 890, 460);&quot;style=&quot;text-decoration:underline;color:black; font-size: 90%&quot;&gt;'
               || '&lt;img src=&quot;#APP_IMAGES#notes.jpg&quot;&gt;'
               || '&lt;/a&gt;' END &quot;Analysis&quot;</font>
    Edited by: Species 5618 on Apr 15, 2009 10:10 AM

  • XSLT mapping does not pass values

    Hi
    I have the following source structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_Order xmlns:ns0="urn:local:orders">
       <OrderHeader>
          <OrderNr>1</OrderNr>
          <Buyer>2</Buyer>
       </OrderHeader>
       <OrderLine>
          <Item>A</Item>
          <Quantity>B</Quantity>
       </OrderLine>
       <OrderLine>
          <Item>C</Item>
          <Quantity>D</Quantity>
       </OrderLine>
    </ns0:MT_Source_Order>
    and i created this XSLT:
    <?xml version= '1.0'  encoding="UTF-8"?>
    <xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"  xmlns:ns0 = "urn:local:orders"  xmlns:ns1 = "urn:local:orders">
        <xsl:template match = "/">
            <ns1:MT_Target_Order>
                  <Orders>
            <xsl:for-each select="ns0:MT_Source_Order/OrderLine">
                        <Order>
                            <Ordernr>
                                <xsl:value-of select="MT_Source_Order/OrderHeader/OrderNr"/>
                            </Ordernr>
                            <Buyer>
                                <xsl:value-of select="MT_Source_Order/OrderHeader/Buyer"/>
                            </Buyer>
                   <Item>
              <xsl:value-of select="MT_Source_Order/OrderLine/Item"/>
                   </Item>
                   <Quantity>
              <xsl:value-of select="MT_Source_Order/OrderLine/Quantity"/>
                   </Quantity>
                        </Order>
                    </xsl:for-each>
                 </Orders>
            </ns1:MT_Target_Order>
        </xsl:template>
    </xsl:stylesheet>
    I created all objects up to the Operation Mapping.
    When i test my xslt mapping the target structure comes out as:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_Target_Order xmlns:ns0="urn:local:orders" xmlns:ns1="urn:local:orders">
       <Orders>
          <Order>
             <Ordernr/>
             <Buyer/>
             <Item/>
             <Quantity/>
          </Order>
          <Order>
             <Ordernr/>
             <Buyer/>
             <Item/>
             <Quantity/>
          </Order>
       </Orders>
    </ns1:MT_Target_Order>
    The xml structure is OK, but i wanted the paired values in the output also. (order 1 = 12AB, order 2 = 12CD)
    (I have also tried to insert variables in my XSLT but that didnt work either)
    What do i need to change in my XSLT to pass the values to the target structure?
    Thx
    Robert

    Please try this
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:local:orders" xmlns:ns1="urn:local:orders">
         <xsl:template match="/">
              <ns1:MT_Target_Order>
                   <Orders>
                        <xsl:for-each select="ns0:MT_Source_Order/OrderLine">
                             <Order>
                                  <Ordernr>
                                       <xsl:value-of select="../OrderHeader/OrderNr"/>
                                  </Ordernr>
                                  <Buyer>
                                       <xsl:value-of select="../OrderHeader/Buyer"/>
                                  </Buyer>
                                  <Item>
                                       <xsl:value-of select="Item"/>
                                  </Item>
                                  <Quantity>
                                       <xsl:value-of select="Quantity"/>
                                  </Quantity>
                             </Order>
                        </xsl:for-each>
                   </Orders>
              </ns1:MT_Target_Order>
         </xsl:template>
    </xsl:stylesheet>

  • Can not pass value to the program symbol

    Hi gurus,
    i've developed a script form whereas the value can not be transported from ABAP program into script form. only the system envoirment variables can be displayed in the FORM.
    any ideas? thanks

    here is my printing program:
    the varable A whose value is 4 can not be printed out in the form preview. on the other hand, if i use the same form in the report in stead of output type ME, the value 4 CAN BE displayed.
    PROGRAM  sapmztest.
    DATA: A VALUE '4'.
    *&      Form  ENTRY
          text
         -->ENT_RETCO  text
         -->ENT_SCREEN text
    FORM entry USING ent_retco ent_screen.
      CALL FUNCTION 'OPEN_FORM'
       EXPORTING
        APPLICATION                       = 'TX'
        ARCHIVE_INDEX                     =
        ARCHIVE_PARAMS                    =
        DEVICE                            = 'PRINTER'
        DIALOG                            = 'X'
         FORM                              = 'ZCNMMF017_GR_1'
        LANGUAGE                          = SY-LANGU
        OPTIONS                           =
        MAIL_SENDER                       =
        MAIL_RECIPIENT                    =
        MAIL_APPL_OBJECT                  =
        RAW_DATA_INTERFACE                = '*'
        SPONUMIV                          =
      IMPORTING
        LANGUAGE                          =
        NEW_ARCHIVE_PARAMS                =
        RESULT                            =
      EXCEPTIONS
        CANCELED                          = 1
        DEVICE                            = 2
        FORM                              = 3
        OPTIONS                           = 4
        UNCLOSED                          = 5
        MAIL_OPTIONS                      = 6
        ARCHIVE_ERROR                     = 7
        INVALID_FAX_NUMBER                = 8
        MORE_PARAMS_NEEDED_IN_BATCH       = 9
        SPOOL_ERROR                       = 10
        CODEPAGE                          = 11
        OTHERS                            = 12
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'START_FORM'
       EXPORTING
        ARCHIVE_INDEX          =
         FORM                   = 'ZCNMMF017_GR_1'
        LANGUAGE               = ' '
         STARTPAGE              = 'FIRST'
        PROGRAM                = ' '
        MAIL_APPL_OBJECT       =
      IMPORTING
        LANGUAGE               =
      EXCEPTIONS
        FORM                   = 1
        FORMAT                 = 2
        UNENDED                = 3
        UNOPENED               = 4
        UNUSED                 = 5
        SPOOL_ERROR            = 6
        CODEPAGE               = 7
        OTHERS                 = 8
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'DATA'
        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.
      CALL FUNCTION 'END_FORM'
      IMPORTING
        RESULT                         =
      EXCEPTIONS
        UNOPENED                       = 1
        BAD_PAGEFORMAT_FOR_PRINT       = 2
        SPOOL_ERROR                    = 3
        CODEPAGE                       = 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.
      CALL FUNCTION 'CLOSE_FORM'
      IMPORTING
        RESULT                         =
        RDI_RESULT                     =
      TABLES
        OTFDATA                        =
      EXCEPTIONS
        UNOPENED                       = 1
        BAD_PAGEFORMAT_FOR_PRINT       = 2
        SEND_ERROR                     = 3
        SPOOL_ERROR                    = 4
        CODEPAGE                       = 5
        OTHERS                         = 6
      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.                    "ENTRY
    Edited by: Stephen Xue on Oct 29, 2009 11:52 AM

  • Passing values to a dynamic selection screen via a report

    Hi,
    I have the following problem and need to seek your expertise urgently.
    In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
    Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
    Appreciate any help given.
    Thanks,
    CK

    Hello CK,
    Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program.

  • Passing values to modal popup

    Apexers,
    I need help with this modal popup, it works correctly but not passing values from page page1 to my page3. How do i pass these paramater values to page3,
    function modalWin() {
    if (window.showModalDialog) {
    window.showModalDialog("f?p=&APP_ID.:3:&SESSION.:POP:NO::P3_EMPNO:#P1_CUSTOMER_ID#::","name","dialogWidth:600px;dialogHeight:400px");
    else {
    window.open("f?p=&APP_ID.:3:&SESSION.:POP:NO::P3_EMPNO:101","name","height=400,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    thanks & regards.

    Hi,
    try using this syntax
    function modalWin() {
    if (window.showModalDialog) {
    window.showModalDialog("f?p=&APP_ID.:3:&SESSION.:POP:NO::P3_EMPNO:" + $v('P1_CUSTOMER_ID') + "::","name","dialogWidth:600px;dialogHeight:400px");
    else {
    window.open("f?p=&APP_ID.:3:&SESSION.:POP:NO::P3_EMPNO:101","name","height=400,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    }regards,
    Erik-jan

  • Java passing values

    Hi,
    when i did C programming,i could pass in 2 values values by reference to a method called change values.
    In java how do i pass in 2 values by reference to a method,and in return,the method changes 2 values that are passed in.
    Do guide.
    Thanks alot.
    Rahul

    Java does not pass values by reference at all ever.
    You may only pass by value.

  • Passing value to a field of SAP Program which do not have "Parameter ID"

    Dear Experts,
    My requirement is that i need to pass a value from my dialog program to a field of SAP Program which do not have "Parameter ID" attached to it.
    For example: If you run SAP Transaction CS14, it has two sections viz., Primary BOM and Secondary BOM. I need to copy and create own screen using Dialog program. The screen appears in custom screen would be similar to that of the SAP Transaction CS14. If you check the fields, all the fields have "Parameter ID" attached to it, except for the following fields which do not have Parameter IDs are "Alternative", "Valid From" and "Required Qty".
    Hence how do i pass value to those fields? Kindly help me
    To those fields where "Parameter IDs" are attached, i can use below two statements:
    Set parameter id <par> field <field>.
    call transaction 'CS14' and skip first screen.
    Regards,
    Ramesh Manoharan

    Hi Harald Boeing,
    Thanks you very much. My problem is solved.
    Rewarded Points.
    Regards,
    Ramesh Manoharan

  • Bdc Screen data not passing to XK01 transaction screen for the second PO

    Hi Friends,
                    I have an requirement to extend an existing vendor to multiple company code and for multiple purchase organisation.I have created one report that will list the company code and the purchase organisation to be extended for the vendor. I am calling the standard program as below.
              LOOP AT li_porg.
              If user has ALSO selected p. organizations to extend...
                IF NOT li_company[] IS INITIAL.
                  LOOP AT li_company.
                    SUBMIT zricef666 WITH ld_par = ld_param
                                     WITH ls_vend = ls_vendor_ampl
                                     WITH ld_bukrs = li_company-bukrs
                                     WITH ld_ekorg = li_porg-ekorg
                             AND RETURN.
                  ENDLOOP.
              ENDLOOP.
    Within the program zricef666 , i am calling the below program to extend vendor.
    SUBMIT RFBIKR00 WITH ds_name = FICH
                   WITH xlog = ld_mark
                    AND RETURN.
    Now the problem i am facing is that the first vendor got extended sucessfully for the first PO.But for the second PO , the screen fields are blank and it stuckes in that screen. But in the session i am able to clearly see the data are there but these data are not passing to the screen of XK01.
        Need help to solve this problem from you all.Thanks in advance.
    With Regards,
    Ajit Prasad.

    Hello Ajit, try with the following code and reward if useful. the following code uses the transaction XK01.
    REPORT zbdcxk01 .
    DATA: BEGIN OF itab OCCURS 0,
            lifnr LIKE rf02k-lifnr,
            bukrs LIKE rf02k-bukrs,
            ktokk LIKE rf02k-ktokk,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            land1 LIKE lfa1-land1,
            brsch LIKE lfa1-brsch,
            akont LIKE lfb1-akont,
            zterm LIKE lfb1-zterm,
            reprf LIKE lfb1-reprf,
            zwels LIKE lfb1-zwels,
          END OF itab.
    DATA: rc TYPE i,
          flag TYPE i VALUE 1,
          it_files TYPE filetable,
          bdc_data TYPE STANDARD TABLE OF bdcdata WITH HEADER LINE.
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
    PARAMETERS: p_file(1024) TYPE c OBLIGATORY.
    PARAMETERS:dismode DEFAULT 'A',
               updmode DEFAULT 'S'.
    SELECTION-SCREEN : END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
      CHANGING
         file_table              = it_files
         rc                      = rc.
    *Read the Filename into P_FILE
      READ TABLE it_files INDEX 1 INTO p_file.
    START-OF-SELECTION.
      PERFORM getdata.
      PERFORM create_session.
      LOOP AT itab.
        PERFORM fill_bdc_table.
      ENDLOOP.
      PERFORM close_session.
    END-OF-SELECTION.
      PERFORM submit.
    *&      Form  getdata
    *       text
    FORM getdata.
      DATA: file TYPE string.
      file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = file
                has_field_separator     = 'X'
           TABLES
                data_tab                = itab
           EXCEPTIONS
                file_open_error         = 1
                file_read_error         = 2
                no_batch                = 3
                gui_refuse_filetransfer = 4
                invalid_type            = 5
                no_authority            = 6
                unknown_error           = 7
                bad_data_format         = 8
                header_not_allowed      = 9
                separator_not_allowed   = 10
                header_too_long         = 11
                unknown_dp_error        = 12
                access_denied           = 13
                dp_out_of_memory        = 14
                disk_full               = 15
                dp_timeout              = 16
                OTHERS                  = 17.
    *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.                    " getdata
    *&      Form  CREATE_SESSION
    *       text
    FORM create_session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         client                    = sy-mandt
    *   DEST                      = FILLER8
         group                     = 'MYGROUP'
    *   HOLDDATE                  = FILLER8
         keep                      = 'X'
         user                      = sy-uname
    *   RECORD                    = FILLER1
    * IMPORTING
    *   QID                       =
       EXCEPTIONS
         client_invalid            = 1
         destination_invalid       = 2
         group_invalid             = 3
         group_is_locked           = 4
         holddate_invalid          = 5
         internal_error            = 6
         queue_error               = 7
         running                   = 8
         system_lock_error         = 9
         user_invalid              = 10
         OTHERS                    = 11
      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.                    " CREATE_SESSION
    *&      Form  CLOSE_SESSION
    FORM close_session.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
           EXCEPTIONS
                not_open    = 1
                queue_error = 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.
    ENDFORM.                    " CLOSE_SESSION
    *&      Form  FILL_BDC_TABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_bdc_table.
      REFRESH bdc_data.
      PERFORM operation.
      CALL FUNCTION 'BDC_INSERT'
       EXPORTING
         tcode                  = 'XK01'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
        TABLES
          dynprotab              = bdc_data
    * EXCEPTIONS
    *   INTERNAL_ERROR         = 1
    *   NOT_OPEN               = 2
    *   QUEUE_ERROR            = 3
    *   TCODE_INVALID          = 4
    *   PRINTING_INVALID       = 5
    *   POSTING_INVALID        = 6
    *   OTHERS                 = 7
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM bdc_transaction USING 'XK01'.
    ENDFORM.                    " FILL_BDC_TABLE
    *&      Form  BDC_DYNPRO
    *       texT
    *  -->  p1        text
    *  <--  p2        text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdc_data.
      bdc_data-program = program.
      bdc_data-dynpro = dynpro.
      bdc_data-dynbegin = 'X'.
      APPEND bdc_data.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
    *       text
    FORM bdc_field USING fnam fval.
      CLEAR bdc_data.
      bdc_data-fnam = fnam.
      bdc_data-fval = fval.
      APPEND bdc_data.
    ENDFORM.                    " BDC_FIELD
    *&      Form  BDC_TRANSACTION
    FORM bdc_transaction USING tcode.
      CALL TRANSACTION tcode USING bdc_data
                             MODE   dismode
                             UPDATE updmode
                             MESSAGES INTO messtab.
    ENDFORM.                    " BDC_TRANSACTION
    *&      Form  SUBMIT
    *       text
    FORM submit.
      SUBMIT rsbdcsub EXPORTING LIST TO MEMORY AND RETURN
    *                  user sy-uname
                        WITH mappe = 'MYGROUP'
                        WITH von   = sy-datum
                        WITH bis   = sy-datum
                        WITH z_verarb = 'X'.
    ENDFORM.                    " SUBMIT
    *&      Form  OPERATION
    *       text
    FORM operation.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RF02K-KTOKK'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RF02K-LIFNR'
                                    itab-lifnr.
      PERFORM bdc_field       USING 'RF02K-BUKRS'
                                    itab-bukrs.
      PERFORM bdc_field       USING 'RF02K-KTOKK'
                                    itab-ktokk.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFA1-SORTL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFA1-NAME1'
                                    itab-name1.
      PERFORM bdc_field       USING 'LFA1-SORTL'
                                    itab-sortl.
      PERFORM bdc_field       USING 'LFA1-LAND1'
                                    itab-land1.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0120'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFA1-BRSCH'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFA1-BRSCH'
                                    itab-brsch.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFBK-BANKS(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTR'.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0210'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFB1-AKONT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFB1-AKONT'
                                    itab-akont.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0215'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFB1-REPRF'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=UPDA'.
      PERFORM bdc_field       USING 'LFB1-ZTERM'
                                    itab-zterm.
      PERFORM bdc_field       USING 'LFB1-REPRF'
                                    itab-reprf.
      PERFORM bdc_field       USING 'LFB1-ZWELS'
                                    itab-zwels.
      PERFORM bdc_transaction USING 'XK01'.
    ENDFORM.                    " OPERATION

  • How to pass values to select options of custom transactions?

    I have to call custom transaction-ZMM_POST  from my custom report.
    I have to pass values to select options(Not to parameters) of ZMM_POST  from my report only.
    Please tell me how to pass values to select options of custom transactions?

    Have you tried this?
    DATA: T_RSPARAMS TYPE STANDARD TABLE OF RSPARAMS WITH HEADER LINE.
    T_RSPARAMS-SELNAME = "S_BUKRS".
    T_RSPARAMS-KIND = "S".
    T_RSPARAMS-SIGN = "I".
    T_RSPARAMS-OPTION = "BT".
    T_RSPARAMS-LOW = "100".
    T_RSPARAMS-HIGH = "300"
    APPEND T_RSPARAMS.
    SUBMIT Z_DUMMY WITH SELECTION-TABLE  T_RSPARAMS.
    Greetings,
    Blag.

  • Dashboard prompt value is not passing into the report

    Hi,
    I am using OBIEE 10g. The problem is in Oracle BI Answers
    I have a prompt and its related report. In the prompt, in one of the column, I am using sql result. The sql query is a co-related sub query where i have used 2 tables. employee_data and employee_region. The reason for using sub-query is that there is no data_center column in the employee_data table. It has the records for all the data_center e.g USA, UK,IND,AUSTRALIA etc So, I used the sub query with condition which will give the result on a particular data center (here it is USA) and this sub query's output is input for the main query. And the prompts works fine and gives correct result
    The sql query used for the column in the prompt (in Oracle BI Answers) as
    SELECT EMPLOYEE_DATA.ENAME FROM EMPLOYEE WHERE EMPLOYEE_DATA.ENAME IN (SELECT EMPLOYEE_REGION.ENAME FROM EMPLOYEE WHERE EMPLOYEE_REGION.DATA_CENTER = 'USA')Now in the report, there are 2 coulmns. - EMPLOYEE_DATA.ENAME and EMPLOYEE_REGION.DATA_CENTER
    I have used the main column EMPLOYEE_DATA.ENAME for filter as 'prompted'.
    The problem is the value from the prompt is not passing from the prompt to the report, what I found. Because, instead of showing the result for 'USA' data_center, It also shows other data_center 's (UK,IND,AUSTRALIA) data.
    How filter condition I should use for EMPLOYEE_DATA.ENAME column in the report so that the prompt value will pass to the report properly ?
    Thanks
    Edited by: Kuldip on Feb 21, 2013 6:17 AM

    Hi Kuldip,
    There are 2 ways of doing it.
    1. Nice and good: For the section where the report is put have a condition to display only if it returns rows. For details please refer to :
    http://bischool.wordpress.com/category/guided-navigation/
    2. The easy way: Add a "No Result" view to your report and add few spaces in the text.
    Let me know if this helped.
    Regards,
    Jay

  • Filters 'OR' function not passing the values to the sql

    Hi,
    I am facing an issue with the 'OR' function on the filters that are used in the reports.
    The report needs to fetch all the records on the three tables as the user enters the value in the dashboard prompts.
    eg: [   update_dt_A1 is prompted
    and user_name_A1 is prompted ]
    or
    [    update_dt_B1 is prompted
    and user_name_B1 is prompted ]
    or
    [    update_dt_C1 is prompted
    and user_name_C1 is prompted ]
    The values entered in the dashboard prompt gets passed to the filter, but the vaules are not passed over to the SQL that runs on the database, hence the reports shows all values and does not reflect the values entered.
    When the 'OR' function is replaced with 'AND' the values get passed to the SQL.
    Can anyone help on what is the issue on the filters?
    Thanks

    Here is how my Filters are set up
    Vendor Name is Prompted
    AND
    Vendor Number is Prompted
    AND
    [   [Last_update_date_Vendor is prompted
    AND
    User_name_Vendor is prompted]
    OR
    [Last_update_date_Site is prompted
        AND
        User_name_Site is prompted]
    OR
    [Last_update_date_Bank is prompted
        AND
        User_name_Bank is prompted]
    The values from the dashboard prompts gets passed to the filter, but the sql that runs does not take the values in the where clause.

Maybe you are looking for

  • Solution Manager 4.0 Optimizer

    During the course configuring the Solution Manager 4.0 Optimizer from the Change  Management --> Support Packages Stack; I got this error "Current IBase component is not in an active IBase".  What & where I need to config / assign the iBase component

  • Unable to open PDF's

    Using Reader, I am unable to open PDF's that have been downloaded from the web.  I get he following error message: This is a new problem.  I can open other PDF's.  I am using Reader 11.0.06 on a MacBook Pro with Mountain Lion.

  • Hi..! TOO BIG TO HANDLE OR SOME OTHER ERROR

    Hi, I am getting the following error when i am trying to run an plsql program.. what may be the reason.. the first and last lines are debugs in my program... Control is not going to the function what may be the reason.. error message is as follows..

  • I cant uninstall itunes files not found?

    i have tried to access the itunes store with no luck i tried to uninstall my itunes and reinstall but it says no file found? I can pull up itunes on my laptop i can listen to playlist but cant do much else?

  • Finding field name

    Hi friends, I have to add two fields in a customer based report , i know only the description of field name 'Customer comments' and 'contact notes'. in which table i have to search for getting SAP database field. i have searched in customer master da