How to produce different outbound delivery based on different schedule line
Hi,
I want to create different outbound delivery based on different schedule line time,but system automatically create a combining delivery document with a sum number.
For example,
schedule line
date goods issue time qty
2011.08.24 08:00:00 1
2011.08.24 10:00:00 1
when I create the outbound delivery, system create only one document with quantity 2.
But I need two documents with quantity 1 in every document.
How to solve this requirement?
Thanks.
Hi,
I viewed the item requirement in VOFM, found that they are status check for the copy control, not the split control.
Could you please give me a example?
In the copy control--header--conditions----order requirement ( or combination requirement )
They are like this :
(001)
bp_subrc = 0.
Check that reference document is an order (if not, issue error)
if cvbak-vbtyp cn vbtyp_auft. "Auftrag?
perform message_handling in program (programmname)
using cvbap-posnr
'003'
'E'
'VL'
cvbak-vbeln
space
space
space.
bp_subrc = 1.
check 1 = 2.
endif.
Check the status of the Fonds-Management
IF CVBUK-FMSTK EQ 'A'.
PERFORM MESSAGE_HANDLING IN PROGRAM (PROGRAMMNAME)
USING CVBAP-POSNR
'889'
'E'
'VL'
CVBAK-VBELN
SPACE
SPACE
SPACE.
BP_SUBRC = 1.
CHECK 1 = 2.
ENDIF.
Check that order is not blocked by the automatic credit check
if cvbuk-cmgst ca 'B' and
cvbuk-abstk ne 'C'.
Credit check is irrelevant for correction deliveries
if v50agl-sofauftrag eq charx and
tvak-lisof eq space and
likp-lfart eq tvak-korli.
else.
perform message_handling in program (programmname)
using cvbap-posnr
'060'
'E'
'VL'
cvbak-vbeln
space
space
space.
bp_subrc = 1.
check 1 = 2.
endif.
endif.
Check the user status from the order header
if not cvbak-objnr eq space.
call function 'SD_STATUS_VBAK_CHECK_INTERN'
exporting
i_objnr = cvbak-objnr
i_vrgng = vrgng_sddn
exceptions
allowed_with_warning = 01
not_allowed = 02
object_not_found = 03
others = 99.
if sy-subrc ne 0.
Fehler nicht bei MODKZ = '2' (Erlaubt mit Warnung)
if sy-subrc gt 1.
bp_subrc = 7.
Else ist nötig, da Routine mit "changing sy-subrc" gerufen wird
elseif sy-subrc eq 1.
bp_subrc = 0.
endif.
Check Global delivery flags
line deleted: "n_911988
perform message_handling in program (programmname)
using cvbap-posnr
sy-msgno
sy-msgty
sy-msgid
sy-msgv1
sy-msgv2
space
space.
Bei Fehler: Bedingung verlassen
check bp_subrc ne 7.
endif.
endif.
Similar Messages
-
How to creat a Data provider based on different fields in SAP BW ?
Hi,
Experts,
There are 20 fields of Plant Maintainace like :
SWERK
BEBER
STORT
TPLNR
EQUNR
INGRP
QMDAT ---peroid
STTXT
QMDAT - Date of Notification
QMNUM
QMTXT
QMART
AUSVN
AUZTV
AUSBS
AUZTB
AUSZT
ERNAM
QMDAB
AUFNR
I want to creat a Report based upon these fields ?
For that I h'v checked the relevant Fields to the existing standard Datasource in Bw side &
Checked cubes created based upon these Datasource in Bw side !
i h'v found some fields are existing different cubes & some are missing .
How to creat a Data provider based on different fields in SAP BW ?
plz suggest !!!!!!!
Thanx,
Asit
Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
Edited by: ASIT_SAP on Jul 15, 2011 12:37 PMHi Lee, Please see below..
DECLARE @Machine2 TABLE
DispatchDate DATE
INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
DECLARE @DateFrom DATE
SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
SELECT @DateFrom AS DateFrom
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
Dear Team,
Can you please help me by providing the BAPI name for creating the outbound delivery for Scheduling Agreement in SAP SD .
I faile to create outbound delivery with reference to scheduling agreement by using BAPI_OUTB_DELIVERY_CREATE_SLS.
The system says "missing data in the BAPI interface: VBAK VBTYP E". It seems another FM should be used for scheduling agreement only.
Thank you for your help in this regard .Hi Raghu.
As much as I don't want to do this but just to resolve this error I created an enhancement implementation in include LV50R_CREACSV form routine dcs_check_so_vs_interface and modified VBTYP to blank to avoid that error message.
Got the tip from this thread http://scn.sap.com/thread/1972059
Unless... anybody has a brighter idea (without modifying the standards)? -
Hi All,
Good Morning,
I am working on once Incident for Re-Scheduling Program V_V2 where the user has requested us to change the criteria for determining the priority of Sales Document based on Sort Item by date of creation. Currently they are using the Sort by delivery date of earliest schedule line in the Variant.
I would like to know the role these both options play in the Re-Scheduling program V_V2. I would like to know the impact of both of them and the kind of testing I need to perform to study the behaviour of Sales Orders especially when the material is out of stock?
Please explain with help of examples.
Thanks
Farhan.This is not that simple that an example would explain how this transaction works but I'll give you some examples.
Material A has SO1 and SO2 of 10KG each, stock is 20KG so both quantities are confirmed at today. A stock recount determines a reduction to 5KG. This program would change confirmed quantity of SO1 to 5KG and SO2 to 0KG if:
Creation date of SO1 is older then SO2 in strategy 1
1st delivery date of SO1 is smaller then SO2 in strategy 2
Material B has SO1 and SO2 with 10KG each but no quantity confirmed, stock is 0KG. A prodution adds 15KG to stock. The program would change confirmed quantities of SO1 to 10KG and SO2 to 5KG if:
Creation date of SO1 is older then SO2 in strategy 1
1st delivery date of SO1 is smaller then SO2 in strategy 2
I'm assuming a specific configuration, there are many other scenarios possible.
regards,
Edgar -
Link between Delivery and Sales Order Schedule Line
Hi Gurus,
I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
Report should be something like this
Sales Order Item Schedule Line Delivery Del Item Confirmed Order Qty
O1 10 1 D1 10 5
O1 10 2 D2 10 5
O1 10 3 D3 10 4
How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
Please help.
Regards,
GauravHi,
I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
Sale order Item Schedule line qty
SO1 Item1 Sch1 10
SO2 Item1 Sch2 10
Delivery Item QTy
DO1 IT1 15
DO2 IT1 5
In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
So I am not sure if you can establish a one to one link, please check with your SD consultants.
Regards,
Ashwin G -
Delivery block in the schedule lines.
Hi,
Mine is a MTO scenario. I am using planning strategy 50. So a planned order ---> production order will be created against MRP run against each sales order.
When i am placing a delivery block at the header the system is working fine. Its deleting the planned order(converted production order).
when I am placing a delivery block at the schedulle line its not working fine. its not deleting the underlined planned order or production order.
what configuration should I do to make this work.......Hi,
Look at the help (press F1) on the field confirmation block at SPRO-> Sales and Distribution ->Basic functions ->Availability check and Transfer of Requirements ->Tranfer of Requirements -> Block quantity confirmation in delivery blocks ->Reasons for and Scope of Delivery Blocks: Transfer of Req. blocks.
It looks applying delivery block at schdule line level will not delete the passed requirements. This is standard SAP behavior. If you want to change this nature, then you may need to use an User-exit.
Following is description given for the field confirmation block;
Confirmation block
Indicates whether the system, in addition to blocking delivery, also blocks the confirmation of order quantities after an availability check during sales order processing.
Example
You may want to block confirmation of sales orders where the creditworthiness of the customer is in question. In this case, you set the confirmation block for the delivery block that relates to credit problems. During sales order entry, when you enter a delivery block because of credit problems, the system, after you save the order, does not confirm any quantities for delivery. In this way, the goods remain available for other customers.
Note
If, before you save a sales order, you look at the schedule line overview, you can see what the system would confirm, if the block were not set. However, as soon as you save the sales order, the confirmed quantities are automatically reset to zero.
Dependencies
If you enter the delivery block at header level, the system transfers the desired delivery quantity for all schedule lines in the requirement. The confirmed quantity is deleted. This function is not available when you enter the delivery block at schedule line level.
Regards -
Creation outbound delivery based on subcontracting purchase order
Dear experts,
I have the following flow: I'm creating a subcontracting order with a number of component in a BOM. I need an outbound delivery for each subcontracting order (and I'm likely to have multiple subcontracting orders per vendor per day), with a link in the delivery of both the FG (to be produced by the subcontractor) or at least the subcontracting PO. I've already looked at the ME2O transaction but this one seems to consolidate everything to one delivery per vendor, without a link to the PO.
An aditional requirement is that we need to be able to do a mass-creation of the deliveries,
Thanks in advance,
Mthe delivery of components to a subcontractor has no relation to a subcontract order in core SAP.
Such feature is only possible with the new AD_SUBCON enhancement if I am not mistaken -
Is it possible to add item in Outbound delivery from a different STO
Hi experts
I have a question regarding adding an item in delivery from different STO.
we create outbound deliveries from STOs and at times we have all conditions same for shipping and we need to add another item in delivery from a different STO.
I am not getting an option in VL02 to ad another item with reference to STO, is it possible to create delivery by adding another item from STO?
Thanks & Regards
AnandYou can combine STOS in to one OB delivery if they are all from teh same plant. You could use the customer master >> order combination indicator
-
How to batch create outbound delivery.
hi:
i created the outbound delivery via t_code:vl01n,then select the
pick up and input the quantity of every materials,finally hit post
document.according to process as above,the speed is very slow.i want
to batch process it and not need input the pick quantity of material
singly .help me .HI:
THANKS FOR YOUR reply.the vl12,it can only generated the Outbound delivery document,it cann't generated document of the Picking request / GD goods issue.i want pick up the material batch and need not manunally maintain the quantIty of materails.
help me.
best regards. -
How to create an outbound delivery for an repair order (RA)
Hi Guys,
Please let me knoe the steps to outbound delivery. Now, i have created repair order and inbound delivery, request you to explain on further stps.
Thanks in advance.
ShankarHi,
Refer this link:
http://help.sap.com/saphelp_erp2005/helpdata/en/0d/fa0a415e37d349e10000000a1550b0/frameset.htm
Regards,
Gayathri -
Help! how to create an outbound delivery from a project using a FM/BAPI?
Hi,
I need help to find a BAPI or FM which can be used to create an outbound delivery from a project similar to tcode CNS0?
The following data will be used in creating the outbound delivery from a project:
Project definition
WBS Element
Network
Shipping Point
Ship_To_Party
Plant
Storage Location
Planned Goods Movement Date
Delivery Type : LP
Sales Organization
Distribution Channel
Division
Item Number
Please help me find the appropriate BAPI or FM to create the delivery from project.
Any help on this would be greatly appreciated.
Thank you.
with regards,
Muthu Ganapathy.Hi Ferry Lianto,
Thank you for your response. Do you have a sample code to call this FM? Or can you please provide me what all parameters I need to pass to create delivery from project? My input parameters are as given below:
Project definition
WBS Element
Network
Shipping Point
Ship_To_Party
Plant
Storage Location
Planned Goods Movement Date
Delivery Type : LP
Sales Organization
Distribution Channel
Division
Item Number
Please help me on this.
Thank you.
with regards,
Muthu Ganapathy. -
Required Delivery Date vs. Schedule Line Date vs. Calendar
Hello Experts,
The Factory Calendar shows that Monday to Friday are the only working days. Now, the user created a sales order and manually entered a date that falls on a saturday. As a result, the schedule line dates were all set on saturday. Availability check is in place and stocks are available.
My question is: Why did the system proposed saturday as the schedule line date when the calendar shows saturday is not a working day? Am i correct to conclude that the manual entry in the required delivery date in sales order is the priority in determining schedule line date? Your inputs on this scenario would be highly appreciated.
Best Regards,
GeneEven though Sat is a holiday, the system will propose a CSL and confirm the stocks but the delivery would be created only the next working day. This is controlled by the factory calendar.
Now, the system confirms based on the stock availability on that day, this does not mean the delivery would be created the same day. For delivery creation the factory calendar comes into play and the lead times are calculated based on the calendar.
Regards. -
Delivery date in PO schedule lines not equal to delivery date in PO confirm
Hello expert.,
I use PO with account assignment E for sales order purchasing coming from a TAB sales order category. In the PO I have schedule lines define according to the lead time from the materila masetr of the info records. The schedule lines in the PO update automatically the schedule lnes in the sales order and therefore the planning on the sales and delivery side is done according to the delivery date indiacte in the schedule lines of the PO (table EKET).
I use also inbound deliveries to indicate when the goods arrive. At that time, I can realize that the lead time / the quantity delivered by the vendor does not correspond to what was palnned in the schedule lines of the PO. When I save the inbound delivery, the confirmation is indicated in the PO in the PO confirmation tab with the delivery date equal to today (table EKES).
The issue I have is that the schedule lines of the PO is not in line with what is in the confirmation tab for both the quantity and the date. Therefore, even though I have goods arrived that could be delivered to the final customer earlier, the system doesn't recognize it because the schedule lines in the PO remain with the original planned date and quantity and as a consequence also in the sales order schedule line.
Does anybody can give me a way, a trick or a mechanism to align the delivery date and the qauntity in the PO between the schedules lines tab and the confirmation tab?
Thanks a lot for your support.
ALJ
Edited by: Andre Louis Jadot on Nov 26, 2010 8:15 AMDear,
This is very intersting.
Delivery date is come in purchase order from plant delivery time (MRP2) in material master.
Exa:
If you enter plant delevery time as 10 days in MRP2 of material master.
So system calculate delivery date as under.
Plant delivery time : 10 days.
PO creation date : 08.05.08.
System consider delivery date 21.05.08
System add 3 days in your plant delivery time.
So 3+10 = 13, Delivery data:- 08.05.08 + 13 = 21.05.08.
Please check it in your quality client, If it is useful for you please revert back with points.
Regards,
Mahesh Wagh. -
Change delivery block in order schedule line
I use badi "BADI_SD_SALES" method "SAVE_DOCUMENT_PREPARE" to change delivery block in schedule line. I change field fxvbep-lifsp and I change table fxvbep the I add or I change line in table fyvbep. It work fine when I create the order but not when I make a change. May be I have to use another exit.
Help required,Hi Daniel,
In change mode.. (Mean when you change the sale order).. Just do the changes in FXVBEP table only.
As per my knowledge, The FX*** and FY*** are used to find the delta changes in the document and these changes will get updated in change document history and the same will be updated in database.
In the change mode, when you do the changes to both the tables, the delta will not be there and may be the delivery block not updated.
Try doing change in FX table only.
Regards,
Sai -
FM which give delivery no of a schedule line of sale order
Can anybody tell whether there is a function module or any method to find a delivery no and item no of a particular schedule line of item no of a sale order. pls its urgent.
Hi
Simple pass the VBEP-VBELN (sales Order) to LIPS-VGBEL and
Scheduline Item VBEP-POSNR to LIPS-VGPOS and get the LIPS-VBELN ie. delivery number
why fun module required.
I think there is no such fun module
Reward points if useful
Regards
Anji
Maybe you are looking for
-
Is it possible to synch multiple iPods to one iTunes library?
Hi -- I had an old Windows XP machine sitting around with a pro sound card, so I put a 1 TB SATA drive in it and use it as my iTunes machine in my living room. The plan is to put ALL of my 1400+ CD collection into iTunes as full-fidelity WAV files (y
-
Shell script for archive log transfer
hi I dont want to reinvent the wheel. I am looking for shell script for log shipping to provide standby db. What I want to do is, get the last applied archived log number from alert.log Copy the files from archive destination according to this value.
-
Procedure to generate invoice in xml---please help
Hi all, I have to write code review of a pakage which contain procedure to generate invoice in XML.The procedure contain two files .pkb and .pks.All i know is that it will deliver elemt of the post script layout.?But i dont understand what it mean no
-
Hi all, i have to retrive a handling Unit No.(vekp-exidv) using the input as P.o(lips-vgbel). The relation ship between these two tables is that i have a delivery no.(vbeln). In tables (lips-vbeln)delivery is same as of that vekp-vpobjkey. please su
-
How to set H align of title for columnGroup
Hi advancedTable has columnGroup and this columnGroup has two different columnGroups as child. The title of top columnGroup is located at left side however thoes of two children(columnGroup) are at center. I want to place the title of top columnGroup