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: 

User Exit VA01 MV45AFZZ USEREXIT_PRICING_PREPARE_TKOMP

Former Member
0 Kudos

i made chek point in for va01 in MV45AFZZ USEREXIT_PRICING_PREPARE_TKOMP, for check sales order net value,but this error comes before condition record update My requirement is error come when all condion record updated mannually from condition tab, then Error flag in Va01.  Pelase help.

Code Like this :

  IF  vbap-netwr  < it_final-petrt and it_final-sappr ne 'Y'.          IF SY-SUBRC = 0.           MESSAGE e000(zsd) WITH 'Sales cost price is ' vbap-netpr.           FG = 1.          endif.

2 REPLIES 2

0 Kudos

Hello,

instead of the obove user exit you can use USEREXIT_CHECK_VBAP form MV45AFZB.     

This Userexit can be used to add addtional logic for checking the position for completeness and consistency.
This form is called from form VBAP_PRUEFEN_ENDE.

Benni

Former Member
0 Kudos

Hi Bhavesh,

You need to check once condion record updated mannually from condition tab.

Then you need to import the action in the logic & write the logic as below.

DATA : record_tab TYPE  seahlpres OCCURS 0 WITH HEADER LINE.

IMPORT record_tab FROM MEMORY ID 'mcx_record_tab'.

READ TABLE record_tab INDEX sy-tabix.

IF sy-subrc EQ 0 AND record_tab-string(1) EQ C.

Then write your logic here.

Please let me know it helps or not...