Availability check run requirement in the Sales order Save user Exit.
Hi Gurus,
As per the requirment we are using a user exit SAVE SALE ORDER PREPARE for BOM purpose to reconfirm the confirmation qty.
Now we need to add one more logic in the same user exit, which will run the availabilty check run for each of the line items of the BOM and consider latest confirmation qty from it. So my concern is it possible that we can call the availabilty check run event with in the user exit SAVE SALE ORDER PREPARE or this not advisable?
Please let me know..
Regards,
Babs
HI Venkat,
Thanks for your reply.Yes you are right availability check runs automatically at sub item level.
But please note the customer requirment iteself is is little different from std BOM configuration.
Currently the availabilty check is activated both at header and sub item level. They are maintaining the stock for header and sub item level.Also the these sub items are some time being sold as invidual materials. hence there exist a mismatch in the stock value between header and sub items.
when a sales order is created both header and sub items will have confirmation with different value between each and the same mismatched values are being passed in to delivery. But the deliveries can not be processed for PGI because of the mismatched confirmation qty between header and item level.
I guess now you the rrequirment.
So we are using the SAVE SALE ORDER exit which will re check the confirmed qty between header and item and takes lowest confirmed qty and change the confirmed quantities from all the line items to lowest one, so that confirmation qty among all the line items are same. This is the first logic we are planning.
Further there is one more additional process BOP need to be run for this header and sub items, which will change the confirmed qty based on the latest stock for individual line item. even in this case also the user exit SAVE Sale order is being called but we need to run the availability check run additionally because of which our requirment will be taken care.
Regards,
Babs
Similar Messages
-
To Populate the profit center field in the sales order by user Exit.
Hi All,
Please let me know :
How the user exit is used to populate the Profit center field in the Sales order?
Please gurus answer as quickly as possible as I require this urgently.If you want to overwrite the profit center in sale order (determined from the materail master) with a different profit center based some other criterion you can use profit center substitution rules. Check the wiki:
[Profit Center Substitution in Sales Orders|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/profitCenterSubstitutioninSales+Orders]
Regards,
GSL. -
How to trigger Availability check in Sales Order 'save' user exit.
I have requirements which dictate that I change item categories of most of the line items in a user exit. If I do that the line items no longer confirm. I know that the availability check happens in 'move_Field_to_vbap' user exit. Is there any way I can re-trigger it on save. These orders will be coming through a bapi. Thanks in advance.
Hi!
Search the way (via menu) in VA01 to trigger the availability check manually. Then have a look, with routines are called.
Then call this (these) routines in the exit. If you see something like 'perform okcode_...', then this should work. Be careful not to trigger recursive loops by this way. Maybe the prepare_save-exit is a better place to do this.
Regards,
Christian -
Hi,
I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.
Regards,
ShanmugaHello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
Points are always welcome if you feel an answer has been helpful. -
Sales Order Pricing User Exit Problem
Hi,
I am facing a problem related to coding in Sales Order pricing user exits. Scenario is as mentioned below:
Based on Material Entered and Sold To in Sales Order, auto determination of a manual pricing condition happens. For doing this, coding has been done in USEREXIT_PRICING_PREPARE_TKOMP by changing XKOMV table. Auto determination of the manual price is happening properly.
From Sales Overview Screen when user goes to the Conditions tab, Net Value is not getting calculated. When we navigate away to Schedule line tab and then come back to COnditions tab, Net Value is automatically getting calculated.
AM i missing something in the coding part? As the data is getting populated automatically I guess some piece of code needs to be triggered. Can anyone shed some light into this.
Thanks in advance,
thunderans.Prabhu: After filling in XKOMV structure, I am calling FM PRICING. On doing this, the Sales Pricing is getting calculated but even then net value of order at header i.e VBAK-NETWR is not getting populated when we are in Sales Overview screen. When, I am getting into Conditions tab and coming back to Sales Overview screen, Net value is getting populated correctly. This portion of everything not getting populated at the same time is bothering me. The pricing conditon that I am filling is a manual pricing condition.
I put a breakpoint after FM PRICING which correctly populates XKOMV structure. How do I properly update Order Net Value in Sales Overview screen wihtout having to navigate to any other tab?
Nicklas: I am looping at Order line within the user exit USEREXIT_PRICING_PREPARE_TKOMP and determining price. Once all line items are processed, I am using the FM PRICING for calculating Sales Prices.
J@Y: Request to send me a bit more details into your approach. -
Changing the Availability Check key in an existent Sales Order line
Hello gurus.
Is it possible to modify the Availability Check key (VBAP-MTVFP) of a material in an existent Sales Order line?
I changed it in the material master, but since documents are not automatically updated, I wanted to modify this value in an existing sales order line. I am not even able to find the field in it.
I had to delete the order line and create it again, but then I have troubles getting the exact same confirmed date that I had before.
Any help? Thank you.You cant see at item level. To see in sale order, click from top menu bar, Environment -- Availability. Now you can see the availability check on top of the screen.
Meanwhile, I dont think, this field will be in editable mode once partial delivery is made in which case, LSMW also wont help you.
If your requirement is desperate to change the availability check, to me the available option is close the existing sale orders, create fresh orders after changing the availability check in material master. On the other hand, if you want to change only in sale order, then the option is LSMW as you cant even succeeed in TCode MASS
thanks
G. Lakshmipathi -
Sales Order Creation User Exit
Hi,
during the creation of Sales Order via VA01, I need to perform some checks and update certain customized table if the Sales Order is blocked based on the Risk Category that was setup.
Does anyone know how to tell that a SO is going to be blocked in the user exit? Or is there any function module that i can used in the user exit to check whether the SO is going to be blocked?
Thanks and regards,
NormanHi,
Finding the risk category will give you the correct status of sales order being created, i.e. if it will be blocked or not. The risk category you define through customer and sales area. So check these values and you will get the correct status. This is what you can do before creating a sales order. Check for the required values in the back ground and later work as per your logic.
Hope this clarifies your doubt. Let me know if you need more information.
Thanks,
P. Anurag -
Sales order number user exit in Purchase order
hi,
There is a sales order number in Purchase order(item level/account assignment/sales order no)
Now, i have to populate the SO no in orders 05.
Can any one say the user exit for populating the sales order number in PO.Hi
Check the below exits related to purchasing in which the table EKKN is referenced
EKKN will have VBELN (sales order No) and POSNR (item of sales order)
M06B0001
Role determination for release of requisitions
M06B0001
Changes to communication structure for release of requisitions
M06B0003
Number range and document number
M06B0004
Number range and document number
M06B0005
Changes to communication structure for overall release of purchase requisitions
M06E0004
Changes to communication structure for release of purchasing document
M06E0005
Role determination for release of purchasing documents
ME590001
Grouping of requisitions for PO split in transaction ME59
MEETA001
Determination of schedule line type (backlog, immediate requirement, forecast)
MEFLD004
Determination of earliest delivery date for checking at time of goods receipt (PO only)
MELAB001
Generation of forecast delivery schedule: realization via creation profile
MEQUERY1
Enhancement for document overview ME21N / ME51N
MEVME001
Calculation of default GR quantity and over/underdelivery tolerances
MM06E001
User exits for inbound EDI messages and outbound purchasing documents
MM06E003
Number range and document number
MM06E004
Control of import data screens in purchase orders
MM06E005
Customer fields in purchasing documents
MEREQ001
Customer's own data in purchase requisitions
MM06E007
Change document for requisitions when converting into POs
MM06E008
Monitoring of contract target value in case of release orders
MM06E009
Relevant texts for "Texts exist" indicator
MM06E010
Field selection for vendor address
MM06E011
Activation of requisition block
MM06L001
Exits for determination of ratings in vendor evaluation
MMAL0001
ALE source list distribution: outbound processing
MMAL0002
ALE source list distribution: inbound processing
MMAL0003
ALE purchasing info record distribution: outbound processing
MMAL0004
ALE purchasing info record distribution: inbound processing
MMDA0001
Default values for delivery addresses
MMFAB001
User exit for generation of releases
MRFLB001
Control items during release creation
LWBON001
Enhancement of LIS update through extension of the communication structure MCKONA (business volumes and rebate income)
LWBON003
Change settlement data for end-of-period rebate settlement before creation of settlement documents
LWSUS001
Customer-specific source determination in Retail
LMEXF001
Conditions in purchasing documents without invoice receipt
LMEKO002
Enhance communication structure KOMP for price determination
<b>Reward points for useful Answers</b>
Regards
Anji -
Sales Order - partner user exit
Hi,
I have looked at the SDN posts and can not find one with an answer to my question. I need to check the bill-to-party when the order changes and disallow certain bil-to-parties (the customer must exist on knvp for the sales order sold-to-party). I can put code in to the one user exit (mv45afzz - USEREXIT_MOVE_FIELD_TO_VBAK) , however the relevant field is greyed out. Which is the correct user exit?
Thanks,
Leanne.Sorry, please explain with an example, I am missing your explaination.
Thanks,
Leanne -
Creating line item for a sales order in user exit
Hi
I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.You have to set the creation flag UPDKZ to 'I'.
to correctly use the user exit refer to OSS note 0381348 Using user exit, customer exit, VOFM in SD.
pls reward if helpful
Roberto -
Creating line item in a sales order by user exit
Hi
I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.You may also need to add an entry to the internal table XVBEP for the schedule lines.
-
Availability check of raw material during sale order processing
Dear experts,
When i am entering the finished good in sale order processing,system should check the raw material availabilty.Is it possible in STD sap
Regards,
murali.Rthanks to you all for your reply,
My customer is bright bar manufacturer,They just buy the steel bar & process it & sell it to the customer.So there is only one RAW MATERIAL.
Their all the activities are mainly based on raw material.So customer wants.....when we enter the finished good system should check the RM stock,based on RM STOCK,sytem should do the availability check...& confirm the delivery date
I have mapped customer requirement,after modifying item category & assignment......
Sales BOM explosion & delivery group is maintained for header material.availability check is on at component level & header level.So now system consider the raw material stock & it conform the dates when i do availability check combinely.
I would like to know how it will affet the MRP incase of alternative BOM....FURTHER PROCESSING
Is it the right practise.....Please reply............... -
Restrict Availability check for Line item in sales order
Hi Folks,
My requirement is some what different than the usual,I want to stop availability check for a particular line item,while creating sales order on a particular condition (example when quantity is changed for that line item),please suggest if there is any way to do so.
Thanks for your valuable support.Hi
we need to maintain the username of the person who has triggered this process through XI .
I BAPI we cannot instruct the BAPI to maintain a specific username.
that is why i am using this FM because this will allow us to maintain the change history with the username we want
Regards
Nikhil -
Is the Sales Order Item User Status available in user exit MV45AFZZ
Hello,
Does anyone know if a sales order line item user status is available within user exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT)?
I need to send an email when the status changes from one specific value to another specific value but I don't seem to have access to what the latest value is in this user exit.
I have found a table XTVSTAT which cntains some user status' but it's not clear which status maps to which line item.
If anyone has any suggestion please let me know.
Thanks,
RubyHi,
I do need to access the values as I need to check for a specific change to the user status from value A to value B.
I have already tried debugging the user exit and searching through the available variables but the status information doesn't seem to be available.
I guess I will have to try the output determination route. Can you explain this in a bit more detail please.
Thanks,
Ruby -
Best Practice - Check/React to Conditions Before Sales Order Save
I am saving, for discussionu2019s sake, what is essentially a sales order.
Component: /ALMGT/BT115H_SLSO
View: SOHOverView
When the 'Save' is pushed, we want to do some error checking/handling u2013 very simple stuff, like
If attr1 is initial and attr2 > 0
Issue message
set attr_status to u2018Situation1u2019
endif .
It seems like I can just redefine the eh_onsave() method, but I wanted to see if there is a more elegant or best practice methodology for doing this.
Thanks...
...Mike
Weu2019re running FRM ( [Fundraising Management|http://www.sap.com/services/portfolio/customdev/brochures/index.epx] ) u2013 SAP Custom Development u2013 on top of CRM 7.0Mike,
Good to see you here again. The best approach is actually to implement this logic below the UI layer in the oner order layer instead. Based on the component it looks like you are using a business transaction, which means you can use the BADI ORDER_SAVE to trigger the error.
Do a search in the CRM General Forum on how to use this. Now I'm not familiar with that solution, but the techniques for manipulating transactions and using the BADI's available should be the same if the data is being saved as business transactions inside of CRM.
Take care,
Stephen
Maybe you are looking for
-
Ipod froze and restored itself now pc wont recognize it
I have a 30GB Ipod Video and a Windows XP operating system-equipped with Itunes 7.1 My Ipod was working fine while I uploaded songs to it, but then i ejected it from itunes and it was frozen so I consulted the Apple site and reset it to their instruc
-
Active Directory Issues 10.7.4 & 10.7.5
Hi I'm having problems with all my 10.7.4 & 10.7.5 mac's. They're losing their connection to AD. When I got to unbind I get the follwing error: Unable to access domain controller This computer is unable to access the domain controller for an unknown
-
Trim Transparency is not working in Photoshop
I have a few of layers that have transparency, and I want to save them out as Transparent PNGs. For whatever reason when I saved it as a transparent PNG it is exporting it bigger than it should. It doesnt trim them to the non trasparent pixels, inste
-
How to enter BIOS settings on my Satellite M40?
How can I see the BIOS in my computer? I try in the begining but I cant do it.
-
Shipment cost with authorization check
Dear Expert, I have a problem about shipment cost, my requirement would like to check authorize by transport planning point during transaction VI01 VI02 VI03 VI04 but Standard shipment cost check only "Shipment Cost Type" there is the user exit to ch