Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

RFC Issue when triggering it from ECC to PI

$
0
0

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.

Untitled.png

Untitled1.png

Untitled2.png

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.

 

Untitled3.png

 

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


Viewing all articles
Browse latest Browse all 8768

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>