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

Enhancement for Customer Master XD01

Former Member
0 Likes
3,410

Hi All,

Coming straight to point. I am working for an enhancement for Customer master XD01/02. The task is simple, if the country (land1) is US, then the 'Jurisdiction Code' field should be made required, else the process remains same.

For this i have found an exit SAPMF02D, this exit will triger when user saves the data. But i want an exit that triggers in PAI of the screen XD01. If there is no such exit available then please give me exit that will triger while switching to other tabs in XD01/02.

One more question, Without using trx SPRO. can we show an obligatory mark on any field in XD01/02 using an exit or any other thing, programatically.

Thanks Guys,

Have a nice Weekend.

Sharat.

Message was edited by:

Sharat Chandra

Hi All,

Coming straight to point. I am working for an enhancement for Customer master XD01/02. The task is simple, if the country (land1) is US, then the 'Jurisdiction Code' field should be made required, else the process remains same.

For this i have found an exit SAPMF02D, this exit will triger when user saves the data. But i want an exit that triggers in PAI of the screen XD01. If there is no such exit available then please give me exit that will triger while switching to other tabs in XD01/02.

One more question, Without using trx SPRO. can we show an obligatory mark on any field in XD01/02 using an exit or any other thing, programatically.

Thanks Guys,

Have a nice Weekend.

Sharat.

Message was edited by:

Sharat Chandra

10 REPLIES 10
Read only

Former Member
0 Likes
2,121

Hi

I don't believe that's only one enhancement and just as you said It's triggered while saving.

Try to see some BTE (trx FIBF).

Max

Read only

0 Likes
2,121

Hi Max,

Thanks for your reply,

I am not able to process that transaction. Kinldy tell me how to use that transaction.

One more question, Without using trx SPRO. can we show an obligatory mark on any field in XD01/02 using an exit or any other thing, programatically.

Thanks,

Sharat.

Read only

0 Likes
2,121

Hi

I'm sorry but I believe you can't do it without to change the std SAPMF02D.

I checked the BTEs but just as the user-exit, they are triggered after saving the customer.

I believe, if it's possible, you should create two Customer Account Group (so manage it by SPRO).

If you can't do it, you can only or change the std SAPMF02D or trigger the control in the exit and so it'll be available only at the end.

Max

Read only

0 Likes
2,121

Thank you Max,

okay now i am doing the enhancement work in the same exit(SAPMF02D).

When the user saves the data, this exit will triger. But now there is a problem, the screen is changing after the exit is trigered(error message is displayed in some other screen). And now the user has to go back to first tab in 'General data' and he has to enter the 'Jurisdiction Code' .

I want this error message to be trigered in same screen where the 'Jurisdiction Code' field is there. So that he can enter the 'Jurisdiction Code' value and save the data.

Kindly guide me in this.

Thanks a lot.

Read only

0 Likes
2,121

Hi

I understood that, but you can't do it.

Only one exit is available and it's triggered at the end.

If you need to raise a message in the screen: you have to change directly that screen, i.e. you have to change the std program.

Or you create two de the difference customer account group: 'Jurisdiction Code' is mandatory for the first one and it isn't for second one. But It means to change the customizing and you don't want it, don't you?

Max

Max

Read only

0 Likes
2,121

Thanks Max,

So nice of you.

Well i will work on the same exit and include validations for US. If land1 is US, then while saving the exit will triger an error message if 'Jurisdiction Code' field is initial or else process remains same.

(OR)

If there are any issues then i will suggest the same to client (Create two difference customer account group).

In case, if you come accross any thing new, please post.

Thanks again,

Sharat Chandra.

Read only

0 Likes
2,121

Hi,

By any chance can i achive it by BADI's?

Thanks

Sharat.

Read only

0 Likes
2,121

Hi

You're stubborn, aren't you?

If you're using a release higher that 4.6C there's CUSTOMER_ADD_DATA, but it's to manage additional data, I don't know if it can be good for you.

Max

Read only

Former Member
0 Likes
2,121

Hi All,

There is a BADI to achive this. Address_check. Well i found it my self. Its working exactly as clint wanted.

Thanks All, Special Thanks to MAX.

Sharat Chandra.

Read only

0 Likes
2,121

Hi Sharat Chandra,

May I have the sample code for this? As I want to validate the field of search term in address tab.

Thank you.

Best regards.