Need to Create delivery on the basis of sales order and schedule line
Hi,
I need to create delivery on for sales order which is splitted in schedule line number (ETENR).
I am using FM RV_DELIVERY_CREATE and passing sales order number with single line item at a time for different (schedule line) VBEP-ETENR. but it is creating the delivery for all schedule line items in first time only and in second loop it is not returing any thing even error. can any one please suggest me urgently what can I do for it.
Hi Ankit,
You will have to create your own program to do this.
There is no standard way todo this.
Best regards,
Ramki
Similar Messages
-
Need of User-Exit in the creation of Sales Order(VA01)
Hi,
In the creation of Sales Order, I need to Compare the Ordered Quantity and Confirmed Quantity. If the CQ is less than OQ I need to create one more line item with the same material for the rest of the quantity and send the request to Production order for the remaining quantity. For this I am unable to get the exact exit. Please help me in this regard ASAP.
Thank you.the following program are the user exit for billing.
we often use RV60AFZC and RV60AFZZ.
RV60AFZA
RV60AFZB
RV60AFZC
RV60AFZD
RV60AFZZ
RV60BFZA
For Sales order
Pricing, item addtion deletion
MV45AFZZ
First, I did not find documentation for the BADI either. But at the first glance the process of implementing it looks quite straightforward. I assume you run R/3 Enterprise (4.7). So, you should implement BADI 'BADI_SD_SALES' - this must be done in transaction SE19. In particular for the purpose of adding some additional items into sales document I would implement method SAVE_DOCUMENT_PREPARE. This method has changing table parameter FXVBAP of type VA_VBAPVB_T - it holds all the sales document items. Just add items of yours to it. Certainly, you have to fill all the appropriate fields carefully.
Hope this helps somehow.
In that case you should use USEREXIT_DOCUMENT_SAVE_PREPARE subroutine (form). As far as I remember it has no parameters. To add items to the sales document you should modify internal table XVBAP.
regards
vinod -
Link between delivery line item and sales order item schedule line.
Hello friends,
This is a continuation of my earlier query - for which I got half the solution, and this is the remaining problem.
I want to know: from delivery document line item, how to link it to sales order line item's schedule line (when there are multiple schedule lines with identical quantities).
Thanks for your help.
- ChetanThis is the code which i used for the same purpose and its working.
Hope this will help you too....
****it_itab is my final internal table.
*Internal table for manupulating the Delivery balance when
*its used in more than one schedule line
TYPES: BEGIN OF ty_new,
vbeln TYPE vbep-vbeln," so no
posnr TYPE vbep-posnr," so line no
etenr TYPE vbep-etenr," schedule line
delno TYPE lips-vbeln,"delivery no
delposnr TYPE lips-posnr,"del item no
totval TYPE vbep-wmeng," total del wise value
val TYPE vbep-wmeng," del wise used value
sdval TYPE vbep-wmeng,"schedule wise del used value
sdtotval TYPE vbep-wmeng," total Schedule value
END OF ty_new.
DATA:it_new TYPE ty_new OCCURS 0,
wa_new TYPE ty_new.
DATA: it_vbepvb TYPE TABLE OF vbepvb,
wa_vbepvb LIKE LINE OF it_vbepvb,
fvbfa TYPE TABLE OF vbfa,
fvbup TYPE TABLE OF vbup,
fvbap TYPE TABLE OF vbapvb.
LOOP AT it_vbak INTO wa_vbak.
LOOP AT it_vbap INTO wa_vbap
WHERE vbeln = wa_vbak-vbeln.
SELECT * FROM vbfa INTO TABLE fvbfa WHERE vbelv = wa_vbap-vbeln
AND posnv = wa_vbap-posnr.
SELECT * FROM vbup INTO TABLE fvbup WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
SELECT * FROM vbap INTO TABLE fvbap WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
SELECT * FROM vbep INTO TABLE it_vbepvb WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'
EXPORTING
fbeleg = wa_vbap-vbeln
fposnr = wa_vbap-posnr
FVERRECHNUNG = ' '
FS073_ALT = ' '
IF_NO_SORT = ' '
TABLES
fvbfa = fvbfa
fvbup = fvbup
fxvbep = it_vbepvb
FVBLB =
fvbap = fvbap
EXCEPTIONS
FEHLER_BEI_LESEN_FVBUP = 1
FEHLER_BEI_LESEN_FXVBEP = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT it_vbepvb BY vbeln posnr edatu.
LOOP AT it_vbepvb INTO wa_vbepvb
WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
to write data of schedule line with no delivery
MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.
IF wa_vbepvb-bmeng EQ wa_itab-openqty.
CLEAR wa_itab.
PERFORM schedule_data. "schedule line based data to be displayed
MOVE: wa_vbap-lgort TO wa_itab-lgort.
MOVE: wa_vbepvb-etenr TO wa_itab-etenr,
wa_vbepvb-bmeng TO wa_itab-kwmeng,
wa_vbepvb-olfmng_flt TO wa_itab-openqty.
APPEND wa_itab TO it_itab .
CLEAR wa_itab.
ENDIF.
LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_vbepvb-vbeln
AND posnv = wa_vbepvb-posnr.
READ TABLE it_likp INTO wa_likp WITH KEY vbeln = wa_vbfa-vbeln.
CHECK wa_likp-bldat >= wa_vbepvb-edatu.
check the Delivery doc date with the schedule line confirmed date
CLEAR: delbal, deltot,wa_new.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND etenr = wa_vbepvb-etenr.
deltot = deltot + wa_new-sdval.
ENDLOOP.
delbal = wa_new-sdtotval - deltot.
CHECK sy-subrc <> 0 OR delbal GT 0.
MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.
CHECK wa_vbepvb-bmeng NE wa_itab-openqty.
****To check whether this delivery is already fully allocated against
any other schedule.
LOOP AT it_lips INTO wa_lips WHERE vbeln = wa_vbfa-vbeln
AND posnr = wa_vbfa-posnn.
MOVE: wa_likp-bolnr TO wa_itab-vesname.
MOVE: wa_likp-vbeln TO wa_itab-delno.
MOVE: wa_likp-wadat TO wa_itab-wadat.
MOVE: wa_likp-anzpk TO wa_itab-anzpk.
MOVE: wa_likp-lddat TO wa_itab-lddat.
MOVE: wa_likp-ernam TO wa_itab-ernam.
******end of code added by IVL1 on sep 27 2007 #3618
PERFORM schedule_data.
IF wa_lips-umvkz <> 0.
tempquant = wa_lips-umvkn / wa_lips-umvkz.
ELSE.
tempquant = wa_lips-umvkn. "delivery qty
ENDIF.
tempquant = tempquant * wa_vbfa-rfmng.
***New logic added to get delivery qty schedule wise****
MOVE: wa_vbepvb-etenr TO wa_itab-etenr,
wa_vbepvb-bmeng TO wa_itab-kwmeng,
wa_vbepvb-olfmng_flt TO wa_itab-openqty. "jo
**if delivery qty is less than or equal to schedule line qty******
IF tempquant LE wa_vbepvb-bmeng.
wa_itab-delqty = tempquant.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND etenr = wa_vbepvb-etenr
AND delno = wa_lips-vbeln
AND delposnr = wa_lips-posnr.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_new-delposnr = wa_lips-posnr.
wa_new-val = tempquant.
wa_new-totval = tempquant.
wa_new-sdval = tempquant.
wa_new-sdtotval = wa_vbepvb-bmeng.
MODIFY TABLE it_new FROM wa_new .
IF NOT sy-subrc IS INITIAL.
APPEND wa_new TO it_new.
ENDIF.
ENDLOOP.
IF sy-subrc <> 0.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_new-delposnr = wa_lips-posnr.
wa_new-val = tempquant.
wa_new-totval = tempquant.
wa_new-sdval = tempquant.
wa_new-sdtotval = wa_vbepvb-bmeng.
APPEND wa_new TO it_new.
ENDIF.
wa_itab-delqty = tempquant.
CLEAR tempquant.
ELSE.
lips qty > so schedule lineqty
CLEAR deltol.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND etenr = wa_vbepvb-etenr
AND delno = wa_lips-vbeln
AND delposnr = wa_lips-posnr.
deltol = deltol + wa_new-val.
ENDLOOP.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND delno = wa_lips-vbeln
AND delposnr = wa_lips-posnr.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_new-val = wa_new-totval - deltol.
wa_itab-delqty = wa_new-val.
wa_new-delposnr = wa_lips-posnr.
wa_new-totval = tempquant.
wa_new-sdval = wa_new-val.
wa_new-sdtotval = wa_vbepvb-bmeng.
MODIFY TABLE it_new FROM wa_new .
IF NOT sy-subrc IS INITIAL.
APPEND wa_new TO it_new.
ENDIF.
ENDLOOP.
IF sy-subrc <> 0.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_itab-delqty = wa_vbepvb-bmeng.
wa_new-delposnr = wa_lips-posnr.
wa_new-val = wa_vbepvb-bmeng.
wa_new-totval = tempquant.
wa_new-sdval = wa_vbepvb-bmeng.
wa_new-sdtotval = wa_vbepvb-bmeng.
APPEND wa_new TO it_new.
ENDIF.
ENDIF.
IF NOT wa_lips-lgort IS INITIAL.
MOVE: wa_lips-lgort TO wa_itab-lgort.
ELSE.
MOVE: wa_vbap-lgort TO wa_itab-lgort.
ENDIF.
APPEND wa_itab TO it_itab .
CLEAR wa_itab.
ENDLOOP.
ENDLOOP.
CLEAR wa_vbepvb.
ENDLOOP.
ENDLOOP.
CLEAR wa_vbak.
ENDLOOP. -
Add new payment term base on sales order contract date and shipment date
Dear Sir/Madam,
My company need to create new payment term base on sales order's contract date and shipment date.
the first time is 30% made in T/T within 30days from contract signed date.
the second time is 70% made in T/T before shipment.
I don't know how to configuration this payment term base on that both date, who can tell me ,thanks very much!
Best Regards
Danny ZhangHi,
You have to define the PAYMENT TERMS as per days and Percentage.
Define the Payment terms in the transaction OBB8 and assign this payment terms in the CUSTOMER MASTER and will be copied to the SALES ORDER from the customer master
In the MATERIAL MASTER in the SALES ORG 1 view you have to check the field CAHS DISCOUNT In the Pricing procedure you can defin the CASH DISCOUNT condition type ( in standard there are two SKTV & SKTO)
Now process the sales order and check
regards, -
How to create Deliveries with lesser quantity than sales order quantity
HI all,
I have one Scheduling Agreement SCHDMNT1 with ITEM A and Qty 100. Now i want to create 2 deliveries against this Agreement i.e DEL1 - ITEM A QTY 40 and DEL2 - ITEM A QTY 60. How to aceive this while manually entering the deliveries. What are the settings required. I also want to create such multiple deliveries against one Sales Order. What are the Configurations required to aceive this functionality.Replies will be highly appriciated.
Thanks and Regards,
Manish Khare.Hi,
In the customer master, you have to select more than one delivery allowed.
While creating delivery with reference to your sales order, the total quantity will be copied to delivery, just the change the delivery quantity and picking quantity that u want to deliver and do the PGI.
Against reference the same SO, now the remaining qty will default in the delivery. In this way u can have multiple deliveries for the same SO.
Hope this helps.
Thanks,
Viswanath -
What table where i can find the errors in Sales Order
hi,
what table where i can find the errors in Sales Order. here's my situations, I need to create a abap report of CRM sales order not replicated to R/3 and show what's the error. I can't find the actual error in CRMD_ORDDERADM_H and CRMD_ORDERADM_I. I also tried calling program "CRM_ORDER_READ" but the program doesn't display/returns error's on header and item level.
please help.
earl g. farenhi,
what i need is a table where i can find the sales transaction errors. I'm doing a abap report to list down sales transactions with error(s). I checked the table CRMD_ORDERADM_H and CRMD_ORDERADM_I but there's no field for transaction errors.
please help me find a table where I can link the tables above to get the specific errors for a sales transactions.
thanks alot. -
Abap Report including sales orders and delivery data.
Hi Experts,
I Want to develop a new abap report which would contain the data for sales orders and delivery.
I want to fetch all the sales orders based on the ship date (LIKP-WADAT_IST) of the delievry.
Could anyone please let me know how to fetch teh data or is their any function module which would help me to solve my problem.
<Removed by moderator>
Thanks,
Komal.
Moderator message : Spec dumping not allowed. Thread locked.
Edited by: Vinod Kumar on Aug 10, 2011 1:25 PMpost this in ABAP forum for quicker response.
Regards
Raja -
Disable the characteristic window in sales order and user-exit to pick up
Hi Freinds,
I am working on 1 VC assignment in which
1. I have to pick up the characteristic values selected in VA02 in sales order before saving the change sales order.
2. I have to Disable the characteristic window (with characteristic name and value) appear after click on u2018item detail : configurationu2019 button in sales order (if the chracterstic say 'Approval' having the value 'Yes')
3. I have to disable the characteristic window after selecting the one of the characteristic value to 'Yes' in VA02
So I need to fetch this character value witnin sales order before saving the change sales order and need to restrict the user to change any other characteristic value(disable the characteristic window) .
Please guide for any user exit at configuration side to export and import the values in sales order and disable the characteristic window to restrict the user from changing any other characteristic value for the item.
Please do the needfull.
Best Regards,
Vikram ChavanHi,
Check....
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Reward points if useful....
Regards
AK -
When manually creating delivery notes, the Actual GI time ?
Hello,
When manually creating delivery notes, the Actual GI time (used for pricing determination) is set to the document creation time (CPU time) but expressed in the UserId's local time zone.
Regards,
NeelHello Ram
Please help me out to solve this issue
When manually creating delivery notes, the Actual GI time (used for pricing determination) is set to the document c
Creation time (CPU time) but expressed in the UserId's local time zone.
The correct Actual GI time should be the CPU time in CST time zone, independant of the user.
The Delivery doc. was created on 04/20/2011 at 11:11:32 UserId's local time zone (CET).
The Actual GI time was set per default to 11:12 based on CET CPU time the expected time is 04:12 CST
Edited by: neeljasani on Apr 27, 2011 5:20 PM -
Hi Everyone
I want to create return but linked to original sales order where the material was delivered in the first instance, I don’t want to create other sales order (to return) with references to the original, and then other sales order to be delivered again (replacement).
Example
SALES
1. Create a sales order number 33 with 10 Ton
2. The delivery is linked to sales order 33 just with 8 Ton
3. Invoice is created linked to the delivery with 8 Ton
4. Sales order number 10 pending qty is 2 Ton
RETURN
5. We would like to link the return delivery to the sales order, 5 Tons will be retuned
6. Credit memo is created
7. Sales order number 10 pending qty update to 7 TonThe only way is to change the item categories in the delivery.
Create the delivery wrt the original sales order.
Change the item category(In the config make sure the return is checked)- But I think you need to do some changes in the user exit to enable the item category in the delivery)..
The other option is to have a return order document(type RE) and then create the return delivery for this document. In the copy controls you can maintain the return item categories while creating the return order from sales order..
Thanks -
Create the deliveries based on the Qty in Sales Order
Hi,
I have a requirement where in i need to created the Deliveries equal to the number of quantities in the sales order.
Example:If i have a sales order with quantity 4 then i should create 4 deliveries separately.
How can i achieve this?
Any exits pls advise.
Thanks .
Muraghendra DMuraghendra,
One gentleman by name Yash had a similar query on Oct 5, 2006. I had given the following reply:
If you want to do it without lot of programming, then VLSP is the way to go. Here is how you can do it using VLSP.
Once the Delivery is created, it needs to be packed. You can setup the a pkg material (say a Pallet) with allowable weight in the material master to automatically create as many handling units as the qty in the Delivery. Then use VLSP to split based on the handling units.
Here is one more tip, if you want to do some programming. Use the Delivery user-exit to change the delivery qty always to 1. Run RVV50R10A multiple times (assuming you will not have qty more than 4 / 5 ).
If the qty will be more than 5, then consider triggering an WF from the Delivery user exit (after checking for remaining qty) to create Delivery for the same SO.
Hope this helps.
Regards,
Anand -
Changes Allowed on the 3rd Party Sales Order when PO is created
Hello,
We have a requirement to change the Sales Order even if the PO is already created for teh 3rd party order. I am not sure which fields and what changes can we do if the PO is already created for the 3rd Party sales order.
Can you please guide me in pointing to the configuration or any user exit that we can control the field changes on the 3rd party sales order when teh PO is already created.
Thank you!
ChandrakantVenu,
FIRST ANSWER THE BELOW TWO QUESTIONS.
1. Did you understand what Shiva has mentioned?
He has clearly mentioned that you can change the PO qty and in standard it self the same PO changed qty will be reflected in Sales order schduline lines qty, and he also mentioned that if this is not happening then advised to refer the Note 1361281.
2. Did you read the note?
It says that It will occur if the sales order line item is part of the delivery group or if you have set the complete delivery indicator for the sales order. And it also advised to apply the program code to over come the issue.
Please note: before commenting others just check once in system then talk, don't just blindly through the ball, it will not have good results.
Before also mentioned the same, but you still repeating the same.
Sorry Moderators that i have mentioned some lines in the Note here.
thanks,
Srinu. -
Creating a delivery note based on a sales order in SBO2005
Hi
I am using the diapi to create a delivery note based on a sales order. Everything works well apart from I have 3 user defined fields on the sales order lines, 2 numeric and one which is a combo box.
The 2 numeric values as copied across ok but the combo is not.
I don't know what the delivery number is as I guess SAP assigns that after I save the delivery note.
Can anyone help me with this please ?
Regards AndyHi Paul & Gilbert,
As you assumed, the docentry is created at the moment when you are saving the document.
The docentry for the last created document can be retrieved from the Company object. There are two alternative methods for this: GetNewObjectCode and GetNewObjectKey. Please see the DI API reference for more details. These are the only reliable way to get the last created docentry. A query might work nicely in 95% of the cases, but in a multi-user environment it will sooner or later produce incorrect results.
Henry -
I bought a used iPhone on ebay. when I try to activate it, I get a message that the owner needs to sign in to the device with their appleID and password. I have no way of knowing who the owner is. How can I get around this?
Check the eBay listing. Did it state the device was Activation Locked? If not, then make a claim as Meg stated and get a refund. You will not be able to activate the phone and no one can help you contact the owner, unless that is the person that sold the device. If they cannot remove the phone from their account because it is not theirs, then refund is your route. Even Apple cannot assist with locating the previous owner.
-
Reg: How to view the PR on the basis of Re-order point based PR
Hi All,
How can i view the Purchase requisition on the basis of Re-order point based PR.
Thanks & Regards
Kannan SomasundaramGo to Transaction code ME53N
Under Item Detail find the Tab "Contact Person "
from that you can find Creation Indicator , which is generally B Material Requirement Planning for Re order level planning operation done through planning.
For report You can look at transaction code : ME5A
You can look at Table EBAN and field : ESTKZ
Edited by: sudhansu satapathy on Mar 18, 2010 9:04 AM
Maybe you are looking for
-
PDF conversion into xml sometimes scrambles text
I've been using the "save as" function in Acrobat Pro 9 to convert PDF documents into xml text transcripts, but all too often that text comes out scrambled: instead of working within the column divisions on the page, the Acrobat conversion process wi
-
The first page of the Iphoto book is setup for text. When I insert what appears to be an appropriate amount of text, I receive the the red exclamation point. I have tried shrinking the font, reducing the amount of text and starting over with a clea
-
To avoid duplicate values in DrowpDownByIndex
hi Iam calling an RFC ,it's output is as following column 1 column2 A 2 A 3 A 42 B 34 B 3 B 11 B 0 Iam displaying these values in two combo
-
Hi All, What are the month end activities in FICO ? Thanx Andy
-
InDesign document window blinking!
Document window keeps blinking interrupting workflow. Thought it was a CC 2014 bug but I went back to ID CC and it started again. It's driving me crazy. The border of the window blinks and causes a hesitation in whatever you're trying to do. I can't