Default quantity on sales order - Via user-exit, Badi...
Hallo everybody,
do you know if it is possible to put a default quantity on a position of a sales order?
That is: user insert material code, does not input any quantity --> default 1Pc..
Thank you very much!
Edited by: Mike Farina on Jan 6, 2008 8:38 PM
Edited by: Mike Farina on Jan 6, 2008 8:57 PM
Please help me.... points, points, points...
Hi,
In program MV45AFZZ use the user exit :
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
there write simple code like this.
IF vbap-kwmeng IS INITIAL.
vbap-kwmeng = '1'.
ENDIF.
Rewards points if helpful.
Regards,
Srinivas Ch
Similar Messages
-
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. -
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 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 -
Default Quantity in Sales order. Urgent
Hi,
I have a product proposal maintained for the Document (sale Order), It take the material automatically I want the quantity also to be taken.
Also can how I can maintain default qty as in is sale order
ThanksHi Subodh,
I dont think you would need a help of an user exit. The option to copy the quantity from the product proposal to the sales order document is a standard process.
In the second screen of VA01, after you enter the Sold to Party, click on the product proposal icon in the application toolbar. In the pop-up window enter the document number and click on "Default with quantity option". This would ensure the line item quantities are also copied into the sales order document.
Regards
Nadarajah Pratheb -
Supress some fiels in sales order? user exit?
can somebody help me regarding this. i want to supress some fields in a standard sales order. i dont want to delete . i just want to supress some fields in a standard sales order. is there a user exit for it? if yes do tell me which user exit is it and how to use it?
hi,
To make optional / mandatory you can use in IMG - S&D-> Basic > Functions-> Log of incomplete Procedures => select the fields > from the tables and the system will check for them (OVA2/VUA2)
To make a filed entry enabled or grey (non-entry allowed):
User exits in the program MV45AFZZ-USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP.
If a field has no field name, it cannot be allocated to a group. The usage of the field groups (modification group 1-4) is as follows:
Modification group 1: Automatic modification with transaction MFAW
Modification group 2: It contains 'LOO' for step loop fields
Modification group 3: For modifications which depend on check tables or on other fixed information
Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit. This FORM routine is called up by the module FELDAUSWAHL.
Actually suppressing fielding sales orders userwise is quite easy. We are doing it in our company. For this we use userexit FORM USEREXIT_FIELD_MODIFICATION in MV45AFZZ.
Below is the sample code
IF SCREEN-NAME = 'VBKD-ABSSC'.
AUTHORITY-CHECK OBJECT 'ZMV45AFZZ' ID 'SCRFNAME' FIELD SCREEN-NAME.
IF sy-subrc = 0.
SCREEN-INPUT = 1.
else.
SCREEN-INPUT = 0.
ENDIF.
endif.
You place the authority check object in authorization profile in the role of the users, who should have access to the field (in this case it is VBKD-ABSSC), and there assign the corresponding fields that are to be accessed via this userexit.
pls reward points if the answer is helpful
REgards,
Murali -
Sales Order Create - User Exit
Does anyone have experience using available user exits to split sales order line items before saving SO?
After user enters a line item, we'd like to split the line item into 2 or more line items and schedule lines (VBEP). We are achieving this using exit "USEREXIT_CHECK_VBKD". However, we get the error "Item 000020 for schedule line 000011 is in the work area" (Message no. V1 357).
Error occurs when VBAP-POSNR is not equal to VBEP-POSNR.
Any suggestions?
Thanks,
David GuerreroThank you all for your responses.
The trick was to get table SVBEP populated with the proper values for field TABIX. We
achived this using MV45AFZZ user exit as follows:
FORM USEREXIT_MOVE_FIELD_TO_VBKD.
TABLES KNB1.
DATA PMTHD(10) TYPE C.
DATA L_SVBEP_LINES(06) TYPE N.
CLEAR: KNB1,
PMTHD.
re-indexing after splitting lines...
DESCRIBE TABLE SVBEP LINES L_SVBEP_LINES.
IF L_SVBEP_LINES GT 0.
loop at SVBEP WHERE TABIX NE 0.
READ TABLE XVBEP INDEX SY-TABIX.
IF SY-SUBRC EQ 0.
MOVE SY-TABIX TO SVBEP-TABIX.
MODIFY SVBEP.
ENDIF.
ENDLOOP.
ENDIF.
This corrects SVBPEP tabix entries after lines have been changed/added
programatically, via program MV45AFZB, FORM USEREXIT_CHECK_VBKD.
Thanks again!
-David -
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 -
Disable the characteristic window in sales order and user-exit to pick up
Hi Freinds,
I am working on 1 VC assignment in which
1. I have to pick up the characteristic values selected in VA02 in sales order before saving the change sales order.
2. I have to Disable the characteristic window (with characteristic name and value) appear after click on u2018item detail : configurationu2019 button in sales order (if the chracterstic say 'Approval' having the value 'Yes')
3. I have to disable the characteristic window after selecting the one of the characteristic value to 'Yes' in VA02
So I need to fetch this character value witnin sales order before saving the change sales order and need to restrict the user to change any other characteristic value(disable the characteristic window) .
Please guide for any user exit at configuration side to export and import the values in sales order and disable the characteristic window to restrict the user from changing any other characteristic value for the item.
Please do the needfull.
Best Regards,
Vikram ChavanHi,
Check....
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Reward points if useful....
Regards
AK -
How to change price in Sales order using user exit ?
The scenario is - when the user creates a sales order, there has to be an RFC called to another system to get the price of the materials in that system. Then it has to overwrite that price in this S.O.
Which exit in S.O can be used for this and then what processing needs to be done after the RFC call to get price. Like how the price can be overwritten on this S.O ? (Lets say to get price we use some BAPI to the other system). Any help ?Dear Theodorous,
1)Please check the Material has been extended to the second plant.
2) Assign the second Plant to Sales Org and Dist Channel
If you have any concern revert back the same
Regards
Amjath -
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,
BabsHI 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 -
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.
-
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. -
To add line items to sales order using User exit.
Hi ,
I have to add line items to sales order .
I have tried adding the code in usr exit move field _VBAP // Check VBAP and in savedocument _prepare . But in all the places I dont see it in VA01 . I can see it in the VA02 and VA03 . But I am not able to save the order as they have made the flooring term as mandatory field, and I am supposed to populate the XVBKD structure for this.
Pls tell me whts the procedure like say , should I popluate the XVBKD / XVBAP / and should i use the bapi_SALES_ITEM_CHECK to populate the structures at the save_document prepare.Hi,
1. It is not possible to delete records using DTW, only importing new records or updating existing ones are supported. These are the only valid operations via DTW.
2. It is possible to delete the contents of an edit text field by using the character / or -1. However it is not possible to clear an entire row/line using this notation.
Thanks & Regards,
Nagarajan -
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
Maybe you are looking for
-
On a macbook I purchased secondhand hard drive got corrupted and I started to get the flashing folder with the question mark, I purchased a new hard drive and snow lion install DVD I installed the hard drive and tried disc but kept getting blinking f
-
Media manager in Desktop manager not working
Hi for some reason my Media Manager is not highlighted so I can't select it in my Blackberry Desktop Manager. Any ideas? Cheers Solved! Go to Solution.
-
Photoshop CS5 Broken after 12.0.4 update
I have Windows 7 Home Premium 64 Bit. I've updated CS5 successfully to 12.0.4. However, now a lot of things don't work. The keyboard shortcuts no longer work properly. For example, sometimes when I press "C", it changes the opacity. Other times it do
-
My graphics card is dying. To be exact, the fan on my old Radeon 4650 card is making strange noises from time to time and when it does, the temperature on the card goes up. It is time for a replacement. After looking at the various cards, I settled o
-
Which one to consider izo-052 or izo-042?? please help..
Hi friends, I recently cleared my izo-051 exam now looking for OCA certificate soon..but confused in izo-052 or izo-042 which one is better and easier too..for a newbie as i don't have Oracle Practical experience but have pretty good knowledge of Ora