Skip to Content
0
Jun 12, 2009 at 04:35 AM

Problem in Function module

200 Views

Hi Friends..

I am using EXIDV and EXIDV2 field in function module.

I am using HU number as a import parameter, depends on user input some times its a EXIDV value and some times its a EXIDV2 value.

if HU number is a EXIDV value,no problem in function module, but I gave EXIDV2 value in function module its not come into coding part...instead of first i can't able to use second select ..find the below coding..

-


SELECT SINGLE vhilm FROM vekp into vhilm WHERE exidv = hu AND status NE '0060'.

*SELECT SINGLE vhilm FROM vekp into vhilm WHERE exidv = hu AND status NE '0060'.

IF sy-subrc NE 0.

status = '999'.

CONCATENATE hu 'HU does not exist in SAP' INTO

message SEPARATED BY space.

EXIT.

ELSE.

status = '000'.

CONCATENATE hu 'HU exist in SAP' INTO

message SEPARATED BY space.

ENDIF.

-


if anybody have idea about this kindly let me know..

Thanks

Gowrishankar