08-09-2007 10:25 AM
Hi,
I want to Validate the <b>Quantity--RV45A-KWMENG</b> Field in <b>VA01</b> Tcode for a particular value.
Can somebody tell me what <b>USEREXIT</b> can be used for that??
Thanks,
Shashi Devi.
08-09-2007 11:51 AM
Hi Yvaraj,
When I write the data in this exit,No data is coming in the structures.
I find the structures blank.
Thanks,
Shashi Devi.
08-09-2007 11:27 AM
Hi Shashi,
Program Name: SAPMV45A
Include: MV45AFZZ
userexit: FORM userexit_save_document_prepare.
XVBAP and XVBEP are the structures which holds the materials and its details from VA01 and VA02.
Do all the validations from these structures XVBAP-KWMENG is the quantity field.
XVBEP is final structure whose values you can see in VA02 once the sales order is saved.
The Quantity field is XVBEP-CMENG.
This should solve your query.
Let me know if you need anymore clarifications.
Reward points if u find this suggestion helpful.
Thanks,
Yuvaraj
08-09-2007 11:30 AM
Hi,
use the following
Include: MV45AFZZ.Inside the include use
FORM userexit_save_document_prepare.
Regards,
Nagaraj
08-09-2007 11:32 AM
Hi,
Check these exits
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly
V45L0001 SD component supplier processing (customer enhancements
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing
Regards
Arun
08-09-2007 11:51 AM
Hi Yvaraj,
When I write the data in this exit,No data is coming in the structures.
I find the structures blank.
Thanks,
Shashi Devi.
08-09-2007 11:55 AM
What form are you writing the code in.
Try using USEREXIT_MOVE_FIELD_TO_VBAP or SAVE_DOCUMENT_PREPARE and check the qty field in VBAP.
08-09-2007 12:40 PM
Hi Shashi,
I have used the same structures. I am able to see the values.
Even my coding also depends on quantity field.
let me know if you want my code I will mail you that.
Please mail me at findmeonline_87@yahoo.com.
Thanks,
Yuvaraj
08-09-2007 11:59 AM
hi
1) SDAPO001 Activating Sourcing Subitem Quantity Propagation
2)SDTRM001 Reschedule schedule lines without a new ATP check
3)V45A0001 Determine alternative materials for product selection
4) V45A0002 Predefine sold-to party in sales document
5)V45A0003 Collector for customer function modulpool MV45A
6)V45A0004 Copy packing proposal
7)V45E0001 Update the purchase order from the sales order
8)V45E0002 Data transfer in procurement elements (PRreq., assembly)
9)V45L0001 SD component supplier processing (customer enhancements)
10)V45P0001 SD customer function for cross-company code sales
11)V45S0001 Update sales document from configuration
12)V45S0003 MRP-relevance for incomplete configuration
13)V45S0004 Effectivity type in sales order
14)V45W0001 SD Service Management: Forward Contract Data to Item
15)V46H0001 SD Customer functions for resource-related billing
16) V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
reward if usefull