Prob. in a report

Hi,
I m stuck in a probelem while creating a repot for Oracle Financials.
I created a report of which there are diffrent parameters and one of the parameter is Set_of_book_id .Now I want dat dis parameter shud automatically get its value as the particular user chooses the Set of book id.
Pls help

Paritosh
for you to populate the set of books id by default, you have to go to Concurrent Program Definition Form and in the Parameters select Set of Books Id parameter and type "Profile" in the Default text box under Validation block and then type GL_SET_OF_BKS_ID in Default Value text box.
hope this is what you are looking for.
Thanks
Santosh

Similar Messages

  • Prob in alv report

    hi all,
    I hav prob in alv report .I made a purchse register alv report.when I see output it show's everything right but in printpreiew and when transfer to spreadsheet. It cut's back part of voucher number.for ex.v.no :5100021 but see in print priew itshow's like this 51000... and in excel sheet it cut down the last no. so it creates rundancy of voucher no. plz tell me sol. I don't know wat is happening.
    regards,
    hemlata

    hi hemlata.
    you can do this for the voucher number in your fieldcat.
    give the outputlen as the maximum outputlength of the voucher no.
    fieldcat-fieldname = 'VOUCHER'.
    fieldcat-...
    <b>fieldcat-NO_ZERO = 'X'.</b>
    append fieldcat to it_fieldcat.
    and now check it.
    Regards
    vijay

  • Header prob. in ALV report

    Hi All,
    Hope you all are doing fine!!!
    In the below program am trying to print the top-of-page/header in alv report,,but am unable to do it..
    Am working on 4.6c version,,,,,its working fine in ECC 6.0 but i really dont understand why its not working in 4.6c...AM JUST PASTING THE ALV PART...!!!
    Pls. do the needful
    REPORT yjack  LINE-SIZE 132
                    LINE-COUNT 65
                    NO STANDARD PAGE HEADING.
    DATA: /sie/swe_ag0_rdo TYPE /sie/swe_ag0_rdo,
          wa_tvko TYPE tvko,
          /sie/swe_ag0_raa TYPE /sie/swe_ag0_raa,
          wa_kna1 TYPE kna1,
          wa_t001 TYPE t001,
          wa_tvkot TYPE tvkot,
          /sie/swe_ag0_con TYPE /sie/swe_ag0_con,
          /sie/swe_ag0_r02 TYPE /sie/swe_ag0_r02.
    TYPES: BEGIN OF ty_itab,
             bukrs TYPE /sie/swe_ag0_rdo-bukrs,
             vkorg TYPE /sie/swe_ag0_rdo-vkorg,
             zclpr TYPE /sie/swe_ag0_rdo-zclpr,
             zcdaz TYPE /sie/swe_ag0_rdo-zcdaz,
             vbeln TYPE /sie/swe_ag0_rdo-vbeln,
             posnr TYPE /sie/swe_ag0_rdo-posnr,
             vbtyp TYPE /sie/swe_ag0_rdo-vbtyp,
             zidag TYPE /sie/swe_ag0_rdo-zidag,
             zimpp TYPE /sie/swe_ag0_rdo-zimpp,
             zimco TYPE /sie/swe_ag0_rdo-zimco,
             zimmg TYPE /sie/swe_ag0_rdo-zimmg,
             fkdat TYPE /sie/swe_ag0_rdo-fkdat,
             zstre TYPE /sie/swe_ag0_rdo-zstre,
             vtweg TYPE /sie/swe_ag0_rdo-vtweg,
             kunrg TYPE /sie/swe_ag0_rdo-kunrg,
          END OF ty_itab.
    TYPES: BEGIN OF ty_itab2,
             bukrs TYPE /sie/swe_ag0_rdo-bukrs,
             vkorg TYPE /sie/swe_ag0_rdo-vkorg,
             zcdaz TYPE /sie/swe_ag0_rdo-zcdaz,
             fkdat TYPE /sie/swe_ag0_rdo-fkdat,
             vbeln TYPE /sie/swe_ag0_rdo-vbeln,
             zimpp TYPE /sie/swe_ag0_rdo-zimpp,
             zimco(5) TYPE p DECIMALS 2,
             zimmg(5) TYPE p DECIMALS 2,
             resid(6) TYPE p DECIMALS 2,
             kunrg TYPE /sie/swe_ag0_rdo-kunrg,
             name1 TYPE kna1-name1,
          END OF ty_itab2.
    type-pools: slis.
    types: begin of ty_final,
           bukrs type char29,
           vkorg type char24,
           mese  type char17,
           gjahr type gjahr,
           agent type char45,
           vbeln type vbeln,
           fkdat type fkdat,
           zimpp type /SIE/SWE_AG0_ZIMPP,
           zimco type /SIE/SWE_AG0_ZIMCO,
           zimmg type /SIE/SWE_AG0_ZIMMG,
           resid(5) TYPE p DECIMALS 2,
           kunrg type kunrg,
           name1 type NAME1_GP,
           end of ty_final.
    data: it_final type table of ty_final,
          wa_final type ty_final,
          g_bukrs(29) type c,
          g_vkorg(24) type c.
    data: it_fieldcat type slis_t_fieldcat_alv,
          it_layout type slis_layout_alv,
          it_list_top_of_page type slis_t_listheader,
          it_events type slis_t_event,
          wa_events type slis_alv_event,
          it_headings type slis_t_listheader,
          wa_headings type slis_listheader.
    constants: c_h type c value 'H',
               c_s type c value 'S'.
    field-symbols: <fs_final> type ty_final.
    DATA: it_itab TYPE TABLE OF ty_itab,
          it_itab2 TYPE TABLE OF ty_itab2,
          wa_itab TYPE ty_itab,
          wa_itab2 TYPE ty_itab2.
    DATA: wa_app TYPE ty_itab.
    DATA: w_var TYPE c VALUE '1',
          w_com_mese(9) TYPE c,
          w_flag_st TYPE c.
    $$ Selection-screen
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK parametri WITH FRAME TITLE text-001.
    BEG MOD ESX00596 IMS:100276414 TR:SWIK9A04W7 11.04.2007
    *PARAMETERS: p_bukrs LIKE /sie/swe_ag0_rdo-bukrs OBLIGATORY.
    *PARAMETERS: p_vkorg LIKE /sie/swe_ag0_rdo-vkorg OBLIGATORY.
    PARAMETERS: p_bukrs TYPE /sie/swe_ag0_rdo-bukrs OBLIGATORY.
    PARAMETERS: p_vkorg TYPE /sie/swe_ag0_rdo-vkorg OBLIGATORY.
    SELECT-OPTIONS: s_zcdaz FOR /sie/swe_ag0_rdo-zcdaz OBLIGATORY
                            MATCHCODE OBJECT /sie/swe_ag0_zaa.
    PARAMETERS: mese(2) TYPE n OBLIGATORY,
                anno TYPE /sie/swe_ag0_rdo-gjahr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK parametri.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: c1 AS CHECKBOX.
    SELECTION-SCREEN COMMENT 8(31) text-006 FOR FIELD c1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN: END OF BLOCK b1.
    DATA: w_cd_a   TYPE /sie/swe_ag0_rdo-vtweg,
          w_cd_gen TYPE /sie/swe_ag0_rdo-vtweg,
          w_cd_di  TYPE /sie/swe_ag0_rdo-vtweg,
          w_cd_re  TYPE /sie/swe_ag0_rdo-vtweg,
          w_cd_te  TYPE /sie/swe_ag0_rdo-vtweg,
          w_cd_ca  TYPE /sie/swe_ag0_rdo-vtweg.
    INITIALIZATION.
      PERFORM selezione_hard_coding.
    $$ At selection-screen
    AT SELECTION-SCREEN.
      PERFORM controlli.
    $$ Top-of-page
    TOP-OF-PAGE.
      PERFORM top_of_page.
    $$ Start-of-selection
    START-OF-SELECTION.
      perform build_events.
      PERFORM carica_itab.
      PERFORM carica_itab2.
      PERFORM stampa.
    END-OF-SELECTION.
    IF C1 EQ 'X'.
    perform fill-fieldcatalog.
    perform display_alv.
    ENDIF.
    *&      Form  fill-fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    form fill-fieldcatalog.
    data: l_fieldcat TYPE slis_fieldcat_alv.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'BUKRS'.
          l_fieldcat-col_pos       = 1.
          l_fieldcat-seltext_l     = 'Company'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'VKORG'.
          l_fieldcat-col_pos       = 2.
          l_fieldcat-seltext_l     = 'Comm. Organization'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'MESE'.
          l_fieldcat-col_pos       = 3.
          l_fieldcat-seltext_l     = 'Month'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'GJAHR'.
          l_fieldcat-col_pos       = 4.
          l_fieldcat-seltext_l     = 'Year'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'AGENT'.
          l_fieldcat-col_pos       = 5.
          l_fieldcat-seltext_l     = 'AGENT'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'VBELN'.
          l_fieldcat-col_pos       = 6.
          l_fieldcat-seltext_l     = 'Invoice'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'FKDAT'.
          l_fieldcat-col_pos       = 7.
          l_fieldcat-seltext_l     = 'Date'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'ZIMPP'.
          l_fieldcat-col_pos       = 8.
          l_fieldcat-seltext_l     = 'Taxable'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'ZIMCO'.
          l_fieldcat-col_pos       = 9.
          l_fieldcat-seltext_l     = 'Tot.Comm.'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'ZIMMG'.
          l_fieldcat-col_pos       = 10.
          l_fieldcat-seltext_l     = 'Settle'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'RESID'.
          l_fieldcat-col_pos       = 11.
          l_fieldcat-seltext_l     = 'Accruing'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'KUNRG'.
          l_fieldcat-col_pos       = 12.
          l_fieldcat-seltext_l     = 'Cust.Code'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
          l_fieldcat-tabname       = 'IT_FINAL'.
          l_fieldcat-fieldname     = 'NAME1'.
          l_fieldcat-col_pos       = 13.
          l_fieldcat-seltext_l     = 'Company Name'.
          APPEND l_fieldcat TO it_fieldcat.
          clear l_fieldcat.
    endform.                    " fill-fieldcatalog
    *&      Form  display_alv
          text
    -->  p1        text
    <--  p2        text
    form display_alv.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       I_CALLBACK_TOP_OF_PAGE            = 'PRINT_HEADING'
       IS_LAYOUT                         = it_layout
       IT_FIELDCAT                       = it_fieldcat
       IT_EVENTS                         = it_events
      TABLES
        t_outtab                          = it_final
    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_alv
    *&      Form  build_events
          text
         -->P_IT_EVENTS[]  text
    form build_events.
    clear wa_events.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = it_events.
    read table it_events into wa_events with key name = 'TOP_OF_PAGE'.
    if sy-subrc eq 0.
    wa_events-form = 'PRINT_HEADING'.
    modify it_events from wa_events transporting form
        where name = 'TOP_OF_PAGE'.
    endif.
    endform.                    " build_events
    form PRINT_HEADING.
    clear wa_headings.
    wa_headings-typ = 'H'.
    wa_headings-info = 'DEMO FOR ALV!!!'.
    append wa_headings to it_headings.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        it_list_commentary       = it_headings.
    endform.
    Thanks n Regards
    Jack

    Hi friend,
    I think u have to remove below lines in your program because FM 'REUSE_ALV_GRID_DISPLAY' will call directly Form 'PRINT_HEADING'   for TOP-OF-PAGE event through table 'it_events' :
    Remove lines:
        TOP-OF-PAGE.
        PERFORM top_of_page.
    Also remove the parameter
    I_CALLBACK_TOP_OF_PAGE = 'PRINT_HEADING' in  FM 'REUSE_ALV_GRID_DISPLAY'
    Also put a breakpoint in your program in the line,
    START-OF-SELECTION.
    perform build_events.
    See whether 'form' 'name' gets populated in table 'it_events'  or not.
    See sample report and compare.
    REPORT zawi_assign3 NO STANDARD PAGE HEADING.
    TYPE-POOLS: slis.
    DATA: BEGIN OF gt_outtab OCCURS 0.
            INCLUDE STRUCTURE ekpo.
    DATA: END OF gt_outtab,
          gs_layout TYPE slis_layout_alv,
          g_exit_caused_by_caller,
          gs_exit_caused_by_user TYPE slis_exit_by_user,
          g_repid LIKE sy-repid.
    DATA:
        gt_events      TYPE slis_t_event,
        gt_list_top_of_page TYPE slis_t_listheader,
        g_status_set   TYPE slis_formname VALUE 'PF_STATUS_SET',
        g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
        g_top_of_page  TYPE slis_formname VALUE 'TOP_OF_PAGE',
        g_top_of_list  TYPE slis_formname VALUE 'TOP_OF_LIST',
        g_end_of_list  TYPE slis_formname VALUE 'END_OF_LIST'.
    DATA: gs_variant LIKE disvariant,
          g_save.
    INITIALIZATION.
      g_repid = sy-repid.
      PERFORM layout_init USING gs_layout.
      PERFORM eventtab_build USING gt_events[].
      gs_variant-report = g_repid.
      g_save           = 'X'.
    START-OF-SELECTION.
      PERFORM select_data TABLES gt_outtab.
    END-OF-SELECTION.
      PERFORM comment_build USING gt_list_top_of_page[].
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
             i_background_id    = 'ALV_BACKGROUND'
             i_buffer_active    = 'X'
             i_callback_program = g_repid
             i_structure_name   = 'ekpo'
             is_layout          = gs_layout
             i_save             = g_save
             is_variant         = gs_variant
             it_events          = gt_events[]
        IMPORTING
             e_exit_caused_by_caller = g_exit_caused_by_caller
             es_exit_caused_by_user  = gs_exit_caused_by_user
        TABLES
             t_outtab = gt_outtab
        EXCEPTIONS
             program_error = 1
             OTHERS        = 2.
      IF sy-subrc = 0.
        IF g_exit_caused_by_caller = 'X'.
        ELSE.
          IF gs_exit_caused_by_user-back = 'X'.
          ELSE.
            IF gs_exit_caused_by_user-exit = 'X'.
            ELSE.
              IF gs_exit_caused_by_user-cancel = 'X'.
              ELSE.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ELSE.
      ENDIF.
    FORM select_data TABLES rt_outtab LIKE gt_outtab[].
      SELECT * FROM ekpo INTO CORRESPONDING FIELDS
                       OF TABLE rt_outtab
                       UP TO 00030 ROWS.
    ENDFORM.                    "SELECT_DATA
    FORM layout_init USING rs_layout TYPE slis_layout_alv.
      rs_layout-detail_popup      = 'X'.
      rs_layout-edit = 'X'.
    ENDFORM.                    "LAYOUT_INIT
    FORM eventtab_build USING rt_events TYPE slis_t_event.
    *"Registration of events to happen during list display
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = rt_events.
      READ TABLE rt_events WITH KEY name = slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE g_top_of_page TO ls_event-form.
        APPEND ls_event TO rt_events.
      ENDIF.
    ENDFORM.                    "EVENTTAB_BUILD
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          i_logo             = 'ENJOYSAP_LOGO'
          it_list_commentary = gt_list_top_of_page.
    ENDFORM.                    "TOP_OF_PAGE
    FORM comment_build USING lt_top_of_page TYPE
                                            slis_t_listheader.
      DATA: ls_line TYPE slis_listheader.
      CLEAR ls_line.
      ls_line-typ  = 'H'.
      ls_line-info = text-100.
      APPEND ls_line TO lt_top_of_page.
      CLEAR ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'Program'.
      ls_line-info = sy-repid.
      APPEND ls_line TO lt_top_of_page.
      CLEAR ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'User'.
      ls_line-info = sy-uname.
      APPEND ls_line TO lt_top_of_page.
    ENDFORM.                    "COMMENT_BUILD
    Might solve your problem.
    Thanks.
    Edited by: Sap Fan on Feb 20, 2009 9:50 AM
    Edited by: Sap Fan on Feb 20, 2009 9:52 AM
    Edited by: Sap Fan on Feb 20, 2009 9:54 AM

  • Prob in Submit Report via Selection screen.

    Hi,
    I have to submit a report via selection screen.
    The report name is detemined at run time.
    This i am able to handle easily as we can use SUBMIT (V_PROG)...
                                   WHERE V_PROG contains the name of the report that i get at runtime...
    Now the issue :::::::
    I have to also populate a select-options on the called report on submit.
    usually this is done by :
                                                SUBMIT (V_PROG)
                                                name of select-option in itab...
    However in my case the name of the <name of select-option> is also detemined at runtime say PNPPERNR.
    Now if i use any variable / field symbol for the name of the select - option (like for the called program), it does not work (the called report does not have the values i populate in ITAB for the particular select-option)
    I have also tried Macro but cant find solution...
    ANY IDEAS ??

    Hi Anuj,
    When you are getting the report name in runtime, you can also get the report selection screen information during runtime.
    Now how are you going to decide which values you will move to which selection screen variables of which report? If you have a way to determine this, then here is a program that works on that assumption.
    REPORT ztest1 .
    DATA: i_seltab          TYPE TABLE OF rsparams WITH HEADER LINE,
          i_selections_info TYPE TABLE OF selinfo WITH HEADER LINE.
    DATA: v_report LIKE sy-repid,
          v_matnr  LIKE mara-matnr.
    PARAMETERS: p_rep1 RADIOBUTTON GROUP rad DEFAULT 'X',
                p_rep2 RADIOBUTTON GROUP rad.
    SELECT-OPTIONS: s_matnr FOR v_matnr.
    START-OF-SELECTION.
      IF p_rep1 = 'X'.
    *-- some criteria to determine the name of the report
        v_report = 'ZTEST2'.
      ELSE.
        v_report = 'ZTEST4'.
      ENDIF.
    *-- get the parameters for the report
      CALL FUNCTION 'RS_SELECTIONS_DESCRIPTION'
           EXPORTING
                report              = v_report
           TABLES
                selections_info     = i_selections_info
           EXCEPTIONS
                no_selections       = 1
                report_not_existent = 2
                subroutine_pool     = 3
                OTHERS              = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT i_selections_info WHERE name = 'S_MATNR'.
    *-- some criteria based on which, move the values from this program
    *   to the called program
        CLEAR i_seltab.
        i_seltab-selname = i_selections_info-name.
        i_seltab-kind    = i_selections_info-kind.
        i_seltab-sign    = 'I'.
        i_seltab-option  = 'EQ'.
        i_seltab-low     = s_matnr-low.
        i_seltab-high    = s_matnr-high.
        APPEND i_seltab.
      ENDLOOP.
      IF NOT i_seltab[] IS INITIAL.
        SUBMIT (v_report) VIA SELECTION-SCREEN
                WITH SELECTION-TABLE i_seltab .
      ENDIF.
    If this works for you, please reward and close the post.
    Regards,
    Srinivas

  • Probs sharing a report that uses SETPARAM to pass multiple parameters

    Ok we have master DB account Disco that creates reports. I also have oracle acct Duser for the users to run the reports.
    Per Metalink Note:304192.1, we've got the setparam stuff working to pass in date parameters into our sheet. This works fine when I run the report as Disco. When I try to share the report to Duser, it still prompts for the dates, but then the report returns all 0's for the results. I have no idea why this is happening.
    Any suggestions on how to share reports with other users that pass in parameters would be much appreciated. thanks!!
    Allen

    Hi Allen,
    I would always recommend that you use sys_context to pass parameters. You can search this site for sys_context or take a look at (Re: Passing multiple parameters into Custom Folder... for more details.
    Rod West

  • Download prob in  ALV report

    Hi,
       While downloading the data from the ALV report the last few columns are coming on next line when data is more.
    Wht should i do?? Pl help..
    Regards,
    Rushikesh

    Hi,
    I have faced the same kind of problem but not with downloading , while uploading the excel file to SAP. The problem is that, If the line of excel sheet exceed 4096 characters, it used to take the remaining first line as a second line. Whatever be th FM, the same problem will come up I hope, because I_TAB_RAW_DATA field of a FM is of type : <b>types truxs_t_text_data(4096) type c occurs 0.</b>
    -SatyaPriya

  • Error in report wizard

    Hi
    I have XMLP 5.6.2 installed i was creating a sample which is on otn http://www.oracle.com/technology/pub/articles/rittman-xmlpub.html here. in this sample when i had to create report in template builder (word doc ) using report wizard it took me through the process of entering the UN,PWD and url to connect i have entered all the things properly.In Jdev i checked with DB connectivity for the same url and other details it's connecting.
    Prob is : Through report wizard i'm not able to connect to the same url,sid.port etc.. it says network adapter connection failed. Error is
    Creating XDO Report at: Tue Dec 19 17:43:10 IST 2006
         sql = select     CUST_DET.CUST_ID as CUST_ID,
         CUST_DET.CUST_NUM as CUST_NUM,
         CUST_DET.SALESORDERID as SALESORDERID
    from     SCOTT.CUST_DET CUST_DET
         description = SalesOrderReport for a sample table
         port = 1521
         user = scott
         host = @10.187.152.45
         sid = oracle
         ReportParameters = {}
         path = C:\XMLP\SalesOrder
         data_source_name = COEDB
         name = SalesOrder
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3664)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at CreateXDOReport.getConnection(CreateXDOReport.java:49)
         at CreateXDOReport.createXDOReport(CreateXDOReport.java:142)
         at CreateXDOReport.process(CreateXDOReport.java:108)
         at CreateXDOReport.main(CreateXDOReport.java:298)
    in sql plus it's working fine. Kindly reply for this what may be the problem.
    Thanks

    Hi.
    I am running developer 6i on my home machine (with Oracle 8i, v 8.1.7). I am at work at the moment, and I can't recall what the Reports version is. The same error occurs with Forms.
    The filename that I downloaded is called 'd2k6irelease2.tar'.
    I downloaded the version that is currently on Oracle OTN's download site, so I presume that is the latest version that should contain all patches, updates, etc.
    Thank you for responding!

  • Changing Report Server name

    How can I change Report Server Name.
    I have installed Report Server rep60_ifs. Because I have problems , I want to change it.

    I was created new REport Server Service REPSRVGORDE
    with following entry in tnsnames.ora ( on 9iAS)
    repsrvgorde.world=(ADDRESS=(PROTOCOL=TCP)(HOST=IFS)(PORT=1949).
    In My Form in the trigger WHEN_BUTTON_PRESSED:
    declare
         L_REPID REPORT_OBJECT;
         L_REP VARCHAR2(200);
    begin
    l_repid := Find_Report_Object('REPORT8');
    Set_Report_Object_Property(l_repid, REPORT_FILENAME, 'ajde');
    Set_Report_Object_Property(l_repid, REPORT_EXECUTION_MODE, RUNTIME);
    Set_Report_Object_Property(l_repid,REPORT_SERVER, 'repsrvgorde');
    Set_Report_Object_Property(l_repid, REPORT_DESformat, 'HTML');
    Set_Report_Object_Property(l_repid, REPORT_DESNAME, 'proba');
    -- run the report
    l_rep := Run_Report_Object(l_repid);
    :block3.pr:=L_REP;
    WEB.SHOW_DOCUMENT('HTTP://.../.../rwcgi60.exe/GETJOBID='||L_REP||'?server='||'repsrvgorde','_BLANK');
    END;
    When I am running this code , I'm getting the report_job_id, and after that the message " FRM-41214 Unable to run report"
    What's the problem now?????

  • Problem with report COMPUTE SUM

    hi @all
    hope sombody can help me
    i have a prob with a report in sql, see script below:
    CLEAR COLUMNS BREAKS COMPUTES;
    COLUMN WORK_TYPE FORMAT a95 HEADING 'Work Type' ENTMAP off
    COLUMN TEXT FORMAT a95 HEADING 'Work Description' ENTMAP off
    COLUMN TOTAL_MAN_MINUTES FORMAT 9999.99 HEADING 'Working Hours' ENTMAP off
    COLUMN TOTAL_MAINT_MAN_MINUTES FORMAT 9999.99 HEADING 'Maintanance Hours' ENTMAP off
    BREAK ON report
    COMPUTE SUM OF TOTAL_MAN_MINUTES TOTAL_MAINT_MAN_MINUTES ON report
    SELECT MWO.WORK_TYPE AS Work_TYpe, WORK_TYPE.TEXT AS Description, SUM(TRUNC(MAINT_ACTION.TOTAL_MAN_MINUTES / 60, 2)) AS Working_Hours, SUM(TRUNC(MAINT_ACTION.TOTAL_MAINT_MAN_MINUTES / 60, 2)) AS Maintanance_Hours
    FROM MAINT_ACTION, MWO, WORK_TYPE
    WHERE MWO.MWO_ID = MAINT_ACTION.originating_mwo_id
    AND MWO.WORK_TYPE = WORK_TYPE.CODE
    AND MWO.AC_SERIAL_NO = 'AS0007'
    AND MAINT_ACTION.START_DATE_TIME_ACT >= '01.04.2010'
    AND MAINT_ACTION.START_DATE_TIME_ACT <= '01.05.2010'
    AND MWO.WORK_TYPE BETWEEN '000' AND '999'
    GROUP BY MWO.WORK_TYPE, WORK_TYPE.TEXT
    ORDER BY MWO.WORK_TYPE, WORK_TYPE.TEXT;
    what i expect is the total working_hours and maintanance_hours per column at the last line from the output, but what i get is only that below
    WORK_TYPE DESCRIPTION WORKING_HOURS MAINTANANCE_HOURS
    041, blablabla, 1,16, 0,58
    105, sülzsülz, 2, 1,5,
    348, bla, 3, 2,33,
    what is my mistake??
    sorry for my bad english
    cu ice
    Edited by: Icebear on May 14, 2010 1:28 AM

    Hi,
    The SQL*Plus command:
    COMPUTE SUM OF TOTAL_MAN_MINUTES TOTAL_MAINT_MAN_MINUTES ON reportmeans "from now on, any time there a result set has is a column called TOTAL_MAN_MINUTES or TOTAL_MAINT_MAN_MINUTES, print the grand total of that column at the end of the report."
    Your result set does not have columns with those names, so the COMPUTE statement does not apply to that query.
    The alias used in the output is what's important; SQL*Plus won't try to find out what columns from the table were used in deriving all the output columns.
    Try using the same column names in both the COMPUTE statement and the query.
    For example:
    COMPUTE SUM OF   Working_Hours   Maintanance_Hours    ON report

  • Issues with Safari 3.0.1 for windows

    Issues with Safari 3.0.1 for windows (at work):
    Lenovo T60 with intel core duo T7200 @2.00Ghz plus additional monitor (Lenovo ThinkVision) in extended desktop mode running Windows XP Pro 2002, SP2
    1. Taskbar is configured to autohide: when Safari is the top (active) window, it remains on top. If the taskbar pops up, it does so behind the Safari window, because I cannot see it.
    2. If an open Safari window is dragged to the external (secondary) monitor, then maximized, it disappears to the side. It is not closed. I can still find it via Alt-tab or in the task bar and can, by right-clicking ‘Move’ from the taskbar use the arrow keys to move the window back into place. Clicking to reduce the window, then re-maximizing leads to the window disappearing to the side again.
    3. In general my impression is that this does not function at a ‘beta’ level, but more of an ‘alpha’ level. Still very buggy.
    Jcw
    iMacIntel Duo 2Gh   Mac OS X (10.4.7)   1G-RAM, 250vRAM
    iMacIntel Duo 2Gh   Mac OS X (10.4.7)   1G-RAM, 250vRAM

    This is a beta...thats why they give you the option to report probs via the bug icon. Since you are having these probs try and report them, I am not sure if apple has the time to scan these forums to try and find the big probs that people are having. So unless you report bugs, (and wait until the final realease) then they might never get noticed and or fixed.

  • Nexus One, Player 10.1, in browser, MultiTouch not supported?

    HI,
    I am doing a google map app to work in flash player 10.1 in the browser on Nexus One (froyo).
    Here is the problem, Flash Player reports the nexus one as a non-multitouch device!
    MultiTouch works fine in device central, but NOT in the browser on nexus one.
    When I start the multitouch probe, it gets reported as:
    2 | MULTITOUCHER | Setting Multitouch.inputMode to GESTURE
    3 | MULTITOUCHER | Multitouch.maxTouchPoints = 0
    4 | MULTITOUCHER | Multitouch.supportedGestures =
    5 | MULTITOUCHER | Multitouch.supportsGestureEvents = false
    6 | MULTITOUCHER | Multitouch.supportsTouchEvents = false
    So obviously multitouch events do not get registered.
    I think the browser intercepts them, because when I zoom the whole browser window zooms, so the OS gets it allright.
    Nobody ever had this problem?
    Is there maybe some embed parameter to set?
    Thank you
    Filippo

    HI,
    I am doing a google map app to work in flash player 10.1 in the browser on Nexus One (froyo).
    Here is the problem, Flash Player reports the nexus one as a non-multitouch device!
    MultiTouch works fine in device central, but NOT in the browser on nexus one.
    When I start the multitouch probe, it gets reported as:
    2 | MULTITOUCHER | Setting Multitouch.inputMode to GESTURE
    3 | MULTITOUCHER | Multitouch.maxTouchPoints = 0
    4 | MULTITOUCHER | Multitouch.supportedGestures =
    5 | MULTITOUCHER | Multitouch.supportsGestureEvents = false
    6 | MULTITOUCHER | Multitouch.supportsTouchEvents = false
    So obviously multitouch events do not get registered.
    I think the browser intercepts them, because when I zoom the whole browser window zooms, so the OS gets it allright.
    Nobody ever had this problem?
    Is there maybe some embed parameter to set?
    Thank you
    Filippo

  • Objects not created after the AT USER-COMMAND

    Hi experts, gud evening. I'm new to ooabap. in my prog. after the at user-command the objects are not getting created. so i've created even before that. even then i couldn't get that created. so pls help me where the prob. is
    Prog :
    REPORT  yrj_my_oops.
          CLASS cl_vbak DEFINITION
    CLASS cl_vbak DEFINITION.
      PUBLIC SECTION.
        METHODS : load_data IMPORTING value(im_kunnr) TYPE vbak-kunnr,
                  display_head,
                  write_data.
      PROTECTED SECTION.
      PRIVATE SECTION.
        DATA : it_vbak TYPE TABLE OF vbak,
               wa_vbak TYPE vbak.
    ENDCLASS.                    "cl_vbak DEFINITION
    DATA : w_vbeln TYPE vbak-vbeln.
          CLASS cl_vbap DEFINITION
    CLASS cl_vbap DEFINITION.
      PUBLIC SECTION.
        METHODS : load_data IMPORTING value(im_vbeln) TYPE vbak-vbeln,
                  write_data.
      PROTECTED SECTION.
      PRIVATE SECTION.
        DATA : it_vbap TYPE TABLE OF vbap,
               wa_vbap TYPE vbap.
    ENDCLASS.                    "cl_vbap DEFINITION
          CLASS cl_vbap IMPLEMENTATION
    CLASS cl_vbap IMPLEMENTATION.
      METHOD load_data.
        SELECT * FROM vbap INTO TABLE it_vbap WHERE vbeln = w_vbeln.
      ENDMETHOD.                    "load_data
      METHOD write_data.
        LOOP AT it_vbap INTO wa_vbap.
          WRITE : /5 wa_vbap-posnr,
                  20 wa_vbap-matnr,
                  35 wa_vbap-arktx,
                  70 wa_vbap-netpr.
        ENDLOOP.
      ENDMETHOD.                    "write_data
    ENDCLASS.                    "cl_vbap IMPLEMENTATION
          CLASS cl_vbak IMPLEMENTATION
    CLASS cl_vbak IMPLEMENTATION.
      METHOD  load_data.
        SELECT * FROM vbak INTO TABLE it_vbak WHERE kunnr EQ im_kunnr.
      ENDMETHOD.                    "load_data
      METHOD display_head.
        WRITE : /5 'Order No.',
                15 'Order Date',
                30 'Net Value'.
      ENDMETHOD.                    "display_head
      METHOD write_data.
        LOOP AT it_vbak INTO wa_vbak.
          WRITE : /5 wa_vbak-vbeln,
                  15 wa_vbak-audat,
                  30 wa_vbak-netwr.
        ENDLOOP.
      ENDMETHOD.                    "write_data
    ENDCLASS.                    "cl_vbak IMPLEMENTATION
    PARAMETERS : p_kunnr TYPE vbak-kunnr.
    DATA   : o_vbak TYPE REF TO cl_vbak,
             o_vbap TYPE REF TO cl_vbap.
    START-OF-SELECTION.
      SET PF-STATUS : 'YRJ_MY_OOPS'.
      CREATE OBJECT o_vbak.
      CREATE OBJECT o_vbap.
      CALL METHOD o_vbak->load_data
        EXPORTING
          im_kunnr = p_kunnr.
      CALL METHOD o_vbak->display_head.
      CALL METHOD o_vbak->write_data.
    AT USER-COMMAND.
      w_vbeln = sy-lisel+4(10).
      CASE sy-ucomm.
        WHEN 'BACK' or 'EXIT'.
          LEAVE LIST-PROCESSING.
        WHEN 'ITEM'.
         CREATE OBJECT o_vbap.
          CALL METHOD o_vbap->load_data
            EXPORTING
              im_vbeln = w_vbeln.
          CALL METHOD o_vbap->write_data.
         WHEN OTHERS.
      ENDCASE.

    Hi,
    I dont see any problem with you code. I ran your code in my system and worked fine. Except for one thing that is you need to do a conversion exit on the w_vbeln before selecting data from VBAP in method load data. This is because when you ouput the data, the VBELN is converted to external format and thus needs to be converted to internal format if you want to do further selects based on it.
    CLASS cl_vbap IMPLEMENTATION.
      METHOD load_data.
    " Add this , so it converts the VBELN to internal format.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = w_vbeln
          IMPORTING
            output = w_vbeln.
        SELECT * FROM vbap INTO TABLE it_vbap WHERE vbeln = w_vbeln.
      ENDMETHOD. "load_data
      METHOD write_data.
        LOOP AT it_vbap INTO wa_vbap.
          WRITE : /5 wa_vbap-posnr,
          20 wa_vbap-matnr,
          35 wa_vbap-arktx,
          70 wa_vbap-netpr.
        ENDLOOP.
      ENDMETHOD. "write_data
    regards,
    Advait

  • Impact on if you change in material group

    Hi,
    Change in Material groups in Material master - System will not update the PR,PO,Stock
    Have to change all the documents to update the New Material groups.
    Update Material master by LSMW

    hi
    Impacts of changing material group
    1) If ur release strategy is based on material group it needs to modify ( Material group as charactaristics)
    2)If u r trying to extract any reports based on material group u will find discrepency bet reports as u r changing M.Group in betn.
    3)The data in the Info systems and BW etc. are  updated with the the "old" material group and so if you tried to compare them you would find differences.
    changing M . Group will not cause any major prob. but only reporting problems
    Vishal...

  • Email Messages showing in "sent" folder but recipients say they haven't received them - intermittent problem

    This only happens sometimes, to some email addresses. I see a similar prob has been reported but theirs was while in nicaragua - I am in exotic Scotland!
    Originanal recipients email me asking for certain messages i have previously sent but they have not received - I go into sent items & forward them to the original email address then they subsequently receive them!
    So nothing is lost, but it's irritating to send them again sometimes.
    Thank you

    Let be expand on what I have tried.
    I have 4 email accounts. From my Mail account on the Mac I send emails to  myself (1) and wife emails (2) at our cox account, gmail account (3) and iCloud account (4). All are received fine and show up in my sent folders and inbox
    I go to the Cox external website (webmail.west.cox.net) where I can log in as if I am on an external computer and send my self test messages from my cox account. I also get these
    I ask people to send me emails to all 4 accounts. I get these
    However when we send from the MAC Mail from either of our cox accounts, these do not get to their intended recipients even though they show up as being sent and as I copy myself they also get delivered to my inbox on the Mac. But that is as far as they go. The intended recipient does get them. Unfortunately, Mac Mail doesn't allow you to request a read receipt. so I have no way of knowing if they get them other than to ask them to respond each time.

  • Generate and display excel file

    Hi guys,
    Is there a way to generate and display excel file in sapgui without the need of downloading the excel file to local directory first?
    I found the following 2 ways of doing it, but both require me to download the generated xls file to local directory:
    #1 way:
    1. Generate the xls file using GUI_DOWNLOAD with the filename = 'c:\test.xls'.
    2. Call fm SAP_STARTS_EXCEL and pass in the parameter i_filename = 'c:\test.xls'
    #2 way:
    1. Generate the xls file using GUI_DOWNLOAD with the filename = 'c:\test.xls'.
    2. Upload it back using the below so that i can get it in xstring format.
    CALL FUNCTION 'GUI_UPLOAD'
         exporting
           filetype =  'BIN'
           filename = 'C:\test.xls'
         tables
           data_tab = itab.
    3. Then pass it to the cl_gui_html_viewer to display it.
    call method html_control->load_data
        exporting
          url          = 'test.xls'
          type         = 'application'
          subtype      = 'vnd.ms-excel'
        importing
          assigned_url = l_url
        changing
          data_table   = l_pdf_data
        exceptions
          others = 1.
    I prefer the #2 way as my program will get wrapped thru ITS server, and it seems the #1 way will not work. So is there any way i can get the excel file to be generated in xstring format so that i can pass to cl_gui_html_viewer straight away to display without having to save to local directory first?
    Any other suggestion apart from the above 2 ways are welcome as well.
    Thanks guys.

    Use function module ALV_XXL_CALL. It will solve ur prob immediately.
    REPORT  ZSKC_ALV_XXL.
    TYPE-POOLS : KKBLO.
    DATA : ITAB LIKE T100 OCCURS 0,
           T_FCAT_LVC TYPE LVC_S_FCAT OCCURS 0 WITH HEADER LINE,
           T_FCAT_KKB TYPE KKBLO_T_FIELDCAT.
    START-OF-SELECTION.
    * Get data.
      SELECT * UP TO 20 ROWS
      FROM   T100
      INTO   TABLE ITAB
      WHERE  SPRSL = SY-LANGU.
      CHECK SY-SUBRC EQ 0.
    * Create the field catalog.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
          I_STRUCTURE_NAME             = 'T100'
        CHANGING
          CT_FIELDCAT                  = T_FCAT_LVC[]
        EXCEPTIONS
          INCONSISTENT_INTERFACE       = 1
          PROGRAM_ERROR                = 2
          OTHERS                       = 3.
      CHECK SY-SUBRC EQ 0.
    * make sure you pass the correct internal table name in the field catalog.
      t_fcat_lvC-tabname = 'ITAB'.
      MODIFY T_FCAT_LVC TRANSPORTING TABNAME WHERE TABNAME NE SPACE.
    * Transfer to KKBLO format.
      CALL FUNCTION 'LVC_TRANSFER_TO_KKBLO'
        EXPORTING
          IT_FIELDCAT_LVC                 = T_FCAT_LVC[]
        IMPORTING
          ET_FIELDCAT_KKBLO               = T_FCAT_KKB
       EXCEPTIONS
         IT_DATA_MISSING                 = 1
         IT_FIELDCAT_LVC_MISSING         = 2
         OTHERS                          = 3.
      CHECK SY-SUBRC EQ 0.
    * Call XXL.
      CALL FUNCTION 'ALV_XXL_CALL'
        EXPORTING
          I_TABNAME                    = 'ITAB'
          IT_FIELDCAT                  = T_FCAT_KKB
        TABLES
          IT_OUTTAB                    = ITAB[]
        EXCEPTIONS
          FATAL_ERROR                  = 1
          NO_DISPLAY_POSSIBLE          = 2
          OTHERS                       = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    It will open the Excel in front of you and populate the cells from your internal table
    with color for Key columns.
    Cheers
    SKC.

Maybe you are looking for