Updating Serialnumbers automatically while creating Outbound Delivery
Hi Experts,
My requirement is to populate serial numbers automatically while saving the outbound delivery (VL01N).
I tried with user exits, but I am unable to succeed.
I am using ECC5.
Any help would be greatly appreciated.
Thanks,
Veera K
Hi Veera,
For an example if there is a need to update some table with delivery number and serial number on saving a delivery:
in include MV50AFZ1:
FORM USEREXIT_SAVE_DOCUMENT.
*{ INSERT <TR#>
"work structure LIKP has the header info here
"Use that and fill the required workstructure and update the correponding table
*} INSERT
ENDFORM.
Similar Messages
-
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 -
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. -
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 -
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 -
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 -
PGI Issue while creating outbound delivery.
Hello All,
I am facing a strange issue while doing PGI .The system gives the message as shown below ,although we have maintained Posting Periods in both MMPV and OB52. Please help on this issue.
Posting only possible in periods 2011/07 and 2011/06 in companlly code 1000
Message no. M7053
Diagnosis
The posting date entered is not within one of the permitted posting periods (current period/previous period).
This can be due to one of two reasons:
The correct current period has not been set in the system.
For the system, the first of the entered periods is the current period. At the beginning of a new period, your systems administrator must change the current period in the material master record, using the function "Shift periods". This has not yet been done.
You have entered a wrong date in the field "Posting date".
Procedure
Check the posting date and correct it if necessary. If your input is correct, inform your systems administrator that the "period shifting" (period-end closing) process has not yet been completed. Copied from M8022
Regards
DeepakHi Deepak,
1-Please close all the login of the user logged in.
2-Goto SU01,put the required user ID and click on for change mode.After this goto "Parameters" Tab.
3-Add parameter Id="MMPI_READ_NOTE".It will read the SAP Note 487381 and allow you to initialize.
4-In the parameter value,put the current date and then save
5-Now goto MMPI and put the date=05.07.2011 or in period you can put 1 and fiscal year=2011 for the respective company code and execute.This will open the July Month of 2011.Hence will allow the posting on 05.07.2011
6-Now check in MMRV,it will show fro the respective company code,the current period will be 01....2011 and previous Period=12...2010.
7-Now do all the activities for july 2011 month.
8-After July close the period through MMPV and it will automatically open for Aug month i.e 06..2011 period
please try to check based on the above steps
Revert with your result
Regards,
Prasanna -
Creating outbound delivery with reference to inbound delivery
Dear all,
My requirement is as follows:
I get an inbound delivery from my vendor for the our sales orders. (For n number of sales orders having same shipping point, shipto party ad sold to party, we get one inbound delivery) As of now we are using that inbound delivery and read data from LIPK and LIPS and using 'BAPI_DELIVERYPROCESSING_EXEC' to create outbound delivery.
But, it is creating one delivery each for every sales order. What we require is to create only one outbound delivery.
I have searched in forums and tried to use VL10A, VL10C but since the delivery dates of each order are different I cant use those transactions.
Now I have two options:
1) Take inbound delivery as reference and create outbound delivery. Are there any FM's or BAPI's for this which will create 1 outbound for each inbound?
2) Can we combine multiple sales orders into a single delivery when the delivery dates are different.
Could you please help me.
Thanks in advance,
AravindHi Aravind,
I am facing some issues while creating Outbound delivery using the BAPI 'BAPI_DELIVERYPROCESSING_EXEC'. I am getting the error message in return parameter as "No instance of object type OutboundDelivery has been created. External reference:"
If you are successful in creating Outbound delivery, please suggest what may be the issue for this message. Iam passing the exact sales order no and item no., quantty and unit of quantity. Also manual creation of Delivery using VL01N is successful but using the BAPI it is unsuccessful. Please suggest with your valuable points on this.
Regards,
Vimala P -
Create outbound delivery for in-transit stock
hi,
the situation is that i need to create an outbound delivery for a sales order considering In-transit material let say item 20 in sales order.
this item 20 is NOT present in the plant but is in transit from another plant.
normal SAP wont allow creation of delivery if stock is not present in plant. hence we have marked a special indicator for that material.hence while doing the availability check in VL10 , it should allow me to create outbound delivery.
The issue is i need to know the place where i can manipulate this availability check so that it considers this item 20 as special case and allows the Delivery to be created.
there is a check indicator field MTVFP, but i cant find where is it comparing this field .
thanks.Hi,
Kindly check the Info Record.
whether you have maintained delivery date or not.
_Otherwise automatically pick the delivery date as from Item line delivery date
._But you can have the delivery date field in shipping tab.
SAM
Edited by: Saminathan Gopalan on Jun 28, 2010 1:59 PM
Edited by: Saminathan Gopalan on Jun 28, 2010 2:00 PM -
Error while doing outbound delivery against Purchase Order
hello
i m getting error while doing Outbound delivery for purchase order as follows
EKPO-SOBKZ=E; EKPO-UMSOK=_; EKPO-KZBWS<>_ EKPO-KZVBR<>E (Note 305582) not supported (check your entry)
Message no. M7146, i m not getting wht will be the reason,
Regards
NISHJPlease go through the note - 305582. It is clearly given the direction.
Symptom
You try to post a goods movement for a stock transport order from the unrestricted-use stock into the sales order stock or project stock.
During the goods issue, the system displays error message M7146 with a text along the lines of "EKPO-SOBKZ=E; EKPO-KZVBR<>E; ... not supported".
Cause and prerequisites
In the goods issue for the stock transport order, the system may have to create a stock in transit which is deconstructed during the goods receipt. If the withdrawal takes place from the special stock, it is clear which is the receiving stock.
However, if the withdrawal is carried out from the unrestricted-use stock ("Collective requirements", controlled by the dependent requirements indicator MARC-SBDKZ in the material master of the issuing plant), this results in the design problem that the control tables of the goods movement do not have any key field for the receiving stock. Therefore, the control for the receiving stock is controlled via the consumption indicator in the account assignment category of the purchase order. The consumption indicator therefore requires a specific default setting (you may have assumed you could change the design of these control tables, however this is not possible).
Using an inappropriate consumption indicator then causes for the goods issue an incorrect or no stock in transit to be created so that the goods receipt fails.
Solution
Implement the program change in accordance with the correction instructions.
Afterwards implement Note 413908 immediately if this is relevant for your release. -
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 -
Create outbound delivery thru Idoc
I am working on a sales return scenario in SAP as below :--
01. Creating Return sales Order in SAP thru inbound Idoc ( ORDERS01)
02. Triggering outbound Idoc ( ORDRSP/ORDERS05) from return sales order to our return plant.
03. Customer will send returned goods to our return plant. Plant will send us an Idoc to create delivery in SAP.
04. Once delivery is created thru Idoc , our batch job will do PGR.
05. Billing batch job will generate credit memo for return.
I am looking for advise on following points :--
01. Can we create outbound delivery thru DESADV Idoc ?We are also planning to update delivery Item text thru this Idoc.
02. SAP standard provides ( SHP_OBDLV_CREATE_SLS) this Idoc to create delivery with reference to Sales Order but not able to update delivery text thru this ?
03.Any other way-out to create delivery and update delivery text thru inbound Idoc?
Thanks in advance!!
Best Regards/RajeshCreate your own and assign as processing the BAPI or a wrapper for it.
Enjoy -
SHP_DELIVERY_CREATE_FROM_STO to create outbound delivery
HI,
Im using SHP_DELIVERY_CREATE_FROM_STO to create outbound delivery document for an STO order. For that particular material there are different storage locations ,so the it is not getting updated in VL02N which is stopping from doing PGI(Goods issue). Can any one pls suggest how to update storage location in the LIPs table.
Thanks,
VinodhHello,
Were you able to pass Storage location LGORT as input using BAPI BAPI_OUTB_DELIVERY_CREATE_STO. If yes, Then can you pls share the details how did u achieve it.
Thanks
Sheela -
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...
Maybe you are looking for
-
Order confirmation Print Program and Smartform
Hi, I found a smartform for the order confirmation.'/SMB40/SDORC_A'.I have searched the forums and found the print program to be the same.But we don't have it.We're on ECC 6.0Where can we download the program from? Thanks.. Edited by: John G on Feb 4
-
ORA-12705: Cannot access NLS data files or invalid environment specified
Hi, I am using Oracle 10g Express, ojdbc14.jar , apache tomcat 5 server on Linux (Fedora 6). In CustDisp.JSP I have following code: <% try { Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance(); out.println("JDBC driver loaded.<br>"); catc
-
Internal Server Error when Displaying Total No. of Pages
Hello All, We're encountering an Internal Server Error when a particular report retrieves around 10K records which displays on each page the current page and the total no of pages. When we only display the current page, the report does not encounter
-
When trying to save attachments in emails, 'save button' no longer working
Anyone else having this problem? Used to be that when I clicked on the "Save" button in my email windows, an icon would flash in my dock indicating my attachment had been saved to the desktop. Now when I click on the same buttons, nothing happens at
-
Hello everybody. I've got a problem with the Tomcat server. Especially with the java engine (jvm). After a few actions in InfoView or the CMC nothing works anymore. The logfiles show this error: 10-01-10 18:35:43:776 - [/PlatformServices].[Faces Serv