Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

User-Exit- KNA1

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

Tags:
Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question