2007 Jan 13 12:27 PM
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
2007 Jan 13 12:52 PM
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