Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dump with FM HR_employee_search

nitu_kumari2
Employee
Employee
0 Kudos

For the Function module HR_EMPLOYEE_SEARCH , we get ABAP dump when we enter names with ‘, example O'BRIEN.

Kindly suggest the resolution.


Runtime Errors         SAPSQL_WHERE_PARENTHESES

Exception              CX_SY_DYNAMIC_OSQL_SYNTAX

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Nitu ,

The error is coming from the following statement in the FM:

SELECT PERNR INTO TABLE I_PERNR

                  FROM PA0002 WHERE BEGDA LE SEARCH_DATE

                                AND ENDDA GE SEARCH_DATE

                                AND (WHERE_TAB).

Here WHERE_TAB will have value - VNAMC LIKE 'O'BRIEN'.
This is a wrong declaraton of SQL statement , so it is giving you a dump.
Could you check in PA0002 table , how the fields VNAMC or NCHMC maintained?


BR.
GIRI

4 REPLIES 4

Former Member
0 Kudos

Hi Nitu ,

The error is coming from the following statement in the FM:

SELECT PERNR INTO TABLE I_PERNR

                  FROM PA0002 WHERE BEGDA LE SEARCH_DATE

                                AND ENDDA GE SEARCH_DATE

                                AND (WHERE_TAB).

Here WHERE_TAB will have value - VNAMC LIKE 'O'BRIEN'.
This is a wrong declaraton of SQL statement , so it is giving you a dump.
Could you check in PA0002 table , how the fields VNAMC or NCHMC maintained?


BR.
GIRI

0 Kudos

Hi Giri,

I have checked in PA0002 table,

The entries are as below.

NCHMC    O'BRIEN

VNAMC    AARON

Regards,

Nitu

0 Kudos

You will have to pass in this case  O''BRIEN as two single quote reporesent one single quote

0 Kudos

Hi Nitu ,

Refer Note 118253.

BR.
Giri