Goods Issue of a Created Delivery Number
I am writing code to that will complete a delivery transaction by doing a Goods Issue for shipments that already have a delivery number created (and are a 601 move type already). I just need to add the batch, carrier, and date (that are being passed to me in SAP in the interface) to the delivery record in the processing. I check table VBUK,field WBSTK, for a "C" indicator when I am done to make sure the delivery is "totally completed".
The Users currently do a VL02N to do this. It is an Outbound delivery.I am automating the process.
Has anyone had any similar requirement? Can anyone make a suggestion of which method or Function Module to use? Their are so many and would appreciate anybody's experience with this.
Thank-You.
Edited by: Tom Matys on Mar 1, 2010 11:28 AM
Edited by: Tom Matys on Mar 1, 2010 11:30 AM
You can use the FM "WS_DELIVERY_UPDATE_2" for posting GR. Using this FM you can also update fields by passing data to VBKOK_WA and VBPOK_TAB. If required you need to use "BAPI_OUTB_DELIVERY_CHANGE" to update your data.
Regards,
Ganga
Similar Messages
-
Posting multiple goods issues against the same delivery
Hello gurus,
We are a fashion apparel company using ECC 6.0 and would like to know if it is possible to post mutliple goods issues against the same delivery?
I will explain the business requirement.
- We create a stock transport order to deliver 400 units of merchandise to on or our retail stores (STO is created and processed to a delivery).
- This information is passed down to our warehouse management system (which is not SAP)
- Our warehouse management system has the ability to split a delivery into multiple shipment when needed. For example, our warehouse may only be able to complete 250 units for our morning shipment and will therefore pick, pack and post this. This will feed back into SAP and process a 641 movement so that the units now show as "in transit". This is needed so that our stores can process the ASN and move the units into their inventory when they receive the merchandise later that day.
- During the afternoon, our warehouse will process the remaining 150 units and will ship this to our store later in the evening or next day.
Currently, we are not able to process another goods issue against a delivery as we close out the delivery during the first goods issue. We would prefer not to have to generate a new delivery for our DC and let them continue to process against the same delivery, but we are unsure how to configure this.
Any help or guideance would be extremely appreciated
Thanks in advanceHi RJ,
First of all sorry to write such a lengthy reply,In one line if i want to summerize then it is not possible with standard SAP however we can achieve this by writing some piece of code in both the system
AS - IS
Business process
From business process point of view you are right that once the pick & pack is in process it is not advisable to create a new delivery document for balance quantity and share the same with WMS as then they have to create a new document in WMS and start picking based on that rather then the old delivery document number. if i am in your position then i can give a thought like this
e.g.
Delivery - 100 Unit
Shipment confirmation from WMS - 60 Unit
Change in delievry quanity / Pick qty - 60 Unit
Invoice from SAP - 60 Unit
Second confirmation from WMS - 40 Unit
Change in the existing delivery quantity - Now here we have two option either
1) Change the delivery quantity / Pick qty to (60+40) =100 or
2) Remove the 60 and update 40 as delivery and pick quantity
Pros & Cons
if you will select option 1 then furhter invoice will happen for 100 unit which is incorrect as physically you are shipping only 40 unit
if you are selecting option 2 then the document flow is incorrect as you don't have history(in SAP) for the 60 unit which was shipped earlier
Solution ::
so in my opinion the best option is to create a seperate delivery document (store the old delviery number in one of the field of the new delivery and pass the same to custom segment of the IDoc) transmit the IDoc to WMS write the validation logic in WMS
Find the record with old deliver number in the WMS system, check the status whether it is active or inactive
if it is acitive Validate the Material + qty with the WMS record(Material + balance quantity) if both are same then pass the new deliery number to custom field of the WMS table
At the time of confirming back to the SAP, Write a piece of code in SAP that if the incoming idoc custom field(new delivery number) field is populated then ignore the orignal document number and post the document using the new delivery document number
Hope this help -
Post a good issue against an outbound delivery with movement type 601 K
Hello,
according to my business scenario I need to manage the stock of different vendors into the client's location (plant) at storage location level and I need to post the good issue against an outbound delivery to decrease the stock level.
Since the owner of the goods isn't my client the item is managed only at quantity level (not value) so I'm not interesed in the accounting document.
To do it I'm using the functionality related to the vendor consignment stock but I'm not able to post the good issue against an outbound delivery using the movemement type 601 and the special stock indicator equal to K.
In particular I've tried in two different ways:
- setup the consignment stock indicator (= K) into the sales item category, but when I post the goods issue the system is not able to find out the right vendor
- to create a stock determination rule instead of the setting previous described, but the system display an error message (Fld selectn for mvmt type 601 / acct L534200770 differs for Cost center (010) ) even if the accouting is not relevant in my scenario
Can you suggest me how the system has to be setup in order to cover my requirements?
Thanks in advance,
AlessandroHi,
Please clarrify which material type you are using in this scenario? I suggest you to use material type UNBW (no value updation will be there) and create a material master. Use special stock indicator K. Proceed with 601K to do GI. Hope it works. Thanking you. -
Idoc to post goods issue against an outbound delivery
We happened to simulate both the idocs 'WPUWBW01' and 'MBGMCR02' for posting goods issue for an outbound delivery but failed.
Request you people to help us on this. Is there another idoc that we have to use to post GI... if so please let us know... and if we are using the right one, guess we are not executing it in the right way... in such a case please guide us with the steps...
Thanks
Arun
We got hold of the Idoc type 'DELVRY03 PGI SHPCON' we are able to post the Idoc but we are able to do the packing only or we are able to change the deliveries but the PGI is not happening..
please help us on this.. is there some condig that updates the delivery with the PGi or is there something else do be done in the Idoc....
will provide additional details if required.
ThanksHi Arun,
There are no configuration settings in this. It is development that your abaper need to carry out.
Explain to him that this is the func module. And intrun it has to either trigger a BDC or BAPI for creating packing and PGI.
He should then do the recording of that and will assign the program pertaining to BDC with in the function module.
One more suggestion is to put the same query in ABAP section too. U will definitely get a positive response.
Hope this helps.
Kind Regards
Chakradhar -
Multiple Goods Issue documents for single delivery?
Hi
I am getting multiple goods issue documents for single delivery.
In a order there are 3 line items, and one delivery is created and 3 goods issue documents.
What is the probable reasons for this.
The requirement is for one order with n items there should be one delivery document and one goods issue document.
Inputs requested.Since you havent put the issue in details, I have listed my guessses.
This may be happening due to mainly these three reasons. Please answer them and get back to me.
1) The three Good issue may be happeneing due to split delivery active for the item. If yes then correction should be in the Material master.
2) the availability check scheduled is set in that way. If yes please configure the availability and transfer of requirement.
3) Scheduling of the goods throught that particular shipping point. If yes then please conficgure the shipping tab in Logistic Execution.
Please let me know if the problem persists and award points if solved.
Thanks
Adi -
Post goods issue failed because of serial number
in outbound delivery,post goods issue failed because of serial number,but this serial number was not assigned to any other material
Hello,
Check the serial number and material with IQ03. Serial number is material specific.
Prase -
Problem with post goods issue in SD std. delivery
hi
while doing post goods issue of a delivery in VL01n its showing run time error. the error message is gvn below.
Information on where terminated
Termination occurred in the ABAP program "SAPLMBWL" - in
"MB_POST_GOODS_MOVEMENT".
The main program was "SAPMV50A ".
In the source code you have the termination point in line 59
of the (Include) program "LMBWLU21".
Source Code Extract
Line SourceCde
29 * when a goods movement for an inbound or outbound delivery is posted
30 * directly from VL31N/ VL01N, XBLNR is not yet known when we call
31 * CKMV_AC_DOCUMENT_CREATE, but the number is supposed to be stored in
32 * BKPF as well. There is no other way to forward XBLNR to FI as not
33 * every document is posted by MB_CREATE -> a new function module in
34 * MBWL for transferring the information, called by FI, meant to load
35 * the complete function group for all MBxx postings when this isn't
36 * required (Performance). Would be the better way to transport the
37 * information after switching off MBxx in later release.
38 * corresponding IMPORT ... FROM MEMORY ... can be found in
39 * AC_DOCUMENT_POST (FORM FI_DOCUMENT_PREPARE (LFACIF5D))
40 l_mem_id = 'MKPF-XBLNR'. " 641365
41 EXPORT xblnr = xblnr_sd TO MEMORY ID l_mem_id. " 641365
42 ENDIF.
43 IF xmkpf-xabln IS INITIAL. "note 434093
44 CALL FUNCTION 'MB_XAB_NUMBER_GET'. "note 434093
45 ENDIF. "note 434093
46
47 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_01 SPOTS ES_SAPLMBWL STATIC.
48
49 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_02 SPOTS ES_SAPLMBWL.
50 CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'
51 EXCEPTIONS
52 error_message = 4.
53 * As soon as we have started to put things into UPDATE TASK, we must
54 * ensure that errors definitely terminate the transaction.
55 * MESSAGE A is not sufficient because it can be catched from
56 * external callers which COMMIT WORK afterwards, resulting in
57 * incomplete updates. Read note 385830 for the full story.
58 IF NOT sy-subrc IS INITIAL.
>>>>> MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH "385830
60 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
61 * MESSAGE A263.
62 ENDIF.
if there is any configuration step for post goods issue in SD thn plz mention it.
Plz help..Hi Lakshmipati,
I have maintained movement type 601 at OMJJ. I hav also added the filed cost center in that (before it was not available).
I checked GL acct at fs00, it is already contain field status group g004 and the check box "post automaticallyt" is also activated. The cost element has also assigned to cost center. After assigning the cost center to cost element, the error is changed to fld selection for mvmt type 601/ acct 300021 differs for cost center
But i noticed one thing: If i chage the field status group to g006, the error has not appeared and giving the other error:
valuation area xxx2 (plant) not yet ptoductive with material ledger this error has been already posted by me but not yet received correct answer.
Kindly provide the solution for this.
Regads
Sabera -
Not able to post goods issue in case of delivery against a repair order
A faulty part was received from customer and repaired and further it has to be sent to customer. Then delivery has been created. Also handling unit has been assigned. Now at the time of post goods issue, following error is appeared.
"Deficit of sales order stock".
When I checked with transaction MMBE, I don't find any stock assigned to this order.Hi Atul
Please ensure that the settings is as per the followign link
http://help.sap.com/saphelp_47x200/helpdata/en/00/044f350bea3278e10000009b38f839/frameset.htm
Thanks
G. Lakshmipathi -
I can't post goods issue for the outbound delivery
I select the indicator of GI via delivery in transport block via TCODE OPKP and assign the production profile to the work schedule view of the material master.then I create a production order for the material and release it.I do the wm material staging for the producion order via TCODE LP10,An outbound delivery was created automatically and the movement type is 261.then I pick for the delivery and confirm the transfer order.When I do the post goods issue there is a error message .
E M7 226
Update control of movement type incorrect (entry 261 X X _ _ _ V )
then I see the onlinehelp,I find the configurations are ok.
the content is following in table t345.
werks supply area material staging indicaor
1000 PVB 1310WM 1 1 wmpp 10000Please kindly refer to the attached notes below :
523509 FAQ: Control tables (no Customizing)
161729 M7226 with KZVBR=V
Hope this helps. -
Default valuation type when issuing material or Creating Delivery
Hi,
We have some material manage with valuation type X, Y, Z while creating PO we are entering Valuation type in PO as per requiremtn but i want that whenever we issue the material with 201 or creating delivery of that material with VL01N or VL02N default valuation type should be 'Y' so how to set this as default.
regards,
zafarYou will need to create a stock determination strategy and stock determination rule and assign it to the material master.
use TCODE : OSPX. -
Returns between Goods-Issue and Billing - Return delivery before Invoice
Hi all,
Here comes a problem with sales process configuration.
Buisness case:
Customer generate a sales order document, outbound delivery and posting goods. Invoice is generate on end of every month. Very often return delivery is generate before generate the invoice. Outbound delivery is after posting process and cancellation process is not recomended. If invoice will be generate with reference to the sales order, the quantity will be wrong, because system get information from sales order without correction to return delivery quantity. The assumption is that the invoice must have a correct quantity as a sum based on outbound and return delivery.
So...any solution in standard?
Regards,
MichaelIn the RE Sales Order configuration you can make reference mandatory. Once you do this the user will not be able to even create a returns order without the original invoice.
I hope this helps.
Regards,
Mani -
Multiple Goods Issues against a single Delivery
I have a requirement where I have a Delivery which has Material A and B as two seperate line items. I wish to be able to post the GI on two seperate occassions for material A and B but when I try and GI without picking B I get error message VL609 : Delivery has not yet been put away / picked (completely).
The two materials A and B need to both be on the singel delivery. SAP std does say that Picking Should = Delivered Qty but this scenario is different.
Any advice or previous learnings would be appreciated.Hi Ramki,
The problem is that I would like to GI Item 1 and leave Item 2 unpicked with the original qty it will not allow the GI.
The Sales Order only has the Material A on it and Material B is added only to the delivery at Delivery Creation and hence would like to GI the two line items at different stages. If I set the Delivery Qty = 0 then @ header level the delivery is set to complete.
Regards -
Security Issue: VDI 3 creates a number of world writable files?
Customer states:
I need to limit permissions to just owners and groups; not the others setting, will that be a problem?
Description: There are world writeable files or world writeable directories that are not public directories.
Status: Open
For example:
/usr/oasys/tmp/TERRLOG
/var/dt/dtpower/_current_scheme
/var/opt/SUNWvda
/var/opt/SUNWvda/webadmin
/var/opt/SUNWvda/logCustomer states:
I need to limit permissions to just owners and groups; not the others setting, will that be a problem?
Description: There are world writeable files or world writeable directories that are not public directories.
Status: Open
For example:
/usr/oasys/tmp/TERRLOG
/var/dt/dtpower/_current_scheme
/var/opt/SUNWvda
/var/opt/SUNWvda/webadmin
/var/opt/SUNWvda/log -
Automatic Goods Issue in Outbound delivery scenario with resp to Shipment
Hi,
Could you please explain me, how Automatic Goods Issue happens in Outbound delivery scenario process and in shipment process.
Is there any transaction for this?
Can we use VL23 for Automatic Goods Issue in Shipment process? or is it only for Outbound delivery scenario?
How we schedule a background job by using VL23- transaction, how we create variants on what selection criteria?
Could you please explain me in detail?
Thanks A lot.Hi Anil,
VL23 is to schedule Out bound Goods issue.Check once T.code VL06O.
Thanks,
Sree.Manam -
Automatic Goods Issue in Outbound delivery scenario with Shipment
Hi,
Could you please explain me how to Automatic Goods Issue happens in Outbound delivery scenario and in shipment process.
Is there any transaction for this?
Can we use VL23 for Automatic Goods Issue in Shipment process? or is it only for Outbound delivery scenario?
How schedule a background job by using VL23- transaction, how we create variants on what selection criteria?
Could you please explain me in detail?
Thanks A lot.Hi Anil,
VL23 is to schedule Out bound Goods issue.Check once T.code VL06O.
Thanks,
Sree.Manam
Maybe you are looking for
-
How to refresh the panel's display in listener?
I have a Jcombobox and a panel(square,background color:white). I want user to choose the panel's size from the combobox and thus change the panel's display. However, when I choose a value from combobox, the panel's size DOES change, but the display c
-
I uploaded a video from my iphone 5 into Aperture and then I tried to export it to my desktop. After I clicked on Export, it attempted to export for a while but then gave me an error message saying that 0 of 1 videos was exported and it couldn't exp
-
How to resolve Server Exception during PPR, #16 ?
Hi, I am getting below stack trace while filtering on table's column. First time filter is working fine but second time onwards its giving this stack trace and after that everything become stop and I have to reload the whole page again. <Registration
-
"dynamic" String concat in Expression language
I would like to do something like (in Java) String s = flag? "this" : value + "that";in EL it would be #{flag ? 'this' : value + 'that'} but this leads to an error because it tries to add as numbers and not concat as strings. how can I do this? thank
-
Inheriting old TM Backup after fresh install of ML
Hi, I have the following setup: SSD with OS and apps, HDD-RAID volume with accounts from two users, HDD Volume as a TM medium (with a bit of other stuff on it). I made a fresh install of ML on the SSD and gave the same user names as before. I deleted