Selection screen data in column heading

Hi,
My requirement is to show the value entered in the selection screen in the report output column heading using text elements.
I am using text element to show the column heading. how can i add a variable to the text element and pass the value to it ?
Thanks,
Prasad.

Hi,
Its not possible to pass on the variables with the text elements, as text elements are used storing the text written by you in the program and not the values of the variable.
hence if you want to display the column heading with the variable you can directly write text element first and then write the variable,
write : text-001, w_variable.
Regards,
Siddarth

Similar Messages

  • Displaying selection screen data on alv header in multiple rows and columns

    Hi
    Presently in my requirement , whatever  the data entered in  selection screen  should display  on alv header  and item details on alv grid display.
    for eg...
    on alv header
      customer no :  1000 to 2000         sales order no: 111
      name :    gff to ff                                 sales org:
      city:                                         country:
      item details below this   
      plz guide me how to solve this issue.
    Thanks & Regards,
    Pradeep

    Hi,
    Check this code this may help you.
    <code>
    TYPE-POOLS : SLIS.
    TABLES VBRK.
    TYPES : BEGIN OF TY_VBRK,
            VBELN TYPE VBRK-VBELN,
            VKORG TYPE VBRK-VKORG,
            VTWEG TYPE VBRK-VTWEG,
            SPART TYPE VBRK-SPART,
            FKDAT TYPE VBRK-FKDAT,
            END OF TY_VBRK,
            BEGIN OF TY_VBRP,
            VBELN TYPE VBRP-VBELN,
            POSNR TYPE VBRP-POSNR,
            MATNR TYPE VBRP-MATNR,
            ARKTX TYPE VBRP-ARKTX,
            FKIMG TYPE VBRP-FKIMG,
            NETWR TYPE VBRP-NETWR,
            END OF TY_VBRP,
            BEGIN OF TY_TARGET,
            VBELN TYPE VBRK-VBELN,
            VKORG TYPE VBRK-VKORG,
            VTWEG TYPE VBRK-VTWEG,
            SPART TYPE VBRK-SPART,
            FKDAT TYPE VBRK-FKDAT,
            POSNR TYPE VBRP-POSNR,
            MATNR TYPE VBRP-MATNR,
            ARKTX TYPE VBRP-ARKTX,
            FKIMG TYPE VBRP-FKIMG,
            NETWR TYPE VBRP-NETWR,
            END OF TY_TARGET.
    DATA : T_VBRK TYPE TABLE OF TY_VBRK,
           W_VBRK TYPE TY_VBRK,
            T_VBRP TYPE TABLE OF TY_VBRP,
            W_VBRP TYPE TY_VBRP,
            T_TARGET TYPE TABLE OF TY_TARGET,
            W_TARGET TYPE TY_TARGET,
    FIELD CATALOG ******************
            T_FCAT TYPE SLIS_T_FIELDCAT_ALV,
            W_FCAT TYPE SLIS_FIELDCAT_ALV,
    *************************************SUB TOTALS AND SORTING***********
            T_SORT TYPE SLIS_T_SORTINFO_ALV,
            W_SORT TYPE SLIS_SORTINFO_ALV,
    *************************************FOR LIST HEADER******************
            T_LIST_HEAD TYPE SLIS_T_LISTHEADER,
            W_LIST_HEAD TYPE SLIS_LISTHEADER,
            T_LIST_HEAD1 TYPE SLIS_T_LISTHEADER,
            W_LIST_HEAD1 TYPE SLIS_LISTHEADER,
    *************************************FOR LIST HEADER******************
            W_LAYOUT TYPE SLIS_LAYOUT_ALV,
    ************************************FOR EVENTS************************
            T_EVENT TYPE SLIS_T_EVENT,
            W_EVENT TYPE SLIS_ALV_EVENT.
    *********************************SELECT OPTIONS***********************
    SELECT-OPTIONS : S_VBELN FOR VBRK-VBELN DEFAULT 90005316 TO 90005330.
    **RETRIVING DATA************************
    PERFORM DATA_RETRIVE.
    **BUILDING THE FIELD CATALOG************
    PERFORM BUILD_FCAT.
    **BUILDING THE TABLE FOR LIST HEADER****
    PERFORM BUILD_LIST_HEAD.
    *******************************CALLING THE FUNCTION MODULE************
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM     = SY-REPID
        I_CALLBACK_TOP_OF_PAGE = 'LIST_TOP_OF_PAGE'
        IT_FIELDCAT            = T_FCAT
        IT_SORT                = T_SORT
      TABLES
        T_OUTTAB               = T_TARGET.
    *&      Form  DATA_RETRIVE
    FORM DATA_RETRIVE .
    SELECT VBELN VKORG VTWEG SPART FKDAT FROM VBRK INTO CORRESPONDING FIELDS
    OF TABLE T_VBRK WHERE VBELN IN S_VBELN.
      IF SY-SUBRC EQ 0.
        SORT T_VBRK BY VBELN.
        SELECT VBELN POSNR MATNR ARKTX FKIMG NETWR FROM VBRP INTO TABLE
         T_VBRP FOR ALL ENTRIES IN T_VBRK WHERE VBELN = T_VBRK-VBELN.
      ENDIF.
      LOOP AT T_VBRP INTO W_VBRP.
        LOOP AT T_VBRK INTO W_VBRK WHERE VBELN = W_VBRP-VBELN.
          W_TARGET-VBELN = W_VBRK-VBELN.
          W_TARGET-VKORG = W_VBRK-VKORG.
          W_TARGET-VTWEG = W_VBRK-VTWEG.
          W_TARGET-SPART = W_VBRK-SPART.
          W_TARGET-FKDAT = W_VBRK-FKDAT.
          W_TARGET-POSNR = W_VBRP-POSNR.
          W_TARGET-MATNR = W_VBRP-MATNR.
          W_TARGET-ARKTX = W_VBRP-ARKTX.
          W_TARGET-FKIMG = W_VBRP-FKIMG.
          W_TARGET-NETWR = W_VBRP-NETWR.
          APPEND W_TARGET TO T_TARGET.
        ENDLOOP.
      ENDLOOP.
      SORT T_TARGET BY VBELN.
    ENDFORM.                    " DATA_RETRIVE
    *&      Form  BUILD_FCAT
    FORM BUILD_FCAT .
      W_FCAT-COL_POS = 1.
      W_FCAT-FIELDNAME = 'VBELN'.
      W_FCAT-SELTEXT_M = 'BILLING NO'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 2.
      W_FCAT-FIELDNAME = 'VKORG'.
      W_FCAT-SELTEXT_M = 'SALES ORGANIZATION'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 3.
      W_FCAT-FIELDNAME = 'VTWEG'.
      W_FCAT-SELTEXT_M = 'DISTRIBUTION CHANNEL'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 4.
      W_FCAT-FIELDNAME = 'SPART'.
      W_FCAT-SELTEXT_M = 'DIVISION'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 5.
      W_FCAT-FIELDNAME = 'FKDAT'.
      W_FCAT-SELTEXT_M = 'CREATION DATE'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 6.
      W_FCAT-FIELDNAME = 'POSNR'.
      W_FCAT-SELTEXT_M = 'BILLING ITEM'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 7.
      W_FCAT-FIELDNAME = 'MATNR'.
      W_FCAT-SELTEXT_M = 'MATERIAL NUM'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 8.
      W_FCAT-FIELDNAME = 'ARKTX'.
      W_FCAT-SELTEXT_M = 'DESCRIPTION'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 9.
      W_FCAT-FIELDNAME = 'FKIMG'.
      W_FCAT-SELTEXT_M = 'QUANTITY'.
      APPEND W_FCAT TO T_FCAT.
      W_FCAT-COL_POS = 10.
      W_FCAT-FIELDNAME = 'NETWR'.
      W_FCAT-SELTEXT_M = 'NET VALUE'.
      W_FCAT-DO_SUM = 'X'.
      APPEND W_FCAT TO T_FCAT.
    ENDFORM.                    " BUILD_FCAT
    *&      Form  BUILD_LIST_HEAD
    FORM BUILD_LIST_HEAD .
      DATA : L_DATE(10),
             L_TIME(8).
      W_LIST_HEAD-TYP = 'S'.
      W_LIST_HEAD-KEY = 'Sales org :'.
      W_LIST_HEAD-INFO = S_VBELN-LOW .
      APPEND W_LIST_HEAD TO T_LIST_HEAD.
      CLEAR W_LIST_HEAD.
      W_LIST_HEAD-TYP = 'S'.
      W_LIST_HEAD-KEY = 'TO '.
      W_LIST_HEAD-INFO =  S_VBELN-HIGH.
      APPEND W_LIST_HEAD TO T_LIST_HEAD.
      CLEAR W_LIST_HEAD.
    ENDFORM.                    " BUILD_LIST_HEAD
    *&      Form  LIST_TOP_OF_PAGE
    FORM LIST_TOP_OF_PAGE .
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = T_LIST_HEAD.
    ENDFORM.                    " LIST_TOP_OF_PAGE
    <code>
    Regards

  • Want to display a date in column heading.

    Hi all,
    Will be thankful, if anyone can tell me how to solve one of the issue i am facing in webi variable display.
    In universe, i am creating one prompt for date and user will enter the desired date, and with respect to that date, the previous date and previous month last working date will come. In my Webi report , i have 3 dates and one measure(Quantity) with other dimensions like Product and Subproduct. 
    I have one cross table in which in want to show the 3 dates as Column heading, Product as row heading and Quantity(measure) in the table body. I have one more dimension as Area... which i want to show in horizontal way, for each Area, i want to show prompted date, previous date and previous month last date. I have created 3 variables.... 
    1. Current date = Max(date) In Report
    2. Previous date = Min(date) In Report
    3. Previous Month last day = (date) where (Rank = 2) ForEach(date)
    By this way, I am able to show Current date and  Previous Month last day in column heading, but not Previous day. Will appreciate if anyone can help me on the issue. let me know if any other information is required.
    Thanks
    Archit Sarwal

    Hi,
    The previous date is the previous business day, it can be dynamic. And previous month's last day is last business day, it can also be dynamic. And Previous daye can also be previous month's last business day in one of the scenerio.
    Actually i am using 3 filters with prompts (common prompt) in universe side. User will enter the date and corrosponding previous business day and previous month's last business day will come. 3 filters are:
    1. Current_Day = @prompt('Enter Date(YYYYMMDD)','A',,Mono,Free,Persistent)
    2. Previous_Day = (SELECT TOP 1 Date from [TableName] where Date < @prompt('Enter Date(YYYYMMDD)','A',,Mono,Free,Persistent) Order By Date Desc)
    3. Prior_Month last Day = (SELECT TOP 1 Date from [TableName] T where Month(T.Date) = Month(DateAdd(mm,-1,@prompt('Enter Date(YYYYMMDD)','A',,Mono,Free,Persistent))) Order By T.Date Desc)
    Dates are coming correct from Universe.  In Webi, i have created variables...
    CurrentDate = max([Date]) In Report
    LastDate = Min([Date]) In Report
    PriorDate = [(Date]) where ([Rank]=2) ForEach ([Date])
    I have calculated Rank for Date, and Rank 2 shows the Prior Date. Also, i have Entity, and want to show these dates for each entity along with 2 -3 more columns that depends on these 3 dates values. I am attaching the screenshot for the sample.
    Thanks
    Archit Sarwal

  • Display selection screen details in the header of ALV

    hi..
    can someone please help me on how to display the data in the selection screen in the header in ALV?
    i hope someone can help me..thanks very much..

    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100

  • Selection screen :data retrieval

    how to pass the contents of each individual input fieldfrom the selection screen to the ABAP program.My selection screen is
    SELECTION-SCREEN BEGIN OF BLOCK ID WITH FRAME TITLE TEXT-001.
       SELECT-OPTIONS:
                        EBELN  FOR EKKO-EBELN NO INTERVALS,
                        AEDAT  FOR EKKO-AEDAT.
    SELECTION-SCREEN END OF BLOCK ID.
    i need value of ebeln(purchase order) which i select on selection screen as i have to use it in query in same program.

    Hi,
    You can get the details in an internal table<b> i_ekko</b> as shown below.Use this table for further procesing in your program.
    SELECTION-SCREEN BEGIN OF BLOCK ID WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
    S_EBELN FOR EKKO-EBELN NO INTERVALS,
    S_AEDAT FOR EKKO-AEDAT.
    SELECTION-SCREEN END OF BLOCK ID.
    DATA: i_ekko type standard table of ekko with header line.
      SELECT  *  FROM EKKO INTO TABLE i_lfa1 WHERE ebeln IN s_ebeln AND aedat IN s_aedat.
    *Always reward points for helpful answers.
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

  • Selecting multiple rows using column header with checkbox in it.

    Dear All.,
    I am trying to select multiple rows with checkbox in column header but it doesnot works...
    Following is my codel
    <af:table value="#{bindings.xx.collectionModel}"
                          var="row"
                          rows="#{bindings.xx.rangeSize}"
                          emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.xx.rangeSize}"
                          rowBandingInterval="1"
                          filterModel="#{bindings.xx.queryDescriptor}"
                          queryListener="#{bindings.xx.processQuery}"
                          varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
                          selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
                          selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
                          rowSelection="none" id="tCdMast" width="400"
                          columnStretching="column:c4" inlineStyle="height:200px;">
                  <af:column sortProperty="ChkFlag" filterable="true"
                             sortable="true"
                             headerText="#{bindings.xx.hints.ChkFlag.label}"
                             id="c2" width="55"
                             inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
                    <af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
                                              selected="#{row.ChkFlag}" id="sbcChkFlag"
                                              autoSubmit="true" immediate="true"/>
                    <f:facet name="header">
                      <af:selectBooleanCheckbox simple="true"
                                                autoSubmit="true"
                                                valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
                                                id="sbcSelectAll"/>
                    </f:facet>
                  </af:column>
    </af:table>
    Managed Bean
        public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
            Boolean newValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
                                            "false"));
            Boolean oldValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
                                            "false"));
            if (newValue.equals(oldValue))
                return;
            int rowIndex=0;
            ViewObject vo = u.findIterator("xxIterator").getViewObject();
            vo.reset();
            while(vo.hasNext()){
              Row row;
              if(rowIndex==0)
                  row=vo.first();
              else
                  row=vo.next();
                 row.setAttribute("ChkFlag", newValue.booleanValue());
              rowIndex=1;
            u.addPartialTargets(tableDocuments);
        }Please help!!.
    Thanks & Regards,
    Santosh.
    jdeve 11.1.1.4.0

    Can you check this sample in the blog post?
    http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Thanks,
    Navaneeth

  • To display  selection screen date parameter  in smart form

    Hi to all
    My requirement is to display date parameters which are given at selection screen (module pool program ) on the smart forms.
    I just want to dispaly this on selection.
    SO_BLDAT-LOW
    SO_BLDAT-HIGH
    Please guide.
    Regards
    Anubhav

    Hi,
      If you are calling the smartform from the module program then export the parameters from the calling FM  
      and import the same in the smartform.
    Regards,
    Sandeep

  • Selection screen data validation problem

    Hello all,
    Transaction FBL3N has an authority check on company.  If the user enters a company for which they have no authority, a message displays and they can then exclude that company.  The following steps can be repeated as many times as are required to ensure that all selection-screen values can be used.  The program, RFITEMGL, is doing all of the authorization using the code of the logical database that is part of the program.
    I added the following logic in my program, which works fine, except when the entered values fail the authority check, I can't get off of screen 1000 and get to the sub-screen to exclude the unauthorized values unless I first change the range on screen 1000.
    For an example:
    If I enter range '100 ' through '900 ', and there is an unauthorized company, '200' in that range,  I can't add '200' as an excluded value without first changing the range to '100 ' to ' 199 ' on screen 1000.
    Any thoughts on a solution?  I tried looking at the logical database code without much success.
    at selection-screen on s_bukrs.
    check if person entering company has authority
    data: i_t001 type table of t001.
    data: w_t001 type          t001.
      select * from t001
               into table i_t001
               where bukrs in s_bukrs.
      loop at i_t001 into w_t001.
        authority-check object 'F_BKPF_BUK'
                    id 'BUKRS' field w_t001-bukrs
                    id 'ACTVT' field '03'.
        if sy-subrc ne 0.
          message e000(zf) with 'Company'
                              w_t001-bukrs
                              'not authorized'.
        endif.
      endloop.
    Thanks
    Bruce

    Hi,
    Yes this is normal way as you entered wrong value in s_bukrs unless and until you change that you cannot proceed further.
    instead of at selection-screen on s_bukrs.
    use at selection-screen.
    if s_bukrs is not initial.
    do processing .,
    and display info message'
    endif.
    or ., instead of error message  use dispaly like 'E'
    like.,
    at selection-screen on s_bukrs.
    check authority.,
    MESSAGE 'You are not Authorized to use the Company Code' type 'S' display like 'E'.
    hope this helps you,
    Thanks & Regards.

  • Selection Screen - Date and Time

    Hi,
    I have given a selection screen where the user needs to key in the input in the following format
    dd.mm.yyyy hh:mm:ss.
    Reason is that the database fetching these elements accepts only in this criteria.
    Now as they look into automating this program, they would want to automatically take the current system date and time - 24 hours .
    How do I achieve this in the above format? If this is not possible, let me know if i can make the selection screen with normal sap date format and convert it to the above format on passing to the select statement.
    Regards
    Sam

    Hi Sam,
    See this. Is this your requirement.
    With this we are able to get Current time-stamp to selection parameter.
    REPORT ZTEST.
    DATA: L_TS TYPE TZNTSTMPS,
           L_TS_C TYPE CHAR14.
    PARAMETERS:
    P_TMSTMP TYPE TMSTMP OBLIGATORY MEMORY ID TEST.
    INITIALIZATION.
       GET TIME STAMP FIELD L_TS.
       MOVE L_TS TO L_TS_C.
       SET PARAMETER ID  'TEST' FIELD L_TS_C.
    The output is
    Jogeswara Rao K

  • Adding Date to Column Header

    Hi
    I'm having some issues getting a date into a column header for a tab report I am creating.
    this thread
    Re: sysdate in region header
    suggested using a hidden item and having a pl/sql function body and including the item in the header.
    So I set the Column title up with "Outdoors <br> &P1120_DISPLAY_DATE"
    In the item source I set
    begin
    :P1120_DISPLAY_DATE := sysdate;
    end;
    However I end up with a syntax error message when the page starts to draw ...
    ORA-06550: line 1, column 27: PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following: ( - + case mod new not null avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
         Error      ERR-1020 Error in PLSQL item processing (function).
    When I just use sysdate as a test method ( no additional pl/sql) the error goes but the item does not appear to be set. In the Column title I get the item name not the value.
    I wanted to have the column set to Outdoors <br> 12-Mar-05
    Appreciate some guidance on this one.
    Stephen

    Thanks Denes
    That sorts the item out but I can't get it into the column header.
    My item is called P1120_Display_date.
    I have the report column header set to Custom , and the code in the header is
    Col1 < b r > &P1120_Display_date
    and apart for doing the line break thats how it displays. I'm sure its possible I just can't seem to get it.
    Cheers
    Stephen
    Message was edited by:
    StephenP

  • 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

  • Urgent :Show all records till selection screen date

    Hi Techis
    i want to show all records till selected date , selection screen consist of date also and my select statement is given below so any body pls tell me what changes i hav to make so that all records till particular date should b shwn
    Select statement is
    SELECT BUKRS KUNNR
    BLDAT
    GSBER
    DMBTR
    BUDAT
    GJAHR
    SGTXT
    SAKNR
    SHKZG
    PRCTR FROM BSID INTO corresponding fields of TABLE IT_FINAL WHERE BUKRS IN S_BUKRS AND
    SAKNR IN S_SAKNR AND
    GSBER IN S_GSBER AND
    PRCTR IN S_PRCTR AND
    BUDAT IN S_BUDAT AND
    KOSTL IN S_KOSTL.
    and selection screen is ...
    SELECTION-SCREEN BEGIN OF BLOCK AGE WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR BSID-BUKRS," OBLIGATORY DEFAULT 'TCIL'
    S_KUNNR FOR KNA1-KUNNR,
    S_SORTL FOR KNA1-SORTL,
    S_SAKNR FOR BSID-SAKNR DEFAULT '15110013',
    S_KTOKD FOR KNA1-KTOKD ,"OBLIGATORY DEFAULT 'LTOB'
    S_GSBER FOR BSID-GSBER,
    S_PRCTR FOR BSID-PRCTR,
    S_KOSTL FOR BSID-KOSTL,
    S_GJAHR FOR BKPF-GJAHR," OBLIGATORY.
    S_BUDAT FOR BSID-BUDAT DEFAULT SY-DATUM."OPEN ITEM DATE
    *PARAMETERS : P_BUDAT LIKE BSID-BUDAT DEFAULT SY-DATUM." OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK AGE.
    rewars for help ful ans

    Hi Santosh,
    If your requirement is up to the selection date you'd better use a parameter (which can only hold one value).
    Then define a range in your program:
    DATA:
    zlt_budat_range TYPE RANGE OF budat,
    zls_budat_range LIKE LINE OF zlt_budat_range.
    zls_budat_range-sign = 'I'.
    zls_budat_range-option = 'LE'.
    zls_budat_range-low = pa_budat.
    APPEND zls_budat_range TO zlt_budat_range.
    .....AND budat IN zlt_budat_range.
    Regards,
    John.

  • Error which validating selection screen data in subroutine

    Hi,this is my code
    selection-screen begin of block b_selection with frame title text-001.
    SELECT-OPTIONS: s_belnr for  rbkp-belnr,                                         "Invoice number
                    s_gjahr for rbkp-gjahr NO-EXTENSION NO INTERVALS,               "Fiscal year
                    s_stat  for  rbkp-rbstat OBLIGATORY NO-EXTENSION DEFAULT c_status, "Invoice status
                    s_blart for rbkp-blart OBLIGATORY DEFAULT c_doc_type,              "Document type
                    s_lifnr for rbkp-lifnr.                                          "Vendor
    selection-screen end of block b_selection.
    at selection-screen.
    select belnr gjahr from rbkp into table i_inv_data
                           where belnr  IN s_belnr
                           and   gjahr  IN s_gjahr
                           and   blart  IN s_blart
                           and   rbstat IN s_stat.
                           and   lifnr  IN s_lifnr.
      if i_inv_data[] is initial.
      message e000 with 'No record matching the search criteria'(001).
      endif.
    This is working fine...now when I try to modularise it, it is nt working
    selection-screen begin of block b_selection with frame title text-001.
    SELECT-OPTIONS: s_belnr for  rbkp-belnr,                                         "Invoice number
                    s_gjahr for rbkp-gjahr NO-EXTENSION NO INTERVALS,               "Fiscal year
                    s_stat  for  rbkp-rbstat OBLIGATORY NO-EXTENSION DEFAULT c_status, "Invoice status
                    s_blart for rbkp-blart OBLIGATORY DEFAULT c_doc_type,              "Document type
                    s_lifnr for rbkp-lifnr.                                          "Vendor
    selection-screen end of block b_selection.
    at selection-screen.
    perform sub_validate_data.
    FORM SUB_VALIDATE_DATA.
    select belnr gjahr from rbkp into table i_inv_data
                           where belnr  IN s_belnr
                           and   gjahr  IN s_gjahr
                           and   blart  IN s_blart
                           and   rbstat IN s_stat.
                           and   lifnr  IN s_lifnr.
      if i_inv_data[] is initial.
      message e000 with 'No record matching the search criteria'(001).
      endif.
    ENDFORM.                    " SUB_VALIDATE_DATA
    the error which I m getting is ' IN s_belnr should be followd by an internal table'Please tell how can I modularize this code and put the checking part in subroutine

    If I remove the period after s_stat your code is compiling without problems:
    SELECTION-SCREEN BEGIN OF BLOCK b_selection WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_belnr FOR  rbkp-belnr,
                    s_gjahr FOR rbkp-gjahr NO-EXTENSION NO INTERVALS,
                    s_stat  FOR  rbkp-rbstat OBLIGATORY NO-EXTENSION DEFAULT 'X',
                    s_blart FOR rbkp-blart OBLIGATORY DEFAULT 'X',
                    s_lifnr FOR rbkp-lifnr.
    SELECTION-SCREEN END OF BLOCK b_selection.
    AT SELECTION-SCREEN.
      PERFORM sub_validate_data.
    *&      Form  SUB_VALIDATE_DATA
    *       text
    FORM sub_validate_data.
      SELECT belnr gjahr FROM rbkp INTO TABLE i_inv_data
                         WHERE belnr  IN s_belnr
                         AND   gjahr  IN s_gjahr
                         AND   blart  IN s_blart
                         AND   rbstat IN s_stat
                         AND   lifnr  IN s_lifnr.
      IF i_inv_data[] IS INITIAL.
        MESSAGE e000(oo) WITH 'No record matching the search criteria'(001).
      ENDIF.
    ENDFORM.                    " SUB_VALIDATE_DATA
    Check, if you have an additional period somewhere else, or any other subtle differenec.
    Michael

  • Change Data Table column header color

    How do I change the background color displayed in data table column headers?

    Thanks for your response. Problem is that I'm creating a portlet and the stylesheet.css file does not appear to exist, so Winston's blog does not help.

  • Fields for Selection on selection screen - Data Dictionary

    Hi,
    I have an issue while selecting the required fields for selection on the Standard table.
    VBAK --> Settings > Fields for Selection> Select required fields and save it as a variant.
    It looks good for that day but it again changes to the standard selection fields on the selection screen.
    Is there any way that i can keep the Fields for selection on the selection screen ?
    Any suggestion will be appreciated!
    Regards,
    Kittu

    Hi Kittu,
    The SE16 tool generates Selection Screens automatically for the Table and chosen fields therein the user selects. Unfortunately the tool is User Independent, thus other users can change the fields for selection thus rendering any Variants created useless. This is because of internal numbering identifiers for fields instead of field names making up the variant. SE16 has always being regarded as a development tool hence its limited functionality.
    I however may suggest that you could utilise ABAP Queries instead by way of transaction SQ01/SQ02 or SQVi. These may offer you a better solution.
    Best of luck,
    Derrick Hurley
    ABAP Development Workbench
    SAP
    Edited by: Derrick Hurley on Mar 31, 2011 4:01 PM
    Edited by: Derrick Hurley on Mar 31, 2011 4:01 PM

Maybe you are looking for

  • HT4623 mY 5 s BATTERY LIFE IS REALLY SHORT . WHAT can i do to improve it ?

    I am only getting  about 8 hours with half of that in standby mode out of a charge .

  • HP Color LaserJet 2600N Windows7

    Hi I have a HP Color LaserJet 2600N in my LAN. Currently I am installing my new PC with Windows7 but I can't install my printer. What is the best way to solve this problem? Thanks for help and hints. Rainer This question was solved. View Solution.

  • Error Report(daily upload) - Blank sheet

    Hello- We have our daily uploads from SAP BI system to BPC. We have created a SSIS package and scheduled the upload. Initially we were getting error for few cost centers, that has been rectified and now data is getting in to the BPC server, but still

  • Unable to install SAP GUI 710

    Hi, I am trying to install SAP GUI 710 on my system which has Windows Vista as the OS. I have downloaded 3 zip files from the SAP Market place. They are 50083078_2.zip 50083078_4.zip 50083078_5.zip. None of these zip files contain the .exe file which

  • Extended partition but doesn't show in My Computer

    Extended an iSCSI mounted disk from 500GB to 750GB in Server 2008 R2 Standard.  Saw the larger disk in Disk Management and extended the partition successfully.  Ran Chkdsk on the new drive and it shows the correct total, used, and free space on the d