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

Accessing RFC BAPI(BDC)from web application

Former Member
0 Likes
831

Hi All,

I am writing BDC function module (RFC enabled BAPI ) which is finally using call transaction VB31. This BAPI is used by web application - java platform.

Very basic question - is it possible for web application to call RFC enabled BAPI which is calling any transaction?

Currently, web application can not be able to access the same. There is no authorisation or security issue. But would like to know is there anything special needs to be define in RFC bapi so that it can be access via web application.

Please note that there is another RFC BAPI which using simple select statement (NO BDC programming) and that can be used by web application.

Please help as this required.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
746

Just given below statement i am using in RFC BAPI ....

CALL TRANSACTION 'VB31' USING wt_cbdc

MODE 'N'

UPDATE 'S'

MESSAGES INTO P_MESSTAB.

6 REPLIES 6
Read only

Former Member
0 Likes
747

Just given below statement i am using in RFC BAPI ....

CALL TRANSACTION 'VB31' USING wt_cbdc

MODE 'N'

UPDATE 'S'

MESSAGES INTO P_MESSTAB.

Read only

0 Likes
746

Hello,

In general there is nothing special you will have to do even if you use BDC programming in a RFC. It should work without any problem just as it works for the BAPI using the select statement. Are you sure that your RFC with the BDC itself is working well in the SAP side by testing it in SE37?

Vikranth

Read only

0 Likes
746

You can call any RFC or BAPI from web application. If your RFC is not working fine, web page gives you error.

Regards,

Aparna Gaikwad

Read only

0 Likes
746

Hi Vikaranth / Aparna.....

RFC BAPI with call transaction is absoutlely working fine in SAP. But it can not possible to use via web application See below link.

http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm

So please let me know what other options i have now??

Read only

0 Likes
746

Hello Yogesh,

We used CALL TRANSACTION with BDC recording for creating vendors on various transactions in a RFC which will be called by a lotus notes application and its working well. The mode is background mode and we took care of error handling manually. There wasnt any problem. Not really sure what was the intent of the SAP help document asking not to use CALL TRANSACTION in a RFC

Vikranth

Read only

0 Likes
746

hi vikrant ,

could you please let me know what is UPDATE parameter u have used? any other parameter i am misssing?

CALL TRANSACTION 'VB31' USING wt_cbdc

MODE 'N'

UPDATE 'S'

MESSAGES INTO P_MESSTAB.