cancel
Showing results for 
Search instead for 
Did you mean: 

To display User input

Former Member
0 Kudos

hii experts,

i have a requirement to get an input from user & display that as output to take printout. to get this i need to store those input values in z-table right. How to achieve this with webdynpro? Reply is appreciated.

Regards,

priyanshu

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Priyanshu

It depends on you requirement again...Incase if u want to restore those old input values later storing in db is required.

If are just interested in printing it, you can directly do it with cotext data and adobe form...

Former Member
0 Kudos

thanks karthik,

requirement is to store that values for later use also. They asked do not use adobe forms.

kindly suggest how to do that?

former_member206441
Contributor
0 Kudos

Hi

Create a z table with the fields you want to insert values from Web Dynpro ABAP application.

Now In WDA aplication read the inputfield values and create an internal table type z table and an workarea like shown below

data : itab type STANDARD TABLE OF zempwda,

wa_itab like line of itab,

context_node type ref to if_wd_context_node.

wa_itab-EMP_NUMBER = lv_emp_number. "value from inputfield

wa_itab-EMP_NAME = lv_emp_name.

wa_itab-GENDER = gen_var.

wa_itab-DOB = lv_dob.

wa_itab-ADDRESS1 = lv_address1.

wa_itab-ADDRESS2 = lv_address2.

insert into zempwda values wa_itab." this statement will insert the values from inputfield to ztable.

Regards

Arun.P

Former Member
0 Kudos

Thanks Arun,

but it doesnot work out. Kindly reply anyone help needed. I have created Z-table , & in controller context using this ztable, created view of type ztable only & done mapping to display data got through input fileds. Not sure its correct way or not. so kindly reply.

Regards

priyanshu

former_member186491
Contributor
0 Kudos

Hi,

If you mean to ask that you are asking your user to give some input and that needs to be stored in some ZTABLE and further needs to be displayed on screen. Then, you can use following steps --

1. Make a ZTABLE having required fields.

2. Make a RFC Enabled Function to do the back-end processing like - taking import from browser and storing that in ZTABLE. and exporting values or re-process as reqd.

3. In WDA, make InputElement of your choice.

4. In Method of that View, Read the node, set the values so read.

5. Call the Function or BAPI - whichever has been coded earlier.

Other steps as per making WDA would remain the same.

Hope this answers your query.

Thanks.

Kumar Saurav.