Auf einem SAP Adobe Forms Formular sollen Icons des Sapgui gedruckt werden. Auf dem Dynpro einer Bestellanforderung stellen Icons den Status des Vorgangs dar. Diese Icons sollen auch im Formular zur Bestellanforderung abgebildet werden. In unserem Beispiel sind es grüne OK-Icons.
[av_hr class=’invisible‘ height=’10‘ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-634rynm‘]
[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2015/06/Drucken-von-SAP-Icons-auf-Adobe-Forms-1.png‘ attachment=’15627′ attachment_size=’full‘ align=’center‘ animation=’no-animation‘ link=“ target=“ styling=“ caption=“ font_size=“ appearance=“ av_uid=’av-5qvfbwy‘][/av_image]
Grüne SAP OK-Icons im Dynpro zur Bestellanforderung
[av_hr class=’invisible‘ height=‘-50′ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-571vbea‘]
[av_heading heading=’Hinzufügen eines Feldes vom Typ RAWSTRING‘ tag=’h3′ style=“ size=“ subheading_active=“ subheading_size=’15‘ padding=’0′ color=“ custom_font=“ av_uid=’av-4po2lg2′][/av_heading]
Zunächst ist in der Struktur an der Schnittstelle zum Formular ein Feld vom Typ RAWSTRING einzufügen. Dieses Feld nimmt dann später den binären Inhalt des Icons auf.
[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2015/06/Drucken-von-SAP-Icons-auf-Adobe-Forms-3.png‘ attachment=’15629′ attachment_size=’full‘ align=’center‘ animation=’no-animation‘ link=“ target=“ styling=“ caption=“ font_size=“ appearance=“ av_uid=’av-4hqco8i‘]
[/av_image] [av_hr class=’invisible‘ height=‘-50′ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-3r5enma‘]
[av_heading heading=’Lesen des binären Inhalts der Icons‘ tag=’h3′ style=“ size=“ subheading_active=“ subheading_size=’15‘ padding=’0′ color=“ custom_font=“ av_uid=’av-3iwfn2q‘][/av_heading]
Im ABAP-Coding des Druckprogramms ist folgendes beispielhaftes Coding zu implementieren, um den binären Inhalt des Icons zu lesen.
*&———————————————————————* *&
Form INSERT_ICON_ITEM
*&———————————————————————
* FORM insert_icon_item CHANGING ps_item TYPE zmri.
* Deklarationen —————————————————— *
DATA: lo_bds TYPE REF TO cl_bds_document_set,
lv_objkey TYPE bapibds01-objkey,
lt_files TYPE TABLE OF bapifiles,
ls_files TYPE bapifiles,
lt_content TYPE sbdst_content,
ls_content LIKE LINE OF lt_content.
* To download icons
IF ps_item-zzfrgkz = ‚X‘.
lv_objkey = ‚ICON_INCOMPLETE‘.
ELSEIF ps_item-zzfrgkz = ‚2‘.
lv_objkey = ‚ICON_OKAY‘.
ENDIF.
CALL METHOD cl_bds_document_set=>get_with_table
EXPORTING classname = ‚SAP_ICONS‘
classtype = ‚OT‘
object_key = lv_objkey
CHANGING content = lt_content
EXCEPTIONS error_kpro = 1
internal_error = 2
nothing_found = 3
no_content = 4
parameter_error = 5
not_authorized = 6
not_allowed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
LOOP AT lt_content INTO ls_content.
CONCATENATE ps_item-zzicon ls_content-line INTO ps_item-zzicon IN BYTE MODE.
ENDLOOP.
ENDFORM. “ INSERT_ICON_ITEM
[av_hr class=’invisible‘ height=‘-50′ shadow=’no-shadow‘ position=’center‘ custom_border=’av-border-thin‘ custom_width=’50px‘ custom_border_color=“ custom_margin_top=’30px‘ custom_margin_bottom=’30px‘ icon_select=’yes‘ custom_icon_color=“ icon=’ue808′ font=’entypo-fontello‘ av_uid=’av-2x9387m‘]
[av_heading heading=’Einbinden der Icons in das SAP Adobe Forms Formular‘ tag=’h3′ style=“ size=“ subheading_active=“ subheading_size=’15‘ padding=“ color=“ custom_font=“ av_uid=’av-2eq7liq‘][/av_heading]
Im Kontext des Adobe Forms wird ein Grafikknoten vom Typ „Grafikinhalt“ hinzugefügt und mit dem Feld der Struktur vom Typ RAWSTRING verknüpft.
[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2015/06/Drucken-von-SAP-Icons-auf-Adobe-Forms-4.png‘ attachment=’15630′ attachment_size=’full‘ align=’center‘ animation=’no-animation‘ link=“ target=“ styling=“ caption=“ font_size=“ appearance=“ av_uid=’av-250b5aq‘][/av_image]
[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2015/06/Drucken-von-SAP-Icons-auf-Adobe-Forms-5.png‘ attachment=’15631′ attachment_size=’full‘ align=’center‘ animation=’no-animation‘ link=“ target=“ styling=“ caption=“ font_size=“ appearance=“ av_uid=’av-1s9oy0i‘][/av_image]
Im Form Builder wird ein Bildfeld angelegt und mit dem Grafikfeld des Kontextes als Datenbindung verknüpft.
[av_gallery ids=’15632, 15633′ style=’thumbnails‘ preview_size=’portfolio‘ crop_big_preview_thumbnail=’avia-gallery-big-crop-thumb‘ thumb_size=’portfolio‘ columns=’2′ imagelink=’lightbox‘ lazyload=’avia_lazyload‘ av_uid=’av-hgc36′]
Voilà, die Icons erscheinen nun im Adobe Form.
[av_image src=’http://solidforms.de/solid_wp_2014/wp-content/uploads/2015/06/Drucken-von-SAP-Icons-auf-Adobe-Forms-2.png‘ attachment=’15628′ attachment_size=’full‘ align=’center‘ animation=’no-animation‘ link=“ target=“ styling=“ caption=“ font_size=“ appearance=“ av_uid=’av-u0hspe‘][/av_image]
Weitere Informationen
Spezialthemen zu SAP Formularen SAP Formulare zum Festpreis SAP Formularentwicklung
