2006 Nov 11 12:08 PM
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
2006 Nov 11 12:44 PM
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
2006 Nov 12 8:35 AM
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.
2006 Nov 12 9:00 AM
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
2006 Nov 12 10:05 AM
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.
2006 Nov 12 10:14 AM
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
2006 Nov 12 12:19 PM
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.
2006 Nov 12 12:54 PM
2006 Nov 12 1:10 PM
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
2006 Nov 30 9:52 AM
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.
2007 Sep 07 4:04 AM
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.