Sales order with multiple Schedule lines
Hello,
Could you please help me to create a sales order with multiple line items.
for example, I need to create a sales order with line item 10 with schedule lines more than 3.
Thanks in advance,
Bhaskar.K
As already explained Sh. Line Catg. is determined with Item Catg.of the item + MRP type automatically . As per your assignment in ( SD-sale-sales document-Sh. line-Assign Sh. line Catg.) system automatically propose the Sh. line Catg of your entered item
Now for three Sh line - in VA01 create the order with your item , give quantity -now select the line item, click on the Display item Details ICON extreme left bottom of the screen, than click on Sh. line tab here you maintain as many sh. line as you required.
Actually these Sh lines are nothing but the Requested Delivery Date And Quantity which is ultimately pass on to (Transfer the Requirement) MRP
Hope this'll help you
Ashok
Edited by: Ashok ku. on Aug 17, 2009 11:16 PM
Similar Messages
-
Report of sales orders with several schedules lines
Hi all,
I try to develop a report for sales orders and delivery info. I need sales order quantity, delivery quantity and the quantity in the scheduled line. But I faced with the problem of several scheduled lines.
I could not find the relation between delivery information and the scheduled lines of sales order.
Any function module or other way to find out a delivery belongs to which cheduled line of the sales order ?
Thanks,
UtkuSolved problem
-
Report of sales orders with several scheduled lines
Hi all,
I try to develop a report for sales orders and delivery info. I need sales order quantity, delivery quantity and the quantity in the scheduled line. But I faced with the problem of several scheduled lines.
I could not find the relation between delivery information and the scheduled lines of sales order.
Any function module or other way to find out a delivery belongs to which scheduled line of the sales order ?
Thanks,
Utkupost this in ABAP forum for quicker response.
Regards
Raja -
LSMW program to upload the sales order with multiple line items.
Dear SD and PP Gurus,
I am new to creating LSMW Program.
I want to create a LSMW program to upload the sales order with multiple line items. I have read on SDN that it can be done on two phases. First Create Header Data than line items. IS IT TRUE??, Or
Is there any procedure by which we can load the sales orders with multiple line items in a single run (part).
I want to use Batch process, not a BAPI or IDOC procedure.
I have created a program with
object 0090
Method 0000
Program Name RVINVB10
Program Type D
Source Structure 1 - For Header and Source Structure 2 for Line Items.
Mapped Field INDET (With Fix Value 1), ORDERTYPE, SALESORG, DISTCHANNEL, DIVISION, CUSTOMER, PONUMBER , DELVDATE, PRCGDATE, PMTTERM
INCOT1 INCOT2 with Source Structure - 1 and
Field INDENT (With Fix Value 2), ITEMNO, MATCODE, MATQTY, SUOM, PLANT, BATCH, AMOUNT with Structure-2
than maintained Structure relation ship, field Mapping, Specified Files, Assigned files, Read Data and other process,
At final stage (Start Direct Input program RVINVB10) it is giving a message - Table name not allowed.
Please tell me where I am wrong.
Thanks in advance.
DSCDear SD Gurus n Experts,
I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
In SDN Link: LSMW upload Sales Order using VA01/VA02 I have found that there are some date fields which are mandatory to filled. Here I have mapped
VDATU - Requested delivery date, BSTDK - Customer purchase order date, PRSDT - Date for pricing and exchange rate, BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
and PRGRS - Date type is Constant = D
Can any one tell me, where is the priblem.
With thanks,
DSC -
Partial delivery per item in sales order and ATP - schedule lines
Hi,
I've problem regarding ATP- schedule lines and partial delivery flag.
In sales order there is flag Partial delivery per item B / 1 . That means create only one delivery even with quant 0. That comes from customer master or customer info-record and it is OK.
Please look at next example.
Customer requires:
10 PCS of materail A on date X. Only 5 PCS are available on date X.
10 PCS of material B on date X 0 PCS are available on date X, 10 PCS are available on date Y.
So if we create outbound delivery on date X it will contain only 5 PCS of material A. No successive deliveries will be created for material A because of the flag B/1. That item is closed.
Problem is with material B.
The sales order will be open because of material B and on date Y we can easily create another delivery with 10 PCS of mat B.
That is wrong. Agreement with customer is only one delivery for ALL items in sales order. If we create delivery on date X it should contain only materials which are available on date X and sales order should close.
Do you know how to fix this problem?Hi,
I've think you didn't understand my requirement. I allways get schedule lines but they are confirmed on different dates.
Example in same sales order we have:
Schedule line for item A:
DATE X confirmed quantity 10
Schedule line for an item B.
DATE X confirmed quanitity 0 (zeroe)
DATE Y confirmed quantity 10.
I would like to create outbond delivery on date X with:
item A quantity 10
item B quantity 0.
And if that hapens than B/0 rule will work or reference customzing that you suggested before. So order will be closed because all items are processed or referenced once.
Do you know how to do that?
Regards -
Help using /AFS/BAPI_PO_CREATE with multiple schedule lines
I'm using /AFS/BAPI_PO_CREATE to create POs and everything works fine until I pass an item with multiple schedule lines.
When you pass multiple schedules it is giving each of the schedule lines under an item the same grid value! So if I want to order one black, one white shirt... both grid values are changed to black when the PO is created.
I'm wondering if you need to pass some sort of sequence value into the BAPI when you have multiple schedule lines for an item. Does anyone know?Hi Justin
Please make sure that you are specifying the <b>item number</b> while passing the ITEM Details and their correponding SCHEDULE lines.
Though i couldnt find FM: /AFS/BAPI_PO_CREATE in our system, i guess it is similar to BAPI_PO_CREATE.
Kind Regards
Eswar -
Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?
Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?
Customer wants to maintain the original scheduled ship date on converted ordered, but the scheduled dates is defaulting to sysdate for past due shipments on converted orders.Hi Friend,
As of now there is no functionality to display SSD,RD,PD backdated, max it can be sys date, not lower then that.
Regards
Shyam
Please see following Metalink Note ID for all in One solutions
Oracle E-Business : All In One Metalink Note ID's
If you are happy with the Document, please mark as Helpful by doing so this will provide assistance for other people looking for answers to their queries. -
Open Sales Order table with multiple schedule line....
YUSUF BHORI wrote:
Hi Experts,
In Sales Order there are multiple schedule line for single item.
Where and in which table i can find open qty for order ,material, item and schedule line items.
I Want open items for each schedule line. For One vbeln, posnr there multiple etenr.
Urgent,
Yusuf.Hai,
Join VBAK & VBAP and store data in an internal table GT_VBAP to get Sales order numbers, items, materials.
Get Open Sales order items from VBUP into GT_VBUP where VBUP-GBSTA NE 'C'.
LOOP at GT_VBAP.
Read table GT_VBUP with key vbeln & posnr.
If sy-subrc <> 0.
delete GT_VBAP.
endif.
****Fill your Final Report Internal table with required field values **Append into that internal table
ENDLOOP.
Now Select WMENG BMENG from VBEP into GT_VBEP for all entries in GT_VBAP.
LOOP AT GT_VBEP.
*******Again Modify your Final Report internal table with these values
***VBEP-WMENG is Ordered Qty
***VBEP-BMENG is Confirmed Qty
************Open Qty = Ordered Qty = Confirmed Qty***
************Open Qty = VBEP-WMENG = VBEP-BMENG.***
ENDLOOP.
Edited by: Eswara Rao Aakula on Dec 24, 2007 9:56 AM
Edited by: Eswara Rao Aakula on Dec 24, 2007 9:57 AM -
In sales order, what is schedule line
hi i m new to SD, pls tell me
in a sales order created, i can see multiple line items,
what is the meaning of having multiple "schedule lines"Hi,
A sales order can have one or multiple line items. As far as schedule line is concerned it can be defined as under:
<b>Schedule line</b> - A division of item with respect to delivery date and delivery quantity.
For a sales order item if there is no <b>schedule line</b> then that item cannot be delivered. When you create the sales order, double click on the line item and go to schedule line. Here for that item you will see details like delivery date, order qty, rounded qty, confirmed qty, delivered qty. While you create a sales order if for a particuler item there is no entry in the conirmed qty column then this sales order cannot be delivered.
<b>Mulitple schdule lines:</b>
Suppose a line item is having order qty as 20. Today there is stock of only 10. Remaining 10 pc will come into stock on 12/09/2007. So the system will determine 2 schedule lines as under:
07/09/2007 20 20 10
12/09/2007 --- --- 10
The 10 pc will be confirmed for today and the remaining 10 for 12/09/2007. This can happen for all items in the sales order.
Unless and until the schedule line is determined the delivery cannot be delivered.
Reward points if solution helps.
Regards,
Allabaqsh G. Patil -
Sales order with multiple billing doc's
HI Guys
My client has specific requirement related the freight charges .Freight charge is represented with a condition type in my pricing procedure. If a given sales order has multiple shipments (I.E deliveries) then this freight charge is getting calculated partially at item level and passing on to the billing documents accordingly. Customers receive invoices with part of those charges. They will receive other parts with other shipments and invoices until sales order is completed
As per my clients business it would be more logical that Freight charges are invoiced on the first invoice. And not as parts in each billing doc
There are two things which are striking to my mind in terms of solution
1. Since it’s only to do with showing the freight charges on the output sent to the customer. Is there any option to display the complete freight charges on the 1st billing doc’s output type? And restrict to display in the remaining billing doc of a given sales order. Any idea how to achieve it this way
2. Can this be controlled with the help of copy controls between delivery and billing doc at an item category level .i hope there should be some standard routine in place if not what should be my logic in this routine that helps to accomplish this task
3. Create a routine and assign it to the condition type ZMIN…Not sure what logic should I built in here to get the above requirement up and running
Please guide me a way forward on this……………..
Thanks for your support.
Will reward without fail …
MohitHi Madhu,
The billing document cannot be deleted. It can either be cancelled or a credit memo created with reference to it. You can also check in the same VBFA table, if for a billing document any cancellation exists. If yes, then, the delivery cost becomes relevant. Else it does not.
However, there could be a timing issue. Say if there are 3 deliveries and 2 of them are taken for billing at the same time in different sessions. (I am not sure if SAP will allow this because of the locking of VBAK table but still a possibility). Then, when the routine goes back to VBFA with the Sales order number, it does not find any billing document. So there is a chance that the freight charges may appear on both deliveries in full. So, you may want to test a few scenarios like this to make sure the logic is good and accommodates all scenarios.
Hope this helps.
Regards,
Mukund S -
Where i can find multiple confirm qty with multiple schedule line..
Hi Experts,
Is there any BAPI FM or FM for finding multiple schedule line confirmation with some of blocked.
Yusufnot solved
-
Production order from sales order with multiple line item(for one material)
Dear Gurus,
I am working in MTO scenarios. If there is several line item in a sales order for one material, multiple production order( same as no. of sales order line item) is getting created against each of the line item.My requirement is,since the material code is same in each line item and sales order is one, one production order should be generated for all line item. please tell me how to do it.
(Here for one material, multiple line item is required for some specific reason)
Regards
Rajib PathakHi,
This is not possible.
In Std SAP will create one production order for one sales order. The stock is also allocated to thet particular sales order only. Because each and every sales order may vary in any one of the parameters. Considering this, SAP has designed like this.
Regards,
V. Suresh -
Adding Sales Order with multiple lines
Hi all,
I have a C# program whereby I am trying to get Sales Orders from one database (source) and create them in another database (destination). I can't get the code to work properly as lRetCode is never equal to 0 but is -5002.
How can I fix it so that it adds the sales orders properly?
Here is the code snippet:
unaddedSOs = sList.Except(dList).ToList(); // contains the header information
// Add the Sales Orders that are missing to destination database
SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders); // Destination
// Loop through unadded Sales Orders
foreach (var item in unaddedSOs)
// Set properties of the Sales Order object
sboSO.CardCode = item.cardCode;
sboSO.CardName = item.cardName;
sboSO.DocDate = item.docDate;
sboSO.DocDueDate = item.docDueDate;
// Add Sales Order Document Lines
SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset); // Source of lines
// Get Sales Orders from source database
rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
rsLines.MoveFirst();
if (rsLines.RecordCount > 0)
while (!rsLines.EoF)
sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
sboSO.Lines.Add();
rsLines.MoveNext();
// Try to add the Sales Order to the database
int lErrCode = 0;
string sErrMsg = "";
int lRetCode = sboSO.Add();
if (lRetCode != 0)
int temp_int = lErrCode;
string temp_string = sErrMsg;
oCompanyDestination.GetLastError(out temp_int, out temp_string);
// Incase adding a Sales Order failed
if (lErrCode != -4006)
// Display error message
MessageBox.Show(lErrCode + " " + sErrMsg);
MessageBox.Show("Done!!!");
Kind Regards,
Kinyanjui.Hi Kinyanjui,
I think you're always writing to the same line:
int row = 0;
while (!rsLines.EoF)
sboSO.Lines.SetCurrentLine(row);
sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
sboSO.Lines.Add();
rsLines.MoveNext();
row++;
Best regards,
Pedro Magueija -
Converting Multipule Reqs to a Purchase Order with Delivery Schedule Lines
Is it possible to convert a multiple Purchase Reqs for the same items to a PO that has one line but multipule deliver dates in the Schedule lines - Where the Purchase Reqs have been generated by MRP
Example
I have an SAP Contract 46***** that runs via MRP and creates 3 Reqs for item number 12345. All from the same vendor
Req 1 delivery date 2/4/10 QTY 50
Req 2 delivery date 6/4/10 QTY 20
Req 3 delivery date 10/4/10 QTY 30
Aim is to have 1 PO with line 1 having a QTY 100 but the Delivery Schedule Tab to show the three seperate delivery needs
date 2/4/10 QTY 50
date 6/4/10 QTY 20
date 10/4/10 QTY 30
Any Help?When i try that the QTY in line one does not alwasy update to the total qty of the reqs and infact the qty on the req doesnt always appear in the schedule line....
This works for me perfect, I never encountred that the item quantity was not updated if I added a new requisition to the schedule.
ME59N should work, do not select per requistion and per delviery date in the New PO section in the selection screen. But set a flag into box create schedules. -
Update Sales Order with Text-Line and without regular Lines
Hello Experts,
i have a problem to update a Sales Order with no Item-Lines but with one Text-Lines or one Sub-Total-Lines.
I get only the Error "The specified resource name can not be found in the image file", the %temp% are delete.
i have testet with Methode: #updateDocWithSubDeletion, #Synchronnous Update, #Synchronous Insert with fallback to Update (i was desperate)
my Scenario look like this:
my Payload:
i have allready testet with the part AdminInfo und QueryParams with the same Error.
<Payload id="atom6" Role="X">
<Documents xmlns="">
<row>
<DocNum>227780</DocNum>
<DocType>dDocument_Items</DocType>
<HandWritten>tNO</HandWritten>
<Printed>psNo</Printed>
<DocDate>20150423</DocDate>
<DocDueDate>20150423</DocDueDate>
<CardCode>61052</CardCode>
<CardName>Durchlauf</CardName>
<DocCurrency>EUR</DocCurrency>
<DocRate>1.000000</DocRate>
<DocTotal>0.000000</DocTotal>
<Reference1>227780</Reference1>
<JournalMemo>Kundenaufträge - 61052</JournalMemo>
<PaymentGroupCode>-1</PaymentGroupCode>
<DocTime>0819</DocTime>
<SalesPersonCode>2</SalesPersonCode>
<TransportationCode>-1</TransportationCode>
<Confirmed>tYES</Confirmed>
<SummeryType>dNoSummary</SummeryType>
<ContactPersonCode>0</ContactPersonCode>
<ShowSCN>tNO</ShowSCN>
<Series>5</Series>
<TaxDate>20150423</TaxDate>
<PartialSupply>tYES</PartialSupply>
<DocObjectCode>17</DocObjectCode>
<DiscountPercent>0.000000</DiscountPercent>
<DocTotalFc>0.000000</DocTotalFc>
<RevisionPo>tNO</RevisionPo>
<RequriedDate>20150423</RequriedDate>
<CancelDate>20150523</CancelDate>
<BlockDunning>tNO</BlockDunning>
<Pick>tNO</Pick>
<PaymentMethod/>
<PaymentBlock>tNO</PaymentBlock>
<MaximumCashDiscount>tNO</MaximumCashDiscount>
<WareHouseUpdateType>dwh_CustomerOrders</WareHouseUpdateType>
<Rounding>tNO</Rounding>
<DeferredTax>tNO</DeferredTax>
<NumberOfInstallments>1</NumberOfInstallments>
<ApplyTaxOnFirstInstallment>tNO</ApplyTaxOnFirstInstallment>
<DocumentSubType>bod_None</DocumentSubType>
<Address2/>
<UseShpdGoodsAct>tNO</UseShpdGoodsAct>
<IsPayToBank>tNO</IsPayToBank>
<DownPayment>0.000000</DownPayment>
<ReserveInvoice>tNO</ReserveInvoice>
<LanguageCode>9</LanguageCode>
<SequenceModel>0</SequenceModel>
<UseCorrectionVATGroup>tNO</UseCorrectionVATGroup>
<DownPaymentAmount>0.000000</DownPaymentAmount>
<DownPaymentPercentage>0.000000</DownPaymentPercentage>
<DownPaymentType>dptInvoice</DownPaymentType>
<DownPaymentAmountSC>0.000000</DownPaymentAmountSC>
<DownPaymentAmountFC>0.000000</DownPaymentAmountFC>
<VatPercent>0.000000</VatPercent>
<ServiceGrossProfitPercent>0.000000</ServiceGrossProfitPercent>
<OpeningRemarks/>
<ClosingRemarks/>
<RoundingDiffAmount>0.000000</RoundingDiffAmount>
<ControlAccount>1200</ControlAccount>
<InsuranceOperation347>tNO</InsuranceOperation347>
<ArchiveNonremovableSalesQuotation>tNO</ArchiveNonremovableSalesQuotation>
<ExtraMonth>0</ExtraMonth>
<ExtraDays>30</ExtraDays>
<CashDiscountDateOffset>0</CashDiscountDateOffset>
<StartFrom>pdt_None</StartFrom>
<NTSApproved>tNO</NTSApproved>
<EDocGenerationType>edocNotRelevant</EDocGenerationType>
<DownPaymentStatus>so_Open</DownPaymentStatus>
<GroupHandWritten>tNO</GroupHandWritten>
<CreateOnlineQuotation>tNO</CreateOnlineQuotation>
</row>
</Documents>
<Document_SpecialLines xmlns="">
<row>
<AfterLineNumber>-1</AfterLineNumber>
<LineType>dslt_Subtotal</LineType>
<LineText>Zwischensumme</LineText>
</row>
</Document_SpecialLines>
<Document_Lines xmlns="">
<row>
<ItemCode>108044</ItemCode>
<Quantity>0.01</Quantity>
<FreeText/>
</row>
</Document_Lines>
<TaxExtension xmlns="">
<row>
<NetWeight>0.000000</NetWeight>
<GrossWeight>0.000000</GrossWeight>
<StreetS/>
<BlockS/>
<BuildingS/>
<CityS/>
<ZipCodeS/>
<CountyS/>
<StateS/>
<CountryS/>
<BuildingB/>
</row>
</TaxExtension>
</Payload>
when I insert a new row with an ItemCode , it works
Thanks and Best Regards
RonnyHi,
why don't you create a simple scenario to export B1 Sales Order to XML File?
Maintain the SalesOrder via B1 client UI and check the result in XML as exported to file.
In the Sales Order xml file you can easily see how "AfterLineNumber" needs to be filled in segment "Document_SpecialLines" to achieve what you've entered via B1 client.
Normally the LineNum for B1 Documents starts counting with 0 and if you need to add a subtotal line after a regular item row, the "AfterLineNumber" value should be 0.
Best regards
Bastian
Maybe you are looking for
-
Move TextFrame From One Page to Another (Indesign CS3 & VB )
Hello Friends!!! I have create 5 pages catalog in indesign CS3 & i need to shift one Group From One page to another...can anybody help me to do this issue. what i have tried is....... Set MyPge = MyDoc.Pages.Item(3) MyDsgn.Select MyPge.Groups.ItemByI
-
How to get the specified serarch term from the complete url? - Help
Hello, I have a table in which some columns. One of the column is storing the complete url for the search given by the user. For Example: 1. I give search like "oracle" on the Google, the column will store the complete url as "http://www.google.com/s
-
QuickTime X does not play QuickTime Broadcaster recordings
This is a post I'm leaving for other SL upgraders who come looking for information on why their QuickTIme Broadcaster .mov files and other QuickTime files such as .m4v for iPod that don't play on QuickTime X but do play on iTunes and QT 7. I'm findin
-
I am connecting from Oracle to another database server (MS SQL Server, DB2 the error message is the same) through an ODBC connection using Oracle SQL Developer. (This is how I set up) I want to query the schema of a non-Oracle database using the data
-
Cannot install Flash player 11 on Mac using 10.6.8
I have IOS 10.6.8. I had Flash player 10 installed but when trying to install FP 11 it asked me to uninstall the previous version. I did it. I have downloaded FP 11 but it does nothing! I cannot what you tube videos nor any other that plays using