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

strlen problem in my coding

Former Member
0 Likes
797

the error "I am getting is strlen is un known ..it is neither in one of the table NOR delcared as data."

I am using ECC 6.0.

data : lv_length type i.

lv_length = strlen(p_wa_869_input_rec-upc_ean).

IF lv_length < 12 .

  • Send with preceeding '0's - conversion exit alpha output

CALL FUNCTION 'CONVERSION_EXIT_ALPZE_INPUT'

EXPORTING

input = p_wa_869_input_rec-upc_ean

IMPORTING

output = lv_0upc_ean.

p_wa_870_output_rec-upc_adidas = lv_0upc_ean.

CLEAR : lv_0upc_ean.

  • ELSEIF lv_length > 12 .

  • p_wa_870_output_rec-upc_adidas = p_wa_869_input_rec-upc_ean.

ENDIF.

THANKS IN adv

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
736

lv_length = strlen( p_wa_869_input_rec-upc_ean ).

the error "I am getting is strlen is un known ..it is neither in one of the table NOR delcared as data."

I am using ECC 6.0.

data : lv_length type i.

lv_length = strlen(p_wa_869_input_rec-upc_ean).

IF lv_length < 12 .

  • Send with preceeding '0's - conversion exit alpha output

CALL FUNCTION 'CONVERSION_EXIT_ALPZE_INPUT'

EXPORTING

input = p_wa_869_input_rec-upc_ean

IMPORTING

output = lv_0upc_ean.

p_wa_870_output_rec-upc_adidas = lv_0upc_ean.

CLEAR : lv_0upc_ean.

  • ELSEIF lv_length > 12 .

  • p_wa_870_output_rec-upc_adidas = p_wa_869_input_rec-upc_ean.

ENDIF.

THANKS IN adv

2 REPLIES 2
Read only

Former Member
0 Likes
737

lv_length = strlen( p_wa_869_input_rec-upc_ean ).
Read only

Former Member
0 Likes
736

You have to put a blank after a "(":

lv_length = strlen( p_wa_869_input_rec-upc_ean ).

Regards,

Carlos