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

values not populating for first time

former_member420959
Participant
0 Likes
614

hello all,

i have a small problem with module pool table control.

i have a screen with table of 12 rows each for each month and when the screen appears by default the month should be filled in 12 rows

i have written logic in PBO of screen, read the fm month_names_get, looped the table and append my module pool table.

but when the screen is appeared the month names are not filled.

when i press enter the i am getting the month names as required.

is there any way to get the screen filled for first time only as soon as it is appeared.

thanks in advance

ujwal

hello all,

i have a small problem with module pool table control.

i have a screen with table of 12 rows each for each month and when the screen appears by default the month should be filled in 12 rows

i have written logic in PBO of screen, read the fm month_names_get, looped the table and append my module pool table.

but when the screen is appeared the month names are not filled.

when i press enter the i am getting the month names as required.

is there any way to get the screen filled for first time only as soon as it is appeared.

thanks in advance

ujwal

3 REPLIES 3
Read only

Former Member
0 Likes
586

Hi

Try to check the attribute of table control (like field <table control>-line is should be equal to 12) else post your code

Max

Read only

Former Member
0 Likes
586

I think debugging is the better option to find out the problem...put a break point to the line where you have called the method month_names_get & execute, see the control is coming there or not.. 

Read only

former_member220538
Active Participant
0 Likes
586

Hi,

In the PBO append the values to the internal table before the loop end loop.

PROCESS BEFORE OUTPUT.
  MODULE FILL_9003.
  LOOP AT t_mon INTO x_mon WITH CONTROL tab.
  ENDLOOP.

PROCESS AFTER INPUT.


Here i  appended the values to the internal table in the module FILL.Make sure that you are not calling the module after the loop..end loop.