2009 Oct 29 11:51 AM
Hi,
I need to do some validation for Customer Master.
We have some custom fields added to KNA1 table. (the field need to validate is ZFLAG in KNA1)
Depending upon the Contact Person Function, the value of KNA1-ZFLAG should be changed.
For example, when the Contact Person Function is ZZ, the KNA1-ZFLAG should be X else it should be initial.
Currently, when we remove the Contact Person function ZZ, the ZFLAG value remains X, I need to reset it.
Problem is,in user exit EXIT_SAPMF02D_001, the KNA1 structure is in IMPORT.
I am not able to change it in EXIT_SAPMF02D_001.
Please guide me.
Regards,
R
2009 Oct 29 12:01 PM
Hi,
I need to do some validation for Customer Master.
We have some custom fields added to KNA1 table. (the field need to validate is ZFLAG in KNA1)
Depending upon the Contact Person Function, the value of KNA1-ZFLAG should be changed.
For example, when the Contact Person Function is ZZ, the KNA1-ZFLAG should be X else it should be initial.
Currently, when we remove the Contact Person function ZZ, the ZFLAG value remains X, I need to reset it.
Problem is,in user exit EXIT_SAPMF02D_001, the KNA1 structure is in IMPORT.
I am not able to change it in EXIT_SAPMF02D_001.
Please guide me.
Regards,
R
2009 Oct 29 12:01 PM
2009 Oct 29 12:13 PM
Hi,
I am not able to see that BADI ? I am using version 4.6C
Regards,
R.
2009 Oct 29 12:32 PM
Check
CUSTOMER_ADD_DATA_CS
check object types
BUS1010
BUS3007
KNA1
in transaction SWO1
2009 Oct 29 12:43 PM
2009 Oct 29 2:10 PM
Hi R,
Try this code in the user exit..
constants: fieldname(30) value '(SAPMF02D)KNA1-ZFLAG.
FIELD-SYMBOLS: <l_field>.
in the logic..
when contact person function is space.
assign (fieldname) to <l_field>.
<l_field> = ' '. (here KNA1-ZFLAG field is set to space when the above condition is met.)
Should Work.
Cheers
2009 Oct 29 2:30 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |