cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ABAP user input/output

04-24-2014 1:44 PM
2294 views 9 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi, I am veeery new to web dynpro and abap. I want to make 2 panel: 1 for user input and the other one for displaying user's input in a form of a table.

How can I display the user's input that he added in the first panel in the second panel. I want to display that input as a table (kind of a dynamic table, as soon as user enters the field values in the first panel and presses Add Entry button, the values should appear in the second panel as a new row in the table.

How hard is it to accomplish this and please give some reference or some guidelines how can I achieve this.

Thank you in advance and please go soft on me it's my first SCN appearance:)

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Paulo_Vantini
Participant
0 Likes

Hi German,

check out this tutorial video on youtube: Build a Simple WebDynpro ABAP App: SAP Tutorial (Part 2) - YouTube

You´ll just have to change the output view to bind the context node element to a table instead of a textview.

Hope that helps,

Regards.

Former Member
0 Likes

That and the dropdown video really helped a lot, thank you! I managed to create 2 panels in the same view: 1) for getting input and the 2) for displaying the input in a table.

BUT, upon pressing the button to submit the input values it only uses the first row of the table, overwriting the previous values. I would like to be able to add new values as a new row of the table in the second panel, not replace the old ones.

Any suggestions?

Just in case: I created 1 inbound and 1 outbound binding and then dragged and dropped them red to blue.

Former Member
0 Likes

Hi German,


BUT, upon pressing the button to submit the input values it only uses the first row of the table, overwriting the previous values. I would like to be able to add new values as a new row of the table in the second panel, not replace the old ones.

Any suggestions?

Just in case: I created 1 inbound and 1 outbound binding and then dragged and dropped them red to blue.

As you can able to display the input values in your panel2(provide first time in input field of panel1).

For second time, Check if the table in panel2 is not intial and append the new value to the existing value(itab) and bind the itab.

As you're newbie to the webdynpro, Pls go through this LINK

Then it'll not override any values.It will resolve your issue.

Thanks

Katrice

Paulo_Vantini
Participant
0 Likes

Dear German,

take a look at the next one from Brandon about table append: WebDynpro ABAP Internal Table: SAP Tutorial (Part 😎 - YouTube

You can do it by clicking on the code wizard (magic wand at the application toolbar) and selecting append as table operation for the context node in order to generate the code to achieve your requirement. Then insert the table in the output view layout using the wizard to bind the context attributes to the table fields.

Hope it solves your issue.

Regards.

Answers (5)

Answers (5)

former_member183072
Active Participant
0 Likes

Hi German,

This will help you:

Have fun

Regards,

Hancila

Former Member
0 Likes

Hi,

    This would be helpful to u .

SAPTechnical.COM - WebDynpro for ABAP

Regards.

Dj

Former Member
0 Likes

Hi,

please go through basic material for webdynpro .

very basic level we need check about the controllers, layout design , data binding and to connect out put, input we have input plug, output plug.

pls check out and try to create by using to view controllers to take create layouts.with min coding youcan finish ur requirement.

Webdynpro Tutorials: Webdynpro Tutorials for Beginners in pdf

Webdynpro Tutorials: Webdynpro Tutorials for Beginners in pd

please find the above links,

very simple understanding way.yu can follow the screenshots also to meet your requirement.

thanks .

Former Member
0 Likes

Hi

Please go through the below link

http://webdynproabap.wordpress.com/webdynpro/

sravanthi_polu
Contributor
0 Likes

Hi,

Please go through the below link it looks similar to your requirement.

SAPTechnical.COM - WebDynpro for ABAP

In the above example,in second view add a table and write the insert statement as needed.

Regards,

Sravanthi