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
Similar Messages
-
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 IfHi ,
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,
SinanHi
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 -
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,
DonHi 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 -
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.GaneshDear Ganesh,
You may check these threads:
Batch Number in A/R Invoice
Re: PLD - Batch Number in Document Structure
Thanks,
Gordon -
Batch Number in A/R Invoice
Hi All,
How do you print Batch Number of an Item in A/R Invoice PLD?
Thanks
SV ReddyHi 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. -
MF60 : Pull List printout without batch number
Dear guru ,
I create a stock reservation (mtype 311) for a specific material batch number running MF60.
In the replenishment proposal printout the batch number is missing.
How can I add the batch number in the printout ?
Thanks.is it standard print or ur own form format.
if ur own then ask abaper to have batch no also in the output.
and if its standrad, i think it should be there since as per my knowledge batch no will come in all print if there are any print for that.
REgards,
Pravin Mukkawar -
Equipment Series number in Billing (Invoice) Document
Dear Experts,
Good day to you.
There is a request to add the equipment Series No in the invoice form. When user print the DO form, the series number will be printed on the DO form but not the Invoice, so user requested to add the Series number onto the Invoice form. Any advise how to add this?
For the invoice form, coding below:-
SPACE_LINE
HEADER_DATA
INCLUDE &VBDKL-VBELN_VAUF(K)& OBJECT VBBK ID 0002 NEW-PARAGRAPH TH
HEADER_TEXT
ITEM_HEADER
ITEM_LINE
DEFINE &ORDERNO1& = &VBDPL-VGBEL+(5)&
DEFINE &ORDERNO2& = &VBDPL-VGBEL+5(5)&
PERFORM XVBAP1 IN PROGRAM ZSRS0002_OCE
USING &ORDERNO1&
USING &ORDERNO2&
USING &VBDPL-VGPOS&
USING &VBDPL-LFIMG&
CHANGING &BACKORDER&
CHANGING &ORDERQTY&
CHANGING &NETPR&
CHANGING &NETWR&
CHANGING &DISTXT1(80)&
CHANGING &DISTXT2(80)&
CHANGING &DISTXT3(80)&
CHANGING &DIS1(80)&
CHANGING &DIS2(80)&
CHANGING &DIS3(80)&
CHANGING &VBAPREF&
CHANGING &MATGRP&
ENDPERFORM
DEFINE &ZNHGVPN&
DEFINE &ZNHGBIN&
PERFORM GET_VPN_BIN IN PROGRAM ZSRS0002_OCE
USING &VBDPL-MATNR&
USING &VBDPL-WERKS&
USING &VBDPL-LGORT&
CHANGING &ZNHGVPN&
CHANGING &ZNHGBIN&
ENDPERFORM
VPN : &ZNHGVPN& BIN : &ZNHGBIN&
,,,,,,,,,,VPN : &ZNHGVPN& BIN : &ZNHGBIN&
&VBDPL-POSNR+03(03)&,,&VBDPL-MATNR(10)&,,&VBDPL-VRKME(03)&
,,&ORDERQTY(6)&,,&VBDPL-LFIMG(6)&,,&MATGRP(C)& &VBDPL-ARKTX&
,,&NETPR&,,&NETWR&
,,&VBDPL-LFIMG(6)&,,&MATGRP(C)& &VBDPL-ARKTX&,,&NETPR&,,&NETWR&
,,,,,,,,,,&distxt1(20)& &dis1(15)&
,,,,,,,,,,&distxt120(20)& &dis115(15)&
,,,,,,,,,,&distxt140(20)& &dis130(15)&
,,,,,,,,,,&distxt160(20)& &dis145(15)&
,,,,,,,,,,&distxt2(20)& &dis2(15)&
,,,,,,,,,,&distxt220(20)& &dis215(15)&
,,,,,,,,,,&distxt240(20)& &dis230(15)&
,,,,,,,,,,&distxt265(20)& &dis245(15)&
,,,,,,,,,,&distxt3(20)& &dis3(15)&
,,,,,,,,,,&distxt320(20)& &dis315(15)&
,,,,,,,,,,&distxt340(20)& &dis330(15)&
,,,,,,,,,,&distxt360(20)& &dis345(15)&
INCLUDE &VBAPREF& OBJECT VBBP ID 0001 PARAGRAPH TH
ITEM_LINE_DG_HEADER
ITEM_LINE_DG
ITEM_LINE_DG_TEXT
ITEM_LINE_BATCH
,,&'Batch 'VBDPL-CHARG&,,&VBDPL-LFIMG(I15)&,,&VBDPL-VRKME&
,,&VBDPL-NTGEW(I15)&,,&VBDPL-GEWEI(03)&
ITEM_LINE_CONFIGURATION_BATCH_
,,With the following batch valuation:
,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&
ITEM_LINE_CONFIGURATION_BATCH
,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&
ITEM_LINE_CONFIGURATION_HEADER
,,With the following configuration:
,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&
ITEM_LINE_CONFIGURATION
,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&
ITEM_REFERENCE
,,&'Order'VBDPL-VBELN_VAUF& &'from'VBDPL-AUDAT_VAUF&
,,&'Purchase order no.'VBDPL-BSTNK&
ITEM_PURCHASE_DATA
,,&'Purchase order no._K /Item:'VBDPL-BSTKD& &'/'VBDPL-POSEX&
,,&'Purchase order no._W /Item:'VBDPL-BSTKD_E& &'/'VBDPL-POSEX_E&
DG_STANDARD_TEXT
INCLUDE &RDGTXTPRT-TDNAME& OBJECT HZ01 ID HZ01
SUPPLEMENT_TEXT
IF &VBDKL-LFART& = 'CRDO' OR &VBDKL-LFART& = 'LR' OR &VBDKL-LFART& = 'CP >
DEFINE &ORDERNO1& = &VBDKL-VGBEL+(5)&
DEFINE &ORDERNO2& = &VBDKL-VGBEL+5(5)&
PERFORM XVBAK1 IN PROGRAM ZSRS0002_OCE
USING &ORDERNO1&
USING &ORDERNO2&
CHANGING &ORDERREASON&
ENDPERFORM
**Order Reason: &ORDERREASON&
ENDIF
DEFINE &ORDERNO1& = &VBDKL-VBELN_VAUF+(5)&
DEFINE &ORDERNO2& = &VBDKL-VBELN_VAUF+5(5)&
PERFORM XVBAKWAERK IN PROGRAM ZSRS0002_OCE
USING &ORDERNO1&
USING &ORDERNO2&
CHANGING &WAERK&
CHANGING &VBAKREF&
CHANGING &DEPOSIT&
ENDPERFORM
INCLUDE &VBAKREF& OBJECT VBBK ID 0001 NEW-PARAGRAPH THDear ,
I assume that your requirement is to Print the Equipment number in Invoice.
If you are asking for the logic of getting the Equipment number from the invoice, then please try the following logic.
Input 'invoice number' as VBELN in VBFA and get VBELV with VBTYP_V= J
Input 'VBELV' from the above step in SER01 as LIEF_NR and get 'OBKNR'
Input 'OBKNR' from the above step in OBJK as 'OBKNR' and get 'EQUNR'.
This EQUNR will be the equipment number and SERNR will be the Serial number.
Please check and confirm whether your requirement is fulfilled with the above logic.
Thanks & Regards,
Hegal -
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 ClaytonThanks 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 SakthivelHi 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.
JeyakanthanJeyakanthan,
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 -
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 BandyopadhyayHi 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 -
Dear Gurus,
Good Morning, thanks to all for your valuable knowledge sharing, i am updating my learning curve,
Here my doubt:
while taking invoice printouts through VF03, the enduser is getting 4 Printoouts.
the enduser told me that we need only 2 or 3,
how to control this outputs thru vf03 or is there any default settings to change,
anticipating your reply ,
With thanks and regards
Deepak.S
Reward Point Assured.Hi,
U can control this goto vf02 and select the line item then goto header and select output there u get a screen called invoicexxxxx (F2) change screen there u select output type and select communication methode inthe print information area select number of messages how many u required.
Regards
Sasikanth.Ch -
Hi Experts,
I have a probelm with the Transaction MIGO to restrict the ignore the batchnumber entered by the user.
If the user is not enter the batch number, then i can generated the new number by using the following 2 UE's
EXIT_SAPLV01Z_001 (ZXVBZU01) & EXIT_SAPLV01Z_002 (ZXVBZU02) and it is working fine.
If the user enters , then System first check that whether it is already exist in the Database . If it won't find then automatically it is considering the same number.Which needs to be stopped.
Any body has an idea about this requirement, to ignore the user entered value.
Actually, there are 2 more exists, EXIT_SAPLV01Z_011& EXIT_SAPLV01Z_012 there i can't change the value of the batch number.
Any suggestion or Any alternative way or Any idea Please......?
Warm Regards,
VijayHi,
I think you can restrict by using FM EXIT_SAPLV01Z_001, this i copied the FM documentation for your reference. Just read the FM documentation you will get an idea
You can restirict by using automatic generation using number ranges
<<Function module Documentation>>
Functionality
You can use this customer function call (CFC) to replace the standard number range (object, subobject, number range, and year) with one of your own. This is used subsequently to determine a new batch number.
Number assignment is carried out using the central number assignment.
The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using structure BNCOMZ.
Using the parameter CUST_NO_INTERNAL, you can suppress the number assignment function. Then you can either generate a batch number in function module EXIT_SAPLV01Z_002 using your own criteria or suppress the entire number assignment function.
Using the parameter MESSAGE_WHEN_AUTO, you can decide if a dialog box is to appear before a new number is assigned. This only happens during online processing.
Example
You can define internal batch number assignment according to your requirements via the enhancement SAPLV01Z with the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002
SAP delivers a total of 6 examples for batch number assignment:
1. Copying the production order number to the batch number
2. Copying the sales order number to the batch number
3. Material-type-dependent batch number assignment
4. Material-number-dependent batch number assignment
5. Including the date in the batch number
6. Including the plant number in the batch number
For examples 1 and 2 you have to use the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002.
For examples 3 and 4 you have to use the exit EXIT_SAPLV01Z_001.
For examples 5 and 6 you have to use the exitEXIT_SAPLV01Z_002.
For a detailed description of the examples, see below.
Prerequisites
1. Internal batch number assignment via the customer exit is activated:
To do this, in Customizing, choose Logistics general -> Batch management -> Batch number assignment -> Activate internal batch number assignment.
2. Maintaining the number range object
Two number range objects are provided for batch number assignment:
Standard number range for batch number assignment BATCH_CLT
Number range for material-type-dependent or material-number-dependent batch number assignment BATCH_MAT
Activities
1. Use the SAP enhancement SAPLV01Z:
a) In transaction CMOD, create either a new project or use an existing project.
b) Add the SAP enhancement SAPLV01Z to the project.
2. Copying the example code:
a) Choose Component.
b) Choose Change.
c) Choose:
EXIT_SAPLV01Z_001 for examples 1-4
EXIT_SAPLV01Z_002 for examples 1-2 and 5-6
d) Choose Edit -> Copy SAP source text.
The example code is copied to the relevant table in the function module exit.
e) To copy the example, remove the comment symbol before the include it pertains to.
3. Activate the project.
When you activate the project, the enhancement with the function module exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 comes into effect.
Examples
Example 1
Copying the production order number to the batch number
When a batch is produced, the process order number or production order number is copied as the batch number. This type of assignment is only possible in connection with process orders or production orders.
Outwith an order, a number range is determined for batch number assignment. In this example, it is the standard number range BATCH_CLT.
If the order has not yet been saved (for example, when a number is assigned when the order is created), a temporary number is created. A message appears prompting you to save the order. The system then assigns an order number which is accepted as the batch number.
The system checks whether a batch already exists with this number. If this is the case, the system aborts internal batch number assignment with a corresponding error message.
Note:
In this example, note that the include LXVBZB21 in EXIT_SAPLV01Z_002 has to be activated at the same time, as actual batch numbers are not assigned until this is activated.
Example 2
Copying the sales order number to the batch number
If a batch number is assigned in connection with a sales order, the sales order number is accepted as the batch number.
If there are no sales orders, a number range object is defined with a number range from which the batch number is taken. If a batch already exists with this sales order number, the batch number is assigned externally.
Note:
In this example, note that the include LXVBZB22 in EXIT_SAPLV01Z_002 has to be activated at the same time before actual number assignment can take place.
Example 3
Material-type-dependent batch number assignment
In the number range object BATCH_MAT a separate sub-object is created for each material type. Note that the number range object is maintained accordingly or batch number assignment cannot take place.
For example, if the material "flour" belongs to raw materials, it is maintained in the sub-object ROH, and the batch number is taken from the same number range as the material "eggs" which also belongs to the raw materials group.
Example 4
Material-number-dependent batch number assignment
In material-number-dependent batch number assignment, materials that are handled in batches must be maintained in the table BNMAT, which specifies the assignment of the material to the number range.
If there is no assignment in the table, the system aborts batch number assignment. An error message appears informing you that batch number assignment is not possible and specifying the table that has to be maintained.
Each material number is assigned a number range object, a sub-object, and a number range in the table BNMAT. This is how each material receives its own batch number range.
The number range object BATCH_MAT is an example of this. The material numbers are divided into groups via their material type that match the sub-object. Each material number is then assigned its own number range by table BATCH_MAT. The number ranges used must be maintained in the number range object.
Examples 5 and 6
Including the date or plant number in the batch number
The number ranges for the batch numbers must be defined in a way that ensures that no characters are overwritten by the templates.
Parameters
X_BNCOM
CUST_NO_INTERNAL
NR_RANGE_NR
OBJECT
SUBOBJECT
TOYEAR
MESSAGE_WHEN_AUTO
MESSAGE_DONE
Exceptions
CANCELLED
Regardas
Krishna
Maybe you are looking for
-
Connecting to Remote Database using Debian w/Oracle XE
Hello. I have managed to install Oracle XE on a Debian box. I am trying to connect to a remote server located on my network. I am using the following connection string: # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(H
-
My iPod Touch doesn't display playlists in ascending ASCII order, why / It shows up in correct ASCII order in iTunes Devices listing?
-
Media Encoder Dynamic Link error 5027 :: 12 ????
While trying to send a file to media encoder from after effects in order to render in a file format not located within ae i was given an error message that my adobe media encoder was not installed 5027 :: 12 dynamic link server failed . When i launch
-
Copying text from PDF files in another language
When I try to copy text from a PDF file which is written in Greek - the minute I paste it into another document, the text cannot be recognized so comes out as a jumbled mess. How an I solve this problem??
-
Certain websites are unable to load?
I have the MacBook from 2010. Whenever I try to use certain websites, the same thing shows up. It says that Safari or Google Chrome is not connected to the server. My internet is connected and websites like Facebook and Youtube are working perfectly