cancel
Showing results for 
Search instead for 
Did you mean: 

bhtml comparing strings

Former Member
0 Kudos

Hi,

I'm currently in the process of modifying some ITS Templates for our ESS Open Enrollment application. Based on who is logging in, I must either prompt them for a screen to allow employees to reset their passwords or proceed to reset their passwords automatically.

To differenciate these two groups, I'm comparing the login ID (~login) against a temporary ID that begins with ID followed by 6 digits (i.e. ID400088). I have the following command:

`if (~login=="ID400088")`

`else`

`end`

So, what I would like to do is to have an IF statement that would work for all IDs. In ABAP, it would be something like this:

`if (~login+0(2)=="ID")`

`else`

`end`

Can you please provide some assistance or suggestions?

Thanks,

Paul (new to BHTML)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Paul,

I believe you are looking for HTMLBusiness' "strSub" function. You can find documentation on

http://help.sap.com/saphelp_nw04/helpdata/en/5f/1fb5174aee11d189740000e8322d00/frameset.htm

-> HTMLBusiness Language Reference -> HTMLBusiness Functions -> strSub

Regards,

Jan