Access field from dynamic selection screen of LDB in local program

I am using ldb PSJ in my program. I want to use input given in fields "Plant" and "Business Area" in my program and do some process based on input in this field. Both these fields come as part of dynamic selection. How can I access this field in my program?

Take a look at [Dynamic Selections in the Database Program|http://help.sap.com/saphelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/frameset.htm]
You may try to access this LDB program data via field-symbols and assign to (SAPDBPSJ)DYN_SEL.
> TYPE-POOLS rsds.
> DATA: l_dyn_sel TYPE rsds_type.
> FIELD-SYMBOLS: <fs> TYPE rsds_type.
> DATA: name(17) VALUE '(SAPDBPSJ)DYN_SEL'.
> ASSIGN (name) TO <fs>.
> l_dyn_sel = <fs>.
> UNASSIGN <fs>.
Regards

Similar Messages

  • How to Add a new fields in the selection screen of LDB.

    Hi All,
    I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
    So could you please tell me for that where i need to add the code for selecting the data.
    Thanks
    Roli

    Hi
    welcome to SDN forum
    If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
    if you wants to modify the std LDB of SAp means take the access key and to modify that code
    if you add the extra field you have to modify the where conditions in the code also
    see the doc
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    Regards
    anji

  • Working with dynamic selection screen in LDB FMF

    Hi Guys,
    I am working with LDB FMF and I have a requirement where user need the selection field in initial screen which is already comming in dynamic selection option.
    Is it possible without changing the standerd LDB.
    Atul
    Edited by: Atul Dhariwal on Jun 16, 2009 6:27 AM

    Hi,
    my requirement is to list fields from dynamic selection to appear in the main selection screen.
    user doesn't want's to click on dynamic selection option and select the fields.
    I hope i am clear this time.
    Atul

  • Add certain field at dynamic selection screen in FBL3N transaction

    Hello Expert,
    I would like to add entry date field (BKPF-CPUDT) at dynamic selection screen in FBL3N transaction.
    So, I went to SE36 transaction and changed something in selection view for SDF.
    However, it didn't work.
    Is there anyone who knows how to add a certain field at dynamic selection screen in FBL3N transaction?
    Thanks in advance.
    BR,
    Chris Kim

    Hi
    Refer to the following thread
    Additional field selections in FB03
    It talks about adding Header Text field
    You should be able to add entry date similarly
    Regards
    Sach!n

  • How to retrieve values from Dynamic Selection screen while using LDB  - PSJ

    I am having problem in PSJ Logical database. In a custom report which is using PSJ LDB, we are using PROJ and PRPS_R tables.
    When I run program it displays one dynamic selection screen, there we are giving selection criteria for PRPS (Master data WBS element) - Created on (giving some range like 2011/01/01 to 2011/01/31).
    So I want to display all WBS element which are created during the period (2011/01/01 - 2011/01/31).
    How do I retrieve the select-option low and high value of the field Created on Of WBS element if we Select data from any table based on this condition.
               Please help me.
    Thanks.

    in fact you don't have to get the values, you only need to tell to the program to take them into account :
    GET PRPS.
      CHECK SELECT-OPTIONS.

  • Populating text fields from dynamic select

    I have been searching the net for a javascript/ajax solution
    that will populate a number of text fields based on the selection
    from a dynamic select field. Specifically, when the person selects
    a company name, the companies address and phone number gets pulled
    from a second recordset that gets filtered by the choice from the
    dropdown. This needs to be done without postback.
    The page is built using php/mysql and the select is populated
    by one of the recordsets.
    Any direct help or steering to a solution would be
    appreciated.

    Thanks for the reply.
    Right now I'm starting with a blank form and once I get my head wrapped around this then I was going to modify what is already in use.
    I'm attaching my scheme and xml file.
    Thanks!
    Derrick
    I get an error when trying to upload my schema. I am pasting the content of the file here. I call it proofout.xsd
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="userList" type="UserList" />
    <xs:complexType name="User">
      <xs:sequence>
       <xs:element name="csrName" type="xs:string" />
       <xs:element name="csrExt" type="xs:int" />
       <xs:element name="csrFax" type="xs:string" />
       </xs:sequence>
       </xs:complexType>
       <xs:complexType name="UserList">
       <xs:sequence maxOccurs="unbounded">
        <xs:element name="user" type="User" />
        </xs:sequence>
        </xs:complexType>
        </xs:schema>

  • Added field to dynamic selection screen does not work in FBL5N

    hi,
    we have added KNA1-KATR5 to the selection screen of FBL5N by using logical database DDF using "view CUS" but it does not work.
    Our system is 6.0
    is there any OSS note or program that we should add?
    many thx.

    Refer This:
    Additional field selections in FB03

  • Business Place in Dynamic Selection Screen

    Dear Gurus,
    I want to bring Business Place field in Dynamic Selection Screen of Transaction code FBL3N. Please guide how to do this.
    Regards,
    VS

    HI,
    The fields which are eligible for dynamic selection can be reviewed for
    the related logical database via trans SE36, e.g., using logical data-
    base SDF (G/L accounts), select Extras -> Dynamic selections.  The
    following tables are available:
         SKA1 G/L Account Master (Chart of Accounts)
         SKB1 G/L Account Master (Company Code)
         BSIS Accounting: Secondary Index for G/L Accounts <   Use for BUPLA
    Table BSIS contains the BUPLA (Business place) field which can be
    added to the dynamic selections for trans FBL3N (see note 310886 for
    additional info).
    Please perform the following steps to add the line item (BSIS-BUPLA)
    field to dynamic selections:
    1)  Run trans SE36 using logical database SDF.  Select Extras ->
        Selection views.  Enter origin of view CUS.  Click on Create.
    2)  Under Tables/Nodes, scroll down to table BSIS and double click on
        it.  This will display the available fields from table BSIS below.
    3)  Under Functional groups, enter functional group ID / text:
        Functional groups
    ->   01  BSIS
    4)  Under Table fields/Node fields, enter functional group ID from
        step 3 to the left of the BUPLA field:
        Table fields/Node fields
    -> 01  BUPLA            Business place
        Click on Save.  Msg S3404 "Selection view saved" should appear.
    5)  Run trans FBL3N.  Click on Dynamic selections -> BSIS.  Double
        click on Business place.  A popup box should appear allowing entry
        of a single business place value.  Click on Multiple selection ->
        Ranges to enter business place range.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • Exclude one field from Logical Database's dynamic selection screen

    Hi Guru,
    I have a requirement to amend a program to exclude the document number field (bsik-belnr) from the dynamic selection-screen of the logical database KDF(Vendor Database) so that the program will not filter according to the document number.
    I have use the below syntax in my zprogram.
      selection-screen exclude select-options: doc-no.
    However I get syntax error "The addition EXCLUDE is only allowed in INCLUDE DBKDFSEL".
    Please advice.
    Best Regards,
    Fung

    The selection part of the logical database defines input fields for selecting data.
              The runtime environment displays these on the selection screen when you run an executable program linked to the logical database.
              Include called DB<ldbname>SEL.
            SELECTION-SCREEN BEGIN OF VERSION ver TEXT-xxx.
                                                                    SELECTION-SCREEN EXCLUDE ... .
                                                    SELECTION-SCREEN END OF VERSION ver.
    Defines a selection screen version (with a three-character name ver ). Between BEGIN OF VERSION and END OF VERSION , you can exclude selection screen objects for the version ver , i.e. remove them from the selection screen with SELECTION-SCREEN EXCLUDE.
              SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab
    If one of these tables is active in the report (i.e. it is declared under TABLES or lies somewhere on the path from the root of the database hierarchy to a table declared with TABLES ), a pushbutton called 'Dynamic selections' appears on the selection screen.

  • Dynamic selection screen fetching the value from table fields

    hi gurus,
    i have one table say ztable...and i should create a dynamic selection screen which should populate the selection screen by the table field names.
    example..if i have 3 fields im my table..my selection screen should have three selection option fields..and in future if i add one more field in my table it should automatically create another slection-option in selection screen..
    thanks
    Sudheer

    Do you mean like SE16 works. If so, you should notice that if you  amend the selection fields, the screen program is actually re-generated.
    That is what is happening. A program is being created and re-generated.
    To create a dynamic selection screen in a single program is not possible ( I may be wrong ). If it is possible, then you would have problems in defining selection screen field names and using them.

  • How to add a new Field in the Dynamic Selection screen section.

    HI,
    There is a requirement in which I need to add a field in existing program of dynamic selections.
    I need to add a field KNKK-DBRTG (Customer Rating) in dynamic selections screen of some existing report
    which has a dynamic selection screen with other fields like customer account, company code etc. Along with this i need to add Customer rating field also in the selection screen.
    I have used GET KNKK statement to select this in the Dynamic selection screen. But I need to make it appear
    on the screen.
    LDB used is the Customer Database.
    I have added GET KNKK statement after GET KNA1 statement.
    Can any one help me how we can make this rating field appear in the selection screen.
    With the GET statement Credit control area Fields can be selected in the selection screen but I have to permanantly add the field in the selection screen.
    Regards
    Prashant Prabhu

    Hi,
    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • How to Add fields in dynamic selection LDB BRF

    Hi All,
    I have requirement to add a field BSEG-ZLSCH in Logical Database BRF dynamic selection.
    I have tried doing the same by using below mentioned link but its not appearing in the report dynamic selection screen
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e0039a-0d79-2c10-0aaf-9f6c062c0ffb?quicklink=index&overridelayout=true
    Could you please help me a Legal change delivery is pending due to this issue.
    Thanks and best regards,
    Niteesh Rai

    Dear Niteesh,
    The Logical Data Base BRF reads table BKPF and BSEG, but there is no
    option to include fields from BSEG in the dynamic selection.
    You can display all the tables included in BRF, but only fields from
    BKPF could be included in the dynamic selection. You cannot add
    entries from BSEG, BSET, KNB1, KNBK, and so on that are listed here.
    You are right, there is not note that explains this behaviour, but I
    inform you what is the system design. This has been confirmed by my
    Development colleagues.
    Regarding to note 832997, this is valid for releases 500 and 600 when
    New G/L is available. The system functionality has been enhanced in
    release 500 so you can add fields from FAGLFREESEL that is similar
    to BSEG with New G/L.
    BR, Hana

  • Adding new table dynamic selection screen of transaction FBL5N (LDB DDF).

    Hi,
    I have a requirement to add SEGMENT (CEPC-SEGMENT) field on the dynamic selection screen of transaction FBL5N (LDB DDF).
    Please let me know how can I meet this requirement
    Thanks

    I did not find any screen exits for this Tcode, may be you need to use enhancement spots.

  • Dynamic Selection Screen Fields

    Hi All,
    I have made a copy of the program FI_RFSOPO00. This report uses dynamic selection screen. I wanted to know the names of these dynamic selection screen. As I have to make some database selections based on the user entries in these fields.
    Is there a way to find this out?
    Regards,
    Stephen

    Hi Stephen,
    1) FI_RFSOPO00 is unknown- i think you mean <b>RFSOPO00</b>
    2) RFSOPO00 uses logical datbase SDF, which uses
       free or dynmaic selections from the tables ska1,skb1
       and bsis.
    see F1 to <i>SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab </i> and ta SE36 to SDF too.
    regards Andreas

  • Adding a BSEG field to the FB03 dynamic selection screen

    Hello,
    We have a requirement wherein we want to add a field from BSEG in the dynamic selection screen of FB03.
    We found that the logical database behind this is BRF.  So we created a u2018CUSu2019 selection view for the logical database and added the field from BSEG to the functional group
    and checked the checkbox u201CPreselectu201D for it to appear automatically in the FB03 screen.
    But we still couldnu2019t see the field in FB03 dynamic selection.
    On analysis, we found that only tables are that are defined in the nodes (Extras  Selection views) can be used to create the dynamic selection and BSEG was not available
    as one of the node.  So we added BSEG as one of the node by adding the below code to the SELECTION of the logical database.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE BSEG.
    Even after that, we couldnu2019t see the field from BSEG in the dynamic selection.
    Are we missing anything here?
    I see many threads here on similar lines but no one has posted the exact step. Any help is highly appreciated.
    Thanks a lot.
    Regards,
    Suganya

    Hi
    If you want to take the line item details than you can refer these t-codes rather than customizing.
    S_AC0_52000887 - Receivables: Profit Center
    S_AC0_52000888 - Payables: Profit Center
    S_ALR_87012332 - G/L Account Statements
    Here by using the dynamic selection you can get the results. Use object list display and select the layout for more fields.
    Thanks

Maybe you are looking for

  • Zen Touch issue - clock and stops playin

    Every once in a while, my Touch seems to just kinda stop playing which gives me a suprise - its locked and is like nowhere near the last track, and even taht i have on repeat all that and when that happens, the clock resets - suggestions anyone?

  • How to restore Deleted TOPLEVELSITE welcome pages and Administrator Start

    Oops, I deleted the TOPLEVELSITE welcome pages tabs after a new portal installation and upgrade to 10.1.4. What are the methods to restore these pages? I backed up all the portal databases right after the upgrade but I hope there is another method...

  • Vendor Discounts in SAP

    Hi, What is the difference btw cash discount and trade discount? In SAP how the vendor discounts are provided in both FI and MM. I know that the discount will be calculated through payment terms. But in purchase order, in condition tab, I can see the

  • Wmv files too dark

    Hi Everyone, I'm using VisualHub for wmv file conversion but the images are very dark. I do standard broadcast level adjustments on all my projects but I'm thinking that I need to adjust the gamma level to eliminate very crushed black levels. If this

  • Report - Return days since LAST activity

    Hi, I need a report that returns "All open SRs with the amount of days since the LAST completed activity of type X" (so we can see when the activity needs to happen again) I have managed to create a report that brings back "all open SRs with the amou