cancel
Showing results for 
Search instead for 
Did you mean: 

RFC structure issue

Bhargavakrishna
Active Contributor
0 Kudos

Hi Experts,

We are working on RFC to web-service scenario.

i imported the RFC in ESR. when i import the data type got changed for the fileds.

For example: i have defined the data types like this in RFC

Field                         Data type


Join date                    DATS

NAME                       CHAR

Perner                        NUMC

When i import into PI the data type got changed like below

Filed                            Data type

Join date                      Date

NAME                         String

Perner                         String

Because of this, im not getting the data properly.

When i click on the Date it is showing

Data is coming to PI, but it is not proper. find the attached File for your reference.

Like Perner : 0550 BEGDA_PA00

Please help me to resolve this issue.

Regards

Bhargava krishna

Accepted Solutions (0)

Answers (4)

Answers (4)

Bhargavakrishna
Active Contributor
0 Kudos

Hi experts,

still im facing the same issue with the RFC dump in ECC as mentioned in the above screen shot. but i can see the data in PI.

Issue it is showing is " Bean function module not found on PI host "

any help will be highly appreciable.

Regards

Bhargava krishna

ambrish_mishra
Active Contributor
0 Kudos

Hi Bhargava,

Please make few checks:

The destination (TCP IP connection) for making this RFC call is working in ECC (SM59). The program ID registered in ECC should be used in the PI RFC sender communication channel and the channel activated.

Check if commit work has been done in the RFC you are using.

Do some dummy changes in RFC adapter and activate it once.

Go through the below link and work with your basis team:

http://howtosap.blogspot.ca/2011/03/create-rfc-tcpip-connection-and.html

seems like a problem with the gateway.

Hope it helps!

Ambrish

Bhargavakrishna
Active Contributor
0 Kudos

Hi Experts,

Im getting dump in SM 58.

i referred below blog: http://scn.sap.com/thread/1621515

also executed the function module, locally, it is not giving any dump. when i execute the program, it is giving dump.

Regards

Bhargava krishna

ambrish_mishra
Active Contributor
0 Kudos

Hi Bhargava,

From the attached file, the value in the field is populated with invalid value.

However, I would suggest, keep it simple. Reassign the value(type begda) to a chars value for input to RFC. Should be fine!

Ambrish

Bhargavakrishna
Active Contributor
0 Kudos


Hi Ambrish,

we tried as you said, but no use. it's taking the values from the next field.

find the ABAP pgm below:

REPORT ZBW_RUN_EMPINFO.

DATA: RT_EMP TYPE TABLE OF ZBAPIEMPINFO,

       RT_RETURN TYPE TABLE OF BAPIRETURN WITH HEADER LINE.

CALL FUNCTION 'ZBAPI_EMPINFO_DELTA'

   EXPORTING

     CURDATE = '20130605'"sy-datum

   IMPORTING

     RETURN  = RT_RETURN

   TABLES

     IT_EMP  = RT_EMP[].

IF SY-SUBRC <> 0.

*  do error handling here

ELSE.

   CALL FUNCTION 'ZHR_EMPINFO' IN BACKGROUND TASK DESTINATION 'ZBAPI_EMPINFO_DELTA'

     TABLES

       LT_EMP = RT_EMP[].

   COMMIT WORK.

ENDIF.

This problem is with PI or ECC?

why it is displaying that error, when i click on the data type after importing the RFC into PI.

Regards

Bhargava krishna

ambrish_mishra
Active Contributor
0 Kudos

Hi Bhargava,

After you make any change to the RFC, you have to re-import it and activate it.

For sure, it is an issue with ECC code and not PI. Try and execute the FM in SE37 with variety of data scenarios and check the output.

Hope it helps!

Ambrish

Bhargavakrishna
Active Contributor
0 Kudos

Hi Ambrish,

I did it as you said and created the new interface by deleting the old one. no success.

I will check the function module and update you..

Regards

Bhargava krishna

iaki_vila
Active Contributor
0 Kudos

HI Bhargava,

Sometimes when you change an interface the old version is kept in the CPA cache, have you tried to refresh this cache?

Full refresh:

http ://<server>:<port>/CPACache/refresh?mode=full

with PIDIRUSER/XIDIRUSER

Partial refresh:

It's possible to refresh a single object in the cache. Follow this steps:

    PI's Main Page -> Administration -> Integration Builder -> Cache Overview -> Single Repository

    Object Cache Refresh.

    Object Type:  your object type.

Regards.

Bhargavakrishna
Active Contributor
0 Kudos

Hi,

Thanks for your reply?

i deleted the old one and created the new one.

i already tried cache refresh.. no success..

Can you please tell me , why the data type is getting change, when we import in PI?

Is there any datatype which is supported by the PI for DATE?

I'm sure it is ABAP issue, right?

Can you able to tell me exactly where is the problem?

Regards

Bhargava krishna

iaki_vila
Active Contributor
0 Kudos

Hi Bhargava,

The file, that you have attached, has the date field BEGDA_PA00 with a data that is not a date. Try to modify the abap RFC a to send the information correctly.

Regards.

Bhargavakrishna
Active Contributor
0 Kudos

Hi,

Thanks for your reply..

we tried by changing the RFC, we modified BEGDA data type as a CHAR. and triggered the data to PI.

but it is taking the next field value that is SNAME value.

if we dont pass any value to the SNAME, then the BEGDA filed value is displaying as empty.

Because of this the entire fields get effected.

Regards

Bhargava krishna