Function Returns the standard field help for an attribute
Example myhtmltext =
s10fieldhelp( "kunnr" ).
Format data:
  myattrname type string,
  myhtmltext type string.

myhtmltext =
  s10fieldhelp( myattrname ).
Parameters
Name Type Description
attrname string
Attribute name
htmltext string
Field help in HTML format
Description s10fieldhelp() returns the standard SAP help in HTML format for a class attribute. You can use this to display help for selected fields whose meaning may not be obvious to the user.

Example: 

HTML
<!-- Region -->

<div class="infoblock">
    <label class='label output' name="regio"></label>
    <img src="../../../icons/help.png" style="width:18px; cursor:pointer;"
      onclick="S10Apply('fieldhelp', 'regio', this, true, true); return false;"/>
    <br />
    <span class='output' name='regio'></span>
   
<span class='output' name='regio@text'></span>
</div>

ABAP
method fieldhelp.
  
datafname type string.
  
fname s10actionparameter( ).

  s10infomessage
(
     text = s10fieldlabel
fname )
     explanation 
s10fieldhelpfname )
     htmlformat 
'X' ).

  
endmethod.

 

  

Instead of an icon "help.png" you can also use a UTF-8 character for display:

<label class='label output' name="regio"></label>
<span class='label' style='cursor:pointer;'
  onclick="S10Apply('fieldhelp', 'regio', this, true, true); return false;">
    
</span>
<br />
<span class='output' name='regio'></span>
<span class='output' name='regio@text'></span>

 

Another way of displaying the label in this case is to underline it. To achieve a uniform display, it is best to define the appearance in the central CSS file "style/custom.style.css" in your project:

CSS
 /* custom.style.css */

.label.fieldhelp {
   
cursor:pointer;
   
text-decoration:underline;

HTML
 <label class='label output fieldhelp' name="regio"
    
onclick="S10Apply('fieldhelp', 'regio', this, true, true); return false;">
 </label>
           
 
<br />
 <span class='output' name='regio'></span>
 
<span class='output' name='regio@text'></span>}

 

 

 

 

Components S10 Framework