Skip to Content
0
Former Member
Dec 21, 2009 at 11:15 AM

NO DATAS IN OUTPUT FILE FOR RFC TO FILE SCENARIO

11 Views

In RFC to File scenario, I am executing the ABAP program in ECC and generates a empty file in PI server.

I am getting the error message in SM58 of ECC:

u2018Bean Z_HR_OUTBOUND_DATA2 not found on host SDNPI1,u2019

'call FM Z_HR_OUTBOUND_DATA2 to ProgId ECCTOPI_OUTBOUND on host SDNPI1 wit'

RFc Source code:

FUNCTION Z_HR_OUTBOUND_DATA2.

*"----


""Local Interface:

*" EXPORTING

*" VALUE(FILENAME) TYPE BBP_ACC_DESCRIPTION-ACC_OBJ_NAME

*" VALUE(RETURN) LIKE BAPIRETURN STRUCTURE BAPIRETURN

*" TABLES

*" ITAB10 STRUCTURE YSTRING1 OPTIONAL

*" P_STATUS STRUCTURE ZHRT0031 OPTIONAL

*"----


DATA : wa_status TYPE zhrt0031,

wa_itab10 LIKE ITAB10.

break-point.

LOOP AT p_status INTO wa_status.

CONCATENATE wa_status-pernr

wa_status-ename

wa_status-orgeh

wa_status-plans

wa_status-persg

wa_status-rank

wa_status-sex

wa_status-icnum

wa_status-usrid

wa_status-dept

INTO wa_itab10-str1.

APPEND wa_itab10 TO itab10.

ENDLOOP.

wa_itab10-str1 = 'test'.

append wa_itab10 to itab10.

append wa_itab10 to itab10.

CONCATENATE sy-datum

'PYO_EMPDAT.TXT'

INTO

filename.

ENDFUNCTION.

And in the ABAP program the RFC is called like:

CALL FUNCTION 'Z_HR_OUTBOUND_DATA2'

in background task destination 'ECCTOPI'

  • EXPORTING

  • INTERFACE =

IMPORTING

FILENAME = filename

return = return

TABLES

ITAB10 = itab10

P_STATUS = p_status

When i am testing the standard program STFC_CONNECTION in ECC with the same RFc destination it works fine and creates a o/p file with the datas in it, but if i m executing the other function module it doesnt contain any data it.

What could be the error? and how to resolve the errors that i am getting in SM58?

Thanks