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 for VD03 to handle Payment Term (KNVV-ZTERM)

p190355
Active Contributor
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

try this

SAPMF02D------->EXIT_SAPMF02D_001

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

Try with BADI 'CUSTOMER_ADD_DATA'.

Note 577502 - Enhancements without modification in customer master record will help you.

Regards,

Eduardo

0 Kudos

Hello,

Implement the BADI

CUSTOMER_ADD_DATA_CS and method GET_DATA where u can find

Changing paratmere KNVV data .

it wil work ....

Regards

0 Kudos

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

Former Member
0 Kudos

u can also try these badi's