on 10-31-2011 12:19 AM
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
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.