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: 

block the field KNA1-AUFSD using the transaction XD01 or VD01

Former Member
0 Kudos
1,283

Hi All,

When creating a customer i need to change automatically the field AUFSD off (the table KNA1) .

I try some:

- Via User exit SAPMF02D, but this change is not possible using this Exit.

- Via BTE SAMPLE_INTERFACE_00001321, but this change is not possible using this Exit.

- Via BTE SAMPLE_INTERFACE_00001340, but this change is not possible using this Exit.

-Via Badi Z_CUSTOMER_ADD_DATA, not working at SAVE_DATA method.

Does any one have any idea how to handle this situation?

Change this field KNA1-AUFSD using the transaction XD01 or VD01?Both transaction can be triggred.

As per my knowledge I have only one option, that in workflow at save triggering of customer I can achieve this blocking of a customer. Associated with the workflow, I will attach a z method to blocks the customer

Please comment on this...

Thanks,

Pramod

1 REPLY 1

Former Member
0 Kudos
249

Hi

In the user-exit SAPMF02D you can try to change the value by field-symbols:

FIELD-SYMBOLS: <AUFSD> TYPE ANY.

DATA: KNA1_AUFSD(10) VALUE '(SAPMF02D)KNA1-AUSFD'.


IF SY-TCODE+2(2) = '01'.
  ASSIGN (KNA1_AUFSD) TO <AUFSD>.	 
  <AUFSD> = 'X'.
ENDIF.

Max