‎2007 Jul 14 2:34 PM
hi,
i have created a one screen.
in that i have taken 3 fields.
and 1 table control.
that 3 fields lifnr, name1, date.
when i enter lifnr value in lifnr field i want to display name1 by default.
i fetched data from lfa1 by using lifnr value.
how to display that one in screen.
i want some code.
next case .
in table control
i have 5 fields here user can enter that values.
after entering that 5 fileds i want to save 5 fileds and 3 fields in one z table.
give me sample code.
‎2007 Jul 14 2:52 PM
Hi
See the links and do accordingly
syntax:
CONTROLS <tab_ctrl_name> TYPE TABLEVIEW USING SCREEN <screen_no>.
chk the demo prog:
<b>DEMO_DYNPRO_TABCONT_LOOP</b>
Go through this urls.
Check the below links.
http://www.planetsap.com/howdo_a.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
http://sap.niraj.tripod.com/id25.html
Also you can see the below examples...
Go to se38 and give demodynpro and press F4.
YOu will get a list of demo module pool programs.
One more T-Code is ABAPDOCU.
YOu can find more examples there.
See the prgrams:
<b>DEMO_DYNPRO_TABLE_CONTROL_1</b> Table Control with LOOP Statement
<b>DEMO_DYNPRO_TABLE_CONTROL_2</b> Table Control with LOOP AT ITAB
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
<b>Reward points for useful Answers</b>
Regards
Anji