Application Development and Automation 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: 
Read only

RFC error

Former Member
0 Likes
582

I created one Z function module which is RFC enabled and connected with BAPI object.

This has 3 import paramters which are structures. Out of which at a time, only one structure has to be given value for execution.

Initially I kept OPTIONAL check boxes unticked so all the 3 structures became MANDATORY automtically.

But when nonSAP system invoked this RFC, they were asked to fill the 3 structures.

So lateron I ticked OPTIONAL check boxes for all the 3 structures. Also released the FM and BAPI object.

But again same error is appreaing the nonSAP system asking all the 3 structues to be given some values. Whereas in SAP I have already made structures as OPTIONAL.

In SAP, i checked by calling this RFC function module in test program. It is working correctly, LIke we can pass value in one structure only and excute it successfully.

Kindly tell what is missing in this case ? Either from SAP side or non SAP or inface ?

Earnestly waiting for the anwer . Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

Hi,

Check at your Non-SAP side, you have to import defination of your RFC FM & check whether respective fields are marked optional.

BR,

Rahul

5 REPLIES 5
Read only

Former Member
0 Likes
551

Hi,

Check at your Non-SAP side, you have to import defination of your RFC FM & check whether respective fields are marked optional.

BR,

Rahul

Read only

0 Likes
550

Thanks for your reply.

Non SAP side has no option for making import parameters OPTIONAL or MANDATORY.

Read only

madhu_vadlamani
Active Contributor
0 Likes
550

HI Prashant,

Make sure that select the option check box for other two structures which is not mandatory.

Regards,

Madhu.

Read only

matt
Active Contributor
0 Likes
550

Moderator message: Please use a meaningful subject in future

Read only

Former Member
0 Likes
550

Prashant,

I am almost sure that Nothing more has to be done in SAP.

I have faced these issues several times due to lack of knowledge of non-SAP guys that How to fetch Latest Signature(Interface) of RFC from SAP. Ask them to REFRESH their RFC Object, clean their Cache and Re-build their RFC service.

If nothing works, Ask them to delete everything from their side for this RFC and Re-create FRESH and this problem should be resolved.

Regards,

Diwakar