Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: How to display name of the employees start with any letter?

$
0
0

Hi ravi,

Please find the below code.

"Data Declarations

PARAMETERS: p_ename TYPE pa0001-ename.

 

TYPES: BEGIN OF ty_pa0001,

                     pernr TYPE pernr_d,

                      ename TYPE pa0001-ename,

              END OF ty_pa0001.

 

DATA: it_pa0001 TYPE TABLE OF ty_pa0001.

 

"Merge the Percentage symbol to Employee name

CONCATENATE p_ename '%' INTO p_ename.

 

"Retrieve the value from database

SELECT pernr

        ename

    FROM pa0001

   INTO TABLE it_pa0001

WHERE ename LIKE p_ename.



Regards


Rajkumar Narasimman


Viewing all articles
Browse latest Browse all 8652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>