on 06-26-2015 7:17 AM
Hi Friends,
I need to enhance a standard datasource 0vendor_attr and for that i know we can do it at CMOD, but i was told to modularize the CMOD code to avoid locking of the datasources by writing a sub-routine. There were not enough forums on this and as far as i read i could not understand better. Can you guys explain me how to modularize CMOD code for datasource enhancements. Please throw some way out guys!!!
Thanks,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in the user exit you only put the below code:
*&----------------------------------------------------------------------
*& INCLUDE ZXRSAU02
*&----------------------------------------------------------------------
*local variable for the include/program name for each datasource
DATA: l_prog_name LIKE trdir-name.
*-- ZBWI_ is the assumed prefix for the datasource program
CONCATENATE 'ZBWI_' i_datasource INTO l_prog_name.
*-- execute corresponding user exit. if exist
PERFORM execute_user_exit IN PROGRAM (l_prog_name)
TABLES I_T_SELECT
I_T_FIELDS
I_T_DATA
I_T_MESSAGES
IF FOUND.
if you need to have a user-exit for a given datasource, you just need to create the program as described in the how to doc. it's quit straight-forward.
M.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.