cancel
Showing results for 
Search instead for 
Did you mean: 

access ABAP table in Webdynpro Java application

Former Member
0 Kudos

Hi All

Is it possible to access ABAP table in Webdynpro Java application

Please provide your input

Thanks

Karthi D.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi you will connect to the remote SAP system, the

backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part

of your Web Dynpro project

In WebDynpro java you RFC by using Model :

Adaptive RFC Model

1. automatically adapts to changes in function module signature

2 provides support for data types and extensibility

3.support for different structure definitions in different backend

systems (release dependent structures, custom adaptation)

Basic principles and guidelines

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c2...

See this blog

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc

http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm

Thanks,

Tulasi

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

yes it is Possible to access the Tables using RFC's or BAPI's.

if it is a standard table you will have standard BAPI's, if it is custom table you need to create your own BAPI defining the import and export parameters.

your BAPI must be Remote Enabled so that you can access it in web dynpro java.

For more Information on RFC's see these links :

[Creating a Web Dynpro Application using BAPI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/355b9c90-0201-0010-d2a8-89fece426526]

[http://help.sap.com/saphelp_nw04s/helpdata/en/f6/4345e8238fcd418197d6692e59d673/frameset.htm]

PradeepBondla
Active Contributor
0 Kudos

Hi,

Ask your ABAPers to create Functional Module for that table giving input (import) parameters and output (export) parameters and make that remote enabled.

from portal side you have to create JCO's to access that RFC's, then by using Adaptive RFC methodology in web dynpro you can access that FMs / Bapi's ( which consist of your table).

need more info, let us know....

PradeeP

Former Member
0 Kudos

Hi

You can connect the ABAP Table using webdynpro java Application,it is possible using Import Adaptive RFC Model.just go throught the below link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b...

Regards,

Sundaresan

nikhil_bose
Active Contributor
0 Kudos

From Java Dynpro, we cann't access SAP tables as it is possible from ABAP Dynpro.

To connect to R/3 we can use Adaptive RFC or Adaptive WebService which talks to a BAPI or a Remote enabled Function Module.

Tutorial:[Adaptive RFC|http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm]

nikhil

Former Member
0 Kudos

When you mention accessing a table are you referring to a custom table created in ABAP for storing some information??

You can create a BAPI for obtaining the data from the table and use the same by creating a model in WD 4 JAVA.

Hope that answers your question.

Thanks,

GLM