ABAP selection screen modification

Hello,
I have the following selection screen:
PARAMETERS:
p_kalaid LIKE kala-kalaid,
p_kalabe LIKE kala-kalabez,
p_kalada LIKE kala-kaladat,
p_klvaf  LIKE kalv-klvar,
p_tvers  LIKE kala-tvers,
p_kokrs  LIKE kala-kokrs,
p_bukrs  LIKE kala-bukrs,              
p_group  LIKE kala-rfc_group.  
When I choose F4 on <b>p_kalaid</b> and then select one value proposed, it fills <b>p_kalaid</b> (as expected), but it fills <b>p_kalada</b> automatically as well! 
My goal is to have all parameters fill in automatically with data from tables <b>KALA</b> and <b>KALV</b> based on my key selection (<b>p_kalaid</b>)... how can i do this?
Thanks,
Tim

Hy!
I don´t know if there is an easier way,
but I would try it to program the F4 Matchcode selection in the event AT SELECTION-SCREEN. by my own!
After that you could read the other information with the result from the selcection and fill the other parameters.
There is a function where you can program your own selection but I forgot the name! (Something with MATCHCODE  and F4 in it!) Sorry...
Jesus loves you!
Manuel

Similar Messages

  • RE:HR-ABAP selection screen problem.

    hi,
    hi friends iam facing one problem regarding hr ABAP  selection screen ,in my program iam using PNP LDB for bonus details report
    i have using selection screen declaration present  for single selection.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.        
    SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
                    S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
                    S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
                    S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
                    S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.   
    SELECTION-SCREEN END OF BLOCK B3.
    based on this selection iam fetching the information from infotypes using  macros.
    now my requirement is iam fetch the information for multiple  selections means like payroll areas z1,z2 and z3 payroll informations
    should be  fetching once.  pls any body knows solution please give me reply.
    thanks & regards,
    mgrao.

    You should be using a selection view (HR Report Category in the programs attributes) to filter results from the LDB.
    Why is this in the objects forum?

  • Selection screen modification based on various buttons in selection screen

    Hi,
    I have 1 query related with Selection screen modification.
    In my Report Program,I have created GUI Status for my selection screen
    Now 2 buttons in application toolbar are coming on selection sceen.
    For this i used,'At selection screen output' event.
    And there are 2 blocks on selection screen.
    If user press button1 then block2 should not display.
    and if user press button2 then block1 should not display.
    but the problem is i m not getting reqd result and also while doing debugging its not showing me sy-ucomm value.
    Any pointers on this.
    Thanks,
    Mamta

    Hi Mamta,
       have it in a group then you can write code accordingly see sample example,
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS       : p_r1 RADIOBUTTON GROUP rad
                            USER-COMMAND clk DEFAULT 'X'.            " upload Radio Button
    SELECTION-SCREEN COMMENT 5(35) text-003.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 001 WITH FRAME TITLE text-001.
    PARAMETERS: p_upl       LIKE rlgrap-filename MODIF ID a           "Upload File
                             DEFAULT 'c:\temp\parbmat.xls',
                p_werks     like t001w-werks MODIF ID a,              "Plant
    PARAMETERS: p_rest      LIKE rlgrap-filename MODIF ID a           "Dwonload File Path
                             DEFAULT 'c:\temp\Success.xls'.
    SELECTION-SCREEN : END OF BLOCK 001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_r2 RADIOBUTTON GROUP rad.
    SELECTION-SCREEN COMMENT 5(35) text-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 002 WITH FRAME TITLE text-002.
    PARAMETERS     : p_plant  LIKE marc-werks MODIF ID b.                "Plant
    PARAMETERS     : p_lgort  LIKE mard-lgort MODIF ID b.                "Storage Location
    PARAMETERS     : p_vkorg  LIKE mvke-vkorg MODIF ID b.                "Sales Organization
    PARAMETERS     : p_vtweg  LIKE mvke-vtweg MODIF ID b.                "Distribution Channel
    SELECT-OPTIONS : s_mat FOR  mara-matnr MODIF ID b.                  "Material No No
    SELECT-OPTIONS : s_dat FOR  mara-ersda MODIF ID b.                  "Date on Record Created
    PARAMETERS     : p_down LIKE rlgrap-filename MODIF ID b
                      DEFAULT 'c:\temp\Material Master.xls'.           "Download File Path
    SELECTION-SCREEN : END OF BLOCK 002.
    AT SELECTION-SCREEN OUTPUT.
    *Inactive Fields depending on the radio button
      LOOP AT SCREEN.
        IF p_r1 = 'X'.
          IF screen-group1 = 'B'.
            screen-active = 0.
          ENDIF.
        ELSEIF p_r2 = 'X'.
          IF screen-group1 = 'A'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM

  • Upload from clipboard option in webdynpro abap selection screen

    Hello Gurus,
    We have a requirement in select-options in webdynpro.i have implimented select-options successfully using
    WDR_SELECT_OPTIONS used component.now i need to impliment 'upload from clipboard' option when ever i click on advance options arrow mark. this option we can get in normal abp from selection screen.in selection screen against select-option field we have multiple options arrow mark.when ever we click this arrow mark we can able to see the upload from clipboard button at lowe level.exact same option how can we impliment in webdynpro abap selection screen.
    Could anyone please suggest solutions?
    if possible could you send me the sample code or relevent links for the same.
    Thanks in Advance for your replies.
    Regards,
    babu

    Hi,
    Which server version are you working on...Is it ECC6 or nwetweaver 7..
    I guess that option is avaialbel in Netweaver 7.0..Need to check there is an option for Clipboard in select-options..
    Regards,
    Lekha.

  • At-selection-screen modification

    Hi Experts,
    I am doing the selection screen modification. The selection screen is designed such as i have two radio buttons 1. header & 2. Item anb beside header radio button i have field sales document number and beside item radio button sales item number field.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-005.
    SELECTION-SCREEN: position 32.
    parameter:p_sh type c radiobutton group rg.                "Sales header
    selection-screen: comment 35(15) for field p_sh.
    selection-screen: comment 60(20) for field p_vbeln.
    parameter:p_vbeln like vbak-vbeln MODIF ID gp5.            "Sales Document
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: position 32.
    parameter:p_si type c radiobutton group rg.                "Sales Item
    selection-screen: comment 35(15) for field p_si.
    selection-screen: comment 60(20) for field p_posnr.
    parameter:p_posnr like vbap-posnr MODIF ID gp6.            "Sales Document Item
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: skip.
    This is the selection screen  code where for sales document i have assiged Modif id GP5 for Item Modif id GP6.  so when i check radio button p_sh ( header ) then sales document ( p_vbeln) shoudl be active for input .
    if i check p_si (item) then both saleds document (p_vbeln) and p_posnr both have different group names i.e GP5 & GP6 should be active. i.e screen-inpu = 1.
    I have written the following code for header but for item i am unable to make screen-input = 1 for two different groups. how to do that?
    LOOP AT SCREEN.
        IF ( P_SH NE 'X' AND SCREEN-GROUP1 EQ 'GP5' ) OR
           ( P_SI NE 'X' AND SCREEN-GROUP1 EQ 'GP6' ).
          screen-input = 0.
          MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    This code is working when i click header radio button but for when i click item radio button (p_si) only item field is active i am unable to make sales docuemnt active at same time. please help me in this regard.
    Regards,
    sunil kairam.

    Hi,
    Check this piece of code changed a bit.
    PARAMETERS : p_ct  RADIOBUTTON GROUP grp .
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr,
    PARAMETERS : p_sh RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln  FOR vbak-vbeln,                
    PARAMETERS : p_si  RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln1  FOR vbak-vbeln,
                                   s_posnr   for vbak-posnr.
    IF p_ct  IS NOT INITIAL .
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF p_sh IS NOT INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
    now one more  ELSEIF p_si  IS NOT INITIAL
    now make s_vbeln1 and s_posnr as input 1 and rest others as input 0.
    endif.
    Regards,
    Nagaraj

  • How to add factory calender in ABAP Selection Screen?

    Hi,
    Anyone can guide me, how to add the factory or Holiday calender in ABAP Selection screen?
    Thanks in advance.
    VJ.

    Use the below code and it should work.
    AT SELECTION-SCREEN on VALUE-REQUEST FOR p_date. "p_date is your selection screen field.
       CALL FUNCTION 'F4_DATE'
        EXPORTING
          DATE_FOR_FIRST_MONTH               = SY-DATUM
          DISPLAY                                           = ' '
          FACTORY_CALENDAR_ID                = 'US'
          HOLIDAY_CALENDAR_ID                = 'US'
        IMPORTING
          SELECT_DATE                        = p_date
    The thing to note above is DISPLAY should NOT be 'X'.

  • Abap selection-screen

    Hi friends,
    Is it possible in abap reporting,  from the first selection-screen input can we design the next screen where we can provide the details for first screen inputs.
    note: this should be done in abap report not module pool.
    Advance Thanks,
    Purna Chandra.

    Go through this small example -
    parameters : p_so type vbak-vbeln.
    types: begin of w_itab_ty,
            vbeln type vbeln,
            vkorg type vkorg,
           end of w_itab_ty.
    data : itab type standard table of w_itab_ty,
           wa_itab type w_itab_ty.
    DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
    AT SELECTION-SCREEN.
      if p_so is not initial.
        CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
          request              = 'A'
          translate_to_upper   = 'X'
        TABLES
          dynpfields           = it_dynfield
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      READ TABLE it_dynfield WITH KEY fieldname = 'P_SO'.
      IF it_dynfield-fieldvalue IS NOT INITIAL.
        p_so = it_dynfield-fieldvalue.
      ENDIF.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input         = p_so
         IMPORTING
           OUTPUT        = p_so.
      select vbeln
             vkorg
             from vbak
             into table itab
             where vbeln = p_so.
    endif.
    start-of-selection.
       if itab is not initial.
        loop at itab into wa_itab.
           write :/ wa_itab-vbeln,
                    wa_itab-vkorg.
         endloop.
       endif.

  • How to can we do selection-screen modification for LDB?

    Hi All,
    I have custom field in my selection-screen of LDB PNP.
    Can you people please let me know how can I put the selection-screen modificaiton For ex:
    i have created
    parameters a as checbox.
    select-options: p_btrtl for p0001-btrtl no-intervals.
    now If the check box is selected then p_btrtl we can enter values or esle If check box is not selected then p_btrtl will be grayed out, ( I.e. SCREEN-INPUT = 0)
    This is simple from ABAP without LDB. But with LDB can we achieve?????????????
    Satish
    Edited by: Satish Vasireddy on Jun 23, 2010 4:05 PM

    you can use the following logic for the additional selection validation. I have done by using PNP LDB. Ex : I have done for one of the field in IT0377.
    SELECT-OPTIONS: s_bplan FOR p0377-bplan.
    *&      Form  check_selection_0377
      This subroutine is used to check the selection screen
    FORM check_selection_0377.
      LOOP AT p0377 WHERE pltyp  IN s_bplan
                     AND levl1 IN s_lti
                     AND   begda LE pn-endda
                     AND   endda GE pn-begda.
        CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'
          EXPORTING
            tclas            = 'A'
            pernr            = pernr-pernr
            infty            = p0377-infty
            subty            = p0377-subty
            begda            = pn-begda
            endda            = pn-endda
            level            = 'R'
          EXCEPTIONS
            no_authorization = 1
            internal_error   = 2
            OTHERS           = 3.
        IF NOT sy-subrc IS INITIAL.
          DELETE p0377.
        ENDIF.
      ENDLOOP.
    selection not found and no value selected
      IF sy-subrc NE 0.
        READ TABLE s_bplan.
        IF sy-subrc EQ 0.
          REJECT.
        ENDIF.
        READ TABLE s_lti.
        IF sy-subrc EQ 0.
          REJECT.
        ENDIF.
      ENDIF.
    ENDFORM.                    " check_selection_0377
    Regards,
    Preetham

  • Selection screen modification

    Hi Experts,
                  Kindly gothrough the below codes and when i click on rb2 radiobutton only that selection option  must appear but it is coming when i execute the program,, can any one help to resolve this issue...,
    *& Report  ZPROGRAM_KPI
    REPORT  ZPROGRAM_KPI.
    TYPE-POOLS SLIS.
    tables : pb4000.
    DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FCAT LIKE LINE OF IT_FCAT.
    DATA : IT_FCAT1 TYPE SLIS_T_FIELDCAT_ALV,
           WA_FCAT1 LIKE LINE OF IT_FCAT1.
    data :       lv_end   TYPE  dats,
                 lv_beg   TYPE  dats,
                 v        type  i.
    data : begin of wa_pb40001,
                    pernr type pb4000-pernr,
                    SUBTY TYPE PB4000-SUBTY,
                    begda type pb4000-begda,
                    end of wa_pb40001,
                    it_pb40001 like table of wa_pb40001.
    data : begin of wa_pb40002,
                    pernr type pb4000-pernr,
                    SUBTY TYPE PB4000-SUBTY,
                    begda type pb4000-begda,
                    end of wa_pb40002,
                    it_pb40002 like table of wa_pb40002.
    selection-screen begin of block k with frame title text-001.
    parameter :  rb1 radiobutton group t, rb2 radiobutton group t.
    selection-screen end of block k.
    if rb1 = 'X'.
    CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
      EXPORTING
        i_date_old = sy-datum
      IMPORTING
        e_date_new = lv_end.
    lv_beg = lv_end.
    lv_beg+6(2) = '01'.
    SELECT  pernr SUBTY   FROM pb4000 INTO TABLE it_pb40001 where  begda BETWEEN lv_beg AND lv_end.
    perform fcat using '1' 'PERNR' 'Personnel number' '20' 'C610'.
    perform fcat using '1' 'SUBTY' 'Sub type' '20' 'C310'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-CPROG
       I_GRID_TITLE                      = 'Report for displaying personnel number in previous month'
       IT_FIELDCAT                       = IT_FCAT
      TABLES
        t_outtab                          = IT_PB40001.
    elseif rb2 = 'X'.
    select-options s_date for wa_pb40001-begda obligatory.
    SELECT  pernr SUBTY   FROM pb4000 INTO TABLE it_pb40002 where  begda in s_date.
    perform fcat1 using '1' 'PERNR' 'Personnel number' '20' 'C610'.
    perform fcat1 using '1' 'SUBTY' 'Sub type' '20' 'C310'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-CPROG
       I_GRID_TITLE                      = 'Report for displaying personnel number using selection screen'
       IT_FIELDCAT                       = IT_FCAT1
      TABLES
        t_outtab                          = IT_PB40002.
    endif.
    *&      Form  FCAT
          text
         -->P_0068   text
         -->P_0069   text
         -->P_0070   text
    form FCAT  using    FP_COL_POS
                        FP_FIELDNAME
                        FP_SELTEXT_M
                        FP_OUTPUTLEN
                        FP_EMPHASIZE.
    WA_FCAT-COL_POS     = FP_COL_POS.
    WA_FCAT-FIELDNAME   = FP_FIELDNAME.
    WA_FCAT-SELTEXT_M   = FP_SELTEXT_M.
    WA_FCAT-OUTPUTLEN   = FP_OUTPUTLEN.
    WA_FCAT-EMPHASIZE   = FP_EMPHASIZE.
    APPEND WA_FCAT TO IT_FCAT.
    CLEAR WA_fCAT.
    endform.                    " FCAT
    *&      Form  FCAT
          text
         -->P_0068   text
         -->P_0069   text
         -->P_0070   text
    form FCAT1  using    FP_COL_POS
                        FP_FIELDNAME
                        FP_SELTEXT_M
                        FP_OUTPUTLEN
                        FP_EMPHASIZE.
    WA_FCAT1-COL_POS     = FP_COL_POS.
    WA_FCAT1-FIELDNAME   = FP_FIELDNAME.
    WA_FCAT1-SELTEXT_M   = FP_SELTEXT_M.
    WA_FCAT1-OUTPUTLEN   = FP_OUTPUTLEN.
    WA_FCAT1-EMPHASIZE   = FP_EMPHASIZE.
    APPEND WA_FCAT1 TO IT_FCAT1.
    CLEAR WA_fCAT1.
    endform.                    " FCAT
    Regards,
    Thiru. R

    Copy paste this code for your new requirement:
    REPORT ZTEST15.
    TYPE-POOLS SLIS.
    TABLES : PB4000.
    DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
    WA_FCAT LIKE LINE OF IT_FCAT.
    DATA : IT_FCAT1 TYPE SLIS_T_FIELDCAT_ALV,
    WA_FCAT1 LIKE LINE OF IT_FCAT1.
    DATA : LV_END TYPE DATS,
    LV_BEG TYPE DATS,
    V TYPE I.
    DATA : BEGIN OF WA_PB40001,
    PERNR TYPE PB4000-PERNR,
    SUBTY TYPE PB4000-SUBTY,
    BEGDA TYPE PB4000-BEGDA,
    END OF WA_PB40001,
    IT_PB40001 LIKE TABLE OF WA_PB40001.
    DATA : BEGIN OF WA_PB40002,
    PERNR TYPE PB4000-PERNR,
    SUBTY TYPE PB4000-SUBTY,
    BEGDA TYPE PB4000-BEGDA,
    END OF WA_PB40002,
    IT_PB40002 LIKE TABLE OF WA_PB40002.
    SELECTION-SCREEN BEGIN OF BLOCK K WITH FRAME TITLE TEXT-001.
    PARAMETER : RB1 RADIOBUTTON GROUP T DEFAULT 'X' USER-COMMAND RB,
                RB2 RADIOBUTTON GROUP T.
    SELECT-OPTIONS S_DATE FOR WA_PB40001-BEGDA MODIF ID DAT.
    SELECTION-SCREEN END OF BLOCK K.
    AT SELECTION-SCREEN OUTPUT.
      IF RB1 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'DAT'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN.
      IF RB1 = 'X'.
        CLEAR: S_DATE[], S_DATE.
      ENDIF.
      IF SY-UCOMM = 'ONLI'.
        IF RB1 = 'X'.
          CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
            EXPORTING
              I_DATE_OLD = SY-DATUM
            IMPORTING
              E_DATE_NEW = LV_END.
          LV_BEG = LV_END.
          LV_BEG+6(2) = '01'.
          SELECT PERNR SUBTY FROM PB4000 INTO TABLE IT_PB40001 WHERE BEGDA BETWEEN LV_BEG AND LV_END.
          PERFORM FCAT USING '1' 'PERNR' 'Personnel number' '20' 'C610'.
          PERFORM FCAT USING '1' 'SUBTY' 'Sub type' '20' 'C310'.
          CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
              I_CALLBACK_PROGRAM = SY-CPROG
              I_GRID_TITLE       = 'Report for displaying personnel number in previous month'
              IT_FIELDCAT        = IT_FCAT
            TABLES
              T_OUTTAB           = IT_PB40001.
        ELSEIF RB2 = 'X'.
          IF S_DATE-LOW IS INITIAL.
            MESSAGE 'Enter date' TYPE 'E' DISPLAY LIKE 'S'.
          ENDIF.
          SELECT PERNR SUBTY FROM PB4000 INTO TABLE IT_PB40002 WHERE BEGDA IN S_DATE.
          PERFORM FCAT1 USING '1' 'PERNR' 'Personnel number' '20' 'C610'.
          PERFORM FCAT1 USING '1' 'SUBTY' 'Sub type' '20' 'C310'.
          CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
              I_CALLBACK_PROGRAM = SY-CPROG
              I_GRID_TITLE       = 'Report for displaying personnel number using selection screen'
              IT_FIELDCAT        = IT_FCAT1
            TABLES
              T_OUTTAB           = IT_PB40002.
        ENDIF.
      ENDIF.
    *&      Form  FCAT
          text
         -->FP_COL_POS    text
         -->FP_FIELDNAME  text
         -->FP_SELTEXT_M  text
         -->FP_OUTPUTLEN  text
         -->FP_EMPHASIZE  text
    FORM FCAT USING FP_COL_POS
    FP_FIELDNAME
    FP_SELTEXT_M
    FP_OUTPUTLEN
    FP_EMPHASIZE.
      WA_FCAT-COL_POS = FP_COL_POS.
      WA_FCAT-FIELDNAME = FP_FIELDNAME.
      WA_FCAT-SELTEXT_M = FP_SELTEXT_M.
      WA_FCAT-OUTPUTLEN = FP_OUTPUTLEN.
      WA_FCAT-EMPHASIZE = FP_EMPHASIZE.
      APPEND WA_FCAT TO IT_FCAT.
      CLEAR WA_FCAT.
    ENDFORM. " FCAT
    *&      Form  FCAT1
          text
         -->FP_COL_POS    text
         -->FP_FIELDNAME  text
         -->FP_SELTEXT_M  text
         -->FP_OUTPUTLEN  text
         -->FP_EMPHASIZE  text
    FORM FCAT1 USING FP_COL_POS
    FP_FIELDNAME
    FP_SELTEXT_M
    FP_OUTPUTLEN
    FP_EMPHASIZE.
      WA_FCAT1-COL_POS = FP_COL_POS.
      WA_FCAT1-FIELDNAME = FP_FIELDNAME.
      WA_FCAT1-SELTEXT_M = FP_SELTEXT_M.
      WA_FCAT1-OUTPUTLEN = FP_OUTPUTLEN.
      WA_FCAT1-EMPHASIZE = FP_EMPHASIZE.
      APPEND WA_FCAT1 TO IT_FCAT1.
      CLEAR WA_FCAT1.
    ENDFORM. " FCAT

  • Dynamic Selection screen modification

    Hi,
    I have two radio buttons R_A and R_B and 2 parameters P_A and P_B on selsection screen
    When i click on R_A , P_A should be visible ---> It Works
    When i click on R_B , P_B should be visible ---> It Works
    But after clicking on R_B if i click on R_A, then P_B is visble and P_A is not visible.
    How should i go abt this.???

    HI,
    Chk this:
    Selection-screen begin of block b1 WITH FRAME NO INTERVALS.
    Parameters: s1 radiobutton group g1 user-command u1 default 'X',
                p_name(10) MODIF ID M1,
                p_email(20) MODIF ID M1,
                s2 radiobutton group G1.
    Parameters: p_name1(10) MODIF ID M2,
                p_fax(10) MODIF ID M2.
    Selection-screen end of block b1 .
    AT SELECTION-SCREEN OUTPUT.
    *  IF S_BOX = 'X'.
          LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'M3'.
            SCREEN-ACTIVE = '0'.
            MODIFY SCREEN.
          ELSE.
            SCREEN-ACTIVE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    *  ENDIF.
      IF S1 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'M2'.
            SCREEN-ACTIVE = '0'.
            MODIFY SCREEN.
          ELSEIF SCREEN-GROUP1 = 'M1'.
            SCREEN-ACTIVE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF S2 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'M1'.
            SCREEN-ACTIVE = '0'.
            MODIFY SCREEN.
          ELSEIF SCREEN-GROUP1 = 'M2'.
            SCREEN-ACTIVE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    regards,
    madhumitha

  • Uploading selection data to an ABAP selection screen

    Not sure this is the best place for this question but here goes.
    When a user is presented with a selection screen from an ABAP they have the option to upload data from a text file.  This works fine for single value lists but I cannot get this to work for ranges.
    I have tried tab & comma delimited files, xls and plain fixed width text and am always presented with the message 'lower limit is greater than upper limit'.
    Regards
    Paul.

    Hi Paul,
    You are thanking a poster for his answer.
    Please next time also give him points.
    See: /people/mark.finnern/blog/2004/08/10/spread-the-love
    This time I did it for you.
    Remember: When you ask a question you also assume the responsibility to assign points.
    Please check your other questions and if the answers were good.
    Spread the love and give some points.
    Thanks in advance, Mark.

  • Customizable ABAP Selection Screen with Tabstrips

    Hello everybody,
    we have a ABAP and a MASTER-Selection Screen. In this Selection Screen it should be able for Customers to enhance the MASTER-Selection via a Subscreens (realized in Tabstrips).
    The amount of Tabs has to be dynamic. Ist there a ABAP Sample?
    Does anybody has some ideas to keep this dynamic?
    Thanks
    Regards
    Mario

    Hi,
    examples are in the transaction BIBS.
    regards
    Fred

  • Selection screen modification in case of SAP Query

    Hi All,
    I want to modify the selection screen in a standard progam.
    This program is getting generated through SAP QUERY.
    i want to modify some fields and also delete some fields in the
    selection screen. All these fields which i want to modify or delete
    are the logical database fields.So i can't do it through the t-code SQ01
    and SQ02. Also this is a program generated through the SAP QUERY,
    so i can't modify the generated code. Request if any one of you can suggest me to solve this.
    Waiting for a prompt reply!!
    Thanks,
    Rupesh

    Go to SQ02
    Select your Infoset-->Change
    On next Screen.
    Select GoTo->Code->Initialization.
    Write there code
    LOOP AT SCREEN.
      IF screen-name EQ 'SP$00004'.
           screen-required = 1.
           MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • PNP Selection Screen Modification

    Hi All,
    Can anyone tell how to remove the payroll period section completely from the pnp selection screen. I tried all the means going to HR Report Category, I couldnt find the perfect category to hide the payroll period selection. It neither allow me to create a new one for my program. Please help me out as soon as possible with steps/navigation whichever possible..
    Thanks in advance,
    Charan

    you can create your own selection screen by going to Attributes -> HR Report Category -> New Report Category(button on the bottom of popup screen).
    here, you can select/deselect selection criteria.
    it looks like you were in the correct place - why didn't it let you create a new report category?
    if helpful, please don't forget to reward points.
    thanks,
    robert.

  • Sap query report-selection screen modification

    Hi
    I  have created a SAP query report using the logical database KDF ,the selection screen was created automatically.For vendor report open item and Cleared item Push button would be there in FBL1N but here it only displays Open key date,clearing dates.The open key date is mandatory to give though i give clearing dates as i need vendor cleared items.
    Is ther way to change the selection screen to get the option open item and cleared item push button as in FBL1N.
    This is because i was filtering a vendor only for particular doc type only for clearing items but report takes open item too though i meantioned clearing date rate.How to modify the selection screen in sap query report when Logicaldatabase is selcted.

    I need to get only the cleared items.I donot need open items.Then if go for BSIK is it wrong.Should go only for BSAK.
    I couldnt find the table BSAK in logical database KDF.
    Edited by: mysap query on Mar 18, 2009 3:15 PM
    Edited by: mysap query on Mar 18, 2009 3:15 PM

Maybe you are looking for

  • MacBook Air 13" Mid 2013 Display go Blank

    I have set my MacBook Air Energy Saver setting to its default settings... When its go on standby mode then i click/swipe on trackpad immidiately , Display going blank but keyboard Is working. And if i wait 10 to 15 sec after standby then there is no

  • Creation of material  for  both service and delivery

    Hai all, we want to create a material for which both delivery and service is to be possible simultaneously. Is it possible  if yes let me know the material type for this. Thanks in advance, S.Jenibalet.

  • Sony Bravia w80 c won't come on

    Brand new song Bravia won't come on. Led just flashes white but screen remains blank.

  • SC 3.1/3.2 Oracle RAC and EMC replication

    hi, i need to cluster existing 2 node Oracle RAC for disaster recovery. The secondary site is about 180 km away, there is another site 10 km away which is planned to be use for bunker replication (SRDF/STAR). Is it possible to build such topology wit

  • Macbook Pro freezing up during videos...

    So I recently got a mid-2010 Macbook Pro in great condition form eBay. It is 17" running Snow Leopard. 2.53 GHz Intel Dual Core i5 Processor 4 GB 1067 MHz DDR3 RAM I don't know much about video cards, but it says it has two: Intel HD Graphics (Built-