Detecting delivery status while creating the delivery.
Hello Gurus,
We have a requirement from business where in, if we create multiple deliveries for a single order, some set of data should be copied only for the first delivery.
We have this set up in user exit and it worked perfect until when the successive deliveries are created at the same time. Because here when delivery-2 is created, delivery-1 was not saved and hence the data from sales order flows on both the deliveries.
How to overcome this. Which field will be updated in order while processing the delivery and even before saving the delivery.
Thanks in advance,
Please check SAP internal tables like xlikp, xlips, xvbuk, xvbup and ylikp, ylips, yvbuk / yvbup.
X-tables denote the current image
Y-tables denote the previous image
Similar Messages
-
Error while creating the delivery for STO
Hi,
While creating the delivery, an error is produced when i saw the log . It was as follows
"An Item with no delivery quantity is not permitted. Item will be deleted"
Its related to STO,. if STO contains around 100 items and error is for any single item system is not able to create the delivery for whole PO.
Please guide as its an vey urgent issue will reward with suitable points.
Regards,
VikramHi
while creating delivery make that particular material's delivery quantity as 0. and do not enter any picking quantity.
that material will not be consider while making delivery.
Regards,
vijay -
Error while creating the delivery in ME2O
Hi Gurus,
when the shipping depeartment is trying to create the delivery in ME2o to send the components for subcontractor, we are gettign the error message
Essential transfer parameters are missing in record: 000001
Please heklp on this one?
and as an ibservation i do see that this vendor is not setup as customer in vendor master in the purchasing data view of the vendor master. Is that the problem?
thanks
Anusha
Edited by: anusha vemulapati on Oct 21, 2009 6:31 PMYes, it might be one reason. It is mentioned in the error message (VL561).
Please create the ship-to party, extend it to the plant's sales area and assign it to the vendor master. /plant sales area is in V_001W_IV/
Please try it and if still you get the errors come back. (Please read the error message and check all the thing described there)
Regards,
Csaba -
How to update picked qty as delivery qty while creating outbound delivery
Hi,
I am using badi definition LE_SHP_DELIVERY_PROC to update delivery qty as picked qty at the time of creating delivery. By using method SAVE_DOCUMENT_PREPARE I am populating delivery qt(yCT_XLIPS- G_LFIMG) to picked qty(CT_XLIPS[1]-PIKMG). and i am also populating update flag as 'I'. after saving the delivery document i am not able to update picked qty which was populated in BADI. could you please suggest anything needs to care. thanks in advance.
Regards,
PeranandamHi,
I did a little test and, within the method CHANGE_DELIVERY_ITEM, itu2019s possible to fill the picking quantity (structure CS_LIPSD) but unfortunately during the save the added information is lost.
This is because the BAdI method is fired too soon and the routine PICKMENGE_BEARBEITEN (SAPFV50P) is not called at all.
The problem is quite complex; even after changing the picking quantities, the picking status still remains open!
The picked quantity is generally filled:
u2022 by printing the picking list
u2022 Warehouse Management by creating a transfer order
u2022 or by manual entry
Otherwise, it is assumed that picking has not yet been initiated and the result is that picked quantity is ignored.
In my opinion itu2019s very difficult to solve your problem using only the BAdI implementation.
I suggest you to propose an alternative solution such as the automatic processing of Picking Output EK00; easy to activate and absolutely standard!!!!!!
Regards,
Andrea -
Not able to create the delivery document in '000' client of IDES
Dear Experts,
I am facing a problem while creating an sd process flow in the client '000' of SAP IDES system. I am working over SD CIN. Previously I received an error while generating sales order. The error was stating that certain entries were missing in the table CRMPAROLTP & it was the error message number V3, 302.
For that I went to SM30 & defined 'CRM_RELEASE' (under parameter name) & '600' (under parameter value), which solved my problem. Now I received another problem while creating the delivery document which is as follows:
Problem : "Message no. B2 001 : Local logical system is not defined"
Kindly assist me in sorting out this problem. I checked the stock level at MMBE, but the stock was not reduced with the quantity as was specified under the delivery document & at the same time the document number was also not available for further processing.
What to do?
Thanks & regards,
M.S.Kumar.Hi Prashant,
Thank you very much for resolving my problem. Meanwhile I first went to trx. code 'BD54' &, there I defined a new logical system & ultimately assigned that logical system to client at 'SCC4' as specified by you. And my problem got resolved.
Thank you very much once again.
With regards,
M.S.Kumar. -
Error occuring while creating a Delivery for Stock transport order
Hi,
I am getting error while creating the delivery for thr stock transport order.The error message is given below.
Error Log for coll. run 0001248218
4 6000038321 000010 Only 0 ST of material F784100 available
4 6000038321 000010 An item with no delivery quantity is not permitted. Item will be deleted.
4 6000038321 000020 Only 0 ST of material F784100 available
4 6000038321 000020 An item with no delivery quantity is not permitted. Item will be deleted.
4 6000038321 000030 Only 0 ST of material F784100 available
4 6000038321 000030 An item with no delivery quantity is not permitted. Item will be deleted.
The stocks are present in the plant.
Can anyone help me to solve this issue?
Thanks
SrinivasanHi,
Check in
SPRO--IMG-MM-IM and PI---stock determinationassign stock determination in applications---Inventory management
Check for 641 or 647,there is a SD rule assigned.
Regards,
Deepak. -
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 -
Exit to set the automatic PGI and picking while creating outbound delivery
Hi experts,
Could anybody suggest how to set the automatic PGI and Picking while creating outbound delivery.
Currently we are settting VBUK-WBSTK field with value C. But PGI is not happening.
kindly help me.
Regards,
RaviHello Parihar,
thanks for reply.
yes we know that "This process of picking and GI involves reducing the stock and allocating the goods to the delivery"
if you go for Custom program and Use FM WS_DELIVERY_UPDATE, we can do Picking and PGI.
our requirement is to do pickong and PGI while creating Delivery it self, based on this output types will be processed. -
Enhancement to change the quantity while creating outbound delivery
Dear All,
Is there any enhancement to change the Actual Quantity while creating the Outbound delivery.
I have tried using the BAdI LE_SHP_DELIVERY_PROC in the method CHANGE_DELIVERY_ITEM. But i am not able to change the quantity. In the runtime it allows me to change the quantity. After saving the document the quantity is not changed.
I do not know what all are the parameters and fields to be passed to change the quantity. If anyone knows please help me.
Anyone guide me to do this requireemnt.
Thanks & Regards,
M.Ashok kumar.Hi Ashok,
I have a similar issue, i have done the same as you did by changing the fields LFIMG_FLO and LGMNG_FLO.
But though Delivery qty is getting update but picking qty is remaining the same.
Suppose when user give Delivery qty as 8 and Pick qty as 8, i am able to change the delivery qty to 5 but not Pick qty to 5.
can you please let me know how to acheive it.
Regards,
Kartheek. -
Where to Authorization check for the plant while creating outbound delivery
Hi Experts,
For outbound delivery , the standard program is not doing the authorization check .
Can i use BADI *LE_SHP_DELIVERY_PROC * and the method : DELIVERY_FINAL_CHECK
To write Authority-check statement ,
If the particular is not authorized for any of the plants of the items in the outbound delivery i will throw a error message
Can i use as above?
And if i use it has to apply only for outbound delivery?Because for inbound delivery also the same BADI is getting triggered?
Please suggest.
Regards
Ramakrishna LHi,
Yes you can use the said BAdi and the method if it is triggerd before the SAVE of the Outbound Delivery Order to do the Authorisation Check. In case the code is triggered for all the orders and you want only to restrict for the Outbound Delivery, then check for the Delivery Type (LFART) from the Delivery Header table for only the Outbound Delivery Order.
Thanks,
Susanth Swain -
Error while creating inbound delivery
Hi All,
I get an error while creating inbound delivery from ASN
"Error during conversion of unit of measure: UoM is missing -> ST BOR131
Please help solve this issue.
Thanks in advance
Regards,
Thiruhi,
please maintain the uom for tour material.
or
reffer this link
Alternate Unit of Measure Conversion Rule Error
/thread/2000551 [original link is broken]
Thanking you. -
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 -
Change LIPS-PRCTR with value ' 0020990000' while creating a Delivery Vl01n
Hi Gurus,
I have a requirement to default the profit centre of the delivery while creating a delivery through Vl01n.
Please let me know which enhancment / exit i should use and how.
Regards.
Avi...Hi Vijay,
I need a help on this profit centre change.
1) Create a Sales order through Va01
2) Create a delivery for the sales order in Vl01n.
Post good issue.
3) Create Vf01 for the delivery.
4) The profit centre change should be reflected in accounting document also.
In my case its not getting updated in the accounting document .
Can you please guide me where should I make changes.
Regards,
Avi... -
Creating an invoice from a delivery does not closes the delivery.
I am creating an invoice using DI. The invoice is based on an already existing delivery note.
The delivery is manually created from SBO. When I'm creating the invoice I transfer all items and expenses from the delivery to the invoice.
case 1. The delivery has no freight defined.
When the invoice is created the delivery is automatically closed
case 2. The delivery has some freight
When the invoice is created the delivery remains open even though the invoice contains everything in the delivery, including the freight.
'Copy to' from this delivery opens an invoice with no items - only the freight is filled.
Currently I explicitly close the delivery using the Close method.
Is this correct?
Is it normal for the base document to remain open if the target document imports everything?
Thanks,
SvilenHi Svilen,
My experience with getting a delivery note to automatically close when I create an invoice against it is that the base document information on each line item on the invoice must be set to point at the delivery note (base document). You are probably already doing this on your line items and that's why it closes when there is no freight. But freight items have "base" fields too, and they have to point back to the freight item on the delivery note. Are you setting the base doc info on the invoice freight lines?
The following code worked for me (although this example is for sales order to delivery, it is the same thing for deliveries to invoices):
Dim ix As Short
Do Until ix = vso.Expenses.Count
vso.Expenses.SetCurrentLine(ix)
If vso.Expenses.ExpenseCode = _FreightExpCode Then
If vso.Expenses.Status = bost_Open Then
vDN.Expenses.BaseDocEntry = SODocEntry 'added 1/5/7 jc
vDN.Expenses.BaseDocLine = vso.Expenses.LineNum
vDN.Expenses.BaseDocType = SAPbobsCOM.BoAPARDocumentTypes.bodt_Order
End If
Exit Do
End If
ix += 1
Loop
I'm looping through the target (order) document's freight records to find the matching one that I know is on it - you might be processing all - but then I load the sales order base docentry, base doc line# & base doc type to the delivery note freight line item.
When getting this done, my source documents close OK. In fact, I think they close even if the totals don't match on each record - just so long as every source doc record is pointed to by a target doc record.
HTH -
While saving the delivery no in VA02 dump error showing (Arithmatic overflo
Hi,
while saving the delivery no in VA02, one dump error getting displayed.
Arithmatic over flow occurs.
Can any one can say how to rectify the program to avoid dump error
The below lines are showing in dump.
Waiting for quick response.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was not
caught in
procedure "USEREXIT_SAVE_DOCUMENT_PREPARE" "(FORM)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
An overflow was discovered in an ongoing arithmetical operation with
operands of type P. Possible causes are:
1. The result field of type P is too small for the result.
2. The result or a intermediate result has more than 31 decimal places.
How to correct the error
The result field must be enlarged, if this is still possible. It may
also be possible to break up the current process into subprocesses so
that only smaller values occur.
There may already be a solution to the error in the SAP notes system.
If you have access to the SAP notes system first try searching with the
following keywords:
"COMPUTE_BCD_OVERFLOW"
"BCD_FIELD_OVERFLOW" (Until release 4.0a, this runtime error occurred at this
position)
"SAPMV50A" or "ZSDI_MV50AFZ1_CRPC_CALC_4QA"
"USEREXIT_SAVE_DOCUMENT_PREPARE" ***----
Information on where terminated
Termination occurred in the ABAP program "SAPMV50A" - in
"USEREXIT_SAVE_DOCUMENT_PREPARE".
The main program was "SAPMV50A ".
In the source code you have the termination point in line 666
of the (Include) program "ZSDI_MV50AFZ1_CRPC_CALC_4QA".
The termination is caused because exception "CX_SY_ARITHMETIC_OVERFLOW"
occurred in
procedure "USEREXIT_SAVE_DOCUMENT_PREPARE" "(FORM)", but it was neither handled
locally nor declared
in the RAISING clause of its signature.
The procedure is in program "SAPMV50A "; its source code begins in line
208 of the (Include program "MV50AFZ1 ".
657 ADD: xvbap-brgew TO l_w_tot_list_vals-brgew,
658 xvbap-zzlogpoint TO l_w_tot_list_vals-zlogpoint,
659 xvbap-zztotgrossvalue TO
660 l_w_tot_list_vals-totgrossvalue.
661
662
663 l_w_tot_list_vals-gewei = xvbap-gewei.
664
665 IF NOT xvbap-pstyv IN zzt_free.
>>>>> ADD xvbap-volum TO l_w_tot_list_vals-volum.
667 ELSE.
668 ADD xvbap-volum TO l_w_tot_list_vals-volum_f.
669 ENDIF.
670 ADD 1 TO l_w_tot_list_vals-zw_nbitem.
Best Regards,
BDP
Edited by: Bansidhar Padhy on Jan 26, 2010 8:24 AMADD xvbap-volum TO l_w_tot_list_vals-volum.
Declare l_w_tot_list_vals-volum as "like vbap-volum" or (preferably) "type volum_ap".
If you're using a packed decimal, you've done something like.... volum(5) type p decimals 2, which is a great way to get an overflow...if you use packed decimals in a program...declare <field> type p decimals <n> without a length attribute, so that SAP can use the full 8 bytes for the calculation.....the put it into a alpha field for display, if needed....
Maybe you are looking for
-
what is the purpose of alt-rt.jar in jdk1.6.0_20/jre/lib -- 64bit thanks
-
Rebate settlements should not hit the VAT account
Hello everyone, There is a question on Rebate Settlement. There is a customer who is entitled to a 15% BPR rebate. We are accruing for this rebate successfully The issue we are having is that the materials that this customer buy from us attract 20% V
-
OOPs Concept ! - Why Static Methods can't be redefined in its subclass ?
Dear Experts , I had searched the SDN , but unable to find out the satisfactorily answers .. Can anybody let me know the reason for the following Confusion in Oops Concept Question 1: As we know , We can Inherit the Static Methods in the Sub Class ,
-
Editing Windows and Linux Registry from JNI
how do I manipulate(i.e. add or delete) a registry key in windows as well as linux registry, using JNI. Is there any other way to do it. I have been searching this from last one month. Please help me out as I have to answer my client.
-
Can you print study cards created in ibooks?
Is it posible to print the study cards that you can create by highlighting sections of a book, in iBooks