Batch Number in A/R Invoice

Hi All,
How do you print Batch Number of an Item in A/R Invoice PLD?
Thanks
SV Reddy

Hi SV,
i think directly will not get the batch no field in PLD,
sorry, i dont have any test(client) database. so try this way,
Table -> INV1 - A/R Invoice- Row
Column -> BatchNo.
or
Create the UDF and assign the FMS.
i think, (get the batch no)FMS is not possible on A/R invoice .
it is possible to Create the UPDATE Stored Procedure
but you should not write the UPDATE Stored Procedure in SAP database.
best way, Create the UDF and type the Batch No on A/R Invoice.
->> Open the A/R invoice(System) PLD and Save as the New PLD.
->> Create the UDF(Batch no) Field in Repetetive Area on PLD.
Save as and Run the Print Preview.
OR
Try to Create a Query Report and design a QPLD.
If you want to Create QPLD, Check the thread, will be get some idea or solution.
Invoice details related to Serial Numbers 
Re: Item Serial No. on A\R Invoice Report
Re: Item Serial No. on delivery note PLD
Regards,
Madhan.

Similar Messages

  • Batch number in A/R Invoice pld

    Dear Experts
      Please give the idea how to print the batch number in A/R Invoice if the invoice was copied from delivery.
    Thanks & Regards
    S.Ganesh

    Dear Ganesh,
    You may check these threads:
    Batch Number in A/R Invoice
    Re: PLD -  Batch Number in Document Structure
    Thanks,
    Gordon

  • Query on batch number in Invoice

    Hi Experts,
    I would like to get the batch number picked during the Delivery document and shown in the print layout in A/R Invoice. Unfortunately, PLD of Invoice with Batch will not show the Batch numbers as they're already linked in the DR document.
    My workaround is to attach a FMS in the INV1 field line to get the batch number when the Invoice is copied from the DR.
    Any help with the query is very much appreciated.
    We are using 8.81 PL7.
    Thanks,
    Don

    Hi Don..........
    Please check this........
    Select (Case When T1.BaseType=15 then I1.BatchNum else I11.BatchNum end) 'BatchNum', T0.DocNum 'Inv. No'      
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCTG T2 ON
    T0.GroupNum = T2.GroupNum LEFT Join INV12 T3 On T3.DocEntry=T0.DocEntry LEFT JOIN OITM T4 On T4.ItemCode=T1.ItemCode LEFT JOIN OCHP T5 On T4.ChapterID=T5.AbsEntry
    LEFT Join DLN1 T6 On T6.DocEntry=T1.BaseEntry and T6.LineNum=T1.BaseLine
    left outer join IBT1 I1 on T1.ItemCode=I1.ItemCode   and (T6.DocEntry=I1.BaseEntry and T6.ObjType=I1.BaseType)
    left outer join OBTN T8 on T8.ItemCode=I1.ItemCode and I1.BatchNum=T8.DistNumber
    LEFT Join WTR1 T16 On T16.DocEntry=T1.BaseEntry and T16.LineNum=T1.BaseLine
    left outer join IBT1 I11 on T1.ItemCode=I11.ItemCode   and (T16.DocEntry=I11.BaseEntry and T16.ObjType=I11.BaseType)
    left outer join OBTN T18 on T18.ItemCode=I11.ItemCode and I11.BatchNum=T18.DistNumber
    LEFT Outer Join OWHS T20 On T20.WhsCode=T0.Filler
    Run this query you get Invoice No. and its Batch.....
    You may insert required c0olumns also.....
    Regards,
    Rahul

  • Missing Batches Number (Nonsplit Batch or Split Batch) in Invoice

    Hi guys,
    I need some help on you guys on following:
    I have a SO without batches information and I have interco PO with batches information.
    I create Invoice base on SO, therefore Invoice doesn't capture Batch or Split Batches information from PO.
    Is there anyway, I can populate this information during creation of Invoice?
    Aish.

    Hi,
    I have created delivery against sales order.
    While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
    Sales order (SO1) - Material (Mat1) - qty (15 ea)
    Delivery against sales order (Del1) - batch split: batch1 - 10 ea
                                                                         batch2 - 5 ea
    In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
       del no.     Item No.      Material   Qty       Batch no       Sales Order no     Sales Order Item no
    1. DEL1       10              Mat1        10 ea    batch1          SO1                    10
    2. DEL1       20              Mat1         5 ea     batch2         ______                 ____
    Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
    I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
    Hope this clarifies the issue faced.
    Regards,
    Ankush

  • Adding new Batch Number to AP Invoice

    i am working on adding new batch number to an existing AP IN by SDK function. I try the following codes, no errors prompt but also nothing updated. Can anyone advise me how to add new batch number to AP Invoice? Many Thanks!
    Dim ErrMsg As String
    Dim ErrCode As Integer
    Dim opch As SAPbobsCOM.Documents
    opch = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
    opch.GetByKey(5)
    opch.Lines.BatchNumbers.Add()
    opch.Lines.BatchNumbers.BatchNumber = "3"
    opch.Lines.BatchNumbers.Quantity = 3
    ret = opch.Update
    If ret <> 0 Then
          oCompany.GetLastError(ErrCode, ErrMsg)
          MsgBox(ErrCode & " " & ErrMsg)
    End If

    Hi ,
    Steps to do:
    1.Create an User Defined Field on Document Row Level:
    Name: Serial / Batch Details
    Type: Alphanumeric
    Structure: Text
    - Create a Formatted Search which will populate the data from Delivery note.
    - Put the UDF into the Print Layout of Delivery Order.
    Displaying Batch Details
    2.   Decide with information is needed from Batch details to be printed out on A/R Invoice
    On Bacth Details form (Inventory\Item Management\Batches\Batch Details) we can see all the possible details.
    - Batch Number
    - Delivered Quantity
    - Expiration Date
    3.    Build the formatted search SQL command.
    By a SQL cursor driven result set we can build a text which contains the list of the delivered batch details separated by new lines. The relations between A/R Invoice and Delivery note is defined on A/R Invoice Form. in columns 45, 46, and 43 
    declare @batch as nvarchar(100)
    declare @txt nvarchar(max)
    set @txt = ''
    declare P cursor for SELECT T0.[BatchNum] + space(1)
      + cast(cast(T1.[Quantity] as decimal(19,2)) as nvarchar)
      + space(1) + case when T0.[ExpDate] is null then '' else convert(nvarchar,T0.[ExpDate],102) end
      FROM OIBT T0 INNER JOIN IBT1 T1 ON T0.ItemCode = T1.ItemCode and T0.WhsCode = T1.WhsCode
      and T0.BatchNUm = T1.BatchNum
      WHERE T1.[BaseEntry] =$[$38.45.0] and T1.[BaseLinNum] =$[$38.46.0]
    open P
    fetch next from P into @batch
    while @@fetch_status = 0
    begin
    set @txt = @txt '\n'@batch +','
    fetch next from P into @batch
    end
    close P
    deallocate P
    select @txt
    4. Defined the formatted search on the A/R Invoice.

  • Batch Number in Proforma Invoice

    Hi All,
    Our customer has a requirement for proforma invoice for order in export sales and they want to give a batch number and want to see it in proforma invoice before delivery. Is it possible to do it? and how to maintain it if it is possible?
    Thanks for your help in advance.
    Regards,
    Sinan

    Hi
    If you determine batch in SO, you can populate the field CHARG in table VBRP for the proforma invoice with copy rules. But as usually batch is determined in delivery, if it's your case, I don't understand the reason to write batch in proforma invoice, because the reasonable is that the batch that you write won't be the same that you will send.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Aug 10, 2011 1:06 PM

  • Batch Number on AR Invoice Printout

    Hello Experts,
    Can somebody please guide me, I have a requirement of having Batch number on AR Invoice Printout. I am unable to do that, help required please.
    Thanks & Regards,

    It is quite dificult to do so using PLD (you can show batches easily when reocrding an invoice which is not coming from an delivery, otherwise, batch data is stored in delivery tables).
    I've done this using crystal reports. You can get batch information true sql or even Subreports (one take information when batch is recorded during invoice creation, another one takes information when batch is recorded during delivery creation), etc.
    I recomend you to use Crystal Reports, definitively

  • Batch Selection config. in Excise Invoice Creation (J1IJ) at Depot in CIN

    Hi,
    In the business scenario that I have to map in SAP system stock transfer occurs from Plant to Depot. Then the batch is split at the Depot and minor changes are made to characteristic. These individual small batches and then sold to the end customer from depot.
    <b>Problem:</b> If the batch number is kept the same at depot as the incoming batch number, system is able to find the incoming invoice in J1IJ. If the batch number is changed (to mark individual characteristic) then the system in not able to idetify the incoming batch.
    Please help...
    In SAP help link http://help.sap.com/erp2005_ehp_02/helpdata/en/09/ebf138cdd78a4be10000000a114084/frameset.htm I could find mention that "You can also automate this procedure, using the batch selection program (J_1IJCHK), by making the appropriate Customizing settings in the Country Version India (CIN) Implementation Guide (IMG)." Can anyone help by elobarinting what specific configuration is to be made for batch selection?
    Thanks
    Rajat

    Hi,
    SAP has released a SAP note 1001446 which can be implemented for your requirement. There is an user exit J_1I7_USEREXIT_BATCH_CHK_FLAG which has the parameter NO_BATCH_CHK_FLAG. If you pass the value ' X' to the parameter NO_BATCH_CHK_FLAG then the batches will not be  checked during J1ij. you can implement this user exit through SE37.
    Regards,
    Murali

  • Batch Number Transactions Report  - TURN OFF

    We are managing our batches in B1 2007A; however, our customers do not care what batches they're receiving, per se. 
    That being said, we do not want batch reports to be created each time an invoice is readied to be printed, as we simply X each report that appears (batch number transactions report, batch report in document).  Can these be turned off if batch management is on?
    Thank you!
    Russell Clayton

    Thanks for the clarification request -
    When we use the document printing feature, we can skip the generation/printing of batch number transaction reports and such; however, when we're doing one-off invoices (not a large run, which is common with our company), the simpleness of choosing print preview and only seeing the invoice pop up would be ideal, as we do not want to print the batch reports at this time (only track within the system).

  • Batch Number Linking to Item in any document

    Dear All,
    I am struggling to find the actual link to Batch number allocation table ( OBTN) to actual document detail tables ( ORIN/RIN1) of particular Item.
    I do not find any references in OBTN which belongs to the document detail table. I have noticed the same in Credit Memo, Delivery, Invoice documents if the item has serial numbers. GUI is allowing user to select Item serial numbers, which is considering as DistNumber, but how the entries in OBTN relates to document detail table, could not figure out.
    I appreciate your help and need your help on emergency basis...
    Regards,
    K Sakthivel

    Hi K Sakthivel........
    Please try this code.....
    Select * from ORIN T0 inner join RIN1 T1 on T0.DocEntry=T1.DocEntry
    left outer join IBT1 I1 on T1.ItemCode=I1.ItemCode   and (T1.DocEntry=I1.BaseEntry and T1.ObjType=I1.BaseType)
    left outer join OBTN T4 on T4.ItemCode=I1.ItemCode and I1.BatchNum=T4.DistNumber
    Regards,
    Rahul

  • No batch number appears while saving delivery

    hi all,
    While creating delivery,system is throwing a message
    "cannot add row without selection of batch number" and
    there is no batch no in the available batch for auto selection.
    Our client is unable to create delivery and subsequently
    do AR invoice.
    Additional Info:-
    Items in the delivery is already batch activated- Batch ,On Release only.
    Batch was also activated in general settings of Administration module.
    System was not asking us to enter  batch number anywhere in the production cycle.
    Expecting your esteemed reply.
    Jeyakanthan

    Jeyakanthan,
    I believe you have Batch management set in the Item Master but it is on Realase only.
    You can create Batch numbers for already received items. See help file extract below
    In addition, you can enter batches for the received items if you did not do so while generating marketing and stock entry documents. However, this is only possible if your company allows the receipt of items to stock without a batch number.
    To use this function, choose Inventory > Item Management > Batches > Batch Management.
    In Operation..Select Complete – to create batches for the received items
    Enter a range of item codes, for which you want to create or update batches.
    Click Ok and create the necessary batches
    Let me know
    Suda

  • Batch number as po number

    hello all,
    i have a requirement like in place of batch number i need to print po number either while creating po or while shiipping so i need the exit for that .

    Hi,
    Please search for the correct Exit below and use.
    I am sure using an EXIT we can do this.
    Develop Enhancements for Purchasing
    In this step, you develop enhancements for Purchasing.
    The following SAP enhancements are available for the Purchasing area:
    AMPL0001
    User subscreen for additional AMPL data (manufacturer part number)
    LMELA002
    Adoption of batch number from shipping notification at time of posting of a goods receipt
    LMELA010
    Incoming shipping notification: adoption of item data from IDoc
    LMEQR001
    User exit for source determination
    M06B0001
    Role determination for release of requisitions
    M06B0001
    Changes to communication structure for release of requisitions
    M06B0003
    Number range and document number
    M06B0004
    Number range and document number
    M06B0005
    Changes to communication structure for overall release of purchase requisitions
    M06E0004
    Changes to communication structure for release of purchasing document
    M06E0005
    Role determination for release of purchasing documents
    ME590001
    Grouping of requisitions for PO split in transaction ME59
    MEETA001
    Determination of schedule line type (backlog, immediate requirement, forecast)
    MEFLD004
    Determination of earliest delivery date for checking at time of goods receipt (PO only)
    MELAB001
    Generation of forecast delivery schedule: realization via creation profile
    MEQUERY1
    Enhancement for document overview ME21N / ME51N
    MEVME001
    Calculation of default GR quantity and over/underdelivery tolerances
    MM06E001
    User exits for inbound EDI messages and outbound purchasing documents
    MM06E003
    Number range and document number
    MM06E004
    Control of import data screens in purchase orders
    MM06E005
    Customer fields in purchasing documents
    MEREQ001
    Customer's own data in purchase requisitions
    MM06E007
    Change document for requisitions when converting into POs
    MM06E008
    Monitoring of contract target value in case of release orders
    MM06E009
    Relevant texts for "Texts exist" indicator
    MM06E010
    Field selection for vendor address
    MM06E011
    Activation of requisition block
    MM06L001
    Exits for determination of ratings in vendor evaluation
    MMAL0001
    ALE source list distribution: outbound processing
    MMAL0002
    ALE source list distribution: inbound processing
    MMAL0003
    ALE purchasing info record distribution: outbound processing
    MMAL0004
    ALE purchasing info record distribution: inbound processing
    MMDA0001
    Default values for delivery addresses
    MMFAB001
    User exit for generation of releases
    MRFLB001
    Control items during release creation
    LWBON001
    Enhancement of LIS update through extension of the communication structure MCKONA (business volumes and rebate income)
    LWBON003
    Change settlement data for end-of-period rebate settlement before creation of settlement documents
    LWSUS001
    Customer-specific source determination in Retail
    LMEXF001
    Conditions in purchasing documents without invoice receipt
    LMEKO002
    Enhance communication structure KOMP for price determination
    If you need BADI's  search for them in SPRO
    MM-> Purchasing->Business Add-Ins' for Purchasing.
    Regards,
    Anji

  • Error in Batch Number Transaction Report

    Dear All
    While generating 'Batch Number Transaction Report' in SAP B1 8.8 the following error occur which we could not solved:
      "Runtime error
        R6025 - pure virtual function call"
    This occurs when selection is made on item properties for the report.
    Please suggest solution.
    Thanks & with regards
    Aloke Bandyopadhyay

    Hi ALok......
    Check the thread related to this problem........
    Email and PDF Icon on AR Invoice Visual C++ Runtime Error R6025
    Also this might be the Microsoft Issue or check Virus run also.....
    Regards,
    Rhaul

  • Adding serial number in A/R Invoice

    Hi Experts,
    I am with a problem.I have 1 Records in the Database Table..In My SDKCode,Based on the Invoice Object I am adding the database tables values to the A/R Invoice LinesItems (itemcode,itemdescription,Taxcode,Quantity,Unitprice and serial number).When I am Updating, i am encountering an error "Cannot add row 1 without complete selection of batch/serial numbers"
    kindly guide me with this problem....and how we can insert serial number in A/R Invoice for a item carrying serial number
    Regards
    Pradeep
    Edited by: Pradeep.grd on Feb 15, 2012 7:36 PM

    Hi Pradeep,
    You can try this code for batch and serial no management in A/R Invoice:
    oItem.GetByKey(sku);
    SAPbobsCOM.Recordset oRecordset = (SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(BoObjectTypes.BoRecordset));
    if (oItem.ManageBatchNumbers == BoYesNoEnum.tYES)
    string sqlstr = string.Format("SELECT sum(Quantity) FROM OIBT WHERE ItemCode = '{0}' AND STATUS = 0", oItem.ItemCode);
    oRecordset.DoQuery(sqlstr);
    if (!oRecordset.EoF)
    if (lInvoice.Lines.Quantity <= Convert.ToDouble(oRecordset.Fields.Item(0).Value))
    iRequired = lInvoice.Lines.Quantity;
                                                iAvailable = 0;
                                                iLineNo = 0;
                                                sqlstr = string.Format("SELECT * FROM OIBT WHERE ItemCode = '{0}' AND STATUS =                      0",oItem.ItemCode);
                                                oRecordset.DoQuery(sqlstr);
    while (!oRecordset.EoF)
                                                    if (Convert.ToDouble(oRecordset.Fields.Item("Quantity").Value) >= iRequired)
                                                        lInvoice.Lines.BatchNumbers.SetCurrentLine(iLineNo);
                                                        lInvoice.Lines.BatchNumbers.BatchNumber = oRecordset.Fields.Item("BatchNum").Value.ToString();
                                                        lInvoice.Lines.WarehouseCode = oRecordset.Fields.Item("WhsCode").Value.ToString();
                                                        lInvoice.Lines.BatchNumbers.Quantity = iRequired;
                                                        lInvoice.Lines.BatchNumbers.Add();
                                                        break;
                                                    else if ((Convert.ToDouble(oRecordset.Fields.Item("Quantity").Value) < lInvoice.Lines.Quantity))
                                                        iAvailable = Information.IsNumeric(oRecordset.Fields.Item("Quantity").Value) ? Convert.ToDouble(oRecordset.Fields.Item("Quantity").Value) : 0;
                                                        lInvoice.Lines.BatchNumbers.SetCurrentLine(iLineNo);
                                                        lInvoice.Lines.BatchNumbers.BatchNumber = oRecordset.Fields.Item("BatchNum").Value.ToString();
                                                        lInvoice.Lines.WarehouseCode = oRecordset.Fields.Item("WhsCode").Value.ToString();
                                                        lInvoice.Lines.BatchNumbers.Quantity = iAvailable;
                                                        lInvoice.Lines.BatchNumbers.Add();
                                                        iRequired -= iAvailable;
                                                        iLineNo += 1;
                                                    oRecordset.MoveNext();
    else if (oItem.ManageSerialNumbers == BoYesNoEnum.tYES)
                                        sqlstr = string.Format("SELECT TOP {0} * FROM OSRI WHERE ItemCode = '' AND STATUS = 0", Quantity, oItem.ItemCode);
                                        oRecordset.DoQuery(sqlstr);
                                        if (!oRecordset.EoF)
                                            if (oRecordset.RecordCount >= lInvoice.Lines.Quantity)
                                                iLineNo = 0;
                                                while (!oRecordset.EoF)
                                                    lInvoice.Lines.SerialNumbers.SetCurrentLine(iLineNo);
                                                    lInvoice.Lines.SerialNumbers.SystemSerialNumber = Convert.ToInt32(oRecordset.Fields.Item("SysSerial").Value);
                                                    lInvoice.Lines.SerialNumbers.InternalSerialNumber = Convert.ToString(oRecordset.Fields.Item("IntrSerial").Value);
                                                    lInvoice.Lines.WarehouseCode = Convert.ToString(oRecordset.Fields.Item("WhsCode").Value);
                                                    lInvoice.Lines.SerialNumbers.Add();
                                                    iLineNo += 1;
                                                    oRecordset.MoveNext();
    Edited by: utpal_maity on Feb 16, 2012 7:12 AM

  • Batch Numer in A/R Invoice

    Hi to all.
    We need to print the batch number in the A/R invoice, so we found that there is a system layout for that, this prints the batch number and its fine, but we create two user-define-values in the User-Defined-Fields MANAGEMENT in:
    Inventory --- Batch Numbers for Items
    So these two new values when we made a Good Receipt PO, when create shows the pop-up to write de batchnumer and these new.
    We need to print that new values in the A/R Invoice.
    Verifying the system layout in A/R invoice for batch numbers, I don´t understand how it could get that value if in that layout the batchnumber is variable.
    Let me know how we could print the new values too.
    Thanks
    Eric Partida.

    Error in forum category

Maybe you are looking for

  • Cisco jabber for android crashes on samsung s5 mini when proxy is configured

    We are  a facing a strange problem with samsung galaxy s5 mini,  android 4.4.2 and the latest Cisco Jabber client available on play store. Cisco Jabber crashes on startup every time because in the  wifi connection we manually configured a proxy. If w

  • Changing the size of fonts in InDesign's menus and toolbars?

    Is it possible to change the size of fonts in InDesign's menus and toolbars? I'd love for the Control Panel at the top to be a bit easier to read.

  • Need advice for starting a Managed Cloud Service for Small Businesses

    I hope this is in the right forum.  I have done a lot of research and searching but havent found anything that specifically answers, in total, what I am wanting to accomplish.  I live in a small town and want to start a Managed Cloud Services for sma

  • Stereo audio imported as mono

    Any ideas why the stereo audio on my miniDV tapes was imported as separate mono tracks? I'm using FCE HD 3.5 -- the tape was shot on a Canon XL1 using 12bit audio (32KHz, not reset after a project using 4 audio channels). Are there any capture settin

  • My phone is not showing up in itunes

    My phone (and itunes) had been working well.  Now, all of a sudden, when I plug my phone into the computer, it does not show up in iTunes and it does not receive any charge.