Auto ROP calculated with zero cosumption history

Hi
MRP type = VM - auto re-order point based on the consumption history. there is no consumption history, but after the first MP38 background job run, the ROP got calculated, I checked at MM02, the forecast was the ex post forecast value, I tried to do MP38 manually, it was terminated, and I tried to run forecast from MM02, forecasting view, got error message said there were no historical data.
Question is how the ROP got calculated if I can't even run the forecast with both MP38 and MM02, manually.
Care to share if you come across this before.
Thanks

Hi
Strange error. But I need more information. If you don't see any consumption value in MM02 doesn't mean that there is no consumption. When this material was used? Look in to change history of that material. If period indicator in MRP-3 view is changed, all consumptions will vanish in MM02.Even forecast will not work. It doesn't mean that consumption is done in the past. Check table S033 in se11 for your material without specifying any period and see is there any consumption in past. And check was there any safety stock in present and past. Your problem may get solved. Write to me your findings
Regards
Antony

Similar Messages

  • Auto increment number with leading zeros

    hello,
    i have data column (serial number) that auto generate from script component, i'm using counter +1 and it successful store the number to my db. but the problem is there any idea to store the number to 00001 rather that 1.
    im using this method in my script component
    dim counter as integer = 0
    counter =counter + 1
    row.NoSerial = counter
    TQ

    Why should you send it through the file? WHy not simply create a calculated column based on identity field or sequence based field (if 2012 version and above)  in the destination table and ignore it from the file altogether. ANyways its going to be
    a sequential auotogenerated value isnt it?
    http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server
    If you want to bring it as  00001 etc you need to make it as varchar and use derived column expressions in SSIS as source is text file.
    I would prefer doing this in sqlserver if its just a sequential number and has no direct relationship to the incoming file data fields.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Show characteristic with zero figures in report

    Dear All,
    I have report as below:
    Material        Qty
    A                  0
    B                  10
    C                  5
    D                  0
    E                  2
    I want to filter Material with zero quantity.
    I've already try with condition Qty = 0, but the report will suppress zero value and
    return not applicable data found.
    How to make this happen?
    Appreciate for any kind of help. Thanks.
    Regards,
    Steph

    Yes Alice, I already try, but does not work
    By the way, the figure - Qty, already show "0" (not blank, because it's from calculation).
    Yesterday, I try to add a new CKF in query, add with "1" if the Qty return zero value.
    And then I set the condition to this new CKF to activate, if the result the same as "1".
    But it does not work either and return no appliable data found,
    because the report automatically suppres the zero when I show Qty to the report,
    although there is new CKF that return "1".
    Regards,
    Steph.
    Edited by: Steph on Nov 5, 2009 4:08 PM

  • Down Payment with Zero VAT

    I have a scenario where one of the customer has been billed with Zero VAT in the Downpayment request by taking Tax Code which involves No Tax and the VAT of the DP should now be calculated in the final Invoice along with the final payment (including the VAT of that final Invoice)
    Any suggestions on how to tackle this?
    Regards,
    N

    You can have one header condition through which the difference in VAT can be posted manually in the final invoice.  This header condition can be selected for statistical so that this will not have any impact in FI.  Meanwhile, your VAT condition can consider PR00 plus this header condition and as a text, you can populate that VAT is calculated on value xxxxxxx
    Of course, you should check with your FI counterpart also on how to resolve this tax difference.
    thanks
    G. Lakshmipathi

  • RSA decryption Error: Data must start with zero

    Because of some reasons, I tried to use RSA as a block cipher to encrypt/decrypt a large file. When I debug my program, there some errors are shown as below:
    javax.crypto.BadPaddingException: Data must start with zero
         at sun.security.rsa.RSAPadding.unpadV15(Unknown Source)
         at sun.security.rsa.RSAPadding.unpad(Unknown Source)
         at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:356)
         at com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:394)
         at javax.crypto.Cipher.doFinal(Cipher.java:2299)
         at RSA.RRSSA.main(RRSSA.java:114)
    From breakpoint, I think the problem is the decrypt operation, and Cipher.doFinal() can not be operated correctly.
    I searched this problem from google, many people met the same problem with me, but most of them didn't got an answer.
    The source code is :
    Key generation:
    package RSA;
    import java.io.FileOutputStream;
    import java.io.ObjectOutputStream;
    import java.security.KeyPair;
    import java.security.KeyPairGenerator;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class GenKey {
          * @param args
                     * @author tang
         public static void main(String[] args) {
              // TODO Auto-generated method stub
                 try {
                      KeyPairGenerator KPG = KeyPairGenerator.getInstance("RSA");
                      KPG.initialize(1024);
                      KeyPair KP=KPG.genKeyPair();
                      PublicKey pbKey=KP.getPublic();
                      PrivateKey prKey=KP.getPrivate();
                      //byte[] publickey = decryptBASE64(pbKey);
                      //save public key
                      FileOutputStream out=new FileOutputStream("RSAPublic.dat");
                      ObjectOutputStream fileOut=new ObjectOutputStream(out);
                      fileOut.writeObject(pbKey);
                      //save private key
                          FileOutputStream outPrivate=new FileOutputStream("RSAPrivate.dat");
                      ObjectOutputStream privateOut=new ObjectOutputStream(outPrivate);
                                 privateOut.writeObject(prKey)
         }Encrypte / Decrypt
    package RSA;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.ObjectInputStream;
    import java.security.Key;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.crypto.Cipher;
    //import sun.misc.BASE64Decoder;
    //import sun.misc.BASE64Encoder;
    public class RRSSA {
          * @param args
         public static void main(String[] argv) {
              // TODO Auto-generated method stub
                //File used to encrypt/decrypt
                 String dataFileName = argv[0];
                 //encrypt/decrypt: operation mode
                 String opMode = argv[1];
                 String keyFileName = null;
                 //Key file
                 if (opMode.equalsIgnoreCase("encrypt")) {
                 keyFileName = "RSAPublic.dat";
                 } else {
                 keyFileName = "RSAPrivate.dat";
                 try {
                 FileInputStream keyFIS = new FileInputStream(keyFileName);
                 ObjectInputStream OIS = new ObjectInputStream(keyFIS);
                 Key key = (Key) OIS.readObject();
                 Cipher cp = Cipher.getInstance("RSA/ECB/PKCS1Padding");//
                 if (opMode.equalsIgnoreCase("encrypt")) {
                 cp.init(Cipher.ENCRYPT_MODE, key);
                 } else if (opMode.equalsIgnoreCase("decrypt")) {
                 cp.init(Cipher.DECRYPT_MODE, key);
                 } else {
                 return;
                 FileInputStream dataFIS = new FileInputStream(dataFileName);
                 int size = dataFIS.available();
                 byte[] encryptByte = new byte[size];
                 dataFIS.read(encryptByte);
                 if (opMode.equalsIgnoreCase("encrypt")) {
                 FileOutputStream FOS = new FileOutputStream("cipher.txt");
                 //RSA Block size
                 //int blockSize = cp.getBlockSize();
                 int blockSize = 64 ;
                 int outputBlockSize = cp.getOutputSize(encryptByte.length);
                 /*if (blockSize == 0)
                      System.out.println("BLOCK SIZE ERROR!");       
                 }else
                 int leavedSize = encryptByte.length % blockSize;
                 int blocksNum = leavedSize == 0 ? encryptByte.length / blockSize
                 : encryptByte.length / blockSize + 1;
                 byte[] cipherData = new byte[outputBlockSize*blocksNum];
                 //encrypt each block
                 for (int i = 0; i < blocksNum; i++) {
                 if ((encryptByte.length - i * blockSize) > blockSize) {
                 cp.doFinal(encryptByte, i * blockSize, blockSize, cipherData, i * outputBlockSize);
                 } else {
                 cp.doFinal(encryptByte, i * blockSize, encryptByte.length - i * blockSize, cipherData, i * outputBlockSize);
                 //byte[] cipherData = cp.doFinal(encryptByte);
                 //BASE64Encoder encoder = new BASE64Encoder();
                 //String encryptedData = encoder.encode(cipherData);
                 //cipherData = encryptedData.getBytes();
                 FOS.write(cipherData);
                 FOS.close();
                 } else {
                FileOutputStream FOS = new FileOutputStream("plaintext.txt");
                 //int blockSize = cp.getBlockSize();
                 int blockSize = 64;
                 //int j = 0;
                 //BASE64Decoder decoder = new BASE64Decoder();
                 //String encryptedData = convert(encryptByte);
                 //encryptByte = decoder.decodeBuffer(encryptedData);
                 int outputBlockSize = cp.getOutputSize(encryptByte.length);
                 int leavedSize = encryptByte.length % blockSize;
                 int blocksNum = leavedSize == 0 ? encryptByte.length / blockSize
                           : encryptByte.length / blockSize + 1;
                 byte[] plaintextData = new byte[outputBlockSize*blocksNum];
                 for (int j = 0; j < blocksNum; j++) {
                 if ((encryptByte.length - j * blockSize) > blockSize) {
                      cp.doFinal(encryptByte, j * blockSize, blockSize, plaintextData, j * outputBlockSize);
                      } else {
                      cp.doFinal(encryptByte, j * blockSize, encryptByte.length - j * blockSize, plaintextData, j * outputBlockSize);
                 FOS.write(plaintextData);
                 //FOS.write(cp.doFinal(encryptByte));
                 FOS.close();
    }Edited by: sabre150 on Aug 3, 2012 6:43 AM
    Moderator action : added [ code] tags so as to make the code readable. Please do this yourself in the future.
    Edited by: 949003 on 2012-8-3 上午5:31

    1) Why are you not closing the streams when writing the keys to the file?
    2) Each block of RSA encrypted data has size equal to the key modulus (in bytes). This means that for a key size of 1024 bits you need to read 128 bytes and not 64 bytes at a time when decrypting ( this is probably the cause of your 'Data must start with zero exception'). Since the input block size depends on the key modulus you cannot hard code this. Note - PKCS1 padding has at least 11 bytes of padding so on encrypting one can process a maximum of the key modulus in bytes less 11. Currently you have hard coded the encryption block at 64 bytes which is OK for your 1024 bits keys but will fail for keys of modulus less than about 936 bits.
    3) int size = dataFIS.available(); is not a reliable way to get the size of an input stream. If you check the Javadoc for InputStream.available() you will see that it returns the number of bytes that can be read without blocking and not the stream size.
    4) InputStream.read(byte[]) does not guarantee to read all the bytes and returns the number of bytes actually read. This means that your code to read the content of the file into an array may fail. Again check the Javadoc. To be safe you should used DataInputStream.readFully() to read a block of bytes.
    5) Reading the whole of the cleartext or ciphertext file into memory does not scale and with very large files you will run out of memory. There is no need to do this since you can use a "read a block, write the transformed block" approach.
    RSA is a very very very slow algorithm and it is not normal to encrypt the whole of a file using it. The standard approach is to perform the encryption of the file content using a symmetric algorithm such as AES using a random session key and use RSA to encrypt the session key. One then writes to the ciphertext file the RSA encrypted session key followed by the symmetric encrypted data. To make it more secure one should actually follow the extended procedure outlined in section 13.6 of Practical Cryptography by Ferguson and Schneier.

  • Replace #Missing with zero

    Hi All,
    Is this possible to replace '#missing' with zero with in a FIX Command in Calculation Script.
    Thank you.
    tvmk

    The two ways to change this without distroying your database are
    1. create a dynamically calculated member (call it account_zeroed) that checks to see if the account is #missing and returns a zero
    Soemthing like IF(@ISMBR(myscenario) and Account ==#Missing)
    0
    Else
    Account
    ENDIF
    2. Handle this in excel like it should be. If the user wants numeric zeros and they are using the classic Add-in then to get a numeric zero use (0) as your missing replacement. If smartview then use #numericZero

  • Inventory difference.. upload with with zero value

    Hi
    Material : Label . Sticker
    UOM     : KG  
    Additional UOM : EA  (  1 KG = 100 EA approx.  ) normally it varies + -10%. means some times there are 90 EA in 1 KG, sometimes 110 in 1 KG.    
    We purchase Stickers in KGs. and Issue in EA in System . for example when user request issue 500 Ea labels. we issue 500 EA label in system, but physically we give  5 KG.
    when user consumed 500 EA and , then he found 45 EA left out of those 5 KG. ( means actually there were 545 Ea in 5 KG Lables).
    how we can take these 45 EA. into Inventory. ( upload quantity only ) ( with out any accounting entry \ with zero value ).     
    or is there any other best way to deal this.  keeping in view it is impossible to count these lables while purchasing or issue.
    thanks \ thomas

    thanks Guru for giving time.
    with this 2nd option
    Option2
    post a 202 movement, use external value field(may need to be customized) and give zero value there.
    This has the benefit that you would not give a credit to the cost center,
    and as you post the inventory for zero amount,
    a new moving average price is automatically calculated and updated in material master.   "
    when i tried with MB1A and 202.  one thing.  Cost center is compulsory  second there is no filed  "External Value Field" ( plz guid some steps how to customize it .  , 
    thanks \ thomas

  • Need to add prefix Integer with zero's !

    Hi
    The length of the a number has to be 9 for if it is not then can any one suggest some code to prefix the incoming number with zero's to make it of length 9.
    for example
    number 1234 becomes 000001234

    Convert it to string then check its length. add zeros times (9-current length). save again as string.
    save it as string afterwards so when displayed will show all zeros as well but when to do calculations simpley Integer.parseInt it.
    Hope it helps if you already have not worked it out.
    AK

  • Export Excise invoice updating with zero value

    HI cin gurus.
    While creating excise invoice for Exports in J1IIN , after selecting the Export button Excise values getting changed as zeros . ARE1  form coming with zero
    Any reason for that.
    Expecting your support
    Thanks
    JA

    Dear Jaffer,
    i think you have to apply this user exit
    FUNCTION J_1I7_USEREXIT_DUTY_IN_EXPORT.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(YVBRK) TYPE VBRK
    *" EXPORTING
    *" REFERENCE(SUPPRESS_CALCULATION) TYPE J_1IEXCHDR-STATUS
    *If you do not want the excise duty to be calculated for a particular
    *transaction then you need to mark the flag supress_calculation as 'X'
    *This flag when left blank will trigger calculation of ED during j1ii
    *When it is marked, the ED copied from billing will be left as it is
    SUPPRESS_CALCULATION = 'X'.
    ENDFUNCTION
    Regards,
    Anand.K

  • Absence calculations with 3 decimals

    Hi All,
    Whenever Employee having 8 hours shift and if he is absent for 1 hrs, then Absence is deducting with 0.13 (1/8=0.13). But my requirement is Absence should get deducted with 0.125 (1/8=0.125).
    I hv done with PCR like
    Zero= N
    num=1
    num/8
    addwt&leave
    Please help me out to get absene calculated with rate 0.125.
    Thanks in Advance,
    Sandeep

    Hi
    You can try like in this thread & let me know how it is working,
    https://scn.sap.com/thread/2138464

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Posting with Zero Values in AFAB

    Hi all,
    My client wants to run depreciation with zero values, since they are maintaining Assets in FA Module but doing manual deprecations due to certain unavoidable reasons.
    By mistake we ran depreciation for 4 months for the assets in SAP. I know that we cannot reverse those entries. But I have passed rectification entries in Finance.
    But I am not able to update the Asset Masters with the correct values. How can I revert back the values in Asset Accounting so that my net book value is also 100 % now? Will AFAR work and if then how?
    Thanks & Regards,
    Sajan

    Hi Srinu,
    Thanks for your response.
    The situation is that, we went live in 2008 and we implemented Asset Accounting also. But client did not migrate legacy assets into SAP. They started using Asset Accounting only for new Assets. They did not run depreciation using AFAB. Infact, they calculated it manually and posted depreciation.
    Now the thing is that we will not be able to open year 2010 in Asset Accounting unless we close year 2008. But since, depreciation was not carried out, system is not allowing us to close year 2008. I was trying to run depreciation for year 2008 with out posting any financial entries in the system and I achieved it in quality client. But unfortunately in production, it posted entried for July-Nov 2008.
    Now I want to revert that as well as run AFAB with out posting any entries for Nov & Dec 2008 so that I can close this year.
    Hope you have understood the requirement. Any way out from this?
    Thanks & Regards,
    Sajan

  • What about numbers that start with Zero

    When I enter numbers that start with Zero (EX: 08794) in a cell, Numbers automatically drops the zero. I WANT THE ZERO. How can I do that. I've tried changing the formula to numerals and automatic. Same thing.

    Numbers starting with zeros are usually "labels" rather than "numbers" used in further calculations. If that's the case with yours, the easiest solution is to set the format of the cells where the 'numbers' will be inserted to Text.
    An alternate, useful only if all of the 'numbers' are the same length (eg. five digit zip codes) is to set a Custom format for the cell(s).
    Use the Cell Format Inspector ("42" button in the Inspector) to apply either of these settings.
    Regards,
    Barry

  • Items with  zero stock quantity show negative stock value in Stock reports

    When running Stock reports for controlling the stock value towards the GL accounts, some items appear with zero stock quantity, but the report still shows a stock value  (negative value in my case)
    How can this happen, and how can I correct this situation ?
    System parameters are :   negative stock is not allowed, Items with zero cost price not allowed. On item level average cost price method is used.
    P.K.Johnsen

    Hi Johnsen,
    I believe you have checked the" Manage Inventory by warehouse". I have noticed this issue in SAP B1 2005B but this is rectified in 2007B. The system behaves in this way as the system maintains item cost for the item for all warehouses and even if the stock is not present in the warehouse, the system would still show you a value for the same. Hope this helps. please search the forum. You'll find related threads.
    Thanks,
    Joseph

  • Dunning letters printing with zero balance and no invoice listing

    How to trouble shoot 'Dunning letters printing with zero balance and no invoice listing' problem

    As per my understanding it could be due to OB22 settings.
    refer following SAP notes
    335608,191927,
    373296

Maybe you are looking for

  • How Can I use Apple TV with my iPad Movies (AV Player HD App)

    I have just set up an Apple TV and all is fine, except I do not seem to be able to play the movies I have on my iPad that I in the AV Player HD App.(a great app BTW). I do not put my movies into iTunes any more as the App is perfect for watching movi

  • What's wrong with the New  iMac's AirPort?

    Hello Last night I spent 4 hours trying to connect with my brand new wireless router (Netgear DG834PN). The one time I did connect and tried to configure using Netgear's Wizard (using Safari) my Mac's AirPort Extreme dropped the connection, never to

  • Updating Existing Install and adding extensions via Group Policy

    We have recently installed StarOffice 8 due a full planned move away from Microsoft Office 2003, we have deployed the CD install via group policy to test the functionality of StarOffice in a school environment. Due to a problem cropping images in Wri

  • Call RFC

    hai      how to call RFC prog.

  • Existing Database Encryption ?

    I have existing db ,, how i can give the encryption to this existing db ?? After encrypted db how can i open into the sqlite tool like sqlite administration tool Lita or any othere Kindly reply  as soon as possible Amit