cancel
Showing results for 
Search instead for 
Did you mean: 

CMOD DATASOURCE ENHANCEMENT WITHOUT LOCKING

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186445
Active Contributor
0 Kudos

read this:

M.

Former Member
0 Kudos

Hi Tibiollo,

Thanks for the document. Can you please explain me what he was trying to say? I am little confused.

Thanks,

Karthik

former_member186445
Active Contributor
0 Kudos

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.