on 03-24-2010 12:12 PM
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.