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

function with lower case parameters

Former Member
0 Likes
978

Hi all,

Can anyone explain me how to create import parameters for a function which allows and passes lower case characters?

In a abap program is done like this

parameters: user(64) type c lower case.

Thanks for any help?

Jan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

Hi,

I dont think we can define whether the import parameters are in lower case or not.

But if import parameter has to be in lower case when it is used in the FM they following statement can be written before using the parameter

IMPORT PARAMETER

letters

TRANSLATE letters TO LOWER CASE.

Sameena

Message was edited by: sameena attarwala

3 REPLIES 3
Read only

Former Member
0 Likes
692

Hi,

I dont think we can define whether the import parameters are in lower case or not.

But if import parameter has to be in lower case when it is used in the FM they following statement can be written before using the parameter

IMPORT PARAMETER

letters

TRANSLATE letters TO LOWER CASE.

Sameena

Message was edited by: sameena attarwala

Read only

Former Member
0 Likes
691

Hi

You don't need it because depends on format your using while transfering a value to interface of fm.

The program maintains the format of a variable, only the selection-screen convert the parameter if it's used a type doesn't support the lowercase.

Anyway you can use the command TRANSLATE:

A: TRANSLATE <FIELD> TO UPPER CASE.

B: TRANSLATE <FIELD> TO LOWER CASE.

Before moving <FIELD> to FM

Max

Read only

Former Member
0 Likes
691

Hi,

You can do this way...

create the Dataelement and Domain which takes lowercase and then use it as import parameter.

First create the Domain with Lowercase parameter Checked while creating domain in the <b>Definition</b> tab.

and then use this Domain in the Dataelement.

this dataelement you can use it in your import paramer.

Regards

vijay