2007 Jul 24 9:46 PM
I want to validate the Telephone field for the Business Partner(IS-Utilities) transaction 'BP'. I am not able to get any user exit where I can write my validation code.
Can someone please suggest how can we validate the data.
Thank a lot.
regards,
Atul
2007 Jul 25 11:58 PM
The most simplest way is to use the BDT of BP.
BDT allows custom code to be written around in BP by way of simple function modules. The call of the function modules are controlled through customizing.
The relevant functions for BDT customizing can be found using the area menu BUPT.
For your requirement of validating a telephone number:
go to transaction BUS2 and find out which field grouping has your field (telephone number). I think the field group for telephone number is 72.
Then go to transaction BUS3 and for the above determined field grouping find out to which View it belongs to (72 belongs to view BUA110).
Select BUA110 and then select the sub-node "FURTHER CHECKS" and you can insert your function module here with the applicable Application (you should create a Z one).
In your function module you should use function module BUP_BUPA_MEMORY_GET to get all the info from the memory and then run your logic to validate.
trust the above gets close to a solution. Award marks if you find it useful.
BHARATH
2007 Jul 25 5:40 AM
Dear Atul,
Give me the trasacion code to get user exit.
Bye,
Muralidhara
2007 Jul 25 1:37 PM
Hi Atul,
A question to you:
Do you want to validate the same via interface to an external application.
Anyway,you can do this in 2 ways:
1.Write a FM to validate the existence of Telephone number existing in an external application.To do this the FM should have the Host as an iput apart from Telephone number and port(for the external application) , the validations will happen in the external system and send the results back to SAP.
2.Store the telephone numbers in a ZTable and validate these - Not advisable though.
Regards
Amitav
2007 Jul 25 3:16 PM
Thanks for your response.
I am using transaction 'BP'. So basically I want to validate the telephone number on the 'Address' tab (under 'Communications' section).
I want to know a user exit (or BADI) where I can place my code and validate the telephone format as per user requirement.
Thanks.
regards,
Atul
2007 Jul 25 3:43 PM
Atul,
Check out these links
http://sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://erp.ittoolbox.com/groups/technical-functional/sap-r3-dev/573131
It might be useful.
Amitav
2007 Jul 25 11:58 PM
The most simplest way is to use the BDT of BP.
BDT allows custom code to be written around in BP by way of simple function modules. The call of the function modules are controlled through customizing.
The relevant functions for BDT customizing can be found using the area menu BUPT.
For your requirement of validating a telephone number:
go to transaction BUS2 and find out which field grouping has your field (telephone number). I think the field group for telephone number is 72.
Then go to transaction BUS3 and for the above determined field grouping find out to which View it belongs to (72 belongs to view BUA110).
Select BUA110 and then select the sub-node "FURTHER CHECKS" and you can insert your function module here with the applicable Application (you should create a Z one).
In your function module you should use function module BUP_BUPA_MEMORY_GET to get all the info from the memory and then run your logic to validate.
trust the above gets close to a solution. Award marks if you find it useful.
BHARATH
2007 Jul 26 3:57 PM
Hi Bharath,
Thanks for your solution , I think it will works.
I guess we cannot pass the data to the created Z FM. We need to read the data from the screen using the FM u have given and again write back to the screen by using may be some other FM .
Thanks for your solution.
Amitav , Actually I am familiar with the User-exits in SD/MM and how to get it but the problem is it seems to be slightly different when it comes to BP(IS-Uilities). I was not able to get an User-exit and so I had posted this question. Thanks for your suggestions too.