Application Development and Automation 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: 
Read only

Problem in Function module

Former Member
0 Likes
683

Hi Friends..

I used below statement in my function module it works fine for hu = '000000BOXNO1'.

if the value having character with leading zeros , it works fine.but if the value hu = '0000000045781'

it was not working. at that moment conversion_exit_alpha_output is working.

so how can I achieve both the functionalitites in single statament.

-


      • shift hu left deleting leading '0'.

      • conversion_exit_alpha_output.

MOVE hu TO exhu.

*Begin code changed by Gowrishankar on 06-june-2009

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

-


Thanks

Gowrishankar

4 REPLIES 4
Read only

Former Member
0 Likes
608

.

Read only

former_member723628
Active Participant
0 Likes
608

Gowrishankar,

Handling unit field VENUM has conversion exit ALPHA defined in the domain VENUM. Please convert the value of HU to internal value before SELECT query like this.


CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = hu
  IMPORTING
    output = hu.

.

I see a reference of conversion exit below in your code why that has been commented?

Regards,

Gajendra

Read only

former_member189420
Active Participant
0 Likes
608

Hello,

Can you please explain your query more clearly. It would be easy to provide solution.

Thanks & Regards,

Anand Patil

Read only

Former Member
0 Likes
608

nothing