You are on page 1of 1

Creare substitutii

1.SAP are un program standard RGGBS000.


Se creaza o copie a acestuia ZRGGBS000
2.GCX2 (SPRO IMG Contab.financiar NEW Registru Specializat Setari de baza User Exit
(Iesire camp) Intretinere UserExit specific clientului
3.Se fac 2 modificari in ZRGGBS000:
i) in form GET_EXIT_TITLES

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

3.GGB1 Contab.financiara Poz.individuala ZMM Creare Pas 042:


- Cond.preliminara: ( BSEG-WERKS = 'XY10' ) AND ( BSEG-PRCTR <> 'XY10' )
- Inlocuiri : tip iesire : UserExit : 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).

You might also like