on 08-26-2016 11:11 AM
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 1 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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.