cancel
Showing results for 
Search instead for 
Did you mean: 

IT 0006 Address Fields Special Charecters Punctuation Check(GB)

former_member182232
Contributor
0 Kudos

Hello All

Good Morning

We would like to setup a check on Address fields in IT 0006 to ensure users do not enter charecters such as Double Quotes, Commas, Hyphens and other special characters in address. This is for Great Britain

Lately we have been getting errors with the third party interfaces because of these special charecters .

Ideally I would like system to validate and throw error on the PA30 when the analysts are trying to enter these special charecters.

Will this be an User Exit or something else?

Is there a standard one for Great Britain to have these checks in place also we seem to have recent errors where RTI rejects if you don't have second address field/City at least in addition to "Street and House no".

P.S I have done search in SDN for similar queries/discussions before posting this query

Many thanks in advance

Regards

Ajay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can incorporate the validation in user exit EXIT_SAPFP50M_002.

Answers (3)

Answers (3)

former_member182232
Contributor
0 Kudos

Hello Guys

Many thanks for your help.

Regards

Ajay

0 Kudos

HI AJ,

Please refer to following SAP notes for your query resolution.

2146149 - HR GB: FPS corrrections to later leavers, old PAYID and address lines

2215056 - HR GB: FPS Post code check and apostrophe in addresses



The first note will take care of your issue of 1st and 2nd line optional, second note will allow certain punctuation but to be able to check all various punctuation you will have to write user exit, either of above post will help you as they have already touched the base on the subject of User exits.



Hope this helps


KR


Sid

pranay570708
Active Contributor
0 Kudos

Hi,

Go to SMOD, enter 'PBAS0001' ->Select components radiobutton and display. Look for exit used for customer checks (EXIT_SAPFP50M_001 or EXIT_SAPFP50M_002). Double click on it and go inside include  ZXPADU01/ ZXPADU02.

Use below code:

CASE INNNN-INFTY.

     WHEN '0006'.


CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN

         EXPORTING

           PRELP = INNNN

         IMPORTING

           PNNNN = I0006.

       CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP

         EXPORTING

           PNNNN = I0006

         IMPORTING

           PRELP = INNNN.


This INNNN structure will contain values entered on PA30 screen. Do necessary validation here.


Endcase.