07-04-2012 10:57 AM
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.
07-04-2012 11:53 AM
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
07-04-2012 1:11 PM
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...