Error executing function Z_AW_ABAP_RUN

Dear experts,

when i am executing function Z_AW_ABAP_RUN from BODS from script, i am receiving this error:

RFC CallReceive error <RFC_ABAP_EXCEPTION-(Exception_Key: PROGRAM_DOES_NOT_EXIST>.

My script looks like this :

$Return_message = __RFC_FUNCTION SAP_DS…Z_AW_ABAP_RUN[ERRORMESSAGE](‘ZRSDWH09’, NULL, NULL)[PROGRAMNAME, LOG, SELTAB];

But when i run the FM Z_AW_ABAP_RUN in debug mode (in SAP) with ZRSDWH09 value, its working good.

I think BODS is not passing the value to SAP, eventhough other connections to SAP from BODS are working without issue (ABAP dataflows, table reads, FTP transfers…)

Can you please help me solve this problem ?

Thank you,
Pavol


Pavol_SVK :slovakia: (BOB member since 2012-11-13)

First guess? Authorisation issue. Run again with an authorisation trace on the user and let the authorisation guys figure it out.


Johannes Vink :netherlands: (BOB member since 2012-03-20)

Hello Johannes,

thank you for your reply.

Unfortunatelly we actually dont have BO authorization team,
can you please write me how to switch on the authorization trace ?
(we are using BODS version 14.0.)

I have done some investigation on BODS servers, and read that 2 services (DS Admin Service and DS RFC service) are not running on EIM Adaptive Processing server, maybe this can be an issue also…


Pavol_SVK :slovakia: (BOB member since 2012-11-13)

Running functions you have imported into the SAP datastore from a script is not supported. My guess is that this is what you are trying to do. Big question however is, why do you want to do that???


Werner Daehn :de: (BOB member since 2004-12-17)

Hello Werner,

i want to run function Z_AW_ABAP_RUN, in order to trigger complex ABAP programs which were created in SAP R/3.
(they create several flat files, which are then used as inputs for BODS jobs)

I know its not an effective solution, but it was designed before cca 10 years and complete logic was moved from old BODI 6.5 to current BODS 14.0 (no big changes to design were done during that period :slight_smile: )

How can i call this function in BODS ? would it be possible to call it from Query transformation inside ABAP dataflow ?

Thank you in advance,
Pavol


Pavol_SVK :slovakia: (BOB member since 2012-11-13)

Hm, ugly. :?

We had some talk internally to enhance the sap_openhub_execute_process_chain() function to start any kind of ABAP program but it seems it never made it. I thought it did but checked the documentation and found no trace of that. Will ask the developers to doublecheck though.

I would probably take the time and break the program apart into one program per target file and wrap that program into a custom abap transform then.

http://wiki.sdn.sap.com/wiki/display/EIM/Custom+ABAP+Transform


Werner Daehn :de: (BOB member since 2004-12-17)