04-11-2006 4:40 PM
Dear All.
When creating a client i need to change automatically the field AUFSD off the table KNA1. I try to method:
- Via User_exit SAPMF02D,but this change is not possible using this Exit.
- Via BTE SAMPLE_INTERFACE_00001321.
Does any one have any ideia who to change this situation? Change this field KNA1-AUFSD using the transaction XD01.
Best Regards,
Thanks in advanced
Pedro Miguel Rodrigues
04-11-2006 5:14 PM
Hello Valtin.
I try the BTE SAMPLE_INTERFACE_00001340, but the field was not change.
Could you please send me a Sample.
Best Regards,
Thanks in advanced
Pedro Miguel Rodrigues
04-11-2006 5:03 PM
Hello Pedro,
you could try the BTE 1340 (SAMPLE_INTERFACE_00001340) and the trick changing the KNA1 field with dynamic assign to (SAPMF02D)KNA1-AUFSD.
Hope that helps.
Regards Wolfgang
04-11-2006 5:14 PM
Hello Valtin.
I try the BTE SAMPLE_INTERFACE_00001340, but the field was not change.
Could you please send me a Sample.
Best Regards,
Thanks in advanced
Pedro Miguel Rodrigues
04-12-2006 3:36 PM
Hello Pedro,
sorry for the late answer.
It would be something like this:
FUNCTION Z_TEST_00001340 .
....
constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
field-symbols: <L_FIELD>.
IF <your condition>.
Assign (fieldname) to <l_field>.
<L_FIELD> = '01'. " value according to your requirement
ENDIF.
ENDFUNCTION.
But be carefull; with this kind of programming you can change almost any value..
Regards Wolfgang