Create correction delivery
Hi,
I need help at creating a correction delivery.
To create a correction delivery manually go to transaction VA32, select a scheduling agreement and go to the forecast delivery schedule view. Here you can press the button "Corr. delivery". Enter a date and an amount and submit. After saving the scheduling agreement the correction delivery can be found in the document flow.
This process (create a correction delivery) I want to do automatically. Do you know a BAPI or something else for this process?
I try different function modules for creating an outbound delivery without success. Also it is not possible to create a correction delivery (type LFKO) manually in transaction VL01N.
Thanks
Andrea
Hi,
thanks for your reply.
The WS_DELIVERY_* function modules have no input parameter to change the cumulative delivered quantity or to create a correction delivery with reference to the scheduling agreement.
The function modul BAPI_OUTB_DELIVERY_CREATENOREF I canu2019t use because I need the reference to the scheduling agreement.
When I try function module BAPI_OUTB_DELIVERY_CREATE_SLS I get the error
E V50R 051 Fehlende Daten in der BAPI-Schnittstelle: VBAK VBTYP E (Missing date in BAPI interface)
because the type of the scheduling agreement (E) is checked. This function is not allowed for type E and F.
(Standard Code u2013 Program SAPLV50R_CREA Form DCS_CHECK_SO_VS_INTERFACE Line 72+)
* any order types which are not allowed? -------------------------
loop at ix_sd_orders-vbak assigning <ls_vbak>
where vbtyp ca 'EF'.
clear ls_mess.
ls_mess-msgid = 'V50R'.
ls_mess-msgno = '051'.
ls_mess-msgty = 'E'.
ls_mess-msgv1 = 'VBAK'.
ls_mess-msgv2 = 'VBTYP'.
ls_mess-msgv3 = <ls_vbak>-vbtyp.
append ls_mess to ct_mess.
if 1 = 2. message e051(v50r) with space space space space. endif.
cf_subrc = 1.
exit.
endloop.
Any other ideas?
Thanks!
Similar Messages
-
Unable to create Correction Delivery for Sales Agreement
We are having the issue of not being able to create correction deliveries for ceartain Scheduling Agreements. I enter in a valid scheduling agreement number into transaction VA32, click the "JIT DlSch" button, click "Corr. Delivery" button and then enter in a date and quantity.
After I hit "Save" button, I am taken back to the initial VA32 screen and see the following message...
Sched. Agr. w/ Rel. ####### has been saved (no delivery created)
Message no. V1261
Does anybody have any insight to why this is happening? Thanks in advance.
MikeHi,
What is the Correction Delivery Type that you used? Please check in the definition of Sales Document VOV8 (Scheduling Agreement) in 'Corr. delivery type' field under 'Scheduling Agreement' section.
And also, please refere to the links below. These may provide you with some additional information:
http://help.sap.com/saphelp_45b/helpdata/en/4b/3f4486a38a11d194e900a0c9306794/content.htm
http://help.sap.com/saphelp_46b/helpdata/en/35/b0e85787a62488e10000009b38f9b7/content.htm
Regards,
Raja -
How to create correction delivery in schedule agreement
Hi all -
I am loading legacy data into SAP and am creating schedule agreements. I create the agreement using SD_SALESDOCUMENT_CREATE, then COMMIT, then update the schedule lines using BAPI_SALES_DEL_SCHEDULE_CREATE also followed by a COMMIT. This works, and creates the schedule agreement with schedule lines.
At this same time, or even in another BAPI or function call if need be, I need to create a CORRECTION DELIVERY for this schedule agreement. I am populating the CORR_***_QTY_IN and CORR_***_QTY_INX in BAPI_SALES_DEL_SCHEDULE_CREATE with values in every field, and the return tells me 'CORR_CUMQTY_IN has been processed successfully', but when I look at the schedule agreement in VA32, there is no ***. issued qty or ***. delv qty, and no correction delivery has been created.
What am I missing??
Thanks so much...
SharonHi Shyam -
I am calling the BAPI_TRANSACTION_COMMIT function right after the BAPI_SALES_DEL_SCHEDULE_CREATE function. When I call that create function, I am adding schedule lines, so my return table has all of the other successful messages you would expect -
ORDER_HEADER_IN has been processed successfully
CORR_CUMQTY_IN has been processed successfully
DEL_SCHEDULE_IN has been processed successfully
SCHEDULE_IN has been processed successfully
Sched. Agr. w/ Rel. 1030000058 has been saved.
It even says the corrective *** qty was successful....but when I open the schedule agreement, and go to the Forecast Delivery Schedule tab on the line item, the Cml. iss. qty and Cml. dlv. qty fields are blank, and there are no deliveries associated with the order.
Do I have to use a seperate BAPI to create the correction delivery? I've looked at BAPI_OUTB_DELIVERY_CREATE_SLS, but I don't see how to specify that this is a correction delivery and not a 'regular' delivery.
Thanks,
Sharon -
Scheduling agreement cancel correction delivery
Hello,
I created a correction delivery by mistake in a Scheduling agreement. I tried to search a procedure for my case, but I did not find what I am looking for.
Can anyone suggest me what should I do to correct the wrong correction delivery?Hi Joseph,
Create another correction delivery with the same Qty but now with the opposite sign. Say you have created correction delivery for 25 PCs then you now have to create the correction delivery with -25 PCs. Please ensure that you enter the same date as you entered earlier, else it may affect your Cumulative Qty..
Thanks,
Pushparaj -
Unable to create single delivery through scheduling agreement - MM37
Dear All,
In our scenario, we are creating scheduling agreement with tcode - ME37 for multiple material and for each material we create multiple delivery creation date schedule with past date (ME38).
Then we create delivery with VL10D, we put scheduling agreement number in purchase order tab - purchase order field & Execute.
It creates multiple deliveries but we want to have single delivery.
We implemented SAP note - 377501 , but is is still not working.
Kindly advice,
Regards,
Bhushan.Dear Lakshmipathi,
Thanks for your reply.
Yes, I searched the forum & got list of reasons for delivery split but wasn't able to identify exact reason.
But first I want to confirm,
1. Whether is it correct process to create delivery through VL10D for scheduling agreement (ME37) ?
2. Also to overcome delivery split, we implemented SAP note - 377501 but did not worked.
Therefore I am thinking to implement SAP Note - 386340, Kindly advice.
Regards,
Bhushan. -
Issue while creating Outbound Delivery using Standard BAPI
Hi all,
I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?
Regards,
Vimala PHi Vimala,
I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.
1) Delivery Type
2) Delivery selection date
Needs to be passed in import parameters.
Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?
Thanks in Advance..
Regards,
Rajasekar .M -
ABAP dump(SAPSQL_ARRAY_INSERT_DUPREC) while creating a delivery
Hello Friends,
I am getting the dump while creating the delivery .The error details are as follows.
The ABAP/4 Open SQL array insert results in duplicate database record
What happened?
The current ABAP/4 program "SAPLV05I " had to be terminated because
one of the statements could not be executed.
How to correct the error
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"SAPSQL_ARRAY_INSERT_DUPREC"
"SAPLV05I " or "LV05IU15 "
"SD_PARTNER_UPDATE"
Source code extract
004500 POSNR = I_XVBPA-POSNR
004510 PARVW = I_XVBPA-PARVW.
004520 IF I_YVBPA-STCD1 <> I_XVBPA-STCD1 OR
004530 I_YVBPA-STCD2 <> I_XVBPA-STCD2 OR
004540 I_YVBPA-STCD3 <> I_XVBPA-STCD3 OR
004550 I_YVBPA-STCD4 <> I_XVBPA-STCD4 OR
004560 I_YVBPA-STCDT <> I_XVBPA-STCDT OR
004570 I_YVBPA-STKZN <> I_XVBPA-STKZN OR
004580 I_YVBPA-J_1KFREPRE <> I_XVBPA-J_1KFREPRE OR
004590 I_YVBPA-J_1KFTBUS <> I_XVBPA-J_1KFTBUS OR
004600 I_YVBPA-J_1KFTIND <> I_XVBPA-J_1KFTIND.
004610 MOVE-CORRESPONDING I_XVBPA TO WA_XVBPA3I.
004620 APPEND WA_XVBPA3I TO DA_XVBPA3I.
004630 ENDIF.
004640 ENDIF.
004650 ENDIF.
004660 WHEN UPDKZ_OLD.
004670 IF DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_OLD OR
004680 DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_ADRC.
004690 YADR-ADRNR = DA_VBPA-ADRNR. COLLECT YADR.
004700 ENDIF.
004710 IF DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_OLD OR
004720 DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_ADRC.
004730 XADR-ADRNR = DA_VBPA-ADRNR. COLLECT XADR.
004740 ENDIF.
004750 ENDCASE.
004760 ENDLOOP.
004770 UPDATE (OBJECT) FROM TABLE DA_XVBPAU.
004780 UPDATE VBPA3 FROM TABLE DA_XVBPA3U.
004790
> INSERT (OBJECT) FROM TABLE DA_XVBPAI.
004810 INSERT VBPA3 FROM TABLE DA_XVBPA3I.
004820
004830 IF SY-SUBRC > 0.
Could you please suggest me ,what could be the reason for dump and how to avoid dump?
<REMOVED BY MODERATOR>
Thank you in advance,
Arvind.
Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:16 PM
Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:16 PMHello, I have very same error
Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Transaction......... "VL01N "
Program............. "SAPLV05I"
Screen.............. "RSM13000 3000"
Screen line......... 2
SAP kernel....... 700
Patch level. 75
Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
SAP database version. 700
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
The ABAP/4 Open SQL array insert results in duplicate database records.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "SD_PARTNER_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING clause.
I use SAP_APPL SAPKH60006 Support Package
The NUMBER RANGE OBJECT HAS NO ERRORS!
I went trough the zillions of notes all of them affect the old releases.... Please advice.
Patiently yours,
SAP User -
Automatic Batch determination while creating outbound delivery
Hi,
I have already performed following steps, but still i am facing problem for Automatic Batch determination while creating outbound delivery :
1.CT01- Creation of Characteristics. ( Define Selection Class )
2.CL01- change. ( Define Selection Class )
Add Characteristics in u2018CHARu2019 tab And save .
3.CU70 u2013 create u2018Sorting Sequenceu2019 and assign characteristics
4.Batch Search Procedure & Strategy type
V/C3 u2013 Batch Search Procedure and assign the strategy types
a.To create condition type T. code V/C1
b.To create access sequance T. code V/C2
5.V/C5 - Allocate SD Search Procedure/Activate Check u2013 assign sales organization , order type into Batch search procedure.
6.V/CL - Activate Automatic Batch Determination in SD - Activate automatic batch det. for delivery item categories u2013 select item category and activate auto batch determination
7. VCH1 u2013 Create batch search strategy against strategy type as per the access sequence needed.
Please let me know is there any other step, apart from it.
Tx
UtsDear saravanan,
Re :Check from ur material master view ' Sales: General/Plant Data' that availability check should be 02 and batch management should get activated .
Done!
Re: check CT01 - addnl data table name and field name maintained ( which field to be taken for batch determination )
Done!
Re:check CL01 - char - is maintained with CT01 char
Done!
Re: check from v/c1 'Sort sequence' and Qty proposal 1 are maintained correctly.
Done!
Still i am not able to get batch automatically...
Is there any LIFO or FIFO settings i have to maintain in Material master.
Pl guide.
Tx
Uts -
Can't create outboud delivery against new SO type
Dear Experts,
I created SO type via VOV8 & assign the item category via Sales & Distribution - Sales - Sales Document - Sales Document Item - Assign Item Category.
Then I create a Sales Order via VA01 & then create Outbound Delivery via VL01N. Error getting when create outbound delivery.
Error: Copying is not poss.because an entry is missing in Table TVCPL: YCF1 ZEF1 ZKB1
Message no. VL473
Message Text
Copying is not poss.because an entry is missing in Table TVCPL: YCF1 ZEF1 ZKB1
Technical Data
Message type__________ E (Error)
Message class_________ VL
Message number________ 473
Message variable 1____ YCF1
Message variable 2____ ZEF1
Message variable 3____ ZKB1
Message variable 4____
Message Attributes
Level of detail_______
Problem class_________ 2 (important)
Sort criterion________
Number________________ 1
Environment Information
Group_________________
Sales Document________ 9
Item (SD)_____________ 000010
Schedule Line Number__
Counter_______________ 02
Group type____________ L
Could anyone able to assist me to resolve thsi issue.
TQ
rgds,
nanthaHi
I hope, you have created your new Item category by copying the existing Item category in standard .
I feel that , you have not copied the Item category properly.
So, you need to delete the copied Item category and create a new one as below.
Select the Item category you want to copy (VOV7).
Choose "copy as" > rename the item category in the next screen > click enter.
A pop-up will come,"is it relevant for coying" > click "yes".
Now, you will get the message in the status bar that one item is copied.
Here, do not leave the screen, it has not copied completely.
In this screen click on "save" button and wait. You get a pop-up box "maintain table view" > click "continue" .
Now only your Item category is correctly copied.
From your postings, I feel , problem is in copying the Item category.
If you have followed like above, then problem may be in copying control. -
Can we create inbound delivery with refernce to outbound delivery?
Dear all,
can we create inbound delivery with refernce to outbound delivery?
Regards
ahmadDear Ahamed
I beleive it is a stock movement between 2 different plants
If so then the receiving plant will have to do GR against the outbound delivery only
The outbound delivery of the supplying plant
The outbound delivery of the supplying plant will not become the inbound delivery of the receiving plant in SAP
But logically yes
Your second post talks about outbound delivery only and that is correct
My point is your proces doesnot involve inbound delivery at all
In STO there is no inbound delivery at all
Inbound delivery in SAP means shipping notification that means the confirmation from the vendor about the despatches
That will not have muck material details and it is just a confirmation
Meaning of inbound delivery from SCM 601 logistics execution
The goods receipt process using inbound deliveries realistically maps standard
processes in many companies. If the vendor announces the goods receipt with a
shipping notification, the inbound delivery can be created either manually or
automatically on the basis of the shipping notification. It contains information
transmitted by the vendor concerning the expected delivery times and quantities,
as well as any information about packaging. It is also the reference document for
the subsequent putaway using a transfer order. If you also use the transportation
function as part of Logistics Execution, you can summarize inbound deliveries
into inbound shipments.
Regards
Raja -
Create a delivery note after an advance invoice is paid
Suppose that the use of an advance invoice is that you deliver items to your client only after your client has paid the price for these items in advance.
Now assume the following situation:
1.
You book an advance invoice.
2.
You wait until the amount of this advance invoice is paid by your client, i.e. until you are informed by your bank on the receipt of a payment.
3.
You book the receipt of payment in SAP.
4.
After this the status of the advance invoice is set to closed by SAP.
5.
This document status makes it unpossible to create a delivery note related to the advance invoice - the only way is to create a seperate delivery note without any relation to the original advance invoice.
My question: Did I get the situation right? In this case I would say that the behaviour of SAP is erroneous - or are there any implicite reasons for this design decision?
Any idea to come along with this?
Thanks for your help!
Frank.My question was too hasty.
As I wrote in step 4 of my initial message after booking of payment in SAP the advance invoice is closed - this is correct.
But my conclusion in step 5 is not correct in total:
It is correct that you cannot create a delivery note as a sequel document to the advance invoice using "copy to" in the advance invoice form, since the advance invoice is already closed -
but you can create a sequel delivery note document using "copy from" in a delivery note form related to the already closed advance invoice!
Hence my question is obsolete! -
FM:create a delivery for sales order in the background.
Hi experts
I want Function Module to create a delivery for sales order in the background for both inbound and outbound.
tcode : VL10A.
Thanks in advance.
kiran jHi Kiran,
Welcome to SDN Forums
Please use the correct or most appropriate forum.
The ABAP Objects Forum should be used for: ABAP Object definition and implementation including encapsulation, interfaces and inheritance in ABAP Objects.
This thread will be moved from to .
The forum is dedicated to: Data Transfer Techniques, Batch Data Communication, Legacy System Migration Workbench, Application Link Enabling, IDOCs, BAPIs.
Please see the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
Also read this thread Welcome and Rules of Engagement.
Greetings,
Marcelo Ramos -
Correction delivery in the scheduling agreement.
Coundnt able to create the correction delivery in the scheduling agreements.
Where can i see
Thanks in advance for your assistance.......
Message was edited by:
tiruTo create a correction delivery (document type LFKO):
Choose Corr. delivery on the delivery schedule tabstrip.
The system displays a dialog box in which you enter a:
--> Correction delivery date
For help on deciding where you want to position the correction delivery, choose Display. The system lists delivery dates in chronological order.
--> Correction quantity
Enter a negative correction quantity by placing a minus sign after the quantity.
Choose Enter and save the scheduling agreement.
<b>Result</b>
When you save the correction delivery, the system updates the cumulative quantities in the delivery schedule.
To display correction deliveries, choose Deliveries on the delivery schedule tabstrip, or Environment --> Display document flow.
Thanks
G. Lakshmipathi -
Hi Experts,
I'm working on Visual Composer and I would like to create the follow application : call a list of sales orders and after select one's, I would like to create an outbound delivery corresponding to this sales order.
And with no surprise : it doesn't. The display of sales orders is correct but not the creation.
There is someone who can help me on this subject : how I can write data on sap, if it's possible...
Thank You
Regards,
BenjaminHi Vani,
To answer at your question :
I can display the sales orders but I would like to create, following these sales orders, the corresponding outbound delivery with the bapi : BAPI_OUTB_DELIVERY_CREATE_SLS. This Bapi work when I test her with the good parameters but when I would like to use her in Visual Composer : she does not work.
So after calling the bapi : BAPI_SALESORDER_GETLIST, I call the current Bapi for creating outnbound delivery but I have no results !
Can you help me ? And can we create outbound delivery with Visual Composer?
Regards
Benjamin -
Correction delivery configuration in scheduling agreements.
Can any body explain the required configuration for correction delivery in scheduling agreements.
Regards,
TiruHi Tiru
Check for the following things
1. Create scheduling agreement - ME31L
2. Create stock transport scheduling agreement - ME37
3. Change scheduling agreement - ME32L
4. Display scheduling agreement - ME33L
5. Maintain scheduling agreement supplement - ME34L
6. Recalculate scheduling agreement prices - ME3R
The detail you may find from the following link.
http://help.sap.com/saphelp_46c/helpdata/en/75/ee0f7455c811d189900000e8322d00/frameset.htm
Regards
Maybe you are looking for
-
When I burn a DVD...
When I burn a DVD from Aperture for friends that do not have a Mac they can not veiw it. How do I burn a DVD for non Mac users?
-
SQL Server 2012 Express LocalDB parm for keeping unicode char
in developer's windows 8.1 pc, the SQL Server 2012 Express LocalDB does not seem to keep Unicode like \U2221. it get translated to the plain - instead of keeping as −. what parameter od I need to setup to make sure it keep such character as is
-
Aurora 11.0 crashes upon opening.
Aurora 11.0a2 is crashing upon opening. I have a HTC EVO 4G. It started to do that immediatly after updating. Any fixes for that?
-
Hi, can anyone tell me how to send an smartform to an external email. Here my DISPLAY report: TABLES: MARA. DATA: SSFCTRLOP LIKE SSFCTRLOP. DATA: SWOTOBJID like SWOTOBJID. DATA: IMARA TYPE TABLE OF MARA. INITIALIZATION. SSFCTRLOP-NO_DIALOG = 'X'.
-
Having trouble compiling this file reader program!!
Hi, I wrote this program to read a flat file so I can parse it thereafter. I'm not sure where I need to change syntax. If need be, I can send the error msg. Thanks in advance!! import java.io.*; class FileReader1 public String readLine() throws