cancel
Showing results for 
Search instead for 
Did you mean: 

table ui element in webdynpro java.

Former Member
0 Kudos

Hi Friends,

I am krishna i am working as sap webdynpro abap consultant . But right now i got the requirement on sap webdynpro java.

so please give me the required details.

Here are my questions.

1. how to populate the data into the table.

2. and the back end is erp, i have to use rfc. to display the data into the table .

3. so how to integrate the rfc into webdynpro java.

if u send with screen shots that would be very help for me.

Waiting for your reply.

Thanks & Regards.

Krishna.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Krishna

First create JCO destinations in EP

1.MODELDATA

2.METADATA

Second Go to NWDS Create one project and Create Model of type Adaptive RFC model and give details of R/3 and then specify JCO destinations ,next give BAPI name and click on Finish.

Third open data modeler and map the context of model data to controller data.

rest of the process is same as that of Webdynpro abap.

Thanks

Tulasi Palnati

Former Member
0 Kudos

Hi Krishna,

1) Table display with Web dynpro java

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0cf0997-2e08-2d10-b08e-964a2c04c47a

2) Calling RFC and display data in table

http://www.erpdb.info/wp-content/uploads/2008/10/how-to-build-webdynpro.pdf

/docs/DOC-18495#section10 [original link is broken]

Regards,

Radhika

Former Member
0 Kudos

Hi,

Please go throught the below PDF which explains step by step procedure of how to use BAPI's and dispaly the data in the tables. This is the very basic PDF.

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a6...

Regards,

Raju Bonagiri

Former Member
0 Kudos

It's very simple.

1) Import your RFC.

For this:

-Right click on Models->Create Model->Select Import Adaptaive RFC then follow the steps.

-Go to Used Models. Right click -> Add... -> then select the model that you created.

2) I guess you have a view that is using a controller (Custom/Component) so:

-Go to Context Tab-

-Create a model node.

-Bind the model node with the model that you created.

-Go to the view where you want to put the Table ui element and add the table (Outline window->right click->Insert Child->Table)

-Go to context tab, add a model node, en map it (Edit context mapping) with the model node that you created in the controller.

-Go back to layout tab. Then in table properties, in datasource click on the "..." and select the output node of the model that you have created in the view.

-Then in Outline Window-> Right click on the table element-> Create binding-> check the attributes that you want to be binded to the table.

-Then follow the steps.

You have now your table binded to the rfc.

Finally what you have to do is to create a method to execute the rfc. Usually it is written in the controller. Something like this:


 public void execute<YourBapiName>( )
  {
    //@@begin execute<YourBapiName>()
	IWDMessageManager manager = wdComponentAPI.getMessageManager();
	try
	{
	  wdContext.current<YourBapiName>Element().modelObject().execute();
	  wdContext.node<YourBapiOutputNode>().invalidate();
	  wdContext.current<YourBapiName>Element().modelObject().modelInstance().disconnectIfAlive();
	}
	catch(WDDynamicRFCExecuteException e)
	{
	  manager.reportException(e.getMessage(), false);
	}
    //@@end
  }

To call this method, first, you have to bind the input parameters and then execute it (you can do this wherever you want):




<YourBapiName> input = new <YourBapiName>();

input.set<YourBapiParameters>(<YourParameter>);

wdContext.current<YourBapiName>Element.bind(input);

wdThis.wdGet<YourControllerName>(Controller().execute <YourBapiName>();


I hope it helps.

Bye bye.

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Krishna,

1.

try the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/f6/4345e8238fcd418197d6692e59d673/frameset.htm

There I suggest you the section:

Creating a Web Dynpro Application Accessing ABAP Functions (http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm)

This covers how to create an application which takes the information from the ABAP backend.

2.

In the following one you'll also find an example for the usage of the WD4Java Table UI:

http://help.sap.com/saphelp_nw70/helpdata/en/d7/72ea4021a1702ae10000000a155106/frameset.htm

See also

http://help.sap.com/saphelp_nw70/helpdata/en/de/7524bbf136934eb1ca1796d58c35ea/frameset.htm

I hope this helps.

Best Regards,

Ervin