12-10-2008 10:01 AM
Hi,
I need to block a couple of Payment terms in VD03 ( KNVV-ZTERM )
For that i need to find an exit to handle data associated with KNVV.
Are there any exits available?
Regards,
Remi
12-10-2008 10:19 AM
12-10-2008 12:55 PM
Hi,
Thank you for the response.
I tried writting code in the exit :
EXIT_SAPMF02D_001. (Customers: User Exit for Checks prior to Saving)
DATA zterm TYPE dzterm.
"-- Block Payment Terms in SO --
SELECT SINGLE zterm
FROM zblkso
INTO zterm
WHERE zterm = i_knvv-zterm.
IF sy-subrc = 0.
MESSAGE e013(zmsg) WITH i_knvv-zterm.
ENDIF.
Set a break point to check whether it goes to that point when i try saving.
It does not even trigger.
I needed a point for KNVV much similar to form exit :
userexit_move_field_to_vbak.
Regards,
Remi
12-10-2008 2:50 PM
Hi,
I think that I know what is your trouble.
Do you have created a project with tcode CMOD? (because you tell us that you have wrote the coding in the FM EXIT_) If the answer is no, create it, add the enhancemt, activate the project and in the include ZX write the coding. Set a break-point and check it.
I hope this help you
Regards,
Eduardo
12-11-2008 4:51 AM
Yes,
I missed out on that. Thanks!
Now, the break point is reached prior to saving.
Which means each time for the check to happen, i should click on Save.
Now, my code throws an error to the screen, but saves the value & exits the screen
I even tried clearing i_knvv-zterm.
Still no use. Is there some exit which checks data once it's entered.
Regards,
Remi
12-11-2008 6:21 AM
Hi,
Try with BADI 'CUSTOMER_ADD_DATA'.
Note 577502 - Enhancements without modification in customer master record will help you.
Regards,
Eduardo
12-12-2008 2:31 PM
Hello,
Implement the BADI
CUSTOMER_ADD_DATA_CS and method GET_DATA where u can find
Changing paratmere KNVV data .
it wil work ....
Regards
12-15-2008 8:25 AM
Hi,
I am working in IDES 4.6c.
I have handled KNVV-ZTERM using field exit.
Now, i can block the payment terms as per requirement.
Are field exits recommended?
Regards,
Remi
12-10-2008 10:37 AM