Application Development and Automation 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: 
Read only

USER-EXIT XD01

Former Member
0 Likes
1,507

Dear Experts,

Kindly help me out with a scenario given below-

Client wants to have automatic block set after creating new customer through T code XD01. The reason being , one authorised person will check the customer master & then release for sales & posting. But they want the same to be blocked automatically after saving new customer creation through XD01.

Dear Experts,

Kindly help me out with a scenario given below-

Client wants to have automatic block set after creating new customer through T code XD01. The reason being , one authorised person will check the customer master & then release for sales & posting. But they want the same to be blocked automatically after saving new customer creation through XD01.

4 REPLIES 4
Read only

Former Member
0 Likes
1,213

Hi,

Check BADI : CUSTOMER_ADD_DATA and method : PRESET_VALUES_SAREA.

Here you can put the block for the master data.

Hope this helps.

Read only

0 Likes
1,213

THANK YOU GAURAV,

BUT MY REQUIREMENT IS LIKE I WANT TO AUTOMATICALLY BLOCK A CUSTOMER AFTER SAVING NEW CUSTOMER IN XD01 .

Read only

0 Likes
1,213

Yes,

Changing the value of AUFSD in the structure E_KNVV of the method will solve your problem.

Ask your functional person for the possible value to be Put in the field . this will automatically put a block on the customer at the time of creation.

I assume you are aware of BADI implementations, if not please take a look at the below link.

SAPTechnical.COM - Searching and implementing BADI for VL02

Hope this helps.

Read only

0 Likes
1,213

Thank you Gaurav ,

Problem Solved.

Created an implicit exit in SAPMF02D. and added  following code.

if  t020-aktyp  = 'H',

*then

KNA1-AUFSD = 01.

endif.