cancel
Showing results for 
Search instead for 
Did you mean: 

Request and session objects in webdynpro

Former Member
0 Kudos

Hi

I am a pure java developer.

My manager has asked me to make an application (simple RFC call) in webdynpro java.

I followed some documents and it was easy to finish task...

But I was thinking to make an application now which can read contents from a CSV file and insert that in value attribute nodes.

I am having an action button.

A function which will be invoked from that button.

Now how can i do it.....means the best approach.

shall i create a separate class somewhere in my application and make an object of that class in onAction function of my button !!!

Or do i have to write entire code in onAction function.

Does concept of separate classes, request objects and session exist in webdynpro...!!

Because wen i did that RFC call everything was self created....!!

Please comment.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185086
Active Contributor
0 Kudos

Hi

Regarding your question :Does concept of separate classes, request objects and session exist in webdynpro.

For separate class :External Library DC is there read [this|https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/usingExternalLibraryinMobileWebDynpro+Offline] and [this|] for further input.

Request Object and session depends on uses and its life cycle is maintainded by WebDynpro application itself.

Have a look on this [document|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502f70a8-33a4-2b10-3dbe-bdcb5e25c6da]also.

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi,

Use the upload UI button to upload your CSV file

Read the contents of this file and create elements under value node for each row.

Regards

Ayyapparaj

Former Member
0 Kudos

There has to be some coding which needs to be done..

for reading file contents and then inserting them in node elements.

Where shall i do this coding.

In simple java we use to import a FileFactory class, which contains required utility methods from where we extract file contents.

File was accessed using request object.

Is this all available in web dynpro ...!!

Former Member
0 Kudos

Hi,

Of course some coding is needed

First part is to read the uploaded CSV, you can do a search for Upload UI and IWDResource

once you get the stream rest is same.

Regards

Ayyapparaj

former_member185086
Active Contributor
0 Kudos

Hi

Yes it is available and in more simplified way

1. Use file upload element. use this [thread|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71] for help

2. use [this|; and [this|; for further help.

(here examples are for some excel fileupload form system modify it according to your need)

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi

I have used a fileupload ui element.

It has 2 properties.

1 is data and other is resource...

I hav binded resourse to context attribute of type Resourse.

What shall i do with data property...!!

Please comment