Capturing elements value in the selection screen for LDB during run time

Hi,
I have a program where LDB is used.
Could anyone please suggest how to capture the values of the elements present in the LDB's default selection screen.
Specially, the company code and the period values.
Please reply . Its too urgent.
Regards,
Binay.

I got it

Similar Messages

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • Retrieve input values from the selection screen

    I have a requirement to retrieve the variable value or values inputed from the selection screen and label the worksheet tab to replace the tab name 'Sheet1' from the Excel. The only way to do this would be to write a macro to label the sheets but how would I retrieve the value(s) from the selection screen criteria? Is the value of the selection screen entered by the user stored in some table? How would I write the macro to retrieve this value?
    For example, I want to retrieve the company code entered from the selection screen and lets say the company code entered as 10; I would want to replace the worksheet from 'Sheet1' to '10' . Texts would be more recognizable.

    Use the option Layout->Display Text Elements->Variables from the BEx toolbar. This will display Variable screen user input on your workbook in a fixed location. Then you can use your macro to name the worksheet with the cell reference.
    Thanks
    Vineet

  • User presses F4 on the selection screen for the field ''Transport Request"

    Dear ALL,
                     I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
    What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
    How do we Achieve it ?

    Hi.
    First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
    then u can get all the request for that client.
    DFIELD-FIELDNAME = 'P_MANDT'.
    APPEND DFIELD.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname                               = 'Y9EZ_TR_COPYCLIENT'
        dynumb                               = SY-DYNNR
      tables
        dynpfields                           = DFIELD
    READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
    V_MANDT = DFIELD-FIELDVALUE.
    CALL FUNCTION 'TR_F4_REQUESTS'
    EXPORTING
      IV_USERNAME                   = SY-UNAME
      IV_TRKORR_PATTERN             =
      IV_TRFUNCTIONS                =
       IV_TRSTATUS                   = 'RNDL'
      IV_FROM_DATE                  =
      IV_TO_DATE                    =
       IV_CLIENT                     = V_MANDT
      IV_PROJECT                    =
      IV_TITLE                      =
      IV_VIA_SELECTION_SCREEN       = 'X'
      IV_COMPLETE_REQUESTS          = 'X'
      IT_EXCLUDE_REQUESTS           =
    IMPORTING
       EV_SELECTED_REQUEST           = S_TRKORR-LOW.
      ES_SELECTED_REQUEST           =
    'TR_F4_REQUESTS' This function module for request
    Regards
    muralii

  • 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

  • How to disable the Selection screens of LDB's ?

    Hi,
             How to disable the Selection screens of LDB's when we r using the predefined LDB for our executable pgm ? and how to include the predefined LDB  can u write the Code for including LDb or if possible give an example of a Pgm using a Predefined LDB?
    Thanks & Regards,
    Gopi.

    Hi Gopi,
    Go through the link,
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    Regards,
    Azaz Ali.

  • Changing of default values on the selection screen dynamically

    Hi,
          I have 2 radiobuttons R_A & R_B and i have one text field like P_TEXT. Based on selection of radio button i have to change the default values in P_TEXT on the selection screen. like if i select R_A i have to display P_TEXT = 'A'. if i select R_B then it has to display P_TEXT = 'B'. I tried like as below
    in AT SELECTION-SCREEN OUPUT EVENT.
                 IF R_A = 'X'
                   P_TEXT = 'A'.
                 ELSEIF R_B= 'B'.
                   P_TEXT = 'B'.
                 ENDIF.
            But it's not working. it is working only for first radio button. when i select second radio button it is not giving the second value. can any one tell the sol.
    Tks in advance.

    Hi Pammi,
    Use this code, its working:-
    PARAMETERS : r_a RADIOBUTTON GROUP gp1 DEFAULT 'X' USER-COMMAND rb,
                 r_b RADIOBUTTON GROUP gp1,
                 p_text(20).
    "we use user command with the radiobutton so that some event is occured in order to call AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT.
      IF r_a = 'X'.
        p_text = 'Hello'.
      ELSEIF r_b = 'X'.
        p_text = 'Hi'.
      ENDIF.
    In the above case 'AT SELECTION-SCREEN OUTPUT' will act as PBO of the selection screen and will change value of selection text as per condition.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Modify the selection screen for the transaction VF04

    Hi all,
    My requirement is as follow . I need to modify the selection screen (1000) in such a way that I need to add three more fields to te existing selection screen and make some check boxes checked by default which are unchecked . I have found out all the exits in this development clas VF .  I am listing them out here .
    J_3RSINV  Export Sales
    SDVFX001  User exit header line in delivery to accounting          
    SDVFX002  User exit for A/R line (transfer to accounting)          
    SDVFX003  User exit: Cash clearing (transfer to accounting)        
    SDVFX004  User exit: G/L line (transfer to accounting)             
    SDVFX005  User exit: Reserves (transfer to accounting)             
    SDVFX006  User exit: Tax line (transfer to accounting)             
    SDVFX007  User exit: Billing plan during transfer to Accounting    
    SDVFX008  User exit: Processing of transfer structures SD-FI       
    SDVFX009  Billing doc. processing KIDONO (payment reference number)
    SDVFX010  User exit item table for the customer lines              
    SDVFX011  Userexit for the komkcv- and kompcv-structures           
    V05I0001  User exits for billing index                             
    V05N0001  User Exits for Printing Billing Docs. using POR Procedure
    V60A0001  Customer functions in the billing document               
    V60P0001  Data provision for additional fields for display in lists
    V61A0001  Customer enhancement: Pricing          
    Going with the descrition I dont see any of them suits my requirement .  But there should be an approach . Can anyone please help me to find out an exit or explain me how do we identify an exit to modify the selection screen of an standard ransaction .
    Regards,
    Varun .

    Hello,
    I would suggest you to go for BADI,
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regs,
    Venkat

  • Comapare the string value in the selection screen

    In the selection screen input field
    there is an option of selecting the directory and file name and not the extension .
    This is used to download the datas
    Extension can be selected by using the option button
    rtf
    csv.
    the user has to give only  the filename and not the extension.
    suppose if the user input is C:\temp\file1.doc.
    Either i should take only the filename
    or i should display the message give only the filename and not the extension . its already been selected!!!!
    I want to compare the input string contains  .doc
    how to do the comparison and to get the above results mentiond
    Thanks
    ABAPer

    hi,
    I have already done using the method given by you.
    Because the requirment is there are two option buttion for selecting the download file format
    But unknowingly if the user gives the filename along with the extension. I need to handle that error
    giving some error message or information message
    By comparing the last 4 letters of the filename.. either.doc or rtf or csv or watever
    so how to do that
    then after comparing that i should give the user a msg doc type is already selected give only the filename
    I hope u understand my req
    thanks

  • Default value on the selection screen.

    Hi All,
    We have a field on the selection that is Sales Organisation.
    Now for this field we want the default value coming from the User Parameters.
    i.e On SAP menu under SYSTEM there is User profile, In that user profile if you go to OWN DATA, There is tab called parameters.
    Here VKO Parameter ID the sales Organisation is defined. They want this value to come as default on the screen.
    Please help out how can this be done.

    In the INITIALIZATION write the code as below.
    get paramater id 'VKO' into field p_sfiled.
    here p_field is your selection screen field.
    Reward points if useful
    Regards,
    Nageswar

  • Add custom field in the selection screen for shopping cart monitor report

    Hello,
    refering to the notes 458591 an 672960, in order to add custom field at item level, we get the structure INCL_EEW_PD_ITEM_CSF.
    But this doesnt make it appear on the "Shopping Cart Monitor Report" selection screen.
    So should I try adding it in the existing interface of the badi bbp_sc_mon ?

    hello Yann,
    ok I will implement that. Is it possible to change the interface of the badi method to  include more data if we want to check the role of the user who is executing the shopping cart monitor report and accordingly do the settings of field display ? Or calling a function module inside the method to get the attributes of sy-uname would be easier?
    rita

  • Selection screen list box with run time values

    Hi,
    I have to create a selection screen list box with with values at run time.
    This is actually for a maintanence view.
    Please help.
    Thanks
    Vimalraj

    Have a search in SDN and elsewhere for the function module 'VRM_SET_VALUES'... for example there's one at:
    Re: Listbox with Function code in Table control
    wherein the 2nd listbox contents are driven from the option selected in the first listbox.
    Jonathan

  • Values not getting displayed in the selection screen for Hierarchies?

    Hi All,
      Our system was upgraded from BW 3.1 to 2004s. The quality system displayes values when query result is filtered for a hierarchy infoobject but the production system does not display any values and sometimes throws an error 'The operation failed because of a server error. See system logs.' There is no changes done for hierarchies in both the systems.
    Please let me know if anyone has had similar problems.
    Thanks,
    Krishna

    Hi All,
      Our system was upgraded from BW 3.1 to 2004s. The quality system displayes values when query result is filtered for a hierarchy infoobject but the production system does not display any values and sometimes throws an error 'The operation failed because of a server error. See system logs.' There is no changes done for hierarchies in both the systems.
    Please let me know if anyone has had similar problems.
    Thanks,
    Krishna

  • Set all checkboxes of the selected column by user at run time

    Hi ,
    I have a table control tab_500 with the 3 columns of checkboxes. When user selects particular column, and click on the buttone 'Select All', all the checkboxes of that column should get selected.
    loop at tab_500-cols into cols_500.
      if cols_500-SELECTED = 'X'.
      endif.
    endloop.
    How to do this.
    Thanks in advance,
    Regards,
    Madhuri

    Hi,
    In PAI write this code..
    DATA wa_table TYPE cxtab_column.
    IF SY-UCOMM EQ 'SELALL'.
         LOOP AT <tablecontrol>-cols INTO wa_table.
            IF wa_table-screen-name CS <checkbox colume name in upper case>
               AND  wa_table-selected = 'X'.
              itab-check1 = 'X'.      " Check box field set to X
              MODIFY itab TRANSPORTING check1 WHERE check1 = space . " modify the internal table
            ENDIF.
          ENDLOOP.
    ENDIF.

  • I have disabled the drop down menu system during run-time on a VI. How do I get it back?

    This occurred when I made a custom menu but deleted it and replaced the menu with the default.
    Thanks

    In LabVIEW 6 go to VI Properties>Window Appearance>Customize>Show Menu Bar. In LabVIEW 5 it's VI Setup>Window Options>Show Menu Bar.

Maybe you are looking for

  • Satellite P870 - WiFi issues after Win 8.1 upgrade

    Internet through wireless is hopeless. Maybe 3 in 10 pages will load correctly or not at all, mostly not at all. Other wireless devices in the house are fine, as is using the Ethernet . Checked the drivers through the device manager, says they are up

  • PO Header Report

    Hi All, I am looking for a report that shows PO header details only, like PO #, PO Value, Vendor # etc SAPXPT

  • How do I put a collection in a readonly report on the fly

    How do I put a collection in a readonly report on the fly?? Thanks, examples if you can please.

  • CuteFTP Issues on a MBP

    Is anyone else using CuteFTP for Mac ? If so, have you noticed any mis-reported file sizes on downloaded items ? For example: I downloaded a load of RAR archive files and a couple of times a 14.3MB file reported itself as 32GB with the associated OS

  • How do Print TXT file in JAVA...?

    Dear sir, i have a program for printing txt file.... i tried below program.. 1. This code executed without exception... but its not printing.... when i saw print buffer, file is add but not printing 2. Please help me out.... or give me some clue....