on 10-10-2013 9:43 PM
Hello Experts,
We're developing a solution for handheld devices and are using ITS mobile. SAP version is ECC 6.0 and Basis component is SAPKB70111.
For one of the custom screens, the value of material number appears in two lines instead of one. This appears to be happen when there is '-' character as part of hte material number. i.e. 123-456
This does not appear to be happening when the material number is without '-' (hyphen)
has anyone come across this?
Please let me know if you need more information on this one.
Thank you.
Vaibhav
Hello,
We were able to sort out the issue by putting a box around the value field for material number using standard graphics editor. This brought it on one line.
Thank you.
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Oisin,
Yes, the issue appears only on handheld. On desktop, it appears in one line.
here is the code -
============
if ( ( ~DYNPRO_COMPRESSION != "1" && ~DYNPRO_COMPRESSION != "X" ) ||
( 'GW_SCREMATNR'[1].exists == "X" && 'GW_SCREMATNR'[1].visible == "X" ) ||
0 )
`<!-- line 6 -->
<div class="MobileRow">`
if ( 'GW_SCREMATNR'[1].exists == "X" )
if ( 'GW_SCREMATNR'[1].mode == "multiline" )
`<textarea `
`class="MobileEditMultiline`class_ext('GW_SCREMATNR', 1); class("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].disabled == "X" ) `disabled="disabled" `end;
if ( 'GW_SCREMATNR'[1].readonly == "X" ) `readonly="readonly" `end;
if ( 'GW_SCREMATNR'[1].okcode != "" )
`onchange="setOkCode('`'GW_SCREMATNR'[1].okcode`');return false;" `
end;
`style="`width("21", "17.220em"); style("GW_SCREMATNR", 1)`" `
`rows="`'GW_SCREMATNR'[1].rows`" `
`onfocus="setFocusField('`'GW_SCREMATNR'[1].name`');" `
`onblur="leaveFocusField('`'GW_SCREMATNR'[1].name`');" `
`name="`'GW_SCREMATNR'[1].name`">`'GW_SCREMATNR'[1]`</textarea>`
else
if ( 'GW_SCREMATNR'[1].disabled == "X" )
if ( 'GW_SCREMATNR'[1].visible != "X" )
`<input type="hidden" `
elseif ( 'GW_SCREMATNR'[1].type == "Password" )
`<input type="password" readonly="readonly" tabindex="-1" `
`style="`width("21", "17.220em"); style("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].highlighted == "X" )
`class="MobilePasswordHighlightedDisabled `class("GW_SCREMATNR", 1)`" `
else;
`class="MobilePasswordDisabled `class("GW_SCREMATNR", 1)`" `
end;
elseif ( 'GW_SCREMATNR'[1].inputrequired == "X" )
`<input type="text" readonly="readonly" tabindex="-1" `
`style="`width("21", "17.220em"); style("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].highlighted == "X" )
`class="MobileEditRequiredHighlightedDisabled `class("GW_SCREMATNR", 1)`" `
else;
`class="MobileEditRequiredDisabled `class("GW_SCREMATNR", 1)`" `
end;
else
`<input type="text" readonly="readonly" tabindex="-1" `
`style="`width("21", "17.220em"); style("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].highlighted == "X" )
`class="MobileEditHighlightedDisabled `class("GW_SCREMATNR", 1)`" `
else;
`class="MobileEditDisabled `class("GW_SCREMATNR", 1)`" `
end;
end;
`name="`'GW_SCREMATNR'[1].name`" `
if ( ( 'GW_SCREMATNR'[1].inputrequired == "X" ) && ( 'GW_SCREMATNR'[1] == "?" ) )
`value="" `
else
`value="`strmaskext('GW_SCREMATNR'[1], 1)`" `
end;
`size="`'GW_SCREMATNR'[1].width`" maxlength="`'GW_SCREMATNR'[1].maxinputsize`"/>`
else <!-- not disabled -->
if ( 'GW_SCREMATNR'[1].visible != "X" )
`<input type="hidden" `
elseif ( 'GW_SCREMATNR'[1].type == "Password" )
`<input type="password" `
`style="`width("21", "17.220em"); style("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].highlighted == "X" )
`class="MobilePasswordHighlighted `class("GW_SCREMATNR", 1)`" `
else
`class="MobilePassword `class("GW_SCREMATNR", 1)`" `
end;
elseif ( 'GW_SCREMATNR'[1].inputrequired == "X" )
`<input type="text" `
`style="`width("21", "17.220em"); align("GW_SCREMATNR", 1); style("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].highlighted == "X" )
`class="MobileEditRequiredHighlighted `class("GW_SCREMATNR", 1)`" `
else
`class="MobileEditRequired `class("GW_SCREMATNR", 1)`" `
end;
else
`<input type="text" `
`style="`width("21", "17.220em"); align("GW_SCREMATNR", 1); style("GW_SCREMATNR", 1)`" `
if ( 'GW_SCREMATNR'[1].highlighted == "X" )
`class="MobileEditHighlighted `class("GW_SCREMATNR", 1)`" `
else
`class="MobileEdit `class("GW_SCREMATNR", 1)`" `
end;
end;
if ( 'GW_SCREMATNR'[1].okcode != "" )
`onchange="setOkCode('`'GW_SCREMATNR'[1].okcode`');return false;" `
end;
`onfocus="setFocusField('`'GW_SCREMATNR'[1].name`');" `
`onblur="leaveFocusField('`'GW_SCREMATNR'[1].name`');" `
`name="`'GW_SCREMATNR'[1].name`" `
if ( ~currdynpro.speechenabled != "" )`id="`'GW_SCREMATNR'[1].name`" `end;
if ( ( 'GW_SCREMATNR'[1].inputrequired == "X" ) && ( 'GW_SCREMATNR'[1] == "?" ) )
`value="" `
else
`value="`strmaskext('GW_SCREMATNR'[1], 1)`" `
end;
`size="`'GW_SCREMATNR'[1].width`" maxlength="`'GW_SCREMATNR'[1].maxinputsize`"/>`
end;
end;
else
`<span style="`margin_left("21", "17.220em")`; height:1px"></span>`
end;
if ( 99 != 0 )
`<span style="`margin_left("99", "81.180em")`; height:1px"></span>`
end;
<!-- content row end -->`
</div>
`end;
============
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vaibhav,
Can the source code of the template screen that is used to display this material number in the "mobile screen" be uploaded here?
Is it only on the Handheld Mobile Browser that you see the behaviour? what if same ITSMobile Service is accessed from a Desktop Browser?
Regards,
Oisin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.