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

Default value in module pool program

Former Member
0 Likes
2,267

Hi Experts,

How can we give the default values in the screen.

and

i want line no in table controle should come automaticaly.

how it is possible.

Thanks & Regards,

DTK

11 REPLIES 11
Read only

Former Member
0 Likes
1,431

Can use the internal table record number as line number in TC.

Read only

Former Member
0 Likes
1,431

Pass the default values to the appropriate fields in PBO.

Read only

Former Member
0 Likes
1,431

Pass the default values to the appropriate fields in PBO.

Read only

Former Member
0 Likes
1,431

Pass the default values to the appropriate fields in PBO.

Read only

Former Member
0 Likes
1,431

Pass the default values to the appropriate fields in PBO.

Read only

0 Likes
1,431

HOW MR MUTHU RAM

Read only

0 Likes
1,431

HOW MR MUTHU RAM

Read only

0 Likes
1,431

hi,

for example .. u have to give default value to the text field whosa name is 'contro_name'.

then assign your default value in PBO of that screen in which text field is there.

contro_name = sdsads

or u can use MOVE command

hope it helps you

thanks

SAchin

Read only

1,431

Hi,

In order to pass the default value to the screen,In PBO of the screen:

Module initialize_field.

In program:

module initialize_field output.
    <Screen field name> = <Value >.
   " Eg:g_date = sy-datum.
endmodule

. " STATUS_0100 OUTPUT

Read only

Former Member
0 Likes
1,431

Hi DTK ,

Do one thing add one field suppose count in internal table and in table control screen .

Now follow the below code in PBO :

PROCESS BEFORE OUTPUT.

MODULE STATUS_9025.

LOOP AT IT_process WITH CONTROL TCvLAB CURSOR

TCvLAB-CURRENT_LINE .

MODULE SERIAL_NO . "module added for display serial no on screen

ENDLOOP .

******************************************************************

MODULE SERIAL_NO .

IT_PROCESS-COUNT = TCvLAB-CURRENT_LINE .

MODIFY IT_process.

ENDMODULE .

*********************************************************************

in the above code count is the serial no . field added in IT_process internal table .

this will work definately .

Regards ,

Nilesh jain

Read only

Former Member
0 Likes
1,431

THANKS