cancel
Showing results for 
Search instead for 
Did you mean: 

ITS Mobile RF Template manipulation

bruce_fackerell
Explorer
0 Kudos

Hi All,

The dummy screen in the RF transactions points to either a 8X40 or a 16X20 screen. Unfortunately

the dummy screen has a style="width:135.0em" which cause the screen to stretch horribly.

 
<table class="MobileUserArea" cellpadding="0" cellspacing="0" border="0" style="width:135.0em">
                          <thead><tr style="height:-1px">`
                          repeat with i from 1 to 150
                             `<td style="width:`~itsmobile1UnitWidth`"/>`
                          end
                         `</tr></thead>
                            <!-- line 1 -->
                            <tr class="MobileRow">
                                <td colspan="151" rowspan="50">`
                                    `<div class="MobileIncludeFrame">`
                                        includeFrame (~frameName="EXIT0101")
                                    `</div>`
                                `</td>
                            </tr>

We would like to conditionally like to change the style from - style="width:135.0em"

style="width:18.0em" or style="width:36.0em" and for the

rowspan="20" or rowspan="40" depending screen size

Can we do an IF statment looking at the value of LRF_WKQU-DEVTY whether it is 1620 or 840?

How would this statment look in the template?

Thanks for help

Regards

Bruce

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Where do you put

field-symbols: <l_field> type any.

assign ('(SAPLLMOB)LRF_WKQU-DEVTY') to <l_field>.

field-set 'LRF_WKQU-DEVTY' 1 <l_field>.

field-transport.

exactly ?

bruce_fackerell
Explorer
0 Kudos

Hi,

You may for example have 2 screens 0100 and 2100 in the function group XLRF(SAPLXLRF). In SAPLLMOB 1100 the screen will point to one or the other screen depending on the users setting. In the 0100 screen and the 2100 screen have a module in the PAI say module get_screen_size.

Then the code in that is

field-symbols: <l_field> type any.

assign ('(SAPLLMOB)LRF_WKQU-DEVTY') to <l_field>.

field-set 'LRF_WKQU-DEVTY' 1 <l_field>.

field-transport.

Hope that helps.

Regards

Bruce

Former Member
0 Kudos

Hi Bruce

It seems that the declaration of these fields is not necessary.

I just use '`if (LRF_WKQU-DEVTY == "16X20")`" and it works.

The only problem i still have is that my 16X20 screen does not display as it should.

Buttons are still stretched. Well actually not stretched but the display seems to have too much space on the right.

The 8X40 screen displays as it should. I used the values as in the standard SAP 8X40 screen.

Any idea why the 16X20 won't work ?

Thanks for your help.

Merijn.

Former Member
0 Kudos

Ok Bruce,

The if doesn't work as it should.

The field LRF_WKQU-DEVTY is not known. Now i did what you said, but it still isn't working. Is it PAI or PBO, i've tried both, no result.

Could you give me more advice please.

Thanks.

EDIT: solved. My pbo module contained an error. But it is in the pbo module.

Edited by: MerijnBlommaert on Nov 21, 2011 11:50 AM

bruce_fackerell
Explorer
0 Kudos

Thanks Edgar,

That is helpful.

Actually solved it via the below for anyone else who follows.

Regards

Bruce

in the template


`if (LRF_WKQU-DEVTY == "16X20")`
  <table class="MobileUserArea" cellpadding="0" cellspacing="0" border="0" style="width:18.0em">
`else`
<table class="MobileUserArea" cellpadding="0" cellspacing="0" border="0" style="width:36.0em">
`end`

and later


`if (LRF_WKQU-DEVTY == "16X20")`
                          <thead><tr style="height:-1px">`
                          repeat with i from 1 to 20
                             `<td style="width:`~itsmobile1UnitWidth`"/>`
                          end
                         `</tr></thead>
`else`
                          <thead><tr style="height:-1px">`
                          repeat with i from 1 to 40
                             `<td style="width:`~itsmobile1UnitWidth`"/>`
                          end
                         `</tr></thead>
`end`

and in the screen XLRF screen


field-symbols: <l_field> type any.


 assign ('(SAPLLMOB)LRF_WKQU-DEVTY')  to <l_field>.

 field-set 'LRF_WKQU-DEVTY' 1 <l_field>.
 field-transport.

Former Member
0 Kudos

Hi Bruce,

I am facing the same issue and Please do tell me where is the location where I can copy the code provided. Is it at the end of the HTML template and IF not where else?

former_member316351
Active Contributor
0 Kudos

Hello Bruce,

If you wanted a solution for just one display type then you could see note 1316326.

If you still want an If statement then it is just standard Business HTML. You can find more information at:

http://help.sap.com/saphelp_nw70/helpdata/en/5f/1fb05e4aee11d189740000e8322d00/frameset.htm

Best regards,

Edgar