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

question on abap webdynpro...

Former Member
0 Likes
488

Hi,

Where do I specify in a web dynpro application/component "from which SAP system to retrieve the data " ? For example I am developing a component in my SAP system and use a BAPI to fetch the data. So when I run the application it fetches the data from my own system. But later when my component/application is reused, and if the user wants to fetch the data from another sap system, where and what is to be specified. Any idea ?? Please correct me if my understand is wrong..

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

The data for WD4A is from the system it runs on. If you need to get data from another system, you may have to write a "wrapper" RFC for the BAPI. The "wrapper" RFC could look like this:


select destination into w_destination from zconfig_table.

call function "BAPI_XXXX"
    destination w_destination
  exporting
.
.
  importing
.
. 
.

The interface for the "wrapper" RFC will be the same as the BAPI (unless you want it to be different!).

You can now use this "wrapper" RFC as your model in WD4A.

The data for WD4A is from the system it runs on. If you need to get data from another system, you may have to write a "wrapper" RFC for the BAPI. The "wrapper" RFC could look like this:


select destination into w_destination from zconfig_table.

call function "BAPI_XXXX"
    destination w_destination
  exporting
.
.
  importing
.
. 
.

The interface for the "wrapper" RFC will be the same as the BAPI (unless you want it to be different!).

You can now use this "wrapper" RFC as your model in WD4A.

2 REPLIES 2
Read only

Former Member
0 Likes
472

The data for WD4A is from the system it runs on. If you need to get data from another system, you may have to write a "wrapper" RFC for the BAPI. The "wrapper" RFC could look like this:


select destination into w_destination from zconfig_table.

call function "BAPI_XXXX"
    destination w_destination
  exporting
.
.
  importing
.
. 
.

The interface for the "wrapper" RFC will be the same as the BAPI (unless you want it to be different!).

You can now use this "wrapper" RFC as your model in WD4A.

Read only

0 Likes
471

Thanks Ken. That was quite informative.