Cancelling Goods Receipt and Using of Batch Number

Hello,
i did a wrong goods receipt with the MIGO and canceled after two days the material document with movement typ 102.The Material uses a Batch number.
Now i want to use the old Batch number to do the right goods receipt, but the System says that the Batch number already exists.
I thought when i cancel the material document i can use the old Batch number.
I would be happy about every message.

SAP does not stop you from re-using an existing batch number. The message that you get is in a SAP standard delivery just a warning, as it is from a business process unusual that the same batch can be received multiple times.
If it is an error in your case, then somebody in your organization has changed the message attributes. so you should talk to them (see the change log in your DEV system) to know why this was done and  what the solution for your case could be

Similar Messages

  • Stored Procedure for Batch Number Format and Block Duplicate Batch Number

    Hi Experts !
    I am new one in forum asking question.. I want Stored procedure for Batch Number Format. I want fix one Batch number format in Stored Procedure.
    Example :
    My Batch number format Like  BATCH00001 - It should be first five digit is text format and next five is Numeric.
    IF create Goods receipt PO or Goods receipt stage I create batch number like BATCH 00001 or any other number means don't add that document and also duplicated batch number also does not allowed. please give me the solutions. I am sorry for my bad english .

    Dear Nagarajan K.
                         Thanks for your replay ..
    IF @transaction_type IN ('A','U') AND (@object_type = '106' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
    --set @base =( select basetype from ibt1 where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    set @count = (select count(*) from oibt quantity > 0 and where  batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    if @count > 1
    begin
    set @error = 1
    set @error_message = 'Please enter different Batch Code for batch ''' + @batch + ''' for item ' + @item 
    select @error, @error_message
    END
    END
                  I used above Stored Procedure. here we can use one batch number for different item but  i want to block one batch we should use one item and one time only after than we never use that batch number for same item and another item.
             After that I want format for Batch, we should follow unique Batch number for all items.

  • 2LIS_02_SCL: goods receipt and invoice document number

    Hi,
    the BI Content documentation for the [Purchasing Data (Schedule Line Level) (2LIS_02_SCL)|http://help.sap.com/saphelp_nw04/helpdata/en/8d/bc383fe58d5900e10000000a114084/frameset.htm] DataSource reads:
    The DataSource also provides information about the documents that are posted with regard to the purchase order, such as goods receipts and invoices.
    The point is: where are the documents' numbers ?
    When I test the extraction, I get the expected number of records, provided that those records with ROCANCEL=X (cancellation of Data Record) are taken into account.
    For example, for a Purchase Order (PO) Schedule Line that has 3 Goods Receipts (GR) and 1 Invoce (IR), I get:
    - 1 record with BWVORG=1 (SAP BW - Transaction Key) and ROCANCEL blank, for the PO document;
    - 6 records for the 3 GR documents (BWVORG=2);
    - 2 records for the 2 IR documents (BWVORG=3).
    Therefore the DataSource provides the needed level of granularity. Just the field I need is missing, i.e. BELNR!  Is there any trick to get it or the only way out is enhancing the DataSource?
    Thanks, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari]
    Edited by: Davide Cavallari on Jan 18, 2008 5:38 PM

    I think I would choose the option that takes advantage of 3 DataSources:
    - 2LIS_02_SGR, for GR number;
    - 2LIS_06_INV, for IV number;
    - 0FI_GL_4, for document amount, as well as some other informative characteristics, such as document type (useful when the document is an invoice), referred document (the field that contains the supplier's document number), document date, posting date
    The Logistic DataSources would basically provide the link between GR and IV, while the General Ledger DataSource would provide the financial information.
    In fact an analysis for controlling purchase expenditures at a detailed level is required. Not just a simple analysis of expenses for vendor, or even purchase document, but for any financial document posted to the General Ledger. This analysis has sort of a financial perspective. Probably it's not the kind of strategic analysis best suited to BI. It has a more tactical, operational nature. And maybe BI is not the best platform for developing this kind of application.
    Anyway, if you have better ideas or any suggestion on this topic, please feel free to comment!
    Cheers, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari|My wiki profile]
    Edited by: Davide Cavallari on Jan 19, 2008  8:16 PM

  • When doing goods receipt and the movement from QA to unrestricted use there

    Dear all,
    when doing goods receipt and the movement from QA to unrestricted use there is an yellow error message
    Error in EXIT_ SAPMM07_004 : Object 10462311E06/52,Char."LOBM_UDCODE,Value 01 A0,error"VALUE_NOT_FOUND"
    Inspection Lot : 10000283512
    System Status : UD ICCO SPRQ

    Hi,
    Did you use the follow up action in the UD code selection? It looks from the error that program is unable to find the UD code.
    Kindly check the configurations in QM and see that everything is working fine?
    Alternatively, if you are using the follow up action, then remove that first. Do the GR using MIGO -- this will create the inspection lot. Confirm the inspection using QA11 by entering the UD code for acceptance. Thereafter the the stock will rest in QI status. Use MB1B and perform the transfer posting with movement 321 to bring the stock to unrestricted use.
    Regards,
    Sushant

  • Relation between goods receipt and material document number

    guyz!
    i got stuck up at one functional doubt. can any one say link between goods receipt and material document number. in other way, i wanted to know difference between these two i.e. goods receipt and material document number. or both are same.
    awaiting for reply
    manas

    Hi,
    Just have a look if this thread can solve ur problem.
    Re: display goods receipt
    Rgds,
    Prakash

  • Goods Receipt and Serial Numbers

    I'm getting the following error "[IGN1.WhsCode][line: 1] , 'This entry already exists in the following tables (ODBC -2035)'" when trying to add a goods receipt document containing a single item that is serial number managed via the DI API.  We are running against Business One version 2005A SP01 PL9.  The Goods Receipt PO transaction is reporting the same error.  The Goods Issue and Delivery transaction appeared to work correctly. The Goods Receipt transaction posted correctly when created in the B1 Client (GUI) application.  So it is an issue with the DI API.  We are using the SBODemo_US company database but we added a new item and configured it for serial number management.  This same code works with B1 2004A.  Our application is suppose to work with both versions of B1, so our application is built with version 2004A DI API.  Should this work, or do I need to use the 2005A version of the DI API when communicating with a 2005A system?  Would this version of the DI API work correctly with a 2004A system?
    Thanks,
    Jason Eiler

    I remembered encountering the same problem working with B1 2004A.  For the Goods Receipt and Goods Receipt PO documents, when receiving items that are serial managed I would fill in the InternalSerialNumber data member of the Document Lines Serial Numbers object.  The fix was I also had to provide some value for the SystemSerialNumber field.  I just always set it to a value of 1.  In B1 2005A, this issue must have been resolved, because when I commented out this line of code, the document was added successfully.  I don't have to provide a SystemSerialNumber, the system must generate one, as I would expect.

  • Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'

    Hi experts,
    For a Handling Unit number, im Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
    Im passing the below values to the BAPI, to create a Material document and transfer order.
    GOODSMVT_HEADER- PSTNG_DATE (System Date)
    GOODSMVT_HEADER - DOC_DATE (System date)
    GOODSMVT_HEADER- PR_UNAME (SY-NAME)
    GOODSMVT_CODE- GM_CODE ( 01)
    GOODSMVT_ITEM-MOVE_TYPE (Movement type): movement type '101'
    GOODSMVT_ITEM- DELIV_NUMB_TO_SEARCH (Delivery)
    GOODSMVT_ITEM-DELIV_ITEM_TO_SEARCH (Delivery item)
    GOODSMVT_ITEM-PLANT (Plant) VEPO- WERKS
    GOODSMVT_ITEM-STGE_LOC (Storage location) VEPO- LGORT
    GOODSMVT_ITEM-ENTRY_QNT (Quantity)
    GOODSMVT_ITEM-ENTRY_UOM (Unit of measure)
    GOODSMVT_ITEM-PO_NUMBER (Purchase order)
    GOODSMVT_ITEM-PO_ITEM (Purch. order item)
    GOODSMVT_ITEM-UNLOAD_PT ( HU number)
    GOODSMVT_ITEM-MVT_IND (Movement indicator) = 'B'
    I dont know what values has to be passed to the following fields in BAPI
    *GOODSMVT_ITEM-SU_PL_STCK_1*
    *GOODSMVT_ITEM-SU_PL_STCK_2*
    *GOODSMVT_ITEM-ST_UN_QTYY_1*
    *GOODSMVT_ITEM-ST_UN_QTYY_2*
    *GOODSMVT_ITEM-UNITTYPE_1*
    *GOODSMVT_ITEM-UNITTYPE_2*
    All those values has to be updated in the Material document.
    Please help me on this.
    Thanks & regards,
    Leo
    Edited by: Thomas Zloch on Nov 17, 2011 10:11 AM

    I konw that I'm digging an old thread but let's have a look. I have the same problrm (filling the DMBTR field from the BAPI). I have not tried yet but checking the code of the BAdI I found that the EXTENSIONIN_TO_MATDOC method of the MB_BAPI_GOODSMVT_CREATE BAdI is called before creating the material posting and it has the IMSEG table as changing parameter. I will give it a try soon. Hope that it will work.
    Has anyone experience with it by any chance?
    Adam

  • Goods Receipt and Amoratization to Internal Orders (CO)

    Dear SAP Gurus -
    Please could you kindly assist in this matter.
    Our Production department is unable to upload the plan cost / unit cost to the 1st impression production order number, as stock was received before for the old title.
    Instead of creating new ISBNs the business used these existing 40 ISBNs and just changed the  titles.
    As such the plan cost /unit cost was uploaded to 2nd impression 02, goods
    receipt and actual invoice received also captured into 2nd impression 02.
    However for the internal order via KO03 for the 40 new titles were captured into 1st impression '01'
    Production dept is able to upload the plan cost
    / unit cost to the first cost internal order the last two digits carry 01 and
    actual invoice received is captured into 1st impression first cost 01.
    Will the First cost internal order amortised for 12 months upon the goods receipt.
    Question Can the 1st impression 01 first cost order internal order created via KO03 read the goods receipt
    which is captured in 2nd impression 02 in production order?
    I believe the business want to know if the goods receipt they have done against Production order 02 will trigger the amortisation of the costs on First cost internal order 01.
    So basically the concern is that the first cost internal order number 01 for these 40 titles maybe will be amortised upon
    the actual goods receipt as the receipt is captured in 2nd impression 02 for the production order.
    Please provide some feedback.
    Thanks.

    Hello,
    I try it from development environment , Create the  transport organize and transport it to product environment, then use SM56 transaction for reset buffer ( object CO_ABRECHN ) and put the NR status. so, you can transport it without preoccupation.
    Regards.

  • BAPI - Goods receipt and then create transfer order for a production order

    Hello Everyone
    We need to do goods receipt and then create transfer order for a production order (Material for WM scenario)
    We are using BAPI 'BAPI_GOODSMVT_CREATE'
          i_items-orderid = wa_afpo-aufnr .
          i_items-order_itno = wa_afpo-posnr.
          i_items-mvt_ind = 'F'.
          i_items-stge_loc   = wa_afpo-lgort.
         i_items-stge_type = '901'. "wf_styp.
         i_items-stge_bin = wf_sbin.
          i_items-entry_qnt  = wf_qty.
          i_items-entry_uom = wa_afpo-meins.
          i_items-entry_uom_iso = wa_afpo-meins.
          i_items-batch      = wa_zmobtag-charg.
          i_items-move_type  = '101'.
          i_items-move_reas  = wl_3131.
    We are passing i_items (like line of goodsmvt_item) along with other parameters to BAPI and its creating material document and Transfer order automatically. Problem is the TO created is showing destination storage bin as default storage bin( from material master).
    The field goodsmvt_item-stge_bin is just changing the Source bin details. There is no field for bin in the BAPI so that we can change the Destination storage bin as per our requirement.
    My requirement : Creating material doc and then TO. Material should move to specified storage bin.
    Please let me know any alternate way( No BDC) so that my requirement is achieved.
    Regards
    Swetabh

    Hi ,
    can u check these fields ,
    STGE_TYPE_PC     UBTYP     CHAR     3     0     Storage type for transfer posting
    STGE_BIN_PC     UBPLA     CHAR     10     0     Storage bin for transfer posting
    Regards
    Prabhu

  • Report to Purchase Orders with Good Receipt and pending for Invioce Receipt

    Hello,
    I'm looking a report bring me Purchase Orders with Goods Receipt and waiting for Invioce Verificacion (MIRO).
    I appreciate any help.
    Regards,
    Hector

    Hi,
    ME2N - In selection screen, enter Selection parameters as
    WE102 i.e. Goods receipt exists and in output screen put a filter on "Still to be invoiced (qty)" and "Still to be invoiced (val.)" as not equal to zero OR greater than Zero.
    OR use RECHNUNG i.e. Open invoices and execute the report
    OR Use MB5S - GR/IR Balances

  • PO Item : Delivery Tab - Goods Receipt and GR Non-Valuated

    Dear all,
    User highlighted for a PO which she was not able to do GR. When checked, we found that the line item, with account assignment "K" - the Goods Receipt and GR Non Valuated indicator is unticked. User further claim that, she did not untick both of these checkbox.
    These were the steps which i have done:
    1. Checked the config: IMG > MM > Purchasing > Account Assignment > Maintain Account Assignment Categories.
    Here i have confirmed that Goods Receipt, GR Non Valuated are already pre selected.
    2. Scanned thru the whole list of User Exit found under ME21N. No enhancement related to these two fields were found.
    3. Manually create a PO, with similar data in test server -- both the checkbox are pre selected by default.
    Given the checking done above: If user did not manually untick the checkbox -- where else / how else can Good Receipt and GR Non Valuated indicator be unticked ?
    Please .. appreciate it if someone could shed some lights on this area.
    Thanks in advance.

    Dear All,
    Many thanks for the prompt reply.
    Siva,
    In this case, the PO line item doesn't involve a material number. Therefore PIR is eliminated.
    Jurgen,
    Yes, i did actually simulate from scratch, the creation of this PO. Both the goods receipt and gr non valuated checkbox were actually ticked. It didn't jive with user's feedback which claim the boxes were originally unticked already.
    Sudhir,
    Yup, as material number is not involved, therefore PIR and material master is eliminated.
    Thru out the day, am quite glad to make some discovery. The PO was actually converted from a PR. And guess what ?
    In the PR itself, these two checkbox were already unticked ! I then simulated this scenario - create PR with untick checkbox and convert it to PO. And voila ! in the PO, both checkbox were untick as well.
    Now am in the midst of finding out -- why in the PR, at the very first place, goods indicator and gr non valuated are unticked. Checking with the process owner, as the PR was generated automatically.
    Thank you very much !

  • Copy data from a UDO form to Goods Receipt PO using UI API

    Hi, all
    I tried to copy data from a UDO form to Goods Receipt PO using UI API through following codes.
    It works fine while copying to a Item-type Goods Receipt PO.
    But when the doctype is set to service, I got errors.
    I use for-loop to copy two items, Description and LineTotal, into the matrix of Goods Receipt PO form, but both failed.
    any suggestion?
    Edited by: Chao-Yi Wu on Aug 25, 2009 5:50 AM

    Hi  Chao-Yi Wu ,
    SBO_Application.ActivateMenuItem("2306")
    Dim oFormGR As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
    Dim omtxIQC, omtxGR As SAPbouiCOM.Matrix
    Dim oedIQC, oedGR, oed As SAPbouiCOM.EditText
    Dim ocbIQC, ocbGR As SAPbouiCOM.ComboBox
    oFormGR.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
    oedIQC = oFormIQC.Items.Item("13").Specific
    oedGR = oFormGR.Items.Item("4").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("21").Specific
    oedGR = oFormGR.Items.Item("24").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("edComments").Specific
    oedGR = oFormGR.Items.Item("16").Specific
    oed = oFormIQC.Items.Item("3").Specific
    oedGR.Value = oedIQC.Value + ", Goods Recript PO:" + oed.Value
    ocbIQC = oFormIQC.Items.Item("cbDocType").Specific
    ocbGR = oFormGR.Items.Item("3").Specific
    If ocbIQC.Selected.Value = "I" Then
         ocbGR.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Else
         ocbGR.Select(1, SAPbouiCOM.BoSearchKey.psk_Index)
    End If
    omtxIQC = oFormIQC.Items.Item("mtx_0").Specific
    For i As Integer = 1 To omtxIQC.RowCount
    omtxGR = oFormGR.Items.Item("38").Specific
           If ocbIQC.Selected.Value = "I" Then
                oedIQC = omtxIQC.Columns.Item("c_ItemCode").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("c_AQty").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("11").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("col_19").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("14").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
       Else  
    omtxGR = oFormGR.Items.Item("39").Specific
               oedIQC = omtxIQC.Columns.Item("c_Descrp").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
               oedIQC = omtxIQC.Columns.Item("col_16").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("12").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
      End If
                Next
    for items the matrix is 38 and for service the matrix is 39
    Rgds
    Micheal

  • SAP R/3 goods receipt and issue process through RF

    Dear All,
    We need the below information.
    In order to setup RF enabled goods receipt and goods issue what basic infracture we need to have.
    we are not intersted in using WM module, with out WM we can go for this ??
    Is this the right forum to post this question...
    Abdul Raheem

    Hi.
    I've just carried out this architecture. You have to check 2 things:
    1- Are your DB software levels the same? (AIX + Windows)
    2- Have you checked connectivity from client to DB server?
    Regards,
    Fatih Erten

  • Goods receipt and post goods issue are not updated back from EWM to ECC

    Hi Experts,
    Would anybody able to tell me the setting to be modified / defined to backward flow of information from EWM to ERP i.e. the goods receipt, goods issue are not being updated back in ECC once the goods receipt and  post goods issue are posted in EWM?
    It would be great help if i get the response as early as possible.
    Chakrapani Das

    Hi Chakrapani,
    You might want to try checking the customization on the SCM part following this path:
    SPRO - Extended Warehouse Management - Interfaces - ERP Integration - General Settings
    Pay special attention on the Check of ERP-EWM Configuration transaction.
    After you have checked these you should probably check the outbound queue monitor (tx SMQ1) from EWM to ERP. You can use the SMQ1 - Outbound queue and SMQ2 - Inbound Queue both in ERP and SCM to check the communication betweene these two systems.
    Also you may want to checkt the SLG1 - Analyse application Log in SCM in order to see if any internal bugs exist.
    All the best,
    Claudiu Maxim

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

Maybe you are looking for