Professional Documents
Culture Documents
exits-name = 'UMM42'.
exits-param = c_exit_param_none.
exits-title = 'Centru Profit la creare material MM42'.
APPEND exits.
"from xref1/2
"CentruProfit pt MM42
ii)
FORM umm42 .
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
DATA: lv_werks LIKE t001w-werks.
lv_werks = bseg-werks(2).
CONCATENATE lv_werks '10' into bseg-prctr .
ENDFORM.
"UMM42
You need to be cautious when writing code for your user exit. No dialog boxes, warning messages, information or
error messages must be issued in an exit. Do not use any ABAP commands that cause you to leave the exit directly, for
example LEAVE TO SCREEN. In the includes of the substitution exits, you must not use the commands MODIFY,
INSERT or DELETE in the internally used structures such as BSEG or BKPF. These structures are interpreted internally
as database tables because they are defined by a TABLES statement. As a result, the system writes, deletes or
changes database records if you use the commands mentioned above. This can cause serious inconsistencies and
problems in the document processing. If you want to change field contents in the exit type C_EXIT_PARAM_CLASS,
you should make the changes in the internal table BOOL_DATA (for example BOLL_DATA-BSEG).