SMARTFORMS
Cu SE73 poti intretine fonturile instalate, si poti incarca un anumit font.
Pentru SMARTFORMS, programelul din spatele formularului se compleateaza cam asa:
Cu SE78 aduci imaginile pe care vrei sa le incluzi in SmartForms pe serverul de documente al sistemului SAP (BSD), in format TIF.Imaginile pot fi logo-uri sau pretiparite scanate si folosite ca background.
report z_test1.
*---------program pentru smartform ZBSEG
nodes: bkpf, bseg.
types: begin of t_inserare,
bukrs like bkpf-bukrs,
belnr like bkpf-belnr,
gjahr like bkpf-gjahr,
buzei like bseg-buzei,
blart like bkpf-blart,
wrbtr like bseg-wrbtr,
end of t_inserare.
data: inserare type standard table of t_inserare with header line,
wa_inserare type t_inserare.
data : fm_name type rs38l_fnam.
get bkpf.
check br_bukrs.
check br_belnr.
check br_gjahr.
check br_blart.
get bseg.
inserare-bukrs = bkpf-bukrs.
inserare-belnr = bkpf-belnr.
inserare-gjahr = bkpf-gjahr.
inserare-buzei = bseg-buzei.
inserare-blart = bkpf-blart.
inserare-wrbtr = bseg-wrbtr.
append inserare.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZBSEG'
* VARIANT = ' '
* DIRECT_CALL = ' '
* IMPORTING
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3
.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*ca sa afli numele FM care sta in spatele smartform-ului trebuie sa-l activezi si cauta in meniu, o chestie de genul View Function Module
call function '/1BCDWB/SF00000007'
* EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
tables
inserare = inserare
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
0 Comments:
Post a Comment
<< Home