SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Business Partner - userexit to validate Telephone field

Former Member
3,258

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

1 ACCEPTED SOLUTION

bharath_shankar
Explorer
0 Kudos
1,132

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

View solution in original post

6 REPLIES 6

Muralidhara
Active Contributor
0 Kudos
1,132

Dear Atul,

Give me the trasacion code to get user exit.

Bye,

Muralidhara

Regards - Muralidhara

Former Member
0 Kudos
1,132

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

Former Member
0 Kudos
1,132

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

bharath_shankar
Explorer
0 Kudos
1,133

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

Former Member
0 Kudos
1,132

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.