Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

USEREXIT VA02

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

Hi,

use the following

Include: MV45AFZZ.Inside the include use

FORM userexit_save_document_prepare.

Regards,

Nagaraj

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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