cancel
Showing results for 
Search instead for 
Did you mean: 

runtime acces to append structure

Former Member
0 Kudos

Hi All!

Do any of you gurus know if it is possible to add an append structure to a table allready imported into webdynpro, and then dynamically gain access to the field runtime?

Our scenarios is that we have created an application that makes use of diffrent tables from R/3, but some of our customers have added aditional fields to theese via the append structure.

So to avoid reimporting the RFC and making explicit customer version, is it possible to dynamically add theese append fields runtime using webdynpro code?

Best regards,

Ronni

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

Hi

Use these thread from some input, and find out to its runtime access

1.[Append Structures|http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm]

2.[Appending Structures|;

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi Satish Kumar

Thanks for our reply, unfortunatly i dont think any of the links show how this is done using webdynpro?

former_member185086
Active Contributor
0 Kudos

Hi

I clearly mentioned that take some input and find out some way.

Ok, i answer one by one

it is possible to add an append structure to a table already imported into webdynpro, and then dynamically gain access to the field runtime?

We never import a table in webdynpro , this is one way of access the structure, so that we can work with

DB (for standard CRUD operations and representation ). or talking other than webdynpro perspective if something we want to access from database it gives us a Arraylist further we make it representable for our UI

Our scenarios is that we have created an application that makes use of diffrent tables from R/3, but some of our customers have added aditional fields to theese via the append structure.

So to avoid reimporting the RFC and making explicit customer version, is it possible to dynamically add theese append fields runtime using webdynpro code?

Then why Adaptive reimport function is there so that if some thing change in database after reimport it get reflected in our mapping structure also and of course when ever any changes in data base will happen (adding a new field , changes in datatype ) you must have to do modification in your structure also.

I hope these inputs are sufficient.

Best Regards

Satish Kumar

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi! I would love to, but it is in a book on page 469 :).

you can get the book on sap-press.

Former Member
0 Kudos

found solution in the book "Inside Webdynpro for Java".

former_member185086
Active Contributor
0 Kudos

Oh ! great man, can u please share that link.

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi All!

I found the clue in The"Inside Webdynpro for java" book.

There is an complete example of how to do this. Actually the problem is that one customer might have 5 APPEND'ed fields, while another might have 8 APPEND'et fields... in the book they show how to handle this in a generic way.

Thanks for your inputs!

br,

Ronni

vmadhuvarshi_
Contributor
0 Kudos

Ronni,

Adaptive RFC model adapts at runtime to reflect the changes made with .APPEND to structures. Any changes made to tables in R/3 with .APPEND are already available to you. You do not need to reimport the model to reflect these changes.

If you know the names of fields added, they are available to you with usual get methods.

Let me know if you need any more information.

Vishwas.

Former Member
0 Kudos

Exactly!