USEREXIT_BATCH_DETERMINATION -
Hi All,
I need some help in batch determination user-exit in delivery processing.
I am passing the MCHA-CHARG, into lips-charg. and delivery is created as expected with the selected batch. BUT issue is if the batch is not having sufficeint quanity, then I would like the system to pick the next batch by adding other delivery line item with 90000, 900001, 900003, 900003 etc until .. all open qty become 0. Please help me where should I code this,
*... ALLGEMEINE PRüFUNG DER CHARGE
PERFORM LIPS-CHARG_PRUEFEN_ALLGEMEIN(SAPFV50P) USING LIPS-MATNR
LIPS-WERKS
MCHA-CHARG
LIPS-SOBKZ
SY-DATUM
LIKP-LFDAT
SPACE
UBD_SUBRC.
IF UBD_SUBRC = 0.
LIPS-CHARG = MCHA-CHARG. "CHARGE üBERNEHMEN
ENDIF.
In case Delivery Qty is more then available batch quantity, it is taking only the available batch qty and creating Delv. remaining qty is left open, Instead I would like to add other line 900002 and take the next batch. please suggest how to acheive this.
Hi,
I am not seeing any response for this question. can someone please reply and show me the path to begin with or at least ask me more questions, if my question is not clear.
Thank you
Anitha
Edited by: Anitha Reddy Rapole on Jul 26, 2010 6:06 PM
Similar Messages
-
Overdelivery shipping for make-to-order production
Hello,
I have the following business scenario example:
We have a make-to-order production of carton boxes.
A customer places an order for 1000 UN.
Production is always planned with an overdelivery tolerance so the actual produced quantity for that particular order is 1050 UN.
The customer allows an overdelivery of 10% so it should be fine to ship the 1050 UN.
When I create the outbound delivery, the system creates it for the exact sales order amount: 1000 UN, even though there are 1050 UN produced for that order and item. So right now, the user has to manually modify the delivery quantity to match the actual stock.
Is there a standard way of configuring the system so that in the delivery creation the system selects the entire produced quantity (respecting the overdelivery tolerance)??
Do I need a user exit for this? In that case, which one should I use and what would be the logic for it?
Thanks for your help!Hi,
Unfortunately there is no easy way to influence delivery quantity in delivery processing by user exit or customer function.
At creation of an delivery FORM USEREXIT_BATCH_DETERMINATION in include MV50AFZZ would be the best option to influence the delivery quantity. Despite the name of this user exit it could be used for changing normal items as well and the main advantage of this user exit is that the ATP check is done afterwards.
If you change the delivery quantity please be aware that you have to ensure the consistency of all delivery quantity fields at item level (LIPS-LFIMG, LIPS-LGMNG, LIPS-LFIMG_FLO, LIPS-LGMNG_FLO). You could use FORM LIPS_QUAN_SET (Include FV50XFLP_LIPS_QUAN_SET) to synchronize all the quantity fields.
Regards,
Harry -
User Exit or BADI for Batch determination in VL01N
Hi Folks,
While creating deliveries in VL01N, SAP determines the available batch numbers for the material. Determining batch number will happen based on the characteristic values configured. My requirement is that i need to have access of all those available batches before the batch split happens. Suppose if it display three batches i need to delete the batch number in run time based on my custom logic. Currently i have checked a routine USEREXIT_BATCH_DETERMINATION but giving me only the top one available batch number instead of all. Is there any other Exit or BADI available to meet the requirement ? Please suggest.
Thanks in advance,
Shyam.Hi,
Use the MB_MIGO_BADI badi in that LINE_MODIFY method ...........
How you want to generate the batch number .......means if by number range object .......cal the fm there and pass on the number generated to charg field in go_item strucuture....
Thanks,
Shailaja Ainala. -
VL01N deactive Auto batch determination
Hi experts,
i need to deactive the mark Auto batch determination (TVLP-CHAUT or TVAP-CHAUT) for plant that doesn't have WMS when the transaction VL01N is executed.
With user exit or BADI can be used to change this field TVLP-CHAUT? I haven't found a BADI or exit than contains this field.
thanks in advance,
Alejandromay be in MV50AFZZ
FORM userexit_batch_determination.
endform. -
Delivery_Block_User-Exit
Hi..
I want to locate a user-exit in the delivery pogram (SAPMV50A), that will block the delivery or display it in grey on the basis of certain conditions.
I went to SMOD and searched there but could not locate it anywhere.
Thank YouThese are the user exits in SAPMV50A
USEREXIT_BATCH_DETERMINATION
USEREXIT_BATCH_QUAN_ALLOCATION
USEREXIT_DELETE_DOCUMENT
USEREXIT_LGORT_DETERMINATION
USEREXIT_LIPS-KOQUI_DETERMINE
USEREXIT_MOVE_FIELD_TO_KOMKD
USEREXIT_MOVE_FIELD_TO_KOMKG
USEREXIT_MOVE_FIELD_TO_KOMPD
USEREXIT_MOVE_FIELD_TO_KOMPG
USEREXIT_MOVE_FIELD_TO_LIKP
USEREXIT_MOVE_FIELD_TO_LIPS
USEREXIT_NUMBER_RANGE
USEREXIT_READ_DOCUMENT
USEREXIT_REFRESH_DOCUMENT
USEREXIT_SAVE_DOCUMENT
USEREXIT_SAVE_DOCUMENT_PREPARE
You can find these in SE80.
If you want to modify this you need access key for the first time.
Maybe you are looking for
-
Firewire external hard drives won't mount after using Windows Vista
Hi to All, I installed Windows Vista Business in a SATA hard drive I added to my Mac Pro. Every time I select the HD from the start up disk in my preferences and restart, the next time I start up with Mac OS 10.6.1 all my firewire devices don't mount
-
Dear experts, I am trying to have the "Partner" field BSEG_VPTNR in the FBL3N layout when showing the GL line items But I can't find this field over there. I have searched the hidden fields and also field status variant. Can any experts here advise.
-
My contacts are no longer on my ipad? I wasn't syncing I was adding addresses.
I was adding addresses to my contacts on my ipad2 and went i hit done it took me out of contacts. When I went back in all of my contacts are gone. What to do?
-
ICloud, iCal & GoogleCal
Since iCloud resp. 10.7.2, Apple seems to not allow 3rd party software to sync to CalDAV calendars on iCal. Huge problem, because a) I want to push/sync to/from my iPhone through iCloud, as it's easy, but b) I must keep in sync with other users/busin
-
I have 2 tables in my database as: db3 Code | number primary key name | text priceperqty | number avail1 | number tempupdate transactedvalue | number Code | number foreign key I run following code: try Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); C