‎2008 Jun 18 6:20 AM
Hi
i have created one RFC. in that one import parameter is clientname. after giving the clientname i want to check the database table wheather that word contains in the database table of that field. how to write select satatement with contains.
please help me
‎2008 Jun 18 7:10 AM
Try this:
concatenate '%' import_parameter_name '%' into v_clientname.
select single f1 from table1 where f1 like v_clientname.
if sy-subrc = 0.
found
else.
not found
endif.
‎2008 Jun 18 6:21 AM
‎2008 Jun 18 6:26 AM
‎2008 Jun 18 6:25 AM
hi,
select single * from table name where sy-mandt = xxxxx.
if sy-subrc = 0.
message i000(0) with 'User exists'.
else.
message i000(0) with 'User doesnot exists'.
endif.
Hope this is clear.
Thanks and regards
‎2008 Jun 18 6:25 AM
suppose ztab is the database table....and wf_name is the parameter that u r passing.
select single namefield
into wf_namecheck from ztab
where namefield cs wf_name.
if sy-subrc = 0.
it is success..
Reward if useful...
‎2008 Jun 18 7:10 AM
Try this:
concatenate '%' import_parameter_name '%' into v_clientname.
select single f1 from table1 where f1 like v_clientname.
if sy-subrc = 0.
found
else.
not found
endif.