Application Development 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: 

RFC connection Problem - BAPI

0 Kudos

Hi...,

I'm using 4.6c system and accessing data thru saome gateway. My problem is when I try to check the material whether it exist or not, I'm getting this error "The function module "BAPI_MATERIAL_EXISTENCECHECK" not released for 'remote' calls., error key: RFC_ERROR_SYSTEM_FAILURE". If I check the attributes of this bapi, the processing type is remote-enabled module and start immediately for updates and released.

This is what's shown in ST22

untime Errors         CALL_FUNCTION_NOT_REMOTE

       Occurred on     02/04/2014 at 11:32:21

-

The function module "BAPI_MATERIAL_EXISTENCECHECK" not released for 'remote'

-

What happened?

-

The function module "BAPI_MATERIAL_EXISTENCECHECK" was called via RFC, but the 'Remote Function Call supported' flag is not set.

Error in ABAP application program.

The current ABAP program "SAPLBUS1001 " had to be terminated because one of the statements could not be executed.

This is probably due to an error in the ABAP program.

-

Error analysis

-

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

With the following call types, a 'remote' calls must be supported:

a) CALL FUNCTION 'BAPI_MATERIAL_EXISTENCECHECK' DESTINATION ...

b) CALL FUNCTION 'BAPI_MATERIAL_EXISTENCECHECK' IN BACKGROUND TASK ...

c) CALL FUNCTION 'BAPI_MATERIAL_EXISTENCECHECK' STARTING NEW TASK ...

-

How to correct the error

-

If the function module is one of your own, go into the

Function Library and release the module "BAPI_MATERIAL_EXISTENCECHECK" for RFC calls

by setting the 'Remote Function Call supported' flag so

that it can be called externally.

My doubts are : when i searched in forums,most of the answers are belongs to kernel update.In My scenario,the remote user can access other BAPI's as well without any issue and are able to create BOM/material.but while connecting to this BAPI only,we are getting issue like "Not released for remote calls".

Bapi New in Release : 31G

Please help me out.

Note: This is one way of communication only,i.e Non SAP communicates SAP and uses the BAPI to check and insert or update the data in SAP.

5 REPLIES 5

Former Member
0 Kudos

Hi Venkat,

If I understand your problem correctly. A non-SAP system tries to call BAPI in your SAp system. it gets an error as 'RFC call not enabled'.

If this is correct did you check the attributes of the BAPI in SE37 if it i s remote function enabled?

You can also check in the transaction BAPI -> Alphabetical -> Material -> Existence check. It should be released.

Also if possible try to call this function module from another SAP system and see what happens.

Let me know what you find there...

Regards

Ram

0 Kudos

Hi,

It's standard BAPI Function Module and RFC enabled and released as well.

I have mentioned release no in the first post.

BO: BUS1001.

I will test the same with another SAP system.I am struggling with this BAPi ( BAPI_MATERIAL_EXISTENCECHECK) only and able to connect rest of all other BAPI's under same Business Object from non SAP system.

What would be the cause?

0 Kudos

Hi, this is strange, could you please check your RFC connection/RFC user authorizations.

0 Kudos

Hi,

We have given SAP ALL profile to non sap system USer id.They are connecting to SAP using Jco gateway.This is one way of communication so i think we haven't create any RFC.Using JCo,Legacy team able to connect to SAP and accessing all other BAPI's except the one which i mentioned in the post.

Former Member
0 Kudos

hi venkat,

you can create a your own RFC IN Z  and can use it for checking the material existence....

just create and rfc with input as material..

output with an variable x ..

write a code to fetch an data from master table of material...

if sy-subrc= 0.

x = 1. " meaning material exists

else.

x = 0. " material does not exist.

endif.

call this rfc as giving material as input..

check X and display weather the material exists or not...

regards,

gunaseelan