Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Do we have any function module to get leading 'X' in a variable?

$
0
0

Hi Experts,

 

Do we have any FM to get leading 'x' in a variable? My requirement is i have bank key field of 15 char length.for example see below code.

 

DATA : L_bank TYPE CHAR15.

l_bank = 'ABCD1234'.

 

in the above variable i have to display like ...'XXXX1234'.I need pad with 'X'.Last 4 digits as it is and remaining with 'x'.how to do this?

 

Thanks in adv.

 

Regards,

Raj....


Viewing all articles
Browse latest Browse all 8332

Trending Articles