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

lower case for function

Former Member
0 Likes
763

hi,

i create a function ,i want the import parameters can distinguish lower case.eg:

FUNCTION ZTEST02.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(V_NAME) TYPE ZTEST OPTIONAL

*" EXPORTING

*" VALUE(V_KUNNR) TYPE ZTEST

*"----


SELECT SINGLE KUNNR INTO V_KUNNR FROM KNA1 WHERE NAME1 = V_NAME.

ENDFUNCTION.

because the name1 of kna1 have lower case,now ,i can not find the data use select sentence where it is lower case.

what should i do ,thank you.

6 REPLIES 6
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
729

Hello,

This should not be the case.

Anyways you can try converting the lower case to upper case using

Convert to uppercase.

Regards,

Sandeep

Read only

Former Member
0 Likes
729

change the domain which is associated with the Data element ZTEST to lower case in SE11 or simply use the date element NAME1_GP instead of ZTEST.

Edited by: Rajinikanth G on Jul 3, 2008 9:04 AM

Edited by: Rajinikanth G on Jul 3, 2008 9:05 AM

Read only

Former Member
0 Likes
729

it is always better to find the customer by the customer number rather than the name. Because there is a possibility that same name exists for 2 or more customers. Please try to use Kunnr.. rather that name1..

Regards

VIjay

Read only

Former Member
0 Likes
729

when you are passing the value in v_name in the function module of your report.

Define the data type of v_name in this manner

parameters:

v_name like kna1-name1 default ' ' OBLIGATORY LOWER CASE.

regards.

Anup.

Read only

Former Member
0 Likes
729

Hi,

plz try this :

PARAMETERS:
V_NAME LIKE KNA1-NAME1 DEFAULT ' '  OBLIGATORY LOWER CASE.

plz reward if useful.

thanks,

dhanashri.

Read only

Former Member
0 Likes
729

TRANSLATE V_NAME TO LOWER CASE.

This may help you if the db table data only in lowercase.

Reward if helpful