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

Module Poll code

Former Member
0 Likes
524

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.

3 REPLIES 3
Read only

Former Member
0 Likes
496

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.

Read only

Former Member
0 Likes
496

hi kumar,

can u be little bit descripotive.....

telme wat u need.. so that i can help u

With Regards,

S.Barani

Read only

0 Likes
496

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