cancel
Showing results for 
Search instead for 
Did you mean: 

CL_CUAN_MKT_EXEC_LINK_HANDLER Implicit Enhancement (Select Statement)

former_member217722
Participant
0 Kudos

Hello All,

As I have enhanced class CL_CUAN_MKT_EXEC_LINK_HANDLER (implicit enhancement) at the end of the method, now I need to read values from tables  cuand_ce_ia_rt and  cuan_d_ini_root, but sy-subrc fails .

Here the standard code above the enhancement can read the required values from the same table cuand_ce_ia_rt, but in implicit enhancement select statement does not works.The same code works fine in report,class and function module when I execute manually through T Codes.

Here is my code

ENHANCEMENT ZTEST.    "active version

lv_sourceid = lv_path_info_2.

SELECT SINGLE db_key , id_origin, initiative_id, contact_key

         FROM  cuand_ce_ia_rt

         USING CLIENT @lv_client

         INTO @DATA(ls_cuand_ce_ia_rt)

         WHERE source_object_id   EQ @lv_sourceid   ##DB_FEATURE_MODE[TABLE_LEN_MAX1]. "#EC CI_NOFIRST "#EC CI_NOFIELD

   IF ls_cuand_ce_ia_rt-initiative_id IS NOT INITIAL.

     lv_initiativeid = ls_cuand_ce_ia_rt-initiative_id.

     SELECT SINGLE id , name FROM cuan_d_ini_root INTO @DATA(ls_cuan_d_ini_root) WHERE id EQ @lv_initiativeid ##DB_FEATURE_MODE[TABLE_LEN_MAX1]. "#EC CI_NOFIRST "#EC CI_NOFIELD

ENDIF.


CONCATENATE lv_redirect_url       

"var1"

"var2"

lv_redirect_url RESPECTING BLANKS.


server->response->redirect( EXPORTING url = lv_redirect_url ).

ENDENHANCEMENT.

I need to store values in lv_redirect_url from the above mentioned tables .

Thanks in Advance.

Regards,

Mithuunn.

Accepted Solutions (0)

Answers (1)

Answers (1)

Caique
Employee
Employee
0 Kudos

Hi Mithuunn,

What do you mean by store? Your concatenate is not working?

If it is working, you might try to declare it "statics" or build a singleton model to store it, if I got your point.

Regards,

Caíque Escaler

former_member217722
Participant
0 Kudos

Hi Caique,

Thanks for response.

I need to get the values from table to this wa (ls_cuand_ce_ia_rt), but it is not working.

Once if I get then I can use concatenate



Regards,

Mithuunn.