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

RFC Import parameter

Former Member
0 Likes
946

Hi 2 ALL

In RFC i m passing user name or id for getting info abt it. but when i pass user name in small letters (as present in db table) , SAP converts it in CAPS , and RFC gives error i.e., user not found . How can i stop this conversion . plz give solution if aby body knows..

Thnzks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
770

hi,

many ways to solve this problem.

one way is

The FM parameter that you are using doesn't handle Lower case characters.

Use a Domain of Character type with the Checkbox (LOWERCASE) as checked.

If the checkbox is checked, the field is not converted to upper case automatically

The second way is

there can be nothing done about the code, if it is a standard code you are using,

so just before calling the RFC, you could use the statement,

TRANSLATE <c> TO UPPER CASE.

or you could also use the function module,

TR_UPPERCASE_PARTS_OF_STRING

STRING_UPPER_LOWER_CASE

to do the same, then pass the string value into the RFC.

4 REPLIES 4
Read only

former_member195698
Active Contributor
0 Likes
770

The FM parameter that you are using doesn't handle Lower case characters.

Use a Domain of Character type with the Checkbox (LOWERCASE) as checked.

If the checkbox is checked, the field is not converted to upper case automatically

Regards,

Abhishek

Read only

Former Member
0 Likes
770

Hi Kanta,

I feel that there can be nothing done about the code, if it is a standard code you are using,

so just before calling the RFC, you could use the statement,

TRANSLATE <c> TO UPPER CASE.

or you could also use the function module,

<i>TR_UPPERCASE_PARTS_OF_STRING

STRING_UPPER_LOWER_CASE</i>

to do the same, then pass the string value into the RFC.

Read only

Former Member
0 Likes
771

hi,

many ways to solve this problem.

one way is

The FM parameter that you are using doesn't handle Lower case characters.

Use a Domain of Character type with the Checkbox (LOWERCASE) as checked.

If the checkbox is checked, the field is not converted to upper case automatically

The second way is

there can be nothing done about the code, if it is a standard code you are using,

so just before calling the RFC, you could use the statement,

TRANSLATE <c> TO UPPER CASE.

or you could also use the function module,

TR_UPPERCASE_PARTS_OF_STRING

STRING_UPPER_LOWER_CASE

to do the same, then pass the string value into the RFC.

Read only

0 Likes
770

Hi Manikanta,

Please post only if you have some additional information to be shared.

DON'T JUST COPY / PASTE the answers from the Above Posts and Reply.

Don't Just Copy/Paste for the sake of earning points.

Abhishek.