Adding a dynamic selection to a logical database query

Hello,
I would like to add a dynamic selection to a SQ02 Infoset using logical database SDF. I need the report to show only documents created at certain dates. I've added a selection field "CR_DATE" for BKPF-CPUDT to the Infoset and added the following code:
SELECT * FROM BKPF
WHERE BKPF-CPUDT IN CR_DATE.
ENDSELECT.
However, the report displays documents created on all kinds of dates regardless of the ones I've specified at the selection screen.
I can only use SQ02 and SQ01. I don't have access to most other transactions such as SE36 nor have the authorization to edit the existing report transaction such as FAGLL03.
Please, help.

Hi John,
Only certain table fields are allowed in dynamic selection, please see this sap note for detail :
Sap Note 310886 - Line items: Dynamic selections ignored
Permitted tables:
SKA1: all fields
SKB1: all fields
BSIS: all fields
So BKPF-CPUDT field is not allowed for dynamic selection.
Regards
Javed

Similar Messages

  • Modifying Dynamic selection in standard logical database

    Hello guys,
    I have a requirement to add a field to a dymamic selection of standard programs.
    The standard programs used the logical database KDF.
    I have created a custom selection view and included the required field which is from table BKPF.
    But this field is not appearing as the table BKPF is not defined as a node in Dynamic selection but in only field selection.
    Can anyone please provide me with come help on this?
    I need to add the a field from BKPF to the dynamic selection of standard logical DB KDF. Is this possible?
    Thanks and regards

    Hello Thomas,
    thank you very much for the precious help.
    I appended the field BKTXT to BSIK and BSAK as used in logical database and these are automatically filled for new postings thanks to Move corresponding (as indicated).
    We are left with only to feed these new fields with existing data/records.
    kind regards..
    Edited by: Devi on May 19, 2009 12:51 PM
    Edited by: Devi on May 19, 2009 12:51 PM

  • How to get dynamic select options from logical database?

    Hi,
    in one of my extended reports (means - overwritten standard SAP functionality in Z-namespace) I'm using LDB 'DDF'. I've been requested to validate some of the dynamic selection options (for example - field HKONT at Document level) and to split the logic depending on the particular value(s).
    Tracking what is happened in the LDB program I found that this select option is added as dynamic WHERE clause to the SELECT statement - in a way:
    WHERE bukrs = p_burks AND ... AND
    (where_tab)
    Is there a way to get values of these LDB dynamic select options into my report and if yes - how?
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP Abap Consultant

    Hi,
    Try to use the following fm in your report and check
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = sy-cprog
          mode_write_or_move = 'M'
        importing
          p_trange           = gt_dyn_trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
    PS please make a whereused of this fm , how it has been used in LDB's to get dynmic selection values

  • Dynamic Selection for non-logical database

    How to read the dynamic selections information to a table that is not in logical database for ex. : BSAD.
    Currently, i'm reading from the function module 'RS_REFRESH_FROM_DYNAMICAL_SEL'. The value for the fields are read one by one...........totalling to thousands of codes.
    Does anyone noe a shorter way of reading it ?
    Please give sme guidance. Thank you.

    Hi Mr Anthony,
    I have a report using logical database. However, the logical database used does not contain a table, BSEG, which i need to access.
    I understand that for tables which are not in the logical database, I cannot use the "GET <tablename>" in the "START_OF_SELECTION" event.
    Please advise on how to use the "SELECT" statement for the BSEG table with constraints from the dynamic selections. Thank you

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • How to hide some select-option of Logical Database in report?

    How to hide select-option of  Logical Database in report?eg . In Logical Database 'PNP' , my code is 'GET  PERNR' , excute the report , select-screen is displayed . I want to hide some select-options , such as PNPPERNR-LOW .
    Edited by: rongrong wang  on Mar 26, 2008 9:31 AM

    U need to write code in initialization as
    initialization.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW'.
    screen-active = '0'.
    modify screen.
    endif.
    if screen-name = 'PNPPERNR-HIGH'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.

  • How to pass a default value in selection screen of logical database pnpce

    Dear All,
    Can any one tell me how to pass a default value in selection screen of logical database pnpce .
    Regards
    Rakesh Singh

    Hi Rakesh,
    Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
    Regards,
    Rahul

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • How to suppress the Selection Screen of Logical Database

    Hi,
    I am using one Logical Database for my report.
    I want to show my customized selection Screen.
    How can I hide the Selection Screen of Logical Database?

    Hi,
    Check the attributes of the report program where you assign the LDB. You can see the parameter Selection Screen press the F4 and check the LBD is provided any Blank screen or not.
    For some LDB's you can find the Report Category in the attribute section of the report. either you can create the new screen or standard screen might be provided with Blank.
    Check there ..
    If you don't find you can use LOOP AT SCREEN..ENDLOOP to hide the fields of LDB.
    Which LDB you are using.

  • How to display selection screen of logical database on a screen

    Hi Experts,
    I create a screen 100, how do I display a selection screen of logical database on this screen.
    Thanks!
    Anthony

    hi
    if u are making HR report then goto attribute -> Logical database -> write PNPCE to create in build selection scree.
    regards,
    Abhilash

  • Modify selection screen for Logical Database 'SDF'

    Hi
    I need to make a section of the standard selection screen for logical database 'SDF' invisible. I have tried the differet selection screen options of the report attributes, but none of the provided ones give me what I want.
    How can I find the name of the screen group for the "Line Item Selection" block of the selection screen so that I can make it invisible when the selection screen is displayed?
    Thanks,
    Thomas

    I tried to do this:
    Loop at screen.
             if   screen-group4 = '026'
               or screen-group4 = '027'
               or screen-group4 = '028'.
                 screen-invisible = 1.
                 modify screen.
             endif.
    endloop.
    This removed the selection text for these fields, but the Line Item Selection block is still visible, and the actual input fields are also visible. They now look like password input fields with all ***** in them.
    What am I doing wrong?
    Thanks for your help!
    Thomas

  • Selection screen of logical database

    hello all,
    i need to find a way to gray out and put a default value in the selection screen generated by the logical database PNP using the HR Report Category X10002.  how would i be able to do this?
    thanks in advance!

    Hi,
    try that
    NODES pernr.
    INITIALIZATION.
    *<b>gray out</b>
      LOOP AT SCREEN.
        IF screen-name = 'PNPBUKRS-LOW'
        OR screen-name = 'PNPBUKRS-HIGH'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    *default
      pnppernr-low = 4711.
      PNPPERNR-sign = 'I'.
      PNPPERNR-option = 'EQ'.
      append PNPPERNR.
    Andreas

  • Selection screen for logical database PNP..

    hi all,
    I am having a requirement to produce a HR Report where i need to use logical database PNP. Now the issue is i need to supress some of the elements of standard selection screen of PNP and add a couple of fields of mine.
    i have been looking all around and i got few of the below methods.
    its good to use a report category.
    somewhere it says include it in ur program using selection screen block..
    can you please guide me which is the best way and what would be a perfect solution?
    thanks in advance,
    Reena

    Hi reeena,
    1. simple
    2. u want to
      a) add ur own fields
      b) suppress some fields
    3. a) is simple, just add your parameters,
       in your program, and they will appear
       b) use SCREEN logic
    4. just copy paste to get a taste of it
      (it will HIDE the PAYROLL AREA field)
      and add MATNR field
    5.
    report abc.
    TABLES : PERNR.
    PARAMETERS : MATNR LIKE MARA-MATNR.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME CS 'ABKRS'.
          SCREEN-INVISIBLE = '1'.
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    regards,
    amit m.

  • Selection screen of logical database PCH

    Hi all,
    I am writing a report using the logical database PCH. For this report I need the full selection screen of the logical database, especially the structure parameters. However, wenn I test my program, I only get a reduced selection screen without the structure parameters and the "further conditions". According to the documentation I found, this behaviour appears when you set the selection screen version to '900' in the program attributes. In my program, the selection screen version is empty, and I still get the reduced screen. The missing selection fields are even totally unknown to the ABAP compiler. E.g. when I try to assign the field PCHWEGID in my report, I get a "field unknown" error message from the compiler.
    I have compared my report in various aspects to the standard report RHSTRU00 which shows the behaviour I want, I did not find any difference, and yet I get a different behaviour.
    Any ideas how to fix this?
    Thank you
    Alexandre

    Hi,
    Did you declare the below statement?
    TABLES: OBJEC, GDSTR.
    Regards,
    -Sandeep

  • Selection screen and logical database PNP

    hi all,
    I am having a requirement to produce a HR Report where i need to use logical database PNP. Now the issue is i need to supress some of the elements of standard selection screen of PNP and add a couple of fields of mine.
    i have been looking all around and i got few of the below methods.
    its good to use a report category.
    somewhere it says include it in ur program using selection screen block..
    can you please guide me which is the best way and what would be a perfect solution?
    thanks in advance,
    Reena

    In the Program Attributes, click on the pushbutton 'HR Report Category'.Click on the 'Create' icon in the pop-up  window that comes up. You will get a list of all the available Report Categories. Go through the list & if you don't find one that suits you, select one that is closest & click on the 'Copy As' icon in the menu bar..
    Now, you can remove the unwanted fields & add yours for selection. save it & and attach it to report in the attributes.
    ~Suresh

Maybe you are looking for

  • I cannot open a specific website on my MacBook Pro.

    About two weeks ago, I started having an issue where I cannot connect to a particular website from my MacBook Pro. Until this time, I had no problem connecting to the site and did so at least once each day. Environment: Running MacBook Pro Retina 15"

  • I can't play music burned as CD.fpbf

    Recently, my computer started using burn folders, including when I try to burn music CDs. The problem is, I can't get these CDs to play in my car or anywhere outside of my computer. I'm not even sure how to benefit from burn folders and at this point

  • Strange box appears

    Wherever I put my cursor in any DW page, design, split, or code presentation, a strange little box appears near the cursor and only goes away when I click the cursor in another place on the page and this it reappears within about 2 seconds. I had tro

  • Composite Primary Key or Auto Increment key ?

    Hi.. i have two ways for make something and don't know what's better ...... Problem : 3 tables Client ----> ( 1,* ) Activity -----> (1,1) ActivityAccreditation A Client it can have one or more activities, and one Activity have one ActivityAccreditati

  • Regarding reference to view

    Hi Guys, I remember that Oracle can create a foreign key on a table, which can reference to column on a view. Is that good design or bad design in reality. I have two tables that include part of ID and some table reference to that ID. I cannot create