/scripts/ahub.form.attachments.js
-1

CALL_FUNCTION_NOT_REMOTE Runtime Errors

Apr 11, 2017 at 07:30 AM

365

avatar image
Former Member

Category Installation Errors

Runtime Errors CALL_FUNCTION_NOT_REMOTE

Short text

The function module "HR_READ_FOREIGN_OBJECT_TEXT" cannot be used for 'remote'

What happened?

The current program had to be terminated because of an error when installing the R/3 System. but is not flagged as being able to be used for remote calls. Error in the ABAP Application Program The current ABAP program "SAPLRPIN" had to be terminated because it has come across a statement that unfortunately cannot be executed.

Error analysis

The function module "HR_READ_FOREIGN_OBJECT_TEXT" was called via RFC, but has not been released for 'remote' calls.

SInce it is standard function module. we are not able to change anything. So please help.

Below is the source code for program termination,

WHEN OTHERS.
      CLEAR <out_result>.                      "Unexpected branch: Callback is forbidden.
  ENDCASE.




  CALL 'AB_SET_C_PARMS' ID 'P4' FIELD <out_result>. "#EC CI_CCALL CI_CCALL


ENDFORM.
*&---------------------------------------------------------------------*
*&      Form  remote_function_call
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->VALUE      text
*      -->(TYPE)     text
*----------------------------------------------------------------------*
FORM remote_function_call USING value(type).
  DATA rc             TYPE i VALUE 0.
  DATA: l_syxform     TYPE syxform,
        l_syxprog     TYPE syxprog,
        l_cbe         TYPE i.


* necessary variables for class based exceptions
  DATA: l_root        TYPE REF TO cx_root.


  DO.
*
* with ID 'CLException' we determine, whether the caller is able to handle the
* class based excptions or not
*
    CALL 'RfcImport' ID 'Type'        FIELD type
                     ID 'SYXForm'     FIELD l_syxform
                     ID 'SYXProg'     FIELD l_syxprog
                     ID 'CLException' FIELD l_cbe.


    IF l_syxprog = 'JAVA'.
      SYSTEM-CALL plugin
                  ID 'JAVA' VALUE 'FORW_JAVA'
                  ID 'RC'   VALUE RC.
*   if there is no rollout on the JAVA side which
*   rolls both, JAVA and ABAP, we return to the
*   C-Stack and reach this point


*   in case there was an rollout, the ABAP-C stack is lost
*   and we jump direkt to this point


*   here we trigger the rollout on this Abap side with
*   the following statement
      SYSTEM-CALL plugin
                  ID 'JAVA' VALUE 'ROLL_OUT'
                  ID 'RC'   VALUE RC.
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Apr 11, 2017 at 07:56 AM
0

Hi Jayaprakash,

Since it is coming from a standard function module, check for SAP notes with the keywords given in dump in ST22.

In case if no related notes, Find what Tcode is causing this dump and does it happen for all users who execute the Tcode. If it happens for any particular user check for any authorizations related to that user.

If above 2 cases are not valid for your case, then you need to debug the way the Tcode is executed. there might be some mistakes.

hope this helps to some extent

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Rajesh,

The user is Standard HR user. please find the below details

User and Transaction

Client.............. 100

User................ "CPICHRP"

Language key........ "E" Transaction......... " "

Transaction ID...... "58EB9943780161C1E10000000A0C0545" EPP

Whole Context ID.... "F14607C1C2CB1EE787D34211E7AA8AAD"

EPP Connection ID....... "58EB9955780161C1E10000000A0C0545"

EPP Caller Counter...... 1

Program............. "SAPLRPIN"

Screen.............. "SAPMSSY1 3004"

Screen Line......... 2

Debugger Active..... "none"

0
avatar image
Former Member Apr 11, 2017 at 08:10 AM
0

Where the FM be called ? i did not see in your code.

HR_READ_FOREIGN_OBJECT_TEXT just a normal FM. So if you call FM like RFC call will got dump above.

To be bypass dump, you must be find correct RFC FM in destination system, then call it by RFC statement in your system.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi John,

Above mentioned FM (HR_READ_FOREIGN_OBJECT_TEXT ) is belongs to HR module and it is creating dump when it called from ERP module system.

0
Skip to Content