European Article Number test

I wanted to do a simple program to test if the check digit (?) is true, but i get error messages during compiling and i have no idea how to fix that.
import java.applet.*; import java.awt.*; import java.awt.event.*; import java.io.*;
public class ean1 extends applet implements ActionListener{
         String muh = new String();
         TextField eingabe = new TextField(" ", 13);
         muh = eingabe.getText();
         Label ausgabe = new Label("_____");
         int k = muh.length();
         int posGew = 3;
         int ProdWert = 0;
         int ProdZiffern = 0;
         while (k>0){
                     String buchst = muh.substring(k-1,k);
                     int aktZiffer = Integer.valueOf(buchst).intValue();
                     ProdWert = ProdZiffern*aktZiffer;
                     ProdZiffern=ProdZiffern+ProdWert;
                     if (posGew == 3){
                       posGew=1;
                     else {
                     posGew=3;}
                     k--;
         public void init() {
                add(eingabe);
                Button b = new Button("umrechnen");
                b.addActionlistener(this);
                add(b);
                add(ausgabe);
          int PZiffer = 10 - Prodziffern % 10;
}

Thanks for the help. The chech digit is the last number of the ean code which is calculated and this should be compared to the entered one. Below i post the errors i get when i try to compile.
Ean1.java:15: illegal start of type
while (k>0){
Ean1.Java:9 <identifier> expected
muh = eingabe.getText();
Ean1.Java:34 <identifier> expected
int PZiffer = 10 - Prodziffern % 10;
Ean1.java: Ean1 should be declared abstract, it does not define Action Performed(java.awt.event.ActionEvent) in Ean1
public class Ean1 extends Applet implements ActionListener{
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class Ean1 extends Applet implements ActionListener{
         String muh = new String();
         TextField eingabe = new TextField(" ", 13);
         muh = eingabe.getText();
         Label ausgabe = new Label("_____");
         int k = muh.length();
         int posGew = 3;
         int ProdWert = 0;
         int ProdZiffern = 0;
         while (k>0){
                     String buchst = muh.substring(k-1,k);
                     int aktZiffer = Integer.valueOf(buchst).intValue();
                     ProdWert = ProdZiffern*aktZiffer;
                     ProdZiffern=ProdZiffern+ProdWert;
                     if (posGew == 3){
                       posGew=1;
                     else {
                     posGew=3;}
                     k--;
         public void init() {
                add(eingabe);
                Button b = new Button("umrechnen");
                b.addActionlistener(this);
                add(b);
                add(ausgabe);
          int PZiffer = 10 - Prodziffern % 10;
}

Similar Messages

  • I lost my iPad mini while traveling recently.  Tried using Find My iPhone app to locate it, but it didn't show up...probably because not turned on.  I have the original receipt with article number and serial number.  Is there any way to locate it wit

    I lost my iPad mini while traveling recently.  I tried using the Find My iPhone App (which showed my iMac, my iPhones, my old iPad, and my macbook) but the mini didn't show up...probably because it was turned off or the battery ran down.
    I still have the original receipt from when I purchased it, showing the article number and the serial number.  Is there any way to locate it with that info?

    No, unless you had Find My iPad enabled on it then there isn't any way to try and locate it.
    Have you reported it to the police in case somebody hands it in ? You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc., and if it was a cellular model also contact your carrier.

  • RE: where can I maintain Vendor Article number

    HI,
    In SD, I can maintained the customer article number.
    In MM, where can I maintain the vendor article number.
    There is a field in Purchase info record.
    Beside here, where else can I set it up?
    Thanks
    Bye

    Dear Colin,
    The vendor article number can be maintained either in info.record OR the purhcase order.  In the info.record, you can find this in vendor data tab under General data. On the other hand in the purhcase order, you can find the same field in the material data tab in the "item details" section.
    If you maintain the vendor article number in the info.record, then it is copied to the purchase order automatically.
    Regards
    Venkat

  • Vendor article number copying from Generic to follow-up Variants in ME21/22

    Dear experts,
    When creating or changing a Purchase Order, we want to be able to change the Vendor Article Number (EINA-IDNLF) on the Generic article (in the sub-screen Item detail > Article Data tab) and have the Variant items adopting the changed Vendor Article Number.
    This works for the PREPACK and subsequent materials but not for the Generic / Variant articles ?
    In both cases the Generic or Prepack top articles have the field VENDOR ARTICLE NUMBER editable and not the subsequent articles (variants or elements of the pre-pack).
    Please let me know if there is a configuration in VARIANTS or in MM-PURCHASING that could allow the replication of updated Vendor Article Number in Purchase Order Creation or Change.
    Sincerely,
    Richard

    Dear experts,
    When creating or changing a Purchase Order, we want to be able to change the Vendor Article Number (EINA-IDNLF) on the Generic article (in the sub-screen Item detail > Article Data tab) and have the Variant items adopting the changed Vendor Article Number.
    This works for the PREPACK and subsequent materials but not for the Generic / Variant articles ?
    In both cases the Generic or Prepack top articles have the field VENDOR ARTICLE NUMBER editable and not the subsequent articles (variants or elements of the pre-pack).
    Please let me know if there is a configuration in VARIANTS or in MM-PURCHASING that could allow the replication of updated Vendor Article Number in Purchase Order Creation or Change.
    Sincerely,
    Richard

  • Populating International Article Number (EAN/UPC) in PO

    Hi Experts,
    My requirement is to populate the field EAN/UPC in PO, with the value from the field 'OTHER NAME' present in the item line2 of the SRM shopping cart.
    Can this be achieved by using the BADI - BBP_CREATE_BE_PO_NEW ? If so, can you please help me in identifying the appropriate field in CS_PO_DOCUMENT for populating the it in the backend PO.
    Please help me with this issue.
    Thanks in advance,
    Best Regards,
    Deepa

    Hi,
    Thanks for the reply.
    The Omaterial has the main EAN number which is populated from MARA table .
    The problem is when POS sends sales data with an EAN number  ( main or otherwise) , it fails at POSDW.
    I think it refers to some master data for validation like for article number it refers to 0Material.
    Regards
    Prasad

  • Avoid check for article number and price from ORDRSP inbound

    Hi,
    i m working on an integration (with PI) of a 3rd party vendor with a SAP ERP (7.1) backend system. The vendor sends a soap message which is transformed by PI to an IDoc ORDRSP.ORDERS05.
    The vendor sends a purchase order confirmation but unfortunately without information regarding article number and price. Therefore the IDoc remains in status 51 with 2 errros:
    -  Price outside tolerance range (order price 531,60 , new price 0,00 )
    -  Article number differs from that of ordered article 000000000000152672
    Is is possible to avoid the check so that the purchase order's article number and price are not updated by the IDoc?
    Regards,
    Udo

    Hi Udo,
    This error seems to be explicitly populated into Status records of IDOC processing from the include LEINMF2O, form "CHECK_MATERIAL_PO_IDOC" (For Material) &  Include LEINMF2D, form "PRICE_CHANGE". 
    One way to suppress the error message is to populate the existing values in EKPO table to IDOC segment using enhancment component EXIT_SAPLEINM_007, which is called from include LEINMF2X, line number 113.
    Documentation of enhancement component reads
    Functionality
    Reading of further IDoc segments at the time of acknowledgment receipt.
    The current segment is passed on in the parameter segment.
    Data can be stored in the structure CUSTOMER_EKPO.
    As of Release 4.6A, modification of the program-internal table FEKPO is possible.
    This is just a suggestion and don't know how far it will be helpful to your requirement.
    Regards
    Vinod

  • Match Code Or Trick for Old Article Number

    Hello Retail Expert,
                                  Can anybody know match-code or Shortcut to enter Article Display screen (TA MM43) directly with old Article number?
    My business people dont want to go through search help. They have always worked with Old Article Number or EAN. To enter with EAN directly I found it (i.e. (=n.) then EAN no.) but its not enough becuase only store work with EAN but DC people work with only Article number( which is now in SAP as Old article no).  I can enter Article Master Data over search help using Old Article Number. If anybody know such kind of Match code or tricks, please do let me know.
    Or any other suggestion are welcome.
    Thank you all in advance.
    regards,
    Nilesh

    Hi, You are almost right with your idea. If you access the "!Matchcode" button next to your article number field, then you will get a huge list for selection incl. the "hot keys" (e.g. N for EAN) For the old article number, the related hot key is "A".
    If you now use the hot key A in this way (is for all hot keys the same logic) =A.xxxxx (xxxxx stands for the old article number) the systemwill convert the value into the actual article number io enter the article master data.
    To sum up, guys in the Store should use =N. whereas guys in the DC are using =A.
    If you might use a scanner, the scanner could defaulted with this "hot keys" in oder to speed up the access.
    Regards
    Andreas

  • What is the Universal Product Code and International Article Number of HP power bank F4C80AA????

    what is the Universal Product Code and International Article Number of HP power bank F4C80AA????...how to check whether this product is authentic!

    Hi,
    You can bring it with you when travel around the world.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT1420 what is the article number to authorize computer to play itune store purchases?  Can someone help me?

    Can someone help me find the article number?

    Seems you found it yourself, it's the same article from which your question was posted.

  • Article number is missing for a sales document in VBAP table compared to BW data.

    Hi,
    We are loading data from 2LIS_11_VAITM and 2LIS_11_V_SSL to 0SD_O01, when we execute a report based on this DSO we are getting Article number 2224859 (for example) for sales order 573345 (for example) but when we check in VBAP/VA03 for the same sales order/document (573345)  we don't have the Article Number.
    It is delta load to the DSO from the two datasources and will executed daily once.
    Please suggest me any one on this.

    All,
    Thanks for your replys.
    Here are the more details about this.
    We are using 3.X flow in BW. (3.x Data sources)
    In BW                                           Mapping                In ECC     
    0DOC_NUMBER    Sales document  ----------->  VBELN          Sales Document
    0MATERIAL           Material  -----------------------> MATNR           Article Number
    In VBAP table, I have entered Sales document 573345 and executed then I got so many Article Numbers and Filtered with Article Number 2224859 then got no data.
    As I told earlier in BW for the same Sales Document number we have Article Number.
    We have start routine.
    PROGRAM UPDATE_ROUTINE.
    *$*$ begin of global - insert your declaration only below this line  *-*
    *$*$ end of global - insert your declaration only before this line   *-*
    * The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS2LIS_11_VAITM.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    *$*$ begin of routine - insert your code only below this line        *-*
    * fill the internal table "MONITOR", to make monitor entries
      LOOP AT DATA_PACKAGE.
        IF DATA_PACKAGE-doc_categ NE 'C' AND
           DATA_PACKAGE-doc_categ NE 'I'.
          DELETE DATA_PACKAGE.
        elseif DATA_PACKAGE-recordmode eq 'R'.
          DATA_PACKAGE-recordmode = 'X'.
          modify DATA_PACKAGE.
        ENDIF.
      ENDLOOP.
    * if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    *$*$ end of routine - insert your code only before this line         *-*
    ENDFORM.
    I think there is no much more lookups. ( I don't have much knowledge in ABAP)
    I have checked in another tables also like VBFA VBAG VBAK, VBKD, VBUK and VBUP but in those tables I don't have Article (MATNR) field.
    One more Question.
    Can any one tell me how the Queued Delta mechanism will work.
    As of now I know that, when ever any changes have been done to the tables this will pickup the changes and move into LBWQ after that RSA7.
    My Question is, If some one has forcefully deleted one Article number from the table for a Sales Order then this Queued delta will pick that also?
    Please let me know If you need any more details

  • Standard program to fetch the article number from the EAN

    Hi all,
    Is there any standard report, that retrieves the article number from the EAN provided. I don't require a function module which satisfies this requirement.
    Kindly provide your valuable inputs.
    Thanks & Regards,
    Revathi.

    Here is code that can fetch any site.
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class fetchresult extends Frame implements ActionListener{
         TextField t1;
         TextArea ta;
         Button b1;
         public fetchresult(){
              super("Fetch Result");
              t1=new TextField("http://www.sitename.com",20);
              b1=new Button("Get");
              ta=new TextArea("",20,80);
              setLayout(new FlowLayout());
              add(t1);
              add(b1);
              b1.addActionListener(this);
              add(ta);
              setSize(200,200);
              setVisible(true);
         public void actionPerformed(ActionEvent e)
              try
              String s = t1.getText();
              URL u = new URL(s);
              URLConnection uc = u.openConnection();
              InputStream is = uc.getInputStream();
              BufferedReader rd = new BufferedReader(new InputStreamReader(is));
              String str;
              while((str = rd.readLine()) !=null){
                   ta.append(str);
                   ta.append("\n");
              rd.close();
              int available = is.available();
              int z;char c;
              for(int x=0;x<available;x++){
                   z=is.read();
                   c=(char)z;
                   ta.append(String.valueOf(c));
              catch(Exception ee){ta.append(ee.toString());}
         public static void main(String args[]){
              fetchresult obj = new fetchresult();
    Manu

  • Vendor Article Number in report format

    Hey,
    I am looking for Report in SAP MM which will give me Vendor Article or Vendor Part number. This information is in Purchasing Info Record but when i am using T-code ME1M for PIR report this field is not comming. If you know any other report or by any other way i can get this information with reference to article and Vendor that will be a great help.
    Thanks

    I just checked ME1M and I'm able to see Vendor Material number there in the selection criteria (IDNLF).

  • Subscription number testing and production

    This is more a general question, I have a subscription number in my production environment, is it also possible to use that number in my testing lab? Also would there be any issues with using the same number, i.e would the testing lab affect anything that was currently taking place in the production environment?

    Dschaldenovell,
    feel free to use it on more than one zone: as long as the total number
    of devices does not exceed your licence count, Novell doesn't mind.
    Shaun Pond

  • Material/Article number is hidden (?) in Purchase Order

    Hi,
    We are upgrading IS retail and now Material/Article does not appear in the item PO, it may be hidden, where is the setting? I am quite new in MM area.
    Many thanks !
    Chika

    Hi,
    Go to SPRO > Materials Management > Purchasing > Purchase Order > Define Screen Layout at Document Level > Here check for field selection groups; NBF, ME21N, AKTH, under Field Selection group "Enjoy fields", Mark 'Material' field as optional.

  • European serial number not valid in the USA

    Hello everybody!
    I had a licence for LR5 in Europe since february 2014, used it on my PC and now moved to the USA, buying a new PC.
    When a want to install LR5 on it, I have an error telling that the serial number is not valid.
    I contacted the direct service (by night here :p) and they gave me a procedure that could resolve my problem... BUT one link is always not found.
    Here is the procedure :
    Sebastien: 1) Go to this adress but dont download anything :
    Sebastien: http://adobe.ly/SayOKG
    Sebastien: 2) Kepp this window open a open a new one.
    Sebastien: 3) In this new one, go to :
    Sebastien: http://trials2.adobe.com/AdobeProducts/LTRM/5/win32/Lightroom_5_LS11..7z
    Sebastien: 4) A download start automatically, save it.
    .... (then many other steps)....
    The link   "http://trials2.adobe.com/AdobeProducts/LTRM/5/win32/Lightroom_5_LS11..7z" shows me always "file not found" it?
    Any idea to solve it?y many thanks in advance! I fear i should by a new serial number whose could not work too .....B
    B.brichart

    I am going to guess that the link should end in .exe (one-dot-exe) rather than ..7z (two-dots-seven-z)—the two-dots are wrong for sure and there is an EXE not a 7z at that URL:
    http://trials2.adobe.com/AdobeProducts/LTRM/5/win32/Lightroom_5_LS11.exe
    Once downloaded you can use the 7-ZIP application to extract the files from the EXE.
    It is possible that the tech meant the following .7z URL which is for LR 5.5 and the Creative Cloud version not the serial-number-licensed version, but since you’re dealing with a serial-number-licensed version, hopefully not, it is the one URL that has a .7z on it:
    http://trials2.adobe.com/AdobeProducts/LTRM/5_5/win32/Lightroom_5_CCM_LS11.7z

Maybe you are looking for

  • Robohelp 9 crashing when generating Web Help

    Hi there, I have RH V 9.0.1.232 installed. I have a project with about 1000 files which was converted from RH 8 without issue until now. There are 3 Conditional Build Tags. I can publish the project to Web Help with layouts including tags #1 and #2,

  • VIP list disappeared on iPhone 4

    MY brother has an iPhone 4 which has all latest updates, but a prior VIP list was setup but now the list is not in the eMail list of boxes?

  • Reading list not working :(

    Whenever I click on an item in my Reading List it takes me to the Top Sites page. I have to right-click and press open in new tab for it to work. But that's when I'm online, when I'm offline nothing works at all and I'm just asked to turn on my wifi.

  • HOW DO I TRANSFER VIDEO FROM MY PV-L559 CAMCORDER TO MY IBOOK G4 LAPTOP

    HOW DO I TRANSFER VIDEO FROM MY OLDER  PANASONIC  PV-L559 CAMCORDER TO MY APPLE IBOOK G4 LAPTOP?

  • Iphoto toolbar offscreen

    The toolbar and some photos are above the screen and I am unable to drag it down. It works fine on my user screen ,but not on another.