Modifying the selection screen in an LDB

Hello Experts,
   I have a requirement wherein, i need to copy a standard report which used an LDB 'ERM', into a z report and modify its selection screen(Add a check box).
Is this possible?
If yes, can you tell me how?
Thanks in advance,
Regards,
Ravi

Hi ravi,
1. simple
2. just add your single line code for checkbox.
3. It will automatically come
   beneath the standard selection screen of ldb.
regards,
amit m.

Similar Messages

  • 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

  • Modifying the selection screen dynamically

    Hey folks,
    I have posted this question previously but no one understood the real problem.
    I have 4 fields
    Company Code
    material Number
    plant
    storage Location
    Unit
    when I select the company code AA01 from the F4 help I want to disable material number and Plant ..Like this i have 4 scenarios where based upon the input given in the selection screen other fields have to be enabled or disabled.
    I have already used at selection screen on output but that doesn't help me as its a PBO event I tried to search for a proper event but cudn't find it. Is there any way i can achieve this. A sample code wud be easy for me to understand .
    Thanks in advance
    Rock

    Set different groups in your fieds on the screen.
    Set the screen group for the Material and Plant as the GR1
    Set the screen gorup for the Storage location as the GR2.
    You need to modify your screen fields on the PBO event.
    Like:
    IF P_BUKRS = 'AA01'.
    loop at screen.
       if screen-group1 = 'GP1'.
         screen-input = 0.
         modify screen.
       elseif screen-group2 = 'GP2'. 
         screen-input = 1.
         modify screen.
       endif.
    endloop. 
    else.
    loop at screen.
       if screen-group1 = 'GP2'.
         screen-active = 0.
         modify screen.
       elseif screen-group2 = 'GP1'. 
         screen-input = 1.
         modify screen.
       endif.
    endloop. 
    endif.
    Regards,
    Naimesh Patel

  • Filtering of the data based upon the selection screen data using ldb

    Hi Experts ,
    I am using ldb pnpce, for my report ,and i created my own report category with selection paramaters
    action type and payroll area
    now the problem is when i am giving the action type as Z0 ,the data to be extracted is not getting filtered
    based upon the action type ,the data consists the records having different action types other than Z0
    Please give me some solution for this

    Thanks Durga ,but the link wat ever u was for hiding the selection screen fields
    but my question is when am using get pernr event my data is not getting filtered with the selection screen paramater value
    i,e m giving action type as only hiring ,but m getting the data for all the action types ,its not filtering based upon my selection

  • How to Modify the Selection Screen in Report Painter

    Hi All,
    I am working on Report painter and writer,
    can any body helpme how to change the selection screen i.e i want add some more  select options to the exisiting roport .
    how can i  add more select options to the exisiting one
    please let me know the Procedure and provide some relevent documents .
    Thanks and Best regards.
    uma

    Hello...
    In the program ...we can find the following chunk of code..
    selection-screen:begin of block B1 with frame title text-001.
    Parameters : ....
    select-options:.....
    selection-screen:end of block b1.
    if we need to add any more user inputs we can write the code inside the existing
    selection screen....end of block .
    or create a new block ..just the block name should be different...
    if we are using select options...we need to declare the table name using the key word for the field on which we are giving select options ....
    Tables : BSIK.
    Please see the following code:
    Imagine :- we have the current selection screen..
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_BUKRS LIKE BSIK-BUKRS DEFAULT SPACE.
    SELECT-OPTIONS: S_LIFNR FOR BSIK-LIFNR.
    SELECTION-SCREEN END OF BLOCK B1.
    we need to add 2 more fields on the selection screen ..this we can do as the following
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_BUKRS LIKE BSIK-BUKRS DEFAULT SPACE.
    SELECT-OPTIONS: S_LIFNR FOR BSIK-LIFNR,
                    S_HKONT FOR BSIK-HKONT.
    PARAMETER: P_DATE LIKE BSIK-BUDAT OBLIGATORY DEFAULT
               SY-DATUM.
    SELECTION-SCREEN END OF BLOCK B1.
    OR...create a new block...
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS:   S_HKONT FOR BSIK-HKONT.
    PARAMETER: P_DATE LIKE RFPDO-ALLGSTID OBLIGATORY DEFAULT
               SY-DATUM.
    SELECTION-SCREEN END OF BLOCK B2.
    there are many options available in selection screens..like creating check box,radio button etc..
    for more info press F1 help on the Selection screen in the ABAP editor
    Revert back if not clear and reward if helpful
    Regards
    Byju

  • Modifying the selection screen

    Dear all,
    I have two fields in selection screen sales order & SV Note.
    Here if i enter SO,the SV Note field should be disabled & if i enter SV Note, SO field should be disabled.
    Can any one give me the code for this ASAP.
    Thanks & Regards,
    Naresh

    Hi Naresh,
    Use the following code
    select-options : s_order .... modif id 'ABC',
                           s_sv..........modif id 'DEF'.
    at selection-screen.
    loop at screen.
    if screen-group1 = 'DEF'.
       if not s_order is initial and screen-fieldname = 'S_SV'.
         screen-input = '0'.
         modify screen.
       endif.
    endif.
    endloop.
    try this and get back to me incase of any queries.
    Dont forget to reward points if found useful.
    Thanks,
    Satyesh

  • Modify the selection screen

    Hi all ,
    This is how I have defines my selection screen :
    *           S E L E C T   O P T I O N S & P A R A M E T E R S         *
    SELECTION-SCREEN BEGIN OF BLOCK b1
                              WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1 .
    SELECTION-SCREEN BEGIN OF BLOCK b4
                              WITH FRAME TITLE text-004.
    SELECT-OPTIONS : s_matnr FOR mast-matnr ,
                     s_werks FOR mast-werks OBLIGATORY ,
                     s_andat FOR mast-andat ,
                     s_aedat FOR mast-aedat ,
                     s_stlnr FOR stko-stlnr NO-DISPLAY .
    SELECTION-SCREEN END OF BLOCK b4.
    SELECTION-SCREEN SKIP 1 .
    SELECTION-SCREEN BEGIN OF BLOCK b3
                              WITH FRAME TITLE text-003.
    PARAMETERS : p_sspec  TYPE c AS CHECKBOX DEFAULT 'X',
                 p_fspec   TYPE c AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN BEGIN OF BLOCK b2
                              WITH FRAME TITLE text-002.
    PARAMETERS : p_pr TYPE sfpoutputparams-preview  RADIOBUTTON GROUP g1 ,
                 p_rm TYPE sfpoutputparams-reqimm   RADIOBUTTON GROUP g1 ,
                 p_dl TYPE c                        RADIOBUTTON GROUP g1 .
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b5
                              WITH FRAME TITLE text-017.
    PARAMETERS : p_fpath LIKE rlgrap-filename .
    SELECTION-SCREEN END OF BLOCK b5.
    SELECTION-SCREEN END OF BLOCK b1.
    Now my requirement is the file path parameter should not be displayed when I select p_pr or p_rm . It should be displayed only when I select p_dl . I know this has to be coded in at selection-screen output event but not sure how to achieve this .
    Can anyone help me out with this  .
    Thanks,
    Varun  .

    See the Below Logic :
    Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:     s_werks  LIKE zwafpo-dwerk OBLIGATORY DEFAULT '1000'.
    "Plant
    PARAMETERS:     p_vdatu  LIKE sy-datum OBLIGATORY modif id bel .
    select-options : s_vdatu for sy-datum obligatory modif id rel.
    SELECT-OPTIONS: s_waveno FOR  zwafpo-zzrun. "Wave Run
    SELECT-OPTIONS: s_dept   FOR  marc-zzdept OBLIGATORY. "Department
    select-options : s_arbpl for RC68A-arbpl modif id arb.
    select-options : s_mtart for mara-mtart modif id mta.
    SELECT-OPTIONS: s_pwave  FOR  zwafpo-zzpwaveno.
    SELECT-OPTIONS: s_swave  FOR  zwafpo-zzswaveno.
    SELECT-OPTIONS: s_aufnr  FOR  zwafpo-aufnr.
    SELECT-OPTIONS: s_matnr  FOR  zwafpo-matnr.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_conf AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(30) text-003.
    SELECTION-SCREEN END OF LINE.
    *selection-screen skip 1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_pconf AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(26) text-007.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_nconf AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(25) text-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_teco AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(28) text-008.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_del AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(25) text-006.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-005.
    PARAMETERS: p_sumexc RADIOBUTTON GROUP g1 DEFAULT 'X'. "Incl Summary rpt
    PARAMETERS: p_suminc RADIOBUTTON GROUP g1.             "Only Summary rpt
    SELECTION-SCREEN END OF BLOCK b3..
    selection-screen : begin of block blk with frame title text-010.
    parameters : p_old radiobutton group rad default 'X',
                 p_new radiobutton group rad.
    selection-screen : end of block blk.
    User Dynamic Selection
    at selection-screen output.
      select single * from t000md.
      loop at screen.
        case screen-group1.
          when 'REL'.
            if not  p_old is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'BEL'.
            if not p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'ARB'.
            if  p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'MTA'.
            if  p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
        endcase.
      endloop.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Adding a new field to the selection screen of a LDB

    Hi all,
    I want to add a new field Clearing date(BSEG-AUGDT) in the dynamic selection screen of  the report RFUMSV00.
    For adding a new field i have copied the SAP view of a Logical database to CUS view.
    Next i had added the Clearing date(BSEG-AUGDT) to the function group Document header(01) and selected the check box Preselect and saved the view.
    But still i am not able to find the newly added field in the dynamic selection screen of the report.
    Please suggest me where i am going wrong or how to do this.
    Thanks in advance
    Ajay

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • How to modify the selection screen frame.

    <b>Friends,
    I need to create two separate blocks A | B.
    Using SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME , we can able to create the blocks one below the other.
    How to create two blocks side by side?
    And also how to fix the size for the block
    Example: block with specific height and width
    Please help it
    <b></b></b>

    Hi,
    If you use the WITH FRAME addition, a frame is drawn around the block. You can nest up to five different blocks with frames.
    SELECTION-SCREEN BEGIN OF BLOCK RAD1
                              WITH FRAME TITLE TEXT-002.
      PARAMETERS R1 RADIOBUTTON GROUP GR1.
      PARAMETERS R2 RADIOBUTTON GROUP GR1.
    SELECTION-SCREEN BEGIN OF BLOCK RAD2
                              WITH FRAME TITLE TEXT-002.
      PARAMETERS R3 RADIOBUTTON GROUP GR2.
      PARAMETERS R4 RADIOBUTTON GROUP GR2.
    SELECTION-SCREEN END OF BLOCK RAD2.
    SELECTION-SCREEN END OF BLOCK RAD1.
    Regards
    Sudheer

  • 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.

  • Inserting a block ABOVE  the standard selection screen of an LDB

    Hi,
    I am using LDB : PNP in my report. I want to add a block on the selection screen ABOVE the standard LDB screen.
    Plz help....
    Sample code appreciated.....
    Thanks,
    Akash

    >
    Akashdeep Basu wrote:
    > Hi,
    > I am using LDB : PNP in my report. I want to add a block on the selection screen ABOVE the standard LDB screen.
    >
    > Plz help....
    > Sample code appreciated.....
    >
    > Thanks,
    > Akash
    NOT possible. you can only append to the Std selection-screen. One option is to hide it altogether, so the user sees only the custom block...
    ~Suresh

  • Selection screen versions in LdB

    The following questions are related to SAP delivered LdBs that are not for HR.
    a) Do you know where the selection screen versions for a delivered LdB are stored?
    b) Can additional selection versions be created /delivered selection screen versions modified? Or the authorization for doing the changes is generally not provided.
    Thank you much,
    Fred.
    Edited by: Fred Myer on Jan 30, 2008 11:16 PM
    Guys, any help?

    Hi,
    Try declaring some global variable in the data delclaration event, and pass the values these variable at selection screen, and use them wherever required.
    Regards,
    Santhosh.

  • Problem with checkbox in the selection screen

    Hi guys,
    I have a problem with the check box in the selection screen.When i select a check box then a field in the selection screen should be enabled for entering a value.Again if i unselect the checkbox then the field should be disabled for entering a value.I have written the code in at selection-screen output.
    The problem is when i select the check box ,the field is not enabled.But when i press enter after selecting the checkbox then the field is enabled for input.It is the same when i unselect the checkbox,after i press enter only the field is getting disabled.What could be the problem.Any suggestions please?
    Thanks.

    Hi d p
                 Please try this code . I think this code have some way that you would like.
    REPORT  zdownload_to_application_server.
    TABLES : caufvd, jest.
    I N C L U D E  P R O G R A M                                        *
    *INCLUDE znrpstnd.
    Selection Screen                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    PARAMETERS: p_outb RADIOBUTTON GROUP g1 USER-COMMAND outb DEFAULT 'X' ,
                p_inb RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETERS : p_werks LIKE caufvd-werks MODIF ID a.        " Plant   "OBLIGATORY
    SELECT-OPTIONS  :  s_auart FOR caufvd-auart MODIF ID a,       " Order Type
                       s_aufnr FOR caufvd-aufnr MODIF ID a.       " Order number
    PARAMETERS: p_path TYPE string DEFAULT 'C:\SchedulerInterface-OutboundTextFile\' MODIF ID a,
                p_actual AS CHECKBOX MODIF ID a.                  " Transfer Actual
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETERS : p_werks2 LIKE caufvd-werks MODIF ID b,   " Plant   "OBLIGATORY
                 p_path2 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
                 p_path3 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
                 p_sessio TYPE apqi-groupid MODIF ID b.   " BDC Session
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      IF p_outb EQ 'X'.   " Outbound --> Hide inbound
        LOOP AT SCREEN.
          "IF screen-name = '%BT02011_BLOCK_1000'.
          IF screen-group2 = 'BLK'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'A'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'B'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          "IF screen-name = '%BT01004_BLOCK_1000'.
          IF screen-group3 = 'BLK'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'A'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'B'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path2.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\SchedulerInterface-InboundTextFile\'
          mask             = ',Text Files,.txt,All files,.*.'
        IMPORTING
          filename         = p_path2
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path3.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\SchedulerInterface-InboundTextFile\'
          mask             = ',Text Files,.txt,All files,.*.'
        IMPORTING
          filename         = p_path3
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    TOP-OF-PAGE.
    START-OF-SELECTION.
    Regards
    Wiboon

  • HR-ABAP: Defaulting Radio Button on Selection Screen of PNP LDB

    Hi all,
    I am using PNP LDB (Logical Database) for program which is used for Payroll Results.
    Now I have a requirement wherein it is necessary to select 'Up to today' as default on the selection screen.
    We are having 4.7C version of SAP. I tried following code in INITIALIZATION event:
    Initializing Selection Screen Data Selection Option to 'Up To Today'
    INITIALIZATION:
      MOVE:  'X'    TO    pnptimr4, " This is the option which I want as Default selection.
             space  TO    pnptimr1,
             space  TO    pnptimr2,
             space  TO    pnptimr3,
             space  TO    pnptimr5,
             space  TO    pnptimr6.
    But still I dont see this Radiobutton getting selected as Default selection while running the program.
    By Default it selects Option : 'Other Period' (pnptimr6).
    Any Idea how to resolve this ??
    Regards,
    Avinash

    hi...
    When the INITIALIZATION event occurs, you can set default values for the selection screen.
    The fields for the data selection are defined in structure QPPNP.
    Possible values for field PNPTIMED are:
    D     =      Today (key date)
    M     =     Current month
    Y     =     Current year
    P     =     To current date
    F     =     From today (from current date)
    The person selection fields are defined in include program DBPNPSEL. They are internal tables that must be filled using APPEND.
    so in intialization you have to write code as
    PNPTIMED : P.
    so up date will be defaulted in selection screen.
    award points if helpful.

Maybe you are looking for