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

string in RFC

Former Member
0 Likes
3,188

hi,

i want to use a export value in the remote function module which should be of type string with 999999 space. which field supports it or any alternative. my purpose is to catch the fields from table mara-matnr and put all the values in one export value of the RFC. please help, this is very urgent.

thanks in advance

ajay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,840

hi rich,

its somethings like this. i have to send a list of phone numbers from table kna1-telf2, to a java listner(Im using JCO). well, i was asked to, put all the values in a one export parameters seperating records by a ','.

well, i did find a way for that, but i want to know, how to use create a table in rfc which passes the value to java listner.

bye

10 REPLIES 10
Read only

Lakshmant1
Active Contributor
0 Likes
1,840

Hi Ajay,

You can use BAPIMATALL-MATERIAL. Check BAPI_MATERIAL_DISPLAY for more details.

Thanks

Lakshman

Read only

Former Member
0 Likes
1,840

Hi ajay,

you can try with <b>LCHR</b>.

instead of string, it can hold up to 32k chars.

check it.

regards

vijay

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,840

I'm a little confused, you say you need all of the fields of mara being brought back from the RFC. Can you just make your parameter of type mara? What exactly is the requirement.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,841

hi rich,

its somethings like this. i have to send a list of phone numbers from table kna1-telf2, to a java listner(Im using JCO). well, i was asked to, put all the values in a one export parameters seperating records by a ','.

well, i did find a way for that, but i want to know, how to use create a table in rfc which passes the value to java listner.

bye

Read only

0 Likes
1,840

you can use <b>type STRING</b>.

Do you have problems with that?

Regards

Raja

Read only

0 Likes
1,840

yes durairaj, string is not accepted in rfc export values.

Can you tell me how can i call a RFC internal table from java

Read only

0 Likes
1,840

which version of R/3 you are using.

i guess from WAS6.2 its supported.

when you declare the export parameter as

mystring type string what error message you are getting, is it design time error or while running the FM you are getting any error.

Regards

Raja

Read only

Former Member
0 Likes
1,840

Hi ajay,

1. CHAR1024

2. give like this in EXPORT parameters

ABC TYPE CHAR1024

<b>IMPORTANT : PASS VALUE (TICKED)

(OTHERWISE ERROR WILL COME)</b>

regards,

amit m.

Read only

Former Member
0 Likes
1,840

Hi again,

1. U can also use STRING.

<b>2. Important :

Pass Value Should be TICKED

(otherwise error will come)</b>---->Reference parameters are not allowed with RFC

regards,

amit m.

Read only

Former Member
0 Likes
1,840

thankyou all, but belive me. String is not working in 6.20. It says it doesn't support string .