cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Rfc Lookup..

gagandeep_batra
Active Contributor
0 Kudos

Hi Folks,

Plz help me on this:

I am using  rfc lookup in 7.31 single stack.

In abap side if gives as a constant value or hard code, then output reflects correctly in RFC lookup in PI but in case ABAP program sends value as a variable then its not reflecting the correct o/p in RFC lookup at PI side.

But when we execute standalone rfc in ECC then it gives the right values in both case(hard code as well as variable).

Cache is also refreshed but still getting the same issue.

Regards

GB

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member191435
Contributor
0 Kudos

Hi Gagandeep,

Can you please delete the rfc name in lookup and reassign the rfc name do the mapping again....  and also try what Mark suggested..

Thanks,

Sreenivas

gagandeep_batra
Active Contributor
0 Kudos

Thanks for the suggestion but no luck.....

Regards,

GB

Former Member
0 Kudos

Hi,

We have faced the similar issue .Try the below option.

Create a dummy receiver rfc communication channel to connect to erp system and use it .Now check once again .

Regards

Venkat

markangelo_dihiansan
Active Contributor
0 Kudos

Actually forgot about this solution.

gagandeep_batra
Active Contributor
0 Kudos

allready done this also but not work...

Regards

GB

Former Member
0 Kudos

Please try to create one more RFC with same structure with different name and import it. then test.

And also check the data which you are passing.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Gagandeep,

How about starting/stopping the communication channel just to rule out adapter metadata cache? What do you mean as variable? For multiple values, you can refer to this blog

Regards,

Mark

gagandeep_batra
Active Contributor
0 Kudos

Hi MArk

thanks for suggestion but no luck....

What do you mean as variable

means ex. we have field 'quantity', in which abap program is passing the value based on some calculation(consider as variable value). while checking the value after executing the program the o/p is coming correct in ECC but at PI side its not reflecting correctly in RFC lookup.

ii) in case if we pass direct hard code or constant value to the Quantity.(PI reflects correct value in this case as RFC lookup o/p).

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Gagandeep,

Can you try adding a mapWithDefault just between the field and the rfcLookUp? I guess you are only passing single values.

Regards,

Mark

former_member181985
Active Contributor
0 Kudos

Hi Gagan,

Can you give an example for hard coded value and variable value. It seems you have to give right number of decimals when you invoke from PI. What is the data type and format for quantity field?


Update: May be you have to prefix zero's to the quantity field according to it's definition by format and it's length

Regards,

Praveen Gujjeti

Message was edited by: PRAVEEN GUJJETI