BEx Report Performance with selection-screen input

Hello Gurus,
My Bex report is working fine when the report had run with out PLANT filter in the selection-screen but when report had run with plant in the selection-screen , report running for forever.
Please let me know what I need to do improve the performance.
Saleem.

Hi Saleem, Just a few thoughts;
1. Check the M-table in RSD1 for 0PLANT. In Table View edit any blank or null values. Run the same restrictions you apply in the query at Info provider level > Display Data. If there's any lapse; you can judge where exactly the problem lies.
2. If you are using Infocube & that your master is >20% fact; you can declare the Info object as 'Line Item Dimension'.
3. Create Variants. Esp. if you are running the query for same set of data. Try Variable Preselection: You can restrict both the values + varaiables in the filter level. When you execute the values will be visibly pre-selected in selection screen.
4. As discussed in previous messages, running a SQL trace using RSRT may prove useful.

Similar Messages

  • Problem with selection screen input

    my problem is when i enter l2_gr or l1_vbeln or l2_vbeln, in the selection screen, the output should come according to that.I am not getting the correct result.
    form summ_report.
      data: l2gr like ekbe-belnr.
       select fs_plant  fv_plant    f~r_plant
              fl1_sto        pl1_delivery  p~l1_gr
              pl2_sto        pl2_delivery  p~bsl_err_message
              kebeln         pl1_pgi       p~l2_pgi
       into (dochdr-swerks,   dochdr-vwerks,   dochdr-rwerks,
             dochdr-l1sto,    docitem-l1xblnr, docitem-l1gr,
            docitem-l2sto,   docitem-l2xblnr, docitem-err_msg,
             tabekko-ebeln,   docitem-l1pgi,   docitem-l2pgi)
       from zdochdr as f inner join zdocitem as p
                          on fl1_sto  =  pl1_sto inner join
                ekko as k on pl1_sto  = kebeln
       where f~s_plant     in s_werks  and
             f~v_plant        in v_werks  and
             f~r_plant  in r_werks  and
             f~l1_sto           in l1_sto   and
             p~l1_delivery      in l1_xblnr and
             p~l1_gr            in l1_gr    and
             p~l2_sto           in l2_sto   and
             p~l2_delivery      in l2_xblnr and
             k~aedat            in s_aedat.
    move : dochdr-swerks    to  final_data-i_swerks,
            dochdr-vwerks    to  final_data-i_vwerks,
            dochdr-rwerks    to  final_data-i_rwerks,
            dochdr-l1sto     to  final_data-i_l1sto,
            docitem-l1xblnr  to  final_data-i_l1xblnr,
            docitem-l1gr     to  final_data-i_l1gr,
            docitem-l2sto    to  final_data-i_l2sto,
            docitem-l2xblnr  to  final_data-i_l2xblnr,
            docitem-l2pgi    to  final_data-i_l2pgi,
            docitem-l1pgi    to  final_data-i_l1pgi,
            docitem-err_msg  to  final_data-i_errmsg.
            append final_data.
        endselect.
    L2 Goods receipt
    loop at final_data.
      select single belnr from ekbe into l2gr
        where ebeln = final_data-i_l2sto and
                  belnr in l2_gr and
                  bwart = '101' and
                  bewtp = 'E' and
                  vgabe = '1'.
      if sy-subrc eq 0.
        move l2gr to final_data-i_l2gr.
      endif.
    leg1 Billing document
    select vbeln from vbfa into (tabvbfa-vbeln)
      where vbeln in l1_vbeln and vbelv in (final_data-i_l2xblnr,final_data-i_l1xblnr).
    select single vbeln from vbrk into tabvbrk-vbeln
       where vbeln = tabvbfa-vbeln and fkart = 'IV'.
      if sy-subrc eq 0.
         move tabvbrk-vbeln to final_data-i_l1vbeln.
      endif.
       endselect.
    leg2 Billing document
    select vbeln from vbfa into (tabvbfa-vbeln1)
             where vbeln in l2_vbeln and
             vbelv in (final_data-i_l2xblnr,
                             final_data-i_l1xblnr).
    select single vbeln from vbrk into tabvbrk-vbeln1 where
                    vbeln = tabvbfa-vbeln1 and fkart = 'ZTYS'.
        if sy-subrc eq 0.
            move tabvbrk-vbeln1 to final_data-i_l2vbeln.
        endif.
       endselect.
    <b>if not l2_gr is initial or
        not l1_vbeln is initial or
         not l2_vbeln is initial.</b>        modify final_data.
      else.
         delete final_data.
      endif.
      endloop.
    endform.
    please help....
    Thanks,
    fractal.

    I think the code in bold is what you are trying to do.
    form summ_report.
      data: l2gr like ekbe-belnr.
      select f~s_plant f~v_plant     f~r_plant
             f~l1_sto  p~l1_delivery p~l1_gr
             p~l2_sto  p~l2_delivery p~bsl_err_message
             k~ebeln   p~l1_pgi      p~l2_pgi
        into (dochdr-swerks, dochdr-vwerks,   dochdr-rwerks,
              dochdr-l1sto,  docitem-l1xblnr, docitem-l1gr,
              docitem-l2sto, docitem-l2xblnr, docitem-err_msg,
              tabekko-ebeln, docitem-l1pgi,   ocitem-l2pgi)
        from zdochdr as f inner join zdocitem as p
          on f~l1_sto = p~l1_sto inner join ekko as k
          on p~l1_sto = k~ebeln
       where f~s_plant     in s_werks
         and f~v_plant     in v_werks
         and f~r_plant     in r_werks
         and f~l1_sto      in l1_sto
         and p~l1_delivery in l1_xblnr
         and p~l1_gr       in l1_gr
         and p~l2_sto      in l2_sto
         and p~l2_delivery in l2_xblnr
         and k~aedat       in s_aedat.
        move: dochdr-swerks   to final_data-i_swerks,
              dochdr-vwerks   to final_data-i_vwerks,
              dochdr-rwerks   to final_data-i_rwerks,
              dochdr-l1sto    to final_data-i_l1sto,
              docitem-l1xblnr to final_data-i_l1xblnr,
              docitem-l1gr    to final_data-i_l1gr,
              docitem-l2sto   to final_data-i_l2sto,
              docitem-l2xblnr to final_data-i_l2xblnr,
              docitem-l2pgi   to final_data-i_l2pgi,
              docitem-l1pgi   to final_data-i_l1pgi,
              docitem-err_msg to final_data-i_errmsg.
        append final_data.
      endselect.
    * L2 Goods receipt
      loop at final_data.
        select single belnr from ekbe
                            into l2gr
                           where ebeln = final_data-i_l2sto
                             and belnr in l2_gr
                             and bwart = '101'
                             and bewtp = 'E'
                             and vgabe = '1'.
        if sy-subrc eq 0.
          move l2gr to final_data-i_l2gr.
        endif.
    * leg1 Billing document
        select vbeln from vbfa
                     into tabvbfa-vbeln
                    where vbeln in l1_vbeln
                      and vbelv in (final_data-i_l2xblnr,final_data-i_l1xblnr).
          select single vbeln from vbrk
                              into tabvbrk-vbeln
                             where vbeln = tabvbfa-vbeln
                               and fkart = 'IV'.
          if sy-subrc eq 0.
            move tabvbrk-vbeln to final_data-i_l1vbeln.
          endif.
        endselect.
    * leg2 Billing document
        select vbeln from vbfa
                     into tabvbfa-vbeln1
                    where vbeln in l2_vbeln
                      and vbelv in (final_data-i_l2xblnr, final_data-i_l1xblnr).
          select single vbeln from vbrk
                              into tabvbrk-vbeln1
                             where vbeln = tabvbfa-vbeln1
                               and fkart = 'ZTYS'.
          if sy-subrc eq 0.
            move tabvbrk-vbeln1 to final_data-i_l2vbeln.
          endif.
        endselect.
        if not <b>final_data-i_l2gr</b>    is initial or
           not <b>final_data-i_l1vbeln</b> is initial or
           not <b>final_data-i_l2vbeln</b> is initial.
          modify final_data.
        else.
          delete final_data.
        endif.
      endloop.
    endform.

  • To display the user login details in selection-screen( input screen )

    HI Experts,
    I have a requirement.
    Assume there is a report on travel details. Report access has been given to all in the organization based on authorization level.
    Before excecuting the report, in the selection-screen(input screen) itself I need to display the login user details.
    suppose user A belongs to ITS-business unit and user B-belongs to RDS-business unit and Industry group-Multi markets.
    so when User B logs into production system and try to access the report, in the selection screen, i need to display like
    user-id-- XXXX          Business Unit---RDS             and IG -
    Multi Markets 
    how to achieve this? User details will vary based on login.
    Regards,
    Praveen

    check this
    REPORT  Z_demo.
    *& Function Modules:  HR_GET_EMPLOYEE_DATA
    *&                    HR_IMAGE_EXISTS
    *&                    SCMS_DOC_URL_READ
    *&                    HR_IMAGE_RESET
    *& Class & Methods :  CL_GUI_DOCKING_CONTAINER
    *&                    CL_GUI_PICTURE->SET_POSITION
    *&                    CL_GUI_PICTURE->SET_DISPLAY_MODE
    *&                    CL_GUI_PICTURE->DISPLAY_MODE_FIT
    *&                    CL_GUI_PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
    *REPORT  ZEMPLOYEE.
    TABLES: PA0001, PERSON.
    *----------------------Declaration for Image------------------------*
    DATA: DOCKING_CONT TYPE REF TO CL_GUI_DOCKING_CONTAINER, " Custom Container
          PICTURE TYPE REF TO CL_GUI_PICTURE.
    *--------------------Declaration of Internal table------------------*
    DATA: ITAB_EMPDATA LIKE TABLE OF PERSON.
    DATA: ITAB_DATA LIKE TABLE OF PERSON WITH HEADER LINE.
    DATA:  P_CONNECT_INFO LIKE TABLE OF TOAV0 WITH HEADER LINE.
    DATA:  P_DOCUMENT_TYPE LIKE TOAV0-RESERVE.
    DATA:  URL(255) TYPE C.
    DATA:  HANDLE TYPE I.
    DATA:  PPERNR TYPE PA0001-PERNR.
    *----------------------Start of Selection Screen----------------------*
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-099.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN COMMENT 40(25) TEXT-010  .
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) TEXT-002 FOR FIELD PERNR.
    PARAMETERS PERNR TYPE PA0001-PERNR.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) TEXT-008 FOR FIELD ENAME.
    PARAMETERS ENAME TYPE PA0001-ENAME.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) TEXT-003 FOR FIELD PERSG.
    PARAMETERS PERSG TYPE PA0001-PERSG.
    SELECTION-SCREEN COMMENT 45(15) TEXT-009 FOR FIELD WERKS.
    PARAMETERS WERKS TYPE PA0001-WERKS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) TEXT-004 FOR FIELD PERSK.
    PARAMETERS PERSK TYPE PA0001-PERSK.
    SELECTION-SCREEN COMMENT 45(15) TEXT-005 FOR FIELD KOSTL.
    PARAMETERS KOSTL TYPE PA0001-KOSTL.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) TEXT-006 FOR FIELD ORGEH.
    PARAMETERS ORGEH TYPE PA0001-ORGEH.
    PARAMETERS ORGEHTXT TYPE PERSON-ORGEH_TXT .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) TEXT-007 FOR FIELD PLANS.
    PARAMETERS PLANS TYPE PA0001-PLANS.
    PARAMETERS PLANSTXT TYPE PERSON-PLANS_TXT .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN END OF BLOCK B1.
    *AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT .
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'ENAME'
        OR SCREEN-NAME = 'PERSG'
        OR SCREEN-NAME = 'PERSK'
        OR SCREEN-NAME = 'KOSTL'
        OR SCREEN-NAME = 'WERKS'
        OR SCREEN-NAME = 'ORGEH'
        OR SCREEN-NAME = 'PLANS'
        OR SCREEN-NAME = 'ORGEHTXT'
        OR SCREEN-NAME = 'PLANSTXT'.
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    LOOP AT SCREEN.
        IF SCREEN-NAME = 'ORGEHTXT'
        OR SCREEN-NAME = 'PLANSTXT'.
          SCREEN-OUTPUT = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    PERFORM GET_PIC.
    *AT SELECTION-SCREEN .
    AT SELECTION-SCREEN .
      PPERNR = PERNR.
      CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
        EXPORTING
          PERSON_ID             = PPERNR
          SELECTION_BEGIN       = SY-DATUM
          SELECTION_END         = SY-DATUM
        IMPORTING
          PERSONAL_DATA         = ITAB_DATA
        EXCEPTIONS
          PERSON_NOT_FOUND      = 1
          NO_ACTIVE_INTEGRATION = 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.
      ENAME = ITAB_DATA-ENAME.
      PERSG = ITAB_DATA-PERSG.
      PERSK = ITAB_DATA-PERSK.
      ORGEH = ITAB_DATA-ORGEH.
      PLANS = ITAB_DATA-PLANS.
      KOSTL = ITAB_DATA-KOSTL.
      WERKS = ITAB_DATA-WERKS.
      ORGEHTXT = ITAB_DATA-ORGEH_TXT.
      PLANSTXT = ITAB_DATA-PLANS_TXT.
    *Function Module To check Existance of Image
      CALL FUNCTION 'HR_IMAGE_EXISTS'
        EXPORTING
          P_PERNR        = PPERNR
        IMPORTING
          P_CONNECT_INFO = P_CONNECT_INFO
        EXCEPTIONS
          OTHERS         = 2.
         P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
    *Function Module To Get the URL of Image
      CALL FUNCTION 'SCMS_DOC_URL_READ'
        EXPORTING
          STOR_CAT    = SPACE
          CREP_ID     = P_CONNECT_INFO-ARCHIV_ID
          DOC_ID      = P_CONNECT_INFO-ARC_DOC_ID
          COMP_ID     = 'DATA'
          DP_URL_ONLY = 'X'
        IMPORTING
          URL         = URL
        EXCEPTIONS
          OTHERS      = 10.
      IF SY-SUBRC <> 0.
      ENDIF.
    *Method To load Image from URL
      CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
        EXPORTING
          URL = URL.
      IF SY-SUBRC NE 0.
      ENDIF.
      IF PPERNR NE PERNR.
    *Function Module To Reset Image
        CALL FUNCTION 'HR_IMAGE_RESET'
          EXPORTING
            HANDLE         = HANDLE
          EXCEPTIONS
            INVALID_HANDLE = 1
            OTHERS         = 2.
        IF SY-SUBRC <> 0.
        ENDIF.
      ENDIF.
    *& Form Get_Pic
    FORM GET_PIC.
      DATA: REPID LIKE SY-REPID.
      REPID = SY-REPID.
      IF PICTURE IS INITIAL.
    *Object To Create the Custom Container
        CREATE OBJECT PICTURE
          EXPORTING
            PARENT = DOCKING_CONT.
        CHECK SY-SUBRC = 0.
    *Method To Set Position of Image
        CALL METHOD PICTURE->SET_POSITION
          EXPORTING
            HEIGHT = 47
            LEFT   = 610
            TOP    = 25
            WIDTH  = 70.
    *Method To Set Display Mode Fit to Container
        CALL METHOD PICTURE->SET_DISPLAY_MODE
          EXPORTING
            DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
      ELSE.
    *Function Module To Reset Image
        CALL FUNCTION 'HR_IMAGE_RESET'
          EXPORTING
            HANDLE         = HANDLE
          EXCEPTIONS
            INVALID_HANDLE = 1
            OTHERS         = 2.
        IF SY-SUBRC <> 0.
        ENDIF.
      ENDIF.
    ENDFORM. "Get_pic

  • Calling another  report by passing selection screen parameter

    Hi,
    I have created a report "ZREPA" with selection screen parameter say, "creator".
    Nw, i hv to call that report "ZREPA" from another report say "ZREPB" by passing an value to the selection screen field "creator".
    Can anyone tell me how to resolve this??
    Thanks,
    Aaru.

    Hi,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
    Regards,
    Omkaram.

  • Background processing for ABAP report with selection screen

    Hi ABAP Gurus,
    I m facing a strange problem in scheduling a background job for my report with a selection screen. I have a variant for the report.
    I scheduled a job, but it seems to be not doing anything though all the system resources are available. The job overview shows "Acive" for the job. The job is neither stopping anything, it is just sitting there In SM50, the status shows "On Hold".
    Any ideas/comments on the problem and how this can be overcome?
    Qucik replies and solutions will be highly appreciated as this is a crucial part for a go-live project.
    Thanks in advance.
    Shivani.

    Yes. My report has a selection-screen which requires user input. But I have created  a variant for the report and trying to run it in background using this variant. But facing this problem.
    Strange thing is, instead of the usual SM36/SM37 option where we schedule and monitor background jobs, this option does not work for my report.
    But I tried through SE38, and from my selection screen I selected "Schedule background job" and "run immediately" option, and this works. Though I still use SM37 to monitor this background job.
    I have never faced such a situation before.
    Any hints/tips why this happens and how this can be overcome in the future?
    Thanks in advance.
    Shivani.

  • Bex Report Performance

    Dear Friends,
    I would like to know is the complex authorizations can also cause the Bex report performance.
    One of my scenerio is like there are two users A & B
    A is having relevant authorizations for reporting, Drill down etc which are required.
    B is having SAP All authorization.
    When the same report has been executed by both users on the same system.
    the data retrieved by user B(SAP_ALL authorization) is quite faster than User A.
    Its like ther diffference of about 10 minutes.
    There are some exsclude selections in report.
    So my conclusion is like the complex authorizations do also hampers the query performance.
    Please confirm & share your views.
    Thanks & Best Regards,
    Vivek Tripathi
    +91-9372313000

    Hi Vivek
         Can you help us understand what was the exact problem and how you resolved it / solution at Extraction / Modeling / Reporting end.
         I have a quite similiar issue with my report i have Header + Item report on Infoset
    u2022     Header report takes seconds and item report takes minutes
    u2022     The same report executed with exact parameter has inconsistent performance results meaning one time it takes 1 minutes next time same report same user and same authorization takes 5 minutes.
        Any help on this would be really greatfull. Suspecting is not an issue with the report at all , as no changes happened between the pre and post check.
    _Additional Information : _
    We Create Secondary -Bitmap index every week end i do not see that is one of the route cause.
    Except that we have our regular daily loads that are running for master data loads and transaction data loads in series.
       Thanks in Advance.
    Much Regards
    Jagadish Thirumalachetty.
    Edited by: Jagadish Thirumalachetty on Jul 14, 2010 1:35 PM

  • How i can show the selection screen input field in the top of page in alv

    hi ,
              how i can show the selection screen input field in the top of page in alv  grid output.
    tell me the process

    Hi,
    excample from my program:
    FORM topof_page.
      DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,
            l_info        LIKE l_it_header-info.
      DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
      DATA: l_key LIKE l_it_textpool-key.
      READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
      DEFINE m_selinfo.
        if not &1 is initial.
          clear l_it_header.
          l_it_header-typ   = 'S'.
          l_key = '&1'.
          translate l_key to upper case.
          read table l_it_textpool with key key = l_key.
          if sy-subrc = 0.
            shift l_it_textpool-entry left deleting leading space.
            l_it_header-key = l_it_textpool-entry  .
          endif.
          loop at &1.
            case &1-option.
              when 'EQ'
                or 'BT'
                or 'CP'.
                write &1-low to l_it_header-info.
              when others.
                write &1-low to l_it_header-info.
                concatenate &1-option
                            l_it_header-info
                       into l_it_header-info
                       separated by space.
            endcase.
            if not &1-high is initial.
              write &1-high to l_info left-justified.
              concatenate l_it_header-info
                          l_info
                     into l_it_header-info
                     separated by space.
            endif.
            if &1-sign = 'E'.
              concatenate ']'
                          l_it_header-info
                     into l_it_header-info.
            endif.
            append l_it_header.
            clear: l_it_header-key,
                   l_it_header-info.
          endloop.
        endif.
      END-OF-DEFINITION.
      m_selinfo: s_trmdat,
                 s_trmext,
                 s_trmint,
                 s_fkdat,
                 s_delno,
                 s_vbeln,
                 s_deact,
                 s_kdmat.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = l_it_header[].
    ENDFORM.
    I hope, this will help you.
    Regards
    Nicole

  • Submit program with selection screen parameters - getting blank values

    Hi, I'm submitting a program with selection screen parameters. when I pass '000' (I_TPLSCN  )value for Planning Scenario and when this goes to selection screen then I don't see value for Planning scenario as '000'(I_TPLSCN  ) but the value is blank in selection screen. I'm using the below code for this.
    SUBMIT RMCPAMRP WITH MATNR_GL EQ I_MATNR   SIGN 'I'
                      WITH WERKS_GL EQ I_WERKS   SIGN 'I'
                      WITH PLSCN    EQ I_TPLSCN  SIGN 'I'
        via selection-screen        AND RETURN.
    Could anyone please help me how to display value '000' rather than blanks.
    thanks in advance.

    If I_MATNR, I_TPLSCN and I_WERKS are variable then try with
    SUBMIT rmcpamrp
      WITH matnr_gl = i_matnr
      WITH plscn    = i_tplscn
      WITH werks_gl = i_werks
      via selection-screen       
       AND RETURN .
    If I_MATNR, I_TPLSCN and I_WERKS are of type range then try  with
    SUBMIT rmcpamrp
      WITH matnr_gl IN i_matnr
      WITH plscn    IN i_tplscn
      WITH werks_gl IN i_werks
    via selection-screen       
       AND RETURN
    Edited by: Pawan Kesari on Dec 24, 2009 3:33 PM

  • SELECTION SCREEN INPUTS FROZEN

    Hi Guru's
                 I have prepared a web dynpro java application using standard bapi. I have used 'tray' under which selection fields and output table is created. However, after deployment selection screen input area becomes read only that is it freezes. Please help me asap.

    Hi,
    You might be trying to display your output in the table.
    1. Check that you have binded proper values to the table datasource.
    2. Check the size of the node binded to the table.
    You can write this line to know the size of the output node returned after executing the RFC.
    wdComponentAPI.getMessageManager().reportSuccess(wdContext.node<nodename>().size()+"");
    If the size is 0 that means that your BAPI is not returning anything.
    Regards,
    Murtuza

  • How to fill internal table with selection screen field.

    Hi all,
    i am new to sap . pls tell me how to fill internal table with selection screen field.

    Hi,
    Please see the example below:-
    I have used both select-options and parameter on the selection-screen.
    Understand the same.
    * type declaration
    TYPES: BEGIN OF t_matnr,
            matnr TYPE matnr,
           END OF t_matnr,
           BEGIN OF t_vbeln,
             vbeln TYPE vbeln,
           END OF t_vbeln.
    * internal table declaration
    DATA : it_mara  TYPE STANDARD TABLE OF t_matnr,
           it_vbeln TYPE STANDARD TABLE OF t_vbeln.
    * workarea declaration
    DATA : wa_mara  TYPE t_matnr,
           wa_vbeln TYPE t_vbeln.
    * selection-screen field
    SELECTION-SCREEN: BEGIN OF BLOCK b1.
    PARAMETERS : p_matnr TYPE matnr.
    SELECT-OPTIONS : s_vbeln FOR wa_vbeln-vbeln.
    SELECTION-SCREEN: END OF BLOCK b1.
    START-OF-SELECTION.
    * I am adding parameter value to my internal table
      wa_mara-matnr = p_matnr.
      APPEND wa_mara TO it_mara.
    * I am adding select-options value to an internal table
      LOOP AT s_vbeln.
        wa_vbeln-vbeln =  s_vbeln-low.
        APPEND  wa_vbeln TO  it_vbeln.
      ENDLOOP.
    Regards,
    Ankur Parab

  • How to create tcode for modulepool program with selection screen?

    hi,
       How to create tcode for modulepool program with selection screen?
    thanks,
    sagar

    Hi,
    We need to goto SE80.
    In our program we right click on object name and goto create
    -> transaction. Enter the module pool program and screen number and save and activate.
    Or by SE93 also we can create a transaction code for our program.
    Hope ths helps.
    plz reward if useful.
    thanks,
    dhanashri..
    Edited by: Dhanashri Pawar on Jul 22, 2008 8:29 AM

  • How to create a report with selection screen that can run in background

    Sorry to ask these basic questions but I am knew to ABAP Programming.
    To keep it simply, I am attempting to create a report that has a simple parameter driven selections screen with one field.  That field takes in a folder path from the user.  The user executes the report.  The report creates a simply BDC that goes into SE16, gathers data from a table, and exports the results to a text file using the folder path provided.  I created a variant for the folder path field in the selection screen hoping to use it while executing the report in the background.  The report is not exporting the file as it did when run in the foreground for some reason.
    I am wondering what event is triggered when a report is executed in the background.  In the foreground (or when I execute the program via SE38->Execute->With Variant) the user needs to execute the program by hitting the execute button once the variant has populated the folder path field.  It works then, so I am trying to get the same to work in the background.  I am thinking I didn't put the program together correctly to accommodate the running in the background.  How can you create a report that can accept user input via variant into a selection screen and then run in the background?
    Please, any information would be greatly appreciated.
    Thanks you all for reading this!!!

    Ok, finally I understand what you're doing. Initially you lost me with the SE16 reference...
    Not sure what you're trying to achieve overall, but apart from the fact that you cannot export/download a file to a user's PC via background job (unless you have a mapped network share on the server or something like an FTP server on the user's PC, but both are pretty hypothetical scenarios and unlikely to occur).
    Also, the BDC approach to get data via SE16 is pretty awkward. Note that SE16 is guarded by some authorization checks and often users won't have access in production (which might not matter if you intend to always run your program in background via dedicated batch user). However, I have no clue why you wouldn't want to use [open SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_READING.htm] to read the data. You could then save it on the application server or if you really have to get it to the user you can consider e-mailing the file (extracts should be compressed before sending). For the latter you'll find plenty of references here, basically it's the [business communication services|http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/1c5d3aebba4c38e10000000a114084/frameset.htm] that you'd need to look at.

  • Performance Issue with Selection Screen Values

    Hi,
    I am facing a performance issue(seems like a performance issue ) in my project.
    I have a query with some RKFs and sales area in filters (single value variable which is optional).
    Query is by default  restricted by current month.
    The Cube on which the query operates has around 400,000 records for a month.
    The Cube gets loaded every three hours
    When I run the query with no filters I get the output within 10~15 secs.
    The issue I am facing is that,  when I enter a sales area in my selection screen the query gets stuck in the data selection step. In fact we are facing the same problem if we use one or two other characteristics in our selection screen
    We have aggregates/indexes etc on our cube.
    Has any one faced a similar situation?
    Does any one have any comments on this ?
    Your help will be appreciated. Thanks

    Hi A R,
    Goto RSRT--> Give ur query anme --> Execute =Debug
    --> No a pop up ill come with many check boxes select "Display Aggregates found" option --> now give ur
    selections in variable screen > first it will give the already existing aggregate names> continue> now after displaying all the aggregates it will display the list of objects realted to cube wise> try to copy these objects into notepad> again go with ur drill downs now u'll get the already existing aggregates for this drill down-> it will display the list of objects> copy them to notepad> now sort all the objects related to one cube by deleting duplicate objects in the note pad>goto that Infocube> context>maintain aggregates> create aggregate on the objects u copied into note pad.
    now try to execyte the report... it should work properly with out delays for those selections.
    I hope it helps you...
    Regards,
    Ramki.

  • Field catalog restriction with the selection screen input

    Hi,
      I am doing ALV grid report.In that I am facing problem,fieldcat has to display according to the input given in the selection screen.
    my selection screen value is s_gstrp+4(2) that is month given inthe input.
         PERFORM FIELD_CATALOG TABLES IT_FIELDCAT
           USING: 'IT_COL_PLAF' 'PWWRK' 'X' 'Plant' ' ',
                 'IT_COL_PLAF' 'MATNR' ' ' 'Material' ' ',
                 'IT_COL_PLAF' 'MAKTX' ' ' 'Material description' ' ',
                 'IT_COL_PLAF' 'MEINS' ' ' 'Unit' ' '.
          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                     'IT_COL_PLAF' 'GSMNG_01' ' ' 'Jan-Qty' ' '.
          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                     'IT_COL_PLAF' 'GSMNG_02' ' ' 'Feb-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                     'IT_COL_PLAF' 'GSMNG_03' ' ' 'Mar-Qty' ' '.
          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_04' ' ' 'Apr-Qty' ' '.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_05' ' ' 'May-Qty' ' '.
              PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_06' ' ' 'Jun-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_07' ' ' 'Jul-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_08' ' ' 'Aug-Qty' ' '.
              PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_09' ' ' 'Sep-Qty' ' '.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_10' ' ' 'Oct-Qty' ' '.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_11' ' ' 'Nov-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
            'IT_COL_PLAF' 'GSMNG_12' ' ' 'Dec-Qty' ' '.
    if month given in select-option : sep to dec ie,1.09.2009 to 31.12.2009.
    then my field cat has to display,sep qty,oct,qty,nov qty,dec,qty.
    Suggest some ideas.
    regards,
    Bathri

    hi,
    Use
    if month ge  09 .
    PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_09' ' ' 'Sep-Qty' ' '.
    endif.
    if month ge 10.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_10' ' ' 'Oct-Qty' ' '.
    endif.
    if month ge 11.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_11' ' ' 'Nov-Qty' ' '.
    endif.
    if month ge 12.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
            'IT_COL_PLAF' 'GSMNG_12' ' ' 'Dec-Qty' ' '.
    endif.
    if month given in select-option : sep to dec ie,1.09.2009 to 31.12.2009.
    then my field cat has to display,sep qty,oct,qty,nov qty,dec,qty.
    If if you give month in selection screen you will get relevant month details .
    Regards
    Nandan.N

  • Report with Selection screen

    I have a stupid report.
    In the initialization event I have put that
    initialization.
    set pf-status '123'.
    But in the start of selection/at user-command
    sy-ucomm is empty ... any idea is welcome
    REWARD PROMISED
    Message was edited by: STEPHAN KAMINSKI

    SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom.
    SELECTION-SCREEN FUNCTION KEY <Number>. "This is for displaying in Application Toolbar.
    Check the following help documentation..
    SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom.
    Addition: MODIF ID modid.
    Effect
    Generates a pushbutton on the selection screen. When you define the button, you also define a user command ucom (no inverted commas), up to 20 characters long, which is triggered when the user pushes the button. The rest of the syntax is the same as for SELECTION-SCREEN COMMENT
    You can define the name name either statically or at runtime (see also the BEGIN OF BLOCK, COMMENT and SELECTION-SCREEN BEGIN OF SCREEN variants).
    When you define a pushbutton, you must always specify a format fmt.
    By specifying a Modif ID, you can assign the pushbutton to a modification group.
    Notes
    The best way of reacting to the pushbutton is in the AT SELECTION-SCREEN event, or, for pushbuttons in the selection include, in the PAI routine (with FNAME = '*' and MARK = SPACE) in the database program SAPDBldb. The field SSCRFIELDS-UCOMM contains the user command ucom. (You need to declare the SSCRFIELDS table using the TABLES statement).
    You can create your own pushbuttons in the application toolbar using the FUNCTION KEY n addition.
    Within the selectoin include : Additions FOR NODE node ,FOR TABLE dbtab und ID id.
    Example
    TABLES SSCRFIELDS.
    SELECTION-SCREEN PUSHBUTTON /10(20) CHARLY USER-COMMAND ABCD.
    INITIALIZATION.
    MOVE 'My text' TO CHARLY.
    AT SELECTION-SCREEN.
    IF SSCRFIELDS-UCOMM = 'ABCD'.
    ENDIF.
    A pushbutton appears on the selection screen with the text 'My text'. In the AT SELECTION-SCREEN event, the field SSCRFIELDS-UCOMM has the contents ABCD after the button has been pushed.

Maybe you are looking for

  • How do I change a Word doc to a PDF doc?

    How do I change a Word doc to a PDF doc?

  • Part appraisals as part of OSA Status Overview in MSS?

    Hi, I'm in the middle of a clarification phase regarding implementation of Objective Setting and Appraisal (OSA). This is my question regarding part appraisals: In the Status Overview page/iview in MSS, the manager can prepare, see, select and modify

  • Can I make form fields highlighted by default?

    When the user opens the form, can the form fields be highlighted by default? Thanks.

  • Sharepoint 2010 Integration Problem??

    I have CRM 2011(online) and Sharepoint 2010(online) on Same domain of Office 365. I Integrated the CRM 2011(Online) with Sherepoint 2010(Online) but inside CRM it doesnot show normal view it shows only site. if I Use 2011 list Components it shows onl

  • CRM VOIP Integration

    I have been volunteered (never take a day off work) to research a project possibility study for the company. The basics are. We have clients in six or so countries around the world that call a centralised support desk in one country. My questions. 1,