cancel
Showing results for 
Search instead for 
Did you mean: 

Set mandatory Payment methods for specific Terms of payment

antonio_bruno
Participant
0 Kudos

Hi,

Is it possible set as mandatory, in the Customer Master Data, the field Payment methods (KNB1-ZWELS) in function of specific Terms of payment (KNB1-ZTERM)?

Thanks and best regards.

Antonio

Accepted Solutions (1)

Accepted Solutions (1)

shashi_thakur
Contributor
0 Kudos

Hi Antonio,

If you wish to make the field KNB1-ZTERM mandatory then you can do so using the customizing for the Account Group.

If however, you want it to be mandatory only when KNB1-ZTERM is filled or filled with certain values, then you can use the user-exit EXIT_SAPMF02D_001 to do the necessary coding. The pseudo-code would be something like shown below.

IF I_KNB1-ZTERM IS NOT INITIAL.

   IF I_KNB1-ZWELS IS INITIAL.

             Give Message 'Please fill the Payment Method'. (Can be a Error, Warning, or Information Message)

   ENDIF. 

ENDIF.

Regards,

Shashi

antonio_bruno
Participant
0 Kudos

Thanks for the help.

Best regards.

Antonio

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try to do it with the enhancement SAPMF02D

Regards

Eduardo