How to Check input

HI
i wont to do a test program  and i have rfc that in import i have pernr and if user put pernr he get table with employee name and... the problem is when user put vaild pernr i wont to bring a popup that pernr dosent exist .
how i do that?
Regards

in this case u have to make of expections/return tables.
if pernr is initial.
get data for all .
elseif.
select pernr from it03 into table it3
where pernr =  pernr.
if sy-subrc ne 0.
raise expections/ update error return tables .
endif.
regards
Peram

Similar Messages

  • Check input  values are available in Hex

    how to check input values are available between 0x0000000000000001 to
    0xFFFFFFFFFFFFFFFE
    i am using following code. but error will come
    public boolean hexCheck16(String hex)
    String hex_min = "0x0000000000000001";
    String hex_max = "0xFFFFFFFFFFFFFFFE";
         int min1 = Integer.parseInt(hex_min.substring(2).toString(),16);
         int max2 = Integer.parseInt(hex_max.substring(2).toString(),16);
         int num = Integer.parseInt(hex.toString(), 16);
         if(num >= min1 & num <= max2)
         return true;
         else
         return false;
    Error is : java.lang.NumberFormatException: For input string: "FFFFFFFFFFFFFFFE"
    how to solve?

    Use BigInteger (and lose the "0x").

  • Cl_gui_alv_grid check input Data

    HI,
    I have a problem trying to implement an ALV with editable cells using  cl_gui_alv_grid class.
    My problem is : how to check input data ?
    More precisely, in field catalog, I can specify an control table and a control field for each ALV column. If I do so, a search is displayed for the corresponding field and if I choose a value not available in this serach help, an error popup message is displayed and the cell in error is colored with a red line.
    IT works perfectly for undepdant fields.
    I try to do the same for field DISPO of table MARC displayed in my ALV. The sytem display appropriate serach help but alaways disaply an error message telling that "DISPO has not been found for plant ..." and it does not found the appropraite valeu of field WERKS/PLANT. HOw to correct this problem. A precision : the field WERKS is part of displayed column and is filled with a correct value but the link is not done.
    Thanks for help
    Regards
    Morgan

    Check the sample programs
    BCALV_EDIT_01 - Editabale ALV
    BCALV_EDIT_02 - Edit, save and F4 help
    BCALV_EDIT_03 - Events handled
    BCALV_EDIT_04
    BCALV_EDIT_05
    BCALV_EDIT_06
    BCALV_EDIT_07
    BCALV_EDIT_08

  • How to check current input/output rate on router subintenterface via SNMP?

    How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
    I cant find OID to make this with snmpwalk.
    Or there is no way to check current load by this way? Only polling?
    P.S. Ethernet subinterface, of course.
    With great respect, S.A.

    Hi,
    Try to use:
    1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
    1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
    1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription

  • How to check users inputs

    hi,there
    i am developing an on-line shop,at the end of checking out process , the users are supposed to submit a details form which including first name ,surname, address,email, phone no, card number etc. Can any one tell me how to check those details are valid before sending to database by using javabean or taglib.
    any information is helpful , thanks in advance.

    You have three choices:
    (1) Client-side checking using JavaScript,
    (2) Server-side checking using JavaBeans,
    (3) Both.
    You can check on the client side using JavaScript to make sure that e-mail address formats are valid, numbers are numbers, strings are the right length and format, dates are correct for the locale, etc. You might want to look at the JSTL I18N capabilities here to make sure your pages can handle different locales. This saves you a network roundtrip if something is formatted incorrectly.
    The server-side checking is different: it makes sure that the input satisfies business rules. You can check for correct format again if you wish, OR assume that the client has already taken care of this. (Depends on how paranoid you want to be.) The business rules for correctness belong on the server side, not in the client.
    I'd recommend both. They really are two different kinds of checks.
    MOD

  • How to check date input.

    In a JText, I input a date valu, when i got the value ,i want to check if it's reasonable.
    but idon't know how to check a number:
    for example:
    i input 31/31/2004,
    you know it's not reasonable.
    how to check it?

    Here is a function that check for a valid date:
    public boolean validDate(String strDatum)
    boolean dane = true;
    Calendar calendarDatum = Calendar.getInstance();
    int godina = 0, mesec = 0, den = 0, najgolemDen = 0;
    int i;
    if(strDatum.length()<10)
    dane = false;
    else
    for(i=0;i<2;i++)
    if(!Character.isDigit(strDatum.charAt(i)))
    dane = false;
    for(i=3;i<5;i++)
    if(!Character.isDigit(strDatum.charAt(i)))
    dane = false;
    for(i=6;i<10;i++)
    if(!Character.isDigit(strDatum.charAt(i)))
    dane = false;
    if(dane)
    godina = Integer.parseInt(strDatum.substring(6,10));
    mesec = Integer.parseInt(strDatum.substring(3,5));
    den = Integer.parseInt(strDatum.substring(0,2));
    if(mesec>12||mesec<1)
    dane = false;
    else
    calendarDatum.set(godina,mesec-1,1);
    najgolemDen = calendarDatum.getActualMaximum(Calendar.DAY_OF_MONTH);
    if(den>najgolemDen)
    dane = false;
    }//if(dane)
    }//else (ako dolzinata e 10)
    return dane;
    }

  • Help,how to check a input type?

    Dear all experts,
    in the selection-screen,user need to key in the vendor consignment code ( vdrcsg  for mslb-lifnr ) some user key in storage location ( mseg-lgort ) in this field. Is there anyway tat i can do verification before procees to the start-of-selection? how to check if the user key in correct data type to the selection screen? thanks

    hi Joan,
            Check these links :
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a234d9b511d1950e0000e8353423/frameset.htm
    http://www.erpgenie.com/abap/selection_screens.htm
    http://www.sapdevelopment.co.uk/reporting/selscr/selscr_loopscreen.htm
    priyanka.

  • How to check  if all values from a dataset  has come to  an internal table

    How to check  if all values from a dataset  has come to  an internal table ?

    Hi,
    After OPEN DATASET statement check if sy-subrc = 0 if its success then proceed with split statement and save the dataset values into a internal table and while debugging the internal table you will find that whether all values get into internal table.
    Checking sy-subrc after OPEN DATASET statement is must to fill up the values in the internal table.
    For e.g.
    OPEN DATASET p_inpfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        WRITE :/ 'No such input file' .
        EXIT.
      ELSE.
    READ DATASET p_inpfile INTO loc_string.
          IF sy-subrc NE 0.
            EXIT.
          ELSE.
            CLEAR loc2.
    *Spliting fields in the file-
            REPLACE ALL OCCURRENCES OF '#' IN wa_string WITH ' '.
           SPLIT wa_string AT const INTO loc2-pernr
                                           loc2-werks
                                           loc2-persk 
                                           loc2-vdsk1.
    Hope you get some idea.
    Thanks,
    Sakthi C

  • How to check whether a file is present in the UNIX directory of app. server

    Hi,
            I am creating files in the UNIX directory in the application server using :
                       CONCATENATE '/sapmnt/RD1/interfaces/client670/'
                       p_fname '.CSV' INTO w_filename.
               OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE.
              LOOP AT t_output1.
                      TRANSFER t_output1 TO w_filename.
              ENDLOOP.
             CLOSE DATASET w_filename.
    I am unable to check whether a file with the same name exists or not. How to check the duplicate state of the file.

    You can use the following fm
    RZL_READ_FILE
    or
    use OPEN DATASET FOR INPUT.

  • How can I input read a line from a file and output it into the screen?

    How can I input read a line from a file and output it into the screen?
    If I have a file contains html code and I only want the URL, for example, www24.brinkster.com how can I read that into the buffer and write the output into the screen that using Java?
    Any help will be appreciate!
    ======START FILE default.html ========
    <html>
    <body>
    <br><br>
    <center>
    <font size=4 face=arial color=#336699>
    <b>Welcome to a DerekTran's Website!</b><br>
    Underconstructions.... <br>
    </font> </center>
    <font size=3 face=arial color=black> <br>
    Hello,<br>
    <br>
    I've been using the PWS to run the website on NT workstation 4.0. It was working
    fine. <br>
    The URL should be as below: <br>
    http://127.0.0.1/index.htm or http://localhost/index.htm
    <p>And suddently, it stops working, it can't find the connection. I tried to figure
    out what's going on, but still <font color="#FF0000">NO CLUES</font>. Does anyone
    know what's going on? Please see the link for more.... I believe that I setup
    everything correctly and the bugs still flying in the server.... <br>
    Thank you for your help.</P>
    </font>
    <p><font size=3 face=arial color=black>PeerWebServer.doc
    <br>
    <p><font size=3 face=arial color=black>CannotFindServer.doc
    <br>
    <p><font size=3 face=arial color=black>HOSTS file is not found
    <br>
    <p><font size=3 face=arial color=black>LMHOSTS file
    <br>
    <p><font size=3 face=arial color=black>How to Setup PWS on NT
    <BR>
    <p><font size=3 face=arial color=black>Issdmin doc</BR>
    Please be patient while the document is download....</font>
    <font size=3 face=arial color=black><br>If you have any ideas please drop me a
    few words at [email protected] </font><br>
    <br>
    <br>
    </p>
    <p><!--#include file="Hits.asp"--> </p>
    </body>
    </html>
    ========= END OF FILE ===============

    Hi!
    This is a possible solution to your problem.
    import java.io.*;
    class AddressExtractor {
         public static void main(String args[]) throws IOException{
              //retrieve the commandline parameters
              String fileName = "default.html";
              if (args.length != 0)      fileName =args[0];
               else {
                   System.out.println("Usage : java AddressExtractor <htmlfile>");
                   System.exit(0);
              BufferedReader in = new BufferedReader(new FileReader(new File(fileName)));
              StreamTokenizer st = new StreamTokenizer(in);
              st.lowerCaseMode(true);
              st.wordChars('/','/'); //include '/' chars as part of token
              st.wordChars(':',':'); //include ':' chars as part of token
              st.quoteChar('\"'); //set the " quote char
              int i;
              while (st.ttype != StreamTokenizer.TT_EOF) {
                   i = st.nextToken();
                   if (st.ttype == StreamTokenizer.TT_WORD) {          
                        if (st.sval.equals("href")) {               
                             i = st.nextToken(); //the next token (assumed) is the  '=' sign
                             i = st.nextToken(); //then after it is the href value.               
                             getURL(st.sval); //retrieve address
              in.close();
         static void getURL(String s) {     
              //Check string if it has http:// and truncate if it does
              if (s.indexOf("http://") >  -1) {
                   s = s.substring(s.indexOf("http://") + 7, s.length());
              //check if not mailto: do not print otherwise
              if (s.indexOf("mailto:") != -1) return;
              //printout anything after http:// and the next '/'
              //if no '/' then print all
                   if (s.indexOf('/') > -1) {
                        System.out.println(s.substring(0, s.indexOf('/')));
                   } else System.out.println(s);
    }Hope this helps. I used static methods instead of encapsulating everyting into a class.

  • How to check 6 digital signals change value at the same time with PCI-6229??

    I am using DAQ card PCI-6229.
    Channel 1 generate a digital signal.
    Channel 2,3,4,5,6,7 acquire digital signals.
    I want to check:
    1. Whether the rising edge of Channel 2,3,4,5,6,7 occures at the same time;
    2. The time delay from the rising edge of Channel 1 to the rising edge of Channel 2,3,4,5,6,7 is within a certain range.
    I know I can use counter to get the two edge seperation time delay. But I only have two counter, it is two time-consuming if I check one by one.
    I don't know how to check the rising edge of 6 different channels occure at the same time.
    Does anyone has any suggestions?
    Thanks

    Hello,
    You can use the DAQ card's digital input change detection circuitry to detect changes in the input, you can then use a counter to measure the relative time between samples. Please read Page 6-9 DI Change Detection Applications for more information. Let me know if this helps
    Christian A
    National Instruments
    Applications Engineer

  • Please help me how to check a material does existed group code in system (w

    Hi all,
    Please help me...
    I have inputted quantity for  tx MC 94  but when I input them into  tx MC94, I met  a message " Structure  not yet maintained for  this conbination characterstics". Step by step to show a error message as below:
    Step 1: Launch MC 94
    step 2: Enter Planning
    Step 3: Enter  Prod.Code. Material (ex: enter material code :0101010260008, this code is existed  Prod.Code )
    Step 4: Click on "Inactive Version " button
    ==> A error message is showed.
    Please help me how to check a material does existed group code in system (which table to  check  it)?
    How to record the message" Structure  not yet maintained for  this conbination characterstics" to catch up it in my program?
    Thank in advance.

    Karenloria,
    1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
    2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
    You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
    Regards,
    Prasobh

  • How to check for archivelog backup on a particular date or time?

    Dear All,
    We have RMAN full database, cumulative and archivelog backup(eg location: Diskgroup A) scheduled on a regular period basis. Assume archivelog location is Diskgroup B. The diskgroup B became full and unable to archive further, since no space. Unable to connect to database, connect internal only until freed error. alert log also shows that archiver error. So the solution for this to clear some space in diskgroup B by removing some old archive logs. In our environment, everyday the archive logs are stored in a separated folder arranged in date wise.  I can do that . But before clearing some space, i need to make sure that the folder( or any date folder what im going to delete) is backed up or not. How to check that? Any idea please?
    eg: i have archivelogs like this in folders
    01_11_2013/
    02_11_2013/
    03_11_2013/
    04_11_2013/
    05_11_2013/
    06_11_2013/
    If i want to remove the folder 01_11_2013/( and its contents ie archivelogs) , how to check whether the archivelogs in this folder 01_11_2013/ is backed up or not?
    Regards,

    Pradeepcmst wrote:
    Dear All,
    We have RMAN full database, cumulative and archivelog backup(eg location: Diskgroup A) scheduled on a regular period basis. Assume archivelog location is Diskgroup B. The diskgroup B became full and unable to archive further, since no space. Unable to connect to database, connect internal only until freed error. alert log also shows that archiver error. So the solution for this to clear some space in diskgroup B by removing some old archive logs. In our environment, everyday the archive logs are stored in a separated folder arranged in date wise.  I can do that . But before clearing some space, i need to make sure that the folder( or any date folder what im going to delete) is backed up or not. How to check that? Any idea please?
    eg: i have archivelogs like this in folders
    01_11_2013/
    02_11_2013/
    03_11_2013/
    04_11_2013/
    05_11_2013/
    06_11_2013/
    If i want to remove the folder 01_11_2013/( and its contents ie archivelogs) , how to check whether the archivelogs in this folder 01_11_2013/ is backed up or not?
    Regards,
    rman> list backup;
    Which begs the question .. why is the FRA getting filled in the first place?  Is it seriously undersized?  Are you not doing regular housekeeping with rman 'delete obsolete' and 'backup archivelog delete input'

  • Where or how can we input the Intermediary Bank info in Vendor Master?

    Hi
    I would like to know if there are specific fields were we can include information of an Intermediary Bank when we are creating the Vendors Account Information.
    For instance, if we have the following information, how and where should we input the Intermediary Bank information?
    Vendor's Name:    ABY COMPANY
    Vendor's Address:    Miami, Florida
    Vendor's Account:    123789456
    Vendor's Bank Name:    CITIBANK N.A.
    Vendor's Bank Address:   Miami, Florida
    Vendor's Bank BIC Code:   CITIUS33MIA
    Vendor's Bank ABA Code:   266086554
    Vendor's Bank Intermediary Bank Name: CITIBANK, N.A.
    Vendor's Bank Intermediary Bank Address: New York, New York
    Vendor's Bank Intermediary Bank BIC Code: CITIUS33XXX
    Vendor's Bank Intermediary Bank ABA Code: 021000089
    Where or how can we input the Intermediary Bank information?
    Tks in advance for your reply
    reg
    vishnu

    Hi
    Thanks for your inputs
    Actually we need to create a link between Vendor mail bank and Vendor Intermediary bank, is there any possiblility in Vendor master data?
    As you explained i checked the settings, how can i create link between from main bank to intermediary bank?
    reg
    Vishnu

  • How can I input Chinese in the Playbook?

    How can I input Chinese in the Playbook?  such as in browers and contact

    I think the only way to do that is to download an app, that lets you input pinyin for instance, then copy and paste from there. The last time I checked, there are 3 apps in the app world, all by the same person. I've no idea what the difference between them is.

Maybe you are looking for