Set parameters for dynamic selection report

Hi all,
Please find below code.. parameters KS7 and KS8 are on static slection parameter and GJR, VPE, BPE are on dynamic selection parameters for transaction KSB2. But, when I run program, values are passing to parameters KS7 and KS8 but not to GJR, VPE, BPE.
        set parameter id 'KS7' field co_podat-low.      "from date
        set parameter id 'KS8' field co_podat-high.     "to date
        set parameter id 'GJR' field P_RYEAR.
        set parameter id 'VPE' field SO_PERIO-LOW.
        set parameter id 'BPE' field SO_PERIO-HIGH.
             submit rkaep000
             with p_tcode = 'KSB2'            "non display param
             with p_kokrs = p_kokrs           "non display param
             with kostl = it_outputsum-profctr
             with kstar = it_outputsum-acct
             with p_disvar = '1SAP'           "non display param
            and return.
What would be reason?
Thanks
Shashi.

at the time of you code being executed the fields may not be available (Defined)..
You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement
Regards,
Gaurav

Similar Messages

  • Set headers for drill-down reports.

    Hi!!!
    The problem we have by now is when printing a report, selected characteristis are showed in header as "multiple values" instead of showing the real values that user have choose.
    Does anybody knows how to set headers for drill-down reports in order to see selected characteristics?
    Thanks in advance...
    Adela Cambiasso.

    Sorry, me again...
    I have found yet they way to show in the header the report parameters, I mean, the selection criterias that user used when execute the report... I was able to show selected characteristics inside de report but not the selection criteria...
    Do you know what I have lost? or what to use for this?
    Thanks again.
    Adela.

  • Submit syntax for dynamic selections for T-code FAGLL03

    Hi Experts,
    My z report contains following fields in selction screen.
    1 . G/ L account
    2. Comapny code
    3. posting date
    4. Profit Center
    5. layout
    In my z report i used following syntax for passing selection screen values to standard program and getting data.
    This is for T-code FAGLL03
    SUBMIT FAGL_ACCOUNT_ITEMS_GL
    WITH SD_SAKNR IN S_SAKNR
    WITH SD_BUKRS IN S_BUKRS
    WITH %%DYN001-LOW (Profit Center)
    EXPORTING LIST TO MEMORY
    AND RETURN.
    The above syntax is not working for dynamic selection field ( Profit Center), entire Profit center data is fetching from standard program. I want to fetch profit center data based on my z report selection values .
    Expect for profit center field , submit syntax is working.
    kindly provide submit syntax for my above requirement .
    Any suggestions from experts....
    Edited by: PLP REDDY on Nov 25, 2009 8:59 AM

    Indeed it won't work. Instead of passing parameters one by one use
    [SUIBMIT... WITH SELECTION-TABLE rspar|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@]
    Here you add one line per parameter (field KIND = 'P' ) and multiple lines per select options (field KIND = 'S' ). For the latter you need also provide SIGN and OPTIONS, i.e SIGN = 'I' , OPTIONS = 'EQ'
    The lin I gave you will explain it more.
    Regards
    Marcin

  • FAGLL03 : Submit syntax for dynamic selections

    Hi Experts,
    My z report contains following fields in selction screen.
    1 . G/ L account
    2. Comapny code
    3. posting date
    4. document type
    5. layout
    In my z report i used following syntax for passing selection screen values to standard program and getting data.
    SUBMIT FAGL_ACCOUNT_ITEMS_GL
                      WITH SD_SAKNR   IN S_SAKNR
                      WITH SD_BUKRS   IN S_BUKRS
                      WITH X_OPSEL    EQ ' '
                      WITH X_CLSEL    EQ ' '
                      WITH X_AISEL    EQ 'X'
                      WITH SO_BUDAT   IN S_BUDAT
                      WITH PA_VARI    EQ P_VAR
                      EXPORTING LIST TO MEMORY
                     AND RETURN. 
    The above syntax is not working for dynamic selection field ( document type ), entire document types data is fetching from standard program. I want to fetch document type data based on my z report selection values for document type field.
    Expect for document type field , submit syntax is working.
    kindly provide submit syntax for my above requirement .
    Any suggestions from experts....
    thanks & regards,
    Hari priya
    Edited by: Hari  Priya on Aug 24, 2009 4:33 PM

    Hi,
    Try like this.
    call function 'RS_REFRESH_FROM_SELECTOPTIONS'
      exporting
        curr_report = 'FAGL_ACCOUNT_ITEMS_GL'
      tables
        selection_table = i_sel[].
    Fill your profit center values in i_sel
    Submit FAGL_ACCOUNT_ITEMS_GL with selection-table i_sel and return
    WITH FREE SELECTIONS TEXPR AND RETURN
    Regards,
    Shamma

  • How to add Document group  in t code S_ALR_87012082 for dynamic selection.

    Hi Gurus,
    I Need to add  Document group  in t code S_ALR_87012082  for dynamic selection.
    Currently here two groups are showing , Vender and Comp Code. i need to add Document group  there. Kindly guide me in this.
    Thanks in advance.

    Hi
    Pls follow below report
    *S_ALR_87012103 - List of Vendor Line Items *
    In dynamic selections you can find Document number, there you can give the range
    Reg
    Vishnu

  • Selection variable for dynamic selection in QE51n

    Hi All,
    I have a scenario were we have a repetitive Manufacturing and we create one insp. lot of origin 13 and keep creating insp. points for days, so my user wants the insp. points to be displayed only for the past 3 days based of the Date Insp. point identifier which is one of dynamic selection criteria under insp. points, I see with other transaction I can do selection variable on dates for dynamic selection fields but I cannot do that in QE51n, I can do the same in QE51 but not in QE51n, can some tell me if there is a OSS or other way to get this working.
    I appreciate your help.
    Thanks,

    Hi Srikant,
    I think you can meet the requirement in QE51N also.
    In the screen for QE51N :Result Recording Work list", Follow this Path,,,,,,,,,
    Edit--->Dynamic Selection.
    The system will pop-up new small window for "Dynamic selection for insp. lot and operation" here I there is one folder is available named "Inspection point " which is having the selection criteria "Inspection point",  double click on it and enter the desired values.
    Regards,
    Shyamal

  • Dynamic date parameters for a scheduled report that runs every day

    I have a report that has input parameters for a start date and
    end date. The report will be scheduled to run once a day at a
    scheduled time. I need the report to automatically set the start
    date and end dates when the report runs at the scheduled time.
    When the report runs at the scheduled time, the end date needs
    to be set to that time and the start date needs to be set to 24
    hrs before the end date. I want the start and end dates to roll
    forward automatically when the scheduled report runs each day. I
    don't want any user intervention to change the start and end
    dates every day. How can I do this in a report ?
    Also, since the report is scheduled to run each day, I want the
    output to be saved to a unique file name each time the report is
    run as each day's report will report on the data only for that
    day. How can I get the report to save to a unique file name
    automatically each day ? Again, I don't want any user
    intervention where they would set the output file name manually.

    Try adding the following in the beforereport or beforepform
    trigger, before the RETURN clause (TRUNC gets rid of the time
    component of the date):
    :p_date_from := TRUNC(sysdate) - 1;
    :p_date_to := TRUNC(sysdate);
    :desname := 'REPORT'||TO_CHAR(sysdate, 'DDMMYYYY')||'.txt'
    Paul Williams

  • How to set printersettings for the crystal report viewer in SAP BI dynamically

    Hello
    I have set the URL method for my crystal report and with parameter passing as shown below, it was displaying the crystal report viewer by connecting to the SAP BI 4.0 server with this method.
    http://cr:port/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=CRLabelParam&sType=rpt&lsSnPrinted=0&lsSsTestProjectNr=1
    This URL will be called from Web application by different users, i would like to set the printer settings differently for different users for this crystal report viewer how shall i need to set the printer options?
    shall i need to set the printer settings programatically for each user. Please advise me how do i need to proceed.
    Thanks & Regards,
    Rajeswari.

    There are no BI / CR APIs that would do this for you. The way I see it, you'll have to have your own print button and populate it with the correct printer information for each user as they request the report. Of course, alternatively, use the viewer printer button and get the users to choose the correct printer.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Issue with MB25 BDC for Dynamic Selection Screen

    Hi Experts,
    I recorded one BDC for MB25 Tcode regarding to determine Open Reservation(s) in E Mode (Display Mode). I am passing 3 parameters.
    1. Plant,
    2. Requirement Date
    3. Multiple Reservation Numbers i.e. RSNUM from Dynamic Selection i.e. 2nd Button -> Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    But while executing that BDC, I need to manually click every time on 'Header Data for Reservation' Tree and then Multiple Selection for Reservation Icon.
    I want below steps automatically while executing:
    - Open 'Header Data for Reservation' Tree
    - Click Reservation
    - Open Popup for 'Multiple Selection'.
    So no need to click every time on Dynamic Selection Screen i.e. Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    Please find attached screen shot for your reference.
    Please guide.
    Thanks and Regards,
    Emon Master

    Hello Jainam,
    submit (sy-repid) with selection-table v_sp
                             with free selections EXPRESSIONS
                             via selection-screen.
    Without going through the details, dont you think this will cause an inifinite loop as the calling & the called programs are the same.
    Please enlighten me !!
    BR,
    Suhas

  • Unable to set parameters for "Act as Prox" in OBI11g

    Hi Gurus,
    following Mark Rittman's blog I was able to set parameters and I could use this feature in OBI10g.
    However, in OBI 11g I was not able.
    1. In the init block of Proxyblock I am not able to add SET_RUNAS to Execution Precedence
    The Add button is inactive.
    2. In the init block of Proxylevel I am not able to add Proxyblock to Execution Precedence .
    Only the SET_RUNAS available.
    What to do?
    Any ideas and help are appreciated!
    Thanks
    Laszlo

    Hi Laszlo,
    Check this,
    Re: Unable to select Connection pool when creating init block for current_month
    Regards,
    Dpka

  • Addition of field for Dynamic Selection in TCode FBL1N

    Hi,
    We have a requirement to add the field Partner Bank Type in TCode FBL1N on clicking dynamic selection button (under vendor master) in TCode FBL1N. To achieve this we went to TCode SE36 (Logical database) and selected logical databse KDF and then seleted selection views from the extras menu. There we have selected the table LFBK and then entered 01 (function group for Vendor Master) in the box next to the field BVTYP and selected the checbox on the right of BVTYP to enable Preselection. Saved the changes.
    However the field  Partner Bank Type does not show in the dynamic selection in TCode FBL1N under Vendor Master. Please help.
    Thanks in advance.
    Mick

    Thanks Miguel.
    I found this on the web:
    http://joyjitghosh.blogspot.com/2009/05/how-to-add-new-fields-in-dynamic.html
    I have done exactly as per the instructions given in the above link, but still I am unable to see the field in the dynamic selections of TCode FBL1N. Any reason why and how can we add the field in the dynamic selections?
    Mick

  • How to add Business area  in t code S_ALR_87012082 for dynamic selection.

    Hi Gurus,
    I need  to add Business area field in T-code S_ALR_87012082.
    On choosing  dynamic selection, i found that Business area is not there. 
    Can any one please tell me how can i add Business area field  over there.
    Thanks in advance.

    Please check following SAP notes for this.
    188663 and 832997 and 310886

  • Short Dump for Dynamic Select Query

    Hello all,
    I get a short dump for my dynamic select query at the end of the code. The error is "The types of operands "dbtab" and "itab" cannot be converted into one another."
    My code looks like below.
    FORM get_ccnum_2  USING    p_tabname TYPE dd03l-tabname.
    DATA: p_table(30)  TYPE c.
      FIELD-SYMBOLS:  <dyn_wa>,
                                   <t> TYPE table.
      DATA: it_fldcat    TYPE lvc_t_fcat.
      TYPE-POOLS : abap.
      DATA: it_details   TYPE abap_compdescr_tab,
            wa_details   TYPE abap_compdescr.
      DATA: ref_descr    TYPE REF TO cl_abap_structdescr.
      DATA: new_table    TYPE REF TO data,
            new_line     TYPE REF TO data,
            wa_it_fldcat TYPE lvc_s_fcat.
    p_table = p_tabname.
      ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
      it_details[] = ref_descr->components[].
      LOOP AT it_details INTO wa_details.
        CLEAR wa_it_fldcat.
        wa_it_fldcat-fieldname = wa_details-name .
        wa_it_fldcat-datatype  = wa_details-type_kind.
        wa_it_fldcat-intlen    = wa_details-length.
        wa_it_fldcat-decimals  = wa_details-decimals.
        APPEND wa_it_fldcat TO it_fldcat .
      ENDLOOP.
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fldcat
        IMPORTING
          ep_table        = new_table.
    ASSIGN new_table->* TO <t>.
    CREATE DATA new_line LIKE LINE OF <t>.
      ASSIGN new_line->* TO <dyn_wa>.
    wa_cond = 'CCNUM <> '' '' '.
    APPEND wa_cond TO tab_cond.
          SELECT * INTO TABLE <t>
                   FROM     (p_table)
                   WHERE    (tab_cond)
                   ORDER BY (tab_ord).
    ENDFORM.                    " GET_CCNUM_2

    Hi,
    I tried to execute the code using table BSEGC and it gave a short dump..
    the actual exception that shows in ST22 IS ..UNICODE_TYPES_NOT_CONVERTIBLE..
    I think there is something wrong in the internal table creation..
    Instead of using the method cl_alv_table_create=>create_dynamic_table to create the dynamic table I used the following and it worked..
    CREATE DATA new_table TYPE TABLE OF (p_table).
    * Comment begin  " Naren
    *  ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
    *  it_details[] = ref_descr->components[].
    *  LOOP AT it_details INTO wa_details.
    *    CLEAR wa_it_fldcat.
    *    wa_it_fldcat-fieldname = wa_details-name .
    *    wa_it_fldcat-datatype  = wa_details-type_kind.
    *    wa_it_fldcat-intlen    = wa_details-length.
    *    wa_it_fldcat-decimals  = wa_details-decimals.
    *    APPEND wa_it_fldcat TO it_fldcat .
    *  ENDLOOP.
    *  CALL METHOD cl_alv_table_create=>create_dynamic_table
    *    EXPORTING
    *      it_fieldcatalog = it_fldcat
    *    IMPORTING
    *      ep_table        = new_table.
    * Comment End.  " Naren
    CREATE DATA new_table TYPE TABLE OF (p_table).   " New code by naren
    Please Try this..
    Thanks
    Naren

  • Need to wite pl sql procedure for dynamic select statement

    Need pl sql procedure for a Dynamic select statement which will drop tables older than 45 days
    select 'Drop table'||' ' ||STG_TBL_NAME||'_DTL_STG;' from IG_SESSION_LOG where substr(DTTM_STAMP, 1, 9) < current_date - 45 and INTF_STATUS=0 order by DTTM_STAMP desc;

    I used this to subtract any data older than 2 years, adjustments can be made so that it fits for forty five days, you can see how I changed it from the originaln dd-mon-yyyy to a "monyy", this way it doesn't become confused with the Static data in the in Oracle, and call back to the previous year when unnecessary:
    TO_NUMBER(TO_CHAR(A.MV_DATE,'YYMM')) >= TO_NUMBER(TO_CHAR(SYSDATE - 365, 'YYMM'))

  • Using external XML to add and set parameters for AS cue points.

    Hi there. I am trying to use external xml to set cue point
    times (for video), titles, and other parameters. I have everything
    set up, except getting the proper data from the xml file to set the
    parameters for my cue points. I am researching hard and learning
    quickly - at this point, I need help. Thanks!

    Anyone?
    Still working on this if anyone has advice. Still haven't
    been able to figure out how to put xml data in the right place:
    addASCuePoint(//data from xml here to set name and time of
    cue point - HOW??//);
    Thanks!

Maybe you are looking for

  • Not airplay ing

    I can't get airplay to work. It works for one show then I switch to another and it kicks off. I try to go back and click on mirroring and it still does not work. I turn it off and restart it, and it still does not work.

  • Clear form not working in multi record form 10g.

    I have a multi record block form, when sys_indicator is 'Y' in any of the records, user should not be able to delete this record. In Pre_delete trigger, I put this code below. IF :CST_REFERENCE_CODE.SYS_INDICATOR = 'Y'      THEN      MESSAGE('You can

  • Calculating total memory in oracle RAC environment

    I have to calculate total memry in RAC environment. For shared and buffer pool I execute show sga. For UGA and PGA I execute statement that have two different values. This is my two different methot for calculating total memory in oracle RAC environm

  • Missing Keyboard in Mac

    While I am in windows my keyboard works fine. When I switch to Mac I loose keyboard function. The fn-control-option-command and esc keys work, and the volume controls, up, down, an mute work but not for volume.Most of the regular keys for typing will

  • Scout mode and sbx at same time? Zxr and battlefield 4

    I just recently purchased a soundblaster zxr for playing battlefield 4. I'm still trying to find the best settings, if anyone can help, I would appreciate it so much. When I try to enable scout mode, SBX pro studio becomes disabled. Likewise, when I