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 Issue when triggering it from ECC to PI

Bhargavakrishna
Active Contributor
0 Likes
798

Hi Experts,

We have ABAP program to trigger the RFC from ECC to SAP PI.

The pgm is as follows:

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.

In this pgm they are fetching the values into one table, and passing the same values to the another table of function module.

In our case we are fetching the values into " ZBAPI_EMPINFO_DELTA " table " IT_EMP" and passing it to " ZHR_EMPINFO" of " LT_EMP " .

You can find the screen shots for the same.

the problem is, when we run the program, it is fetching the values correctly. But in PI the values are not in proper format.

For EX:

PERNER : 0550

BEGDA_PA00 :SHER-AW-AT

SNAME: MALLIK

instead of displaying the date, the field BEGDA_PA00 is showing the name. because of this the entire structure got effected.

And if we don't Pass value to the SNAME, then the BEGDA_PAOO is EMPTY.

Please find the attached file for the data which is triggered to PI.

Also dump is creating in SM58, when we run the program.

In PI we just imported the RFC structure, to that im getting the values, when we run the program.

My question is, if there is any problem in PI, data will not receive by PI server. but in PI i can able to see the data, which is very clumsy.

So please help me to resolve this issue.

Thanks in advance, any help will be highly appreciable...

Regards

Bhargava Krishna

1 ACCEPTED SOLUTION
Read only

Bhargavakrishna
Active Contributor
0 Likes
684

Hi All,

Issue, resolved by clearing the cache and restart the Java server.

Regards

Bhargava krishna

Hi Experts,

We have ABAP program to trigger the RFC from ECC to SAP PI.

The pgm is as follows:

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.

In this pgm they are fetching the values into one table, and passing the same values to the another table of function module.

In our case we are fetching the values into " ZBAPI_EMPINFO_DELTA " table " IT_EMP" and passing it to " ZHR_EMPINFO" of " LT_EMP " .

You can find the screen shots for the same.

the problem is, when we run the program, it is fetching the values correctly. But in PI the values are not in proper format.

For EX:

PERNER : 0550

BEGDA_PA00 :SHER-AW-AT

SNAME: MALLIK

instead of displaying the date, the field BEGDA_PA00 is showing the name. because of this the entire structure got effected.

And if we don't Pass value to the SNAME, then the BEGDA_PAOO is EMPTY.

Please find the attached file for the data which is triggered to PI.

Also dump is creating in SM58, when we run the program.

In PI we just imported the RFC structure, to that im getting the values, when we run the program.

My question is, if there is any problem in PI, data will not receive by PI server. but in PI i can able to see the data, which is very clumsy.

So please help me to resolve this issue.

Thanks in advance, any help will be highly appreciable...

Regards

Bhargava Krishna

1 REPLY 1
Read only

Bhargavakrishna
Active Contributor
0 Likes
685

Hi All,

Issue, resolved by clearing the cache and restart the Java server.

Regards

Bhargava krishna