Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table control in module pool

Former Member
0 Likes
314

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.

1 REPLY 1
Read only

Former Member
0 Likes
294

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.

www.saptechnical.com

www.sap-img.com

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