Select criteria without using SELECTION SCREENs

Hi everybody,
I have a report with a single screen, 4 fields for search criteria and 2 alv grids for the output.
I search db tables with a select statement.
Is it possible to define a select statement that searches for 3 out of 4 criteria, if the fourth input field isn't filled it?
Because right now the select statement doesn't return any data if I leave one parameter blank.
And how can I provide the possibility to define more than one search criteria of one kind withour adding several input fields on the screen?
For example: Data created on 20070101 and 20070105.
I know that most of this can be done with selection screens, but is there a possibility to do this without a selection screen?
Best regards
Tobias

You should use SELECT-OPTIONS on your selection screen.  This allows the user to enter all kinds of possiblities, including leaving something blank.  Then in your SELECT statement, you use the IN operator.
select-options: s_datum for sy-datum.
select * into table itab
           from ztable
                  where datum IN s_datum.
If you truly do not want to use a Selection-screen, you could hard code values in the SELECT statement or create a range using the RANGE statement.  The RANGE statement works exactly like SELECT-OPTION statement but without the selection-screen.
Regards,
Rich Heilman

Similar Messages

  • Wiping harddrive without using the screen

    My iMac 20" has got a broken lcd display, but the internals all work fine, even the backlight.
    When I turn it on it just has a white screen and I manged to get everything I needed off it by connecting it by firewire to my new mac.
    My question is how do I wipe the hard drive without using the screen, can you do it over fire wire or usb?
    I want to sell for spares or repairs but don't want any sensitive information to be given away or have to give a password away
    Thanks
    Phil

    Startup your old iMac in Target Disk mode by holding the "T" during boot up.
    Attach to your new iMac. The hard drive on your old iMac should appear on the desktop of your new iMac.
    Using Disk Utility, erase the drive on your old iMac.

  • Needs  help to retrive the last row in a  select query without using rownum

    Hi ,
    i need to retrive the last row from the select sub query without using rownum.
    is there any other way to retrive the last row other than the below query.
    is that the ROWNUM=1 will always retrive the 1 row of the select query ?
    select from*
    *(select ename from employee where dept_id=5 order by desc) where rownum=1;*
    Please advise.
    thanks for your help advance,
    regards,
    Senthur

    957595 wrote:
    Actually my problem is ithat while selecting the parents hiearchy of the child data using
    CONNECT BY PRIOIR query
    I need the immediate parent of my child data.
    For example my connect BY query returns
    AAA --- ROOT
    BBB --PARENT -2
    CCC --PARENT-1
    DDD IS my input child to the connect by query
    Immediate parent of my child data "DDD" ---> CCC(parent -1)
    i want the data "CCC" from the select query,for that i am taking the last row of the query with rownum.
    I got to hear that using ROWNUM to retrive the data will leads to some problem.It is a like a magic number.I am not sure what the problem will be.
    So confusing with using this rownum in my query.
    Please advice!!!It's not quite clear what you're wanting, but perhaps this may help?
    you can select the PRIOR values to get the parent details if you want...
    SQL> ed
    Wrote file afiedt.buf
      1  select empno, lpad(' ',(level-1)*2,' ')||ename as ename, prior empno as mgr
      2  from emp
      3  connect by mgr = prior empno
      4* start with mgr is null
    SQL> /
         EMPNO ENAME                                 MGR
          7839 KING
          7566   JONES                              7839
          7788     SCOTT                            7566
          7876       ADAMS                          7788
          7902     FORD                             7566
          7369       SMITH                          7902
          7698   BLAKE                              7839
          7499     ALLEN                            7698
          7521     WARD                             7698
          7654     MARTIN                           7698
          7844     TURNER                           7698
          7900     JAMES                            7698
          7782   CLARK                              7839
          7934     MILLER                           7782
    14 rows selected.(ok, not the best of examples as the mgr is already known for a row, but it demonstrates you can select prior data)

  • Select statement without using Rownum or Rowid

    Hi,
    I have a requirement where I have delete the first 100 records from table without using the rownum or rowid.
    Thanks to all for your time
    Narain

    Hi
    delete from yourtab x where (select count(*) from yourtab where yourpk <= x.yourpk) < 101;HTH
    Laurent Schneider
    OCM DBA

  • MSS Selection Criteria: Organizational Unit selection excludes sub OUs

    When a user selects an OU on the 'selection Criteria' iView, only members of that OU (and not any sub OUs) are included in the report. This is the opposite behavior to MDT, where all members of sub OUs are included.
    Does anyone know of any configuration that can change this? Should I look at configuration of the Object and Data Provider?

    Please check steps as mentioned here
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
    and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
    check tje note 1431691
    When the report is launched from
    the portal, the program is reading the table:T77eo for the object
    type-'O' , since there are no entries for the object 'O' in the table,
    the switch INREL is not set, therefore the structure pchobjid is not
    filled while calling the report as shown below. Now I know the
    rootcause, but I don;t know the reason behind the table: T77EO not
    having entries for object "O".
    ==============================================================
        SUBMIT (fcode_rec-progname)
        USING SELECTION-SET fcode_rec-variant
        AND RETURN
                       WITH pchplvar EQ act_plvar
                       WITH pchotype EQ act_otype
                       WITH pchobjid IN pchobjid
                       WITH pchsobid IN pchsobid
                       WITH pchobeg  EQ act_begda
                       WITH pchoend  EQ act_endda
                       WITH pchbegda EQ act_begda
                       WITH pchendda EQ act_endda.
    try to use PNP database for seleciton only these paramters are passed to backend!

  • How to put "selection options without intervals" on screen painter?

    Hello all,
           I need to put a field for pernr(personal number) on screen painter (module program) and user should be able to enter a list of pernr's to process. I know in report program I can do this by:
    SELECT-OPTIONS: s_lpernr FOR pa001-pernr NO INTERVALS.
    How can I get this work on sccreen painter in module programming? How can I add a field on screen painter with a range without intervals? Please let me know.
    Thanks.
    Mithun.

    You can also do this using the function module COMPLEX_SELECTIONS_DIALOG.
    REPORT  ZTEST_SCREEN                            .
    DATA : BEGIN OF IT_DYNPFIELDS OCCURS 3.
            INCLUDE STRUCTURE DYNPREAD.
    DATA : END OF IT_DYNPFIELDS.
    DATA: TEST(10) TYPE C.
    RANGES:  R_UNAME FOR SY-UNAME.
    DATA:     V_USERNAME LIKE  SY-UNAME.
    DATA : V_PROG LIKE D020S-PROG VALUE 'ZTEST_SCREEN',
           V_DNUM LIKE D020S-DNUM VALUE '0100'.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'TEST'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  GET_CURSOR_USERNAME  INPUT
    *       text
    MODULE GET_CURSOR_USERNAME INPUT.
      REFRESH IT_DYNPFIELDS.
      CLEAR   IT_DYNPFIELDS.
      MOVE 'V_USERNAME' TO IT_DYNPFIELDS-FIELDNAME.
      APPEND IT_DYNPFIELDS.
      CLEAR   IT_DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME               = V_PROG
          DYNUMB               = V_DNUM
          TRANSLATE_TO_UPPER   = 'X'
        TABLES
          DYNPFIELDS           = IT_DYNPFIELDS
        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.
      IF SY-SUBRC EQ  0.
        READ TABLE IT_DYNPFIELDS WITH KEY FIELDNAME = 'V_USERNAME'.
        IF SY-SUBRC = 0.
          V_USERNAME = IT_DYNPFIELDS-FIELDVALUE.
        ENDIF.
      ENDIF.
      PERFORM GET_MULTIPLE.
    ENDMODULE.                 " GET_CURSOR_USERNAME  INPUT
    *&      Form  GET_MULTIPLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_MULTIPLE .
    * Dynamically holding Field name
      FIELD-SYMBOLS: <FST> TYPE STANDARD TABLE.
      IF  R_UNAME[] IS INITIAL.
        IF NOT V_USERNAME IS INITIAL.
          R_UNAME-SIGN = 'I'.
          R_UNAME-OPTION = 'EQ'.
          R_UNAME-LOW = V_USERNAME.
          APPEND R_UNAME.
          CLEAR  R_UNAME.
        ENDIF.
      ENDIF.
      ASSIGN R_UNAME[] TO <FST>.
      CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
        EXPORTING
          TITLE             = 'Select Multiple Value'(059)
          TEXT              = 'Finish Group'(058)
          SIGNED            = 'X'
          LOWER_CASE        = ' '
          NO_INTERVAL_CHECK = 'X'
          JUST_DISPLAY      = ' '
          JUST_INCL         = 'X'
        TABLES
          RANGE             = <FST>
        EXCEPTIONS
          NO_RANGE_TAB      = 1
          CANCELLED         = 2
          INTERNAL_ERROR    = 3
          OTHERS            = 4.
      IF SY-SUBRC EQ  0.
        READ TABLE R_UNAME INDEX 1.
        IF SY-SUBRC = 0.
          V_USERNAME = R_UNAME-LOW.
        ENDIF.
      ENDIF.
    ENDFORM.                    " GET_MULTIPLE

  • Case sensitivity select statement without using native sql

    please help me ,
    i have a selection screen as select-options : s_vbeln, s_kunnr(mandt),s_matnr and
    p_name as a parameter (type name1) which is case sensitive in sap abap database and i want to get
    output  from these fields in an alv.[vbeln,kunnr,name1,audat,auart,matnr,kwmeng,netwr]
    How to do it? Can any one give me solution please.[i have to handle case sensitivity plz give me solution]

    this is my code : but its not working as i expected plz tell me where did i went wrong...
    type-pools slis.
    tables : vbak , vbap.
    select-options : s_vbeln for vbak-vbeln,
                     s_kunnr for vbak-kunnr,
                     s_matnr for vbap-matnr.
    parameters p_name1 type NAME1_GP.
    ranges r_name for kna1-name1.
    types : begin of ty_vbak,
            vbeln type vbeln_va,
            audat type audat,
            auart type auart,
            kunnr type kunnr,
            end of ty_vbak,
            begin of ty_vbap,
            vbeln type vbeln_va,
            matnr type matnr,
            netwr type netwr_ap,
           kwmeng type kwmeng,
            end of ty_vbap,
            begin of ty_kna1,
            kunnr type kunnr,
            name1 type name1,
            end of ty_kna1,
            begin of ty_final,
            vbeln type vbeln_va,
            audat type audat,
            auart type auart,
            matnr type matnr,
            netwr type netwr_ap,
           kwmeng type kwmeng,
            kunnr type kunnr,
            name1 type name1,
            end of ty_final.
    data : t_vbak type standard table of ty_vbak initial size 1,
           t_vbap type standard table of ty_vbap initial size 1,
           t_kna1 type standard table of ty_kna1 initial size 1.
    data : t_final type standard table of ty_final initial size 1,
           w_final type ty_final,
           w_vbap  type ty_vbap,
           w_kna1  type ty_kna1,
           w_vbak  type ty_vbak.
    data : t_fcat type slis_t_fieldcat_alv,
           w_fcat type slis_fieldcat_alv.
    DATA T_FINAL2 TYPE STANDARD TABLE OF TY_FINAL INITIAL SIZE 1.
    data v_name1 type name1.
    if p_name1 is not initial.
    r_name-sign = 'I'.
    r_name-option = 'EQ'.
    if p_name1 ca '*'.
    r_name-option = 'CP'.
    endif.
    r_name-low = p_name1.
    append r_name.
    endif.
    start-of-selection.
    select vbeln audat auart kunnr from vbak
    into table t_vbak
    where vbeln in s_vbeln and
          kunnr in s_kunnr.
    if sy-subrc <> 0.
    message 'plz enter a valid entry' type 'I'.
    leave list-processing.
    endif.
    if t_vbak[] is not initial.
    select vbeln matnr netwr kwmeng from vbap
    into table t_vbap
    for all entries in t_vbak
    where vbeln = t_vbak-vbeln and
    matnr in s_matnr.
    if sy-subrc <> 0.
    message 'no rec found' type 'I'.
    leave list-processing.
    endif.
    select kunnr name1 from kna1
    into table t_kna1
    for all entries in t_vbak
    where kunnr = t_vbak-kunnr.
    if sy-subrc = 0.
    sort t_kna1 by kunnr.
    endif.
    endif.
    end-of-selection.
    loop at t_vbap into w_vbap.
    read table t_vbak into w_vbak with key vbeln = w_vbap-vbeln binary search.
    read table t_kna1 into w_kna1 with key kunnr = w_vbak-kunnr binary search.
    w_final-vbeln = w_vbak-vbeln.
    w_final-audat = w_vbak-audat.
    w_final-auart = w_vbak-auart.
    w_final-matnr = w_vbap-matnr.
    w_final-netwr = w_vbap-netwr.
    w_final-kwmeng = w_vbap-kwmeng.
    w_final-kunnr  = w_kna1-kunnr.
    w_final-name1  = w_kna1-name1.
    append w_final to t_final.
    endloop.
    delete t_final where name1 not in r_name.
    perform sub_fill_fcat using 'VBELN' 'SALE ORDER NUM'.
    perform sub_fill_fcat using 'KUNNR' 'CUSTOMER NUMBER'.
    perform sub_fill_fcat using 'NAME1' 'NAME OF A CUST'.
    perform sub_fill_fcat using 'AUDAT' 'SALE ORDER DATE'.
    perform sub_fill_fcat using 'AUART' 'SALE DOC TYPE'.
    perform sub_fill_fcat using 'MATNR' 'MATERIAL NUM'.
    perform sub_fill_fcat using 'KWMENG' 'QUANTITY'.
    perform sub_fill_fcat using 'NETWR' 'PRICE'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        IT_FIELDCAT                       = T_FCAT
      TABLES
        T_OUTTAB                          = T_FINAL
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    *&      Form  SUB_FILL_FCAT
    *       text
    *      -->P_0389   text
    *      -->P_0390   text
    FORM SUB_FILL_FCAT  USING P_FNAM P_TEXT.
    clear w_fcat.
    w_fcat-fieldname = p_fnam.
    w_fcat-seltext_m = p_text.
    append w_fcat to t_fcat.
    ENDFORM.

  • INTRASTAT import: which selection criteria are used by MEIS?

    All,
    I have a question to the SAP R3 Standard for INTRASTAT import reporting: selection of documents by transaction MEIS.
    I would be interested to know, how the MEIS transaction is selecting the documents for the report (selection log) given a
    -     Purchasing organization
    -     Company Code
    -     Reporting Month and Year
    -     Country of Declaration
    As to my knowledge, SAP R3 Standard is looking for all the purchase order items of a purchasing organization (including company code), where an invoice has been posted (posting date) for the specified reporting year and month.
    Which are the other criteria taken into consideration, e. g. tax codes or business transaction types (inclusion or exclusion)?
    Thank you very much for your support in advance!
    Max

    i am looking for the same issue...can someone help ?

  • XML in PLSQL without using SELECT statements

    It maybe crazy but I cannot find a book or an example to differentiate between these two ones, if it is english or french based on XML below.
    set serveroutput on size 1000000
    DECLARE
    l_doc VARCHAR2(2000);
    l_domdoc dbms_xmldom.DOMDocument;
    l_nodelist dbms_xmldom.DOMNodeList;
    l_node dbms_xmldom.DOMNode;
    l_value VARCHAR2(30);
    l_xmltype XMLTYPE;
    l_empx XMLTYPE;
    l_index PLS_INTEGER;
    l_col_ind PLS_INTEGER;
    v_namespace_prfx varchar2(20):= 'ns0:';
    v_namespace varchar2(200):= 'xmlns="http://www.rona.ca/SharedResources/SchemaDefinitions/Canonical"';
    l_nsmap varchar2(200);
    BEGIN
    l_doc := '<?xml version = "1.0" encoding = "UTF-8"?>          
    <ns0:Product type = "DEPAS" xmlns:ns0 = "http://www.rona.ca/SharedResources/SchemaDefinitions/Canonical">          
         <ns0:ProductIDs>     
              <ns0:ID type = "RONCD">48535003</ns0:ID>
         </ns0:ProductIDs>     
         <ns0:ProductUom Usage = "PURCU">     
              <ns0:Quantity uomCode = "EA">1</ns0:Quantity>
         </ns0:ProductUom>     
         <ns0:ProductUom Usage = "SALEU">     
              <ns0:Quantity uomCode = "EA">1</ns0:Quantity>
         </ns0:ProductUom>     
         <ns0:CreateDateTime>2003-02-16T00:00:00-04:00</ns0:CreateDateTime>     
         <ns0:Status>     
              <ns0:Code>ACTV</ns0:Code>
         </ns0:Status>     
         <ns0:Description languageCode = "fra" type = "REGID">DEPOT BOUTEILLE</ns0:Description>     
         <ns0:Description languageCode = "eng" type = "REGID">BOTTLE DEPOSIT</ns0:Description>          
         <ns0:Description languageCode = "fra" type = "LONGD">DEPOT BOUTEILLE D''EAU</ns0:Description>          
         <ns0:Description languageCode = "eng" type = "LONGD">DEPOSIT WATER BOTTLE</ns0:Description>          
         <ns0:Description languageCode = "fra" type = "REGI4">DEPOT BOUTEILLE</ns0:Description>          
         <ns0:Description languageCode = "eng" type = "REGI4">BOTTLE DEPOSIT</ns0:Description>          
         <ns0:Description languageCode = "fra" type = "CLEI4">DEPOT</ns0:Description>          
         <ns0:Description languageCode = "eng" type = "CLEI4">DEPOSIT</ns0:Description>          
         <ns0:Description languageCode = "eng" type = "LONG4">DEPOSIT WATER BOTTLE</ns0:Description>          
         <ns0:Description languageCode = "fra" type = "LONG4">DEPOT BOUTEILLE D''EAU</ns0:Description>          
    </ns0:Product>';
    l_xmltype := XMLTYPE(l_doc);
    -- Method 3
    dbms_output.new_line;
    dbms_output.put_line('Method 3');
    l_index := 1;
    l_nsmap:=v_namespace;
    --dbms_output.put_line('ID type = ' || l_xmltype.extract('/GetRequest/ProductIDs/ID[2]/@type', l_nsmap).getStringVal());
    WHILE l_xmltype.Existsnode('/Product/'||'Description[' || To_Char(l_index) || ']',v_namespace) > 0
    LOOP
    dbms_output.put_line('I am here');
    -- dbms_output.put_line('ID = ' || l_xmltype.extract('/GetRequest/ProductIDs/ID/text()', l_nsmap).getStringVal());
    dbms_output.put_line('ID type = ' || l_xmltype.extract('/Product/'||'Description[' || To_Char(l_index) || ']/@type', l_nsmap).getStringVal());
    dbms_output.put_line('ID type = ' || l_xmltype.extract('/Product/'||'Description[' || To_Char(l_index) || ']/text()', l_nsmap).getStringVal());
    -- is it english or french ? how can I capture the difference ? my example does not work
    dbms_output.put_line('ID type = ' || l_xmltype.extract('/Product/'||'Description[' || To_Char(l_index) || '][languageCode = "eng"]/text()', l_nsmap).getStringVal());
    --dbms_output.put_line('Emp Name: '||l_value);
    l_index := l_index + 1;
    END LOOP;
    END;

    I think you already know this since you extract the "type" attribute too.
    As well, languageCode is an attribute so you must access it with the "@" notation (or the attribute:: axis).
    Now, it depends on what you want to do :
    1- extract only Descriptions in a given language ?
    2- extract all Descriptions along with their language ?
    For 1) the current iteration method is not appropriate and you can't just add the corresponding predicate in the existsNode test because there's no correlation between the node position and the languageCode.
    You have to count how many nodes of the given language there are and then loop from 1 to this count.
    Or, fall back to case 2) and test the language within the loop after having extracted it.
    For 2) add another extract call that targets the attribute :
    WHILE l_xmltype.Existsnode('/Product/'||'Description[' || To_Char(l_index) || ']',v_namespace) > 0
    LOOP
      dbms_output.put_line('type = ' || l_xmltype.extract('/Product/'||'Description[' || To_Char(l_index) || ']/@type', l_nsmap).getStringVal());
      dbms_output.put_line('languageCode = ' || l_xmltype.extract('/Product/'||'Description[' || To_Char(l_index) || ']/@languageCode', l_nsmap).getStringVal());
      dbms_output.put_line('Description = ' || l_xmltype.extract('/Product/'||'Description[' || To_Char(l_index) || ']/text()', l_nsmap).getStringVal());
      l_index := l_index + 1;
    END LOOP;XMLTable is so much simpler to use in any case.

  • Original photo size without using full screen mode...

    Like in Preview. Is there a way?

    You could use the Edit in Separate Window mode and enlarge the window as big as you'd like. The toolbar would still be there but you can cover up the rest of the iPhoto window if you'd like. The arrow keys will then let you scroll thru your photos.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Is there a way to get the IP address of a "remote" system on the LAN without using Share Screen and checking the network settings?

    I'm trying to better understand Mac's with respect to networking.  It seems that my computer should know the IP address of ever system listed on the Local Area Network, but all I see is the system name.  Is there a way to determine the IP address also?
    I have tried using "Get Information", but that produces no useful data.

    I'm trying to better understand Mac's with respect to networking.  It seems that my computer should know the IP address of ever system listed on the Local Area Network, but all I see is the system name.  Is there a way to determine the IP address also?
    I have tried using "Get Information", but that produces no useful data.

  • How to read personal no's on selection in LDB without using GET PERNR

    Hi to all
    I am using Logical data base PNP and selection screen 900.
    Now my requirement is to retrieve personal no's which are entered at selection seperately without using GET PERNR.
    Ineed all the pernrwhich are entered in selection.
    How to do that.
    Please guide.
    Regards
    Anubhav

    Hi,
    You can do as SUJIT said or use GET PERNR and assign PERN-PERNR to Workarea and then append that to internal table.
    DATA:
       ITAB_PERNR like standard table of PA0000-pernr,
       wa_pernr like line of ITAB_PERNR.
    GET PERNR.
    wa_pernr-pernr  = pernr-pernr.
    append wa_pernr to ITAB_PERNR
    Hope this would help you.
    Regards
    Narin Nandivada.

  • Display user using complex selection criteria

    How to display user using complex selection criteria, I want to display user list with company code assigned to them?

    In t.code SUIM
    Select Users by complex selection criteria in that selection of values in authorization object give F_BKPF_BUK enter and then specify the company code & execute.
    It will give list of roles having company code. Highlight each role and click on user assignment.
    hope this helps

  • Upload data from Excel to internal table without using Screen

    Hi,
    My reqirment is to read the excel input data and then upload it to internal table for further proceeing but without using selection input screen. I mean can I mention the fixed file name and the path in the function module iself for the input file.

    1.First create one internal table as u have created ur EXCEL file.
    e.g: if ur EXCEL file contains 3 fields col1 col2 and col3.
           data: begin of wa,
                     col1(10),
                     col2(10),
                     col3(10),
                   end of wa,
                   itab like standard table of wa.
    data: filename type string 'C:\FOLDER\DATA.XLS'
    If u dont want to use the screen, then pass the file name directly to the GUI_UPLOAD FM.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = filename
       FILETYPE                      = '.XLS'
      tables
        data_tab                      = itab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    This will serve ur puspose.
    loop at itab into wa.
    write: / wa-col1,wa-col2,wa-col3.
    endloop.
    Thanks & Regards
    Santhosh

  • Displaying selection criteria in ALV report output

    Hello,
    I’ve been using REUSE_ALV_GRID_DISPLAY function module to display my report content in ALV.
    My report’s selection criteria has parameters, select options, checkboxes and radio buttons.  As part of the ALV output, I want to display the criteria that the user had selected in the selection screen.  I was hoping to do that via parameter "i_callback_top_of_page" and fill the selection criteria in the header area.  I'm using REUSE_ALV_COMMENTARY_WRITE to fill the header area. 
    However, the header area takes too much of view space in the output if I put all the selection screen information in it.
    Is there a way to make the header area scrollable?  What is a good way of displaying the selection criteria information as part of the report output?
    Appreciate your help.
    ss

    Hi SS,
    1. The purpose of displaying / writring
       selection information
       in alv is
       for identifying what the user has seleccted,
       directly from the report (when its printed)
    2. So, the option of priting/writing
       it on the TOP of alv, is ok.
    3. However, U can also choose to WRITE
      it at the BOTTOM (instead of top)
    4. Try to utilise maximum spacing (horizontally)
       field1 : abcd      fidl2 = xyz  field3 = ppp
       field4 : mnc       etc.         etc.
    regards,
    amit m.

Maybe you are looking for

  • Safari 7.0.3 Crash EXC BAD ACCESS

    Hi guys, Safari crashed on me and it had an unfamiliar exception type. Here is the log - what could be the culprit? Chrome has also been crashing recently (which is why I switched to Safari in the first place) Process:     Safari [285] Path:        /

  • How to populate OIM Rules automatically ?

    Hello experts, We have a requirement to populate set of values from a flat file to OIM Rule in 11g. Is there any API to do that operation ? Consider flat file has some 100 records of "jobCode" as follows 123 456 789 We need to create a single OIM rul

  • 5.1 audio not working

    Hey guys any help would REALLY be appreciated, I'm a bit of a newbie so carefull steps would great. I've been struggling for a while now with this: CPU=AMD Athlon 64 processor 3500+ RAM=1.00 GB Motherboard=MSI NVIDIA nForce 4 SLI k8n Diamond VGA=GEFO

  • Do CIF BAdIs issue implicit COMMIT WORKS (for FM's called "in update task")

    I am calling the CIF BAdI: /SAPAPO/TR_TRANSFER. In the PUSH_LANE_DATA method of this BAdI, I want to call a function module "in update task". To trigger the actual execution of this function module, do I have to code an explicit COMMIT WORK in the BA

  • How to link Business Place with plant

    Dear Expert, We are getting Business Place wise FBL3N report for Vat Payable GL code. We have created Business Place under Extended Witholding Tax tab. We are generating tax invoice in different plant. But how to link Business Place with plant so tha