‎2007 May 22 7:49 AM
hi friends, i am doing module pool programming first time .can any body send me the code which should be written under PAI and PBO for displaying table fields.
for example i am selecting LFA1 table fields LIFNR NAME1 LAND1 based on the value given in LIFNR.
Ask me if my requirment is not clear.
Kumar.
‎2007 May 22 7:51 AM
go to abapdocu transaction
Go through the below underlined programs.
Table Control with LOOP - ENDLOOP - <u>demo_dynpro_tabcont_loop</u>
PBO.
flights-lines = fill. "DESCRIBE TABLE itab LINES fill.
LOOP WITH CONTROL FLIGHTS.
READ TABLE itab INTO demo_conn INDEX flights-current_line.
ENDLOOP.
PAI.
LOOP WITH CONTROL FLIGHTS.
lines = sy-loopc.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDLOOP.
Table Control with LOOP AT ITAB - <u>demo_dynpro_tabcont_loop_at</u>
Table Control Modificatinos
PBO.
flights-lines = fill. "DESCRIBE TABLE itab LINES fill.
LOOP AT ITAB INTO DEMO_CONN WITH CONTROL FLIGHTS.
ENDLOOP.
PAI.
LOOP AT ITAB.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDLOOP.
‎2007 May 22 8:00 AM
hi kumar,
can u be little bit descripotive.....
telme wat u need.. so that i can help u
With Regards,
S.Barani
‎2007 May 22 8:07 AM
Hi,
You can do the validation and fetching of values from the LFA1 in the PAI module.
You need to pass the ouput of the select statement to the Output Internal table ie. the table created in the screen