Application Development and Automation 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: 
Read only

Field Exit help

Former Member
0 Likes
806

Hi Friends,

Im new to this concept. Can somebody please help me with this task. I am validating the fields

sold-to-party

PO number and purchase order item (vbkd-bstkd and vbap-posex) in VA01 (sales order Create). I have to check it for a valid combo of PO number and line item for a particular sales org.

Your suggestions are atmost welcome..

Thanks,

Kiran.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
766

Hi,

You can use the userexit USEREXIT_CHECK_VBAP in the include MV45AFZB..

Thanks,

Naren

Hi Friends,

Im new to this concept. Can somebody please help me with this task. I am validating the fields

sold-to-party

PO number and purchase order item (vbkd-bstkd and vbap-posex) in VA01 (sales order Create). I have to check it for a valid combo of PO number and line item for a particular sales org.

Your suggestions are atmost welcome..

Thanks,

Kiran.

5 REPLIES 5
Read only

Former Member
0 Likes
766

Hi,

in Se38 execute the program RSMODPRF will give list of all existed /created field exits. if the exit for your field already exists deactivate it and create new one and assignit to the screen name and no.

Sudheer.A

Read only

Former Member
0 Likes
766

Hi,

SAP is not supporting field exits anymore.

The reason is, the logic in a field exit is tied to the screens and later if someone wants to use a BAPI to create a PO, these type of exits will not be executed and will cause some inconsistencies.

Make use of a regular exits from the enhancement: MM06E005.

If you still want to use the field-exits, here is the procedure in 46C:

1. For field exits in R/3 4.6C, execute transaction CMOD. Then type PRFB in the command field. Another way to accomplish this is to use program RSMODPRF.

2. 1. Create a Function Group.

2. Run the program RSMODPRF, which will create a field exit (Mention the data element for which field exit is needed).

3. In the Function module created by the above program write the validation code you require.

Hope this helps,

Sumant.

Read only

0 Likes
766

Hi,

I have used MV45AFZZ, SAVE_DOCUMENT_PREPARE exit to check it. I have written the logic there. But whenevr I check for the above data It is entering that bit of code and then if its wrong I am doing it with a popup_warning. but when the user says continue then order is saved irrelevant of checks. Can somebody help with this. How can I set it like if the value in that field is wrong it should save it. Please suggest.

Thanks,

Kiran.

Read only

0 Likes
766

Hi Sumanth,

I would like to validate Meins field in MM01 means if user gives meins = kg ,i Hve to show eror.

I ahve created a filed exit for this using ur procedure .

can u pls suggest I have to do next.

Read only

Former Member
0 Likes
767

Hi,

You can use the userexit USEREXIT_CHECK_VBAP in the include MV45AFZB..

Thanks,

Naren