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: 

User-Exit- KNA1

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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