Restrict Delivery Entry based on Sales Order Delivery Date
Dear All,
I create a Sales Order with a Specific Delivery Date say 15 Dec 2010. The System must prompt me if I try to Create a Delivery Document Based on the Sales Order before 15 Dec 2010.
Does it happen in standard system / Can it be achieved by SDK.
Please Advice
Thanks
Hi Aslam,
If you want to Block the delivery document to post before the define delivery date in sales order than you can use the below Procedure...
If @object_type = '15' and @transaction_type in ( 'A')
BEGIN
if exists (select * from odln a inner join dln1 b ON a.DocEntry=b.Docentry
inner join ordr c on b.basetype=c.objtype
where a.DocEntry=@list_of_cols_val_tab_del
and b.basetype='17' and a.docdate<c.docduedate )
begin
SET @error = 00001
SET @error_message = N'Delivery can not be enter before delivery date '
end
end
Hope it will work
Regards,
Atif
Similar Messages
-
How to Add Delivery Note based on sales Order
How to add a delivery note based on sales order.
say i have a order no. 10 and linenumber 0 to 3.
each time i book with order no 10 and line no.3,i need to add to delivery note.
i also in need of adding just one Header and Multiple lines(Header for order Number - 10 and multiple lines for each Booking ).
How can i achieve this.Hi
You can search the samples....C:\-->Program files->SAP----->SDK->Samples->DiAPI----->OrderandInvoice...
Here invoice is added for a particular sales order.....the same can be done for delivery.....
Hope it helps -
How to fetch future Delivery Value based on Sales Order
Hi,
I'm fetching the delivery data using the datasource 2LIS_12_VCITM.In my report I would also like to display the value of the delivery.How do I valuate these deliveries?Do I have to access the Sales order item for the net price or go to the pricing conditions data?
Please suggest.
Thanks,
A PothuneediHi
You can search the samples....C:\-->Program files->SAP----->SDK->Samples->DiAPI----->OrderandInvoice...
Here invoice is added for a particular sales order.....the same can be done for delivery.....
Hope it helps -
Consumption of sales orders based on Sales order Doc Date
Hi Guys
I am using 40 Strategy currently. The consumption of sales orders now happens based on requirement delivery date. But my customer want to serve his customers based on first come first serve as the production is always getting delayed. Now irrespective of req. del date, the stock should be consumed based on the sales order document creation date to fulfill first come first serve concept.
I am not finding suitable requirement class in SAP. Please help
Regards
KPHi Krishna,
The scenario is quite not clear...Could you please brief it out further.
Because, in strategy 40, if a sales order comes in then sytem checks for any avaliable stock is there or not. If not then it looks for any open proposals available for PIR's, if so then it consumes the PIR based on consumption mode and period defined in material master or MRP group. If no open proposals, then system creates the new one.
So always the first come sales order will be consuming the stock or PIR, until the next MRP run.
Today a sales order has been coming in for 100 qty on 07.09.2014 delivery date and consumes the available stock of 100.
Tomorrow, another sales order has een coming in for same qty but delivery on 05.09.2014, then in next MRP run system will consume the 100 qty for 05.09.2014 and a proposal will be generated for
07.09.2014
If the business scenario is something like above, then to avoid this, a PGI job can be scheduled always as next step to MRP run so, that PGI will be done for all the sales order which has stock and rest will be in error log. By this way one production plant can ensure that always the first incoming sales order is delivered.
Also an another option would be is to run the transaction V_V2 to reschedule the sales order before delivery, this will work out if the sales order line items are not account assigned. In this reschedule transaction, priorities can be given for item date of creation as 1 and followed by delivery priority and rest....
Please check out and let us know even if you have diffrent solution as well.
Regards,
Chinna -
Infoset for sales Order Transaction data
Hi,
I wanted to create target Group based on Sales Order Transaction Data.Any standard Infoset is Available to Create Target group based on sales order Transaction data.
or any other data sources is there to crate target group.so that all sales Order Transaction data will be available to Create Target Group in Segmentation.
Thanks In Advance
Thanks & Regards
Kishore KUmarHi Kishore ,
Infoset can be used for create the target group based on master data only.
To create the target group based on any transaction Data , you need use 'BW Query' data sorce .
For this you need to build the BW uery with the help of BW consuultant.
I hope it will help you ,
Regards,
Syed Basha. -
I want to pick up Schedule line Delivery date based on Sales Order of Mater
Hi Experts,
I have one scenario like,
I want to pick up Schedule line Delivery date based on Sales Order of Material.
For example :
Go to va03
Give the order no
Press the enter
Double click on material.
Go to Schedule line Tab
Then we can find out the Delivery date .
I want to pick up the that Delivery date. Could you please help on that.
Thanks,
Amjad.Hi,
schedule line dates are available in VBEP.
VBEP-VBELN = sales order number.
VBEP-EDATU = schedule line date.
REgards,
Raghavendra -
Function module for Delivery and billing based on sales order
Hi Friends
I am developing an object which has to create the sales order, delivery for that sales order and billing for it at the same time.
I have tried for few function modules to create the delivery and billing but I am not able to achieve.
Would you please help me by providing the correct function modules for these 2 activities?
Thanks
PraveenHi Nikhil
Thanks for reply,
i am creating the sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT1" only, but the billing document bapi
"BAPI_BILLINGDOC_CREATE" is for online creation, it will call the t-code 'VF01'.
I need to create the billing document with out calling the t-code like using bapi for sales order. Please suggest me if there are function modules to achieve this.
Thanks
Praveen -
Restriction for items from Purchase Order based on Sale Order
Hi !
We create PO directly from Sale Order ( by ticking Option under Logistic tab, 'Purchase Order') for customer C01 (for eg).
From the PO created, we post GRPO.
Now our need is,
Assume if 10 Qty is been ordered in such a way and been received (GRPO posted). it 'll add on to the stock account i.e will increase stock qty at our whse.
is it possible to restrict these 10 qty of item from being sold to any other Customer other than whom hav ordered i.e if we create sale order for C02 the SBO should not take the items received from PO created based on Sales Order created for C01?
Meera.Meera,
Which version of SBO are you using 2005 or 2007?
I don't think Serial numbers can help in this scenario. There is no hard allocation or blocking possible using Serial numbers.
This is the Work around I am thinking about.
Set the items to be Batch Managed - On Every Transaction
When performing Goods Receipt, enter the Sales Order Number as the Batch Number
When creating the delivery, using SBO_SP_TransactionNotification we can easily check the Batch of the Item being selected and verify it with the BaseRef of Delivery lines to match with Sales Order number.
If the numbers don't match we can warn user with message, "The items batch reserved for Sales Order xyz"
Even if you make a mistake when entering the batch number same as Sales Order number when doing a goods receipt. It can still be traced and blocked during delivery.
Hint: The Batch table records the Goods Receipt transaction along with the BaseDocument number, Base Ref, etc
If you decide to go this route, I could help you further.
Let me know
Suda -
Delivery limit based on sales org
Hi Experts,
While creating sales order to the delivery. we need to restrict the quantity based on sales organization at delivery.
Can any one sugguest me any exit or badi any where we need to write the code.
Regards,
Srikanth.Try with USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1
G. Lakshmipathi -
Control Sales order Pricing Date with Delivery GI Date
Is it possible to have a control that ensures the Actual GI date in a delivery is not more than a number of days from the sales order pricing date?
Hi,
To have restriction in actual GI date in transaction VL01N . Please find the user exit for VL01N , you can use one which are marked as bold . Kindly take the help of abaper to put the validation or logic as required.
V02V0001 - Sales area determination for stock transport order
V02V0002 - User exit for storage location determination
V02V0003 - User exit for gate + matl staging area determination
V02V0004 - User Exit for Staging Area Determination (Item)
V50PSTAT - Delivery: Item Status Calculation
V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
V50R0001 - Collective processing for delivery creation
V50R0002 - Collective processing for delivery creation
V50R0004 - Calculation of Stock for POs for Shipping Due Date List
V50S0001 - User Exits for Delivery Processing
V53C0001 - Rough workload calculation in time per item
V53C0002 - W&S: RWE enhancement - shipping material type/time slot
V53W0001 - User exits for creating picking waves
VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)
Hope this will help you to resolve your issue!!!!
Regards,
Krishna O -
VL10C double delivery notes for one sales order
Dear all,
Currently we encountered an very strange issue in our SAP. we found that via VL10C, SAP create two duplicated ourbound delivery notes for one sales order, which resulted in a double items and amount in the billing document. These two deliveries notes are complete the same, which were created with 7 sec interval via VL10C. Check in the sales order, we can see delivery Qty was double against order Qty for all the items.
does anyone have a clue on this issue? your effort and feedback will be most applicated!
Thanks & Best Regards,
Kyo NGHi,
I forgot this possible cause. Check Note 61148 - VL04 VL02 AME807 AME815: Insert to table VETVG and related notes, specially Note 931297 - VL10x, VL10HU - Duplicate entries displayed in STO.
Regards,
Eduardo -
Sales Order / Delivery Document Report
Hi,
I currently am in search of a delivery report that will tell me the following:
Sales Order
Delivery #
Deilivery Item # and Material Number
Delivery Item Qty
Delivery Pick Qty and DAte
Delivery Actual Pick Qty and Date
Delivery Goods Issue Qty and Date
Delivery Actual Goods Issue Qty and Date
All i can find are txns VL06O and VL06F, but it doesn't show the actual pick and goods issue qty's. I'm only able to get the processing status on whether the goods issue has been processed, what i actually need is the qty's and their associated dates. Also, the sales order is not on this report. I basically need a report to show me what is in the pipeline for deliveries and what deliveries have been shipped (complete or partial) and processing status. Many thanks for your help. Best, Erik
Edited by: Erik Kraus on Sep 15, 2010 1:56 AMHi,
You have to make use of the tables VBAK, VBAP, LIKP, LIPS, VBFA, VBUK, VBUP tables to create a Z report for ur rqmt. There is no standard requirement which meets ur reqmt.
You can have a selection screen where you can select the sales order numbers or sales order status and so on. Based on that input, you can get the following data as output.
Sales order number -VBAK-VBELN
Delivery number - LIKP-VBELN found out using VBFA table by giving VBAK-VBELN value as VBFA-VBELV and getting VBFA-VBELN.
Delivery item/material : LIPS-POSNR and LIPS-MATNR
Qnty : LIPS-LFIMG
Unit of Measure - LIPS-VRKME
Goods issue date : Check LIPS-WADAT -
Change Sales Order, Delivery, Billings Reports
Hi Gurus,
Can any body please tell me is there any Report for change logs of Change Sales Order, Delivery,
Billings & Change report of Customer & Material,
Regards,
SaiHi,
There are no standard reports to display the changes made in the Sales orders and the details you had asked.
But for the latest changes you can check in the Table :Header details for change CDHDR and for Item details CDPOS
Or Based on your requirement you can go for a Customized Report
rgds
psk -
Delivery is more than sales order quanity
Dear all,
i m able to create delivery more than sales order quanity i want to restrict that one for ex sales order is 1 and i m able to create 10 and i m doing batch split too plz help me to resove the proble it shouldnt cross sales order quanity
regards,
debeshDear Debesh
Go to TCode 0vlp, (zero VLP) select the item category and execute. There maintain B for Check overdelivery and save.
Now retry to do overdelivery and post the outcome.
thanks
G. Lakshmipathi -
How to make Sales Order Delivery Date show 30days after Posting Date
I have problem programming the SBO 2005A- Sales Order Delivery Date automatically add 30 days based on Posting Date, in VB.Net.
Has someone tried it before ?Sorry i did not describe clearly.
I was developing vb.net with SAPBuiCom (UI API).
When Sales Order screen and the Delivery Date was empty. In my program i need to auto insert the Delivery Date field with 30days after the Posting Date.
And when user change the posting date, the delivery date will auto refresh.
KC
Maybe you are looking for
-
Questions regarding setup of new external drive in disk util?
Hello I just got a new HD and external enclosure i will be using for storage. The Drive is a 500gb seagate sata in an Thermaltake max 4 enclosure that is hooked up via usb to my macbook. Now I have a few questions about how to best to format the driv
-
According to the apple support website, I have to document my panic kernel in Apple Discussions (a lot of information). I hope to get an answer. *Documenting the problem: partitioning and formatting partition hard drive MacBook for use of Windows (Bo
-
7.1 ALC888 card downmix to 5.1 Soundsystem does not work.
Card: NVidia [HDA NVidia], device 0: ALC888 Analog [ALC888 Analog] It is a 7.1 onboard chip and i use a 5.1 Soundsystem. When i put xine to 5.1 output i got the backgound sound but no speach. With xine on 2.0 i can listen all. What is the best way to
-
Sales Order-Line Item Number Field not Appearing
Dear All I have an issue in which, in sales order, the field where I enter material, I am not able to see the line item number. For example; if the Material X is entered, I cannot see the item number as 10. Can I know what might be the problem. Thank
-
Upgrading iPhone how do I ensure I don't lose app data?
I'm about to upgrade my iPhone. How do I ensure I don't lose app data (ie angry birds scores) when this happens? Is any potential solution affected by the fact that my wife has her iPhone synced to the same computer as me and we share iTunes acct