‎2009 Jan 13 5:30 AM
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
‎2009 Jan 13 5:41 AM
Can use the internal table record number as line number in TC.
‎2009 Jan 13 5:43 AM
‎2009 Jan 13 5:45 AM
‎2009 Jan 13 5:45 AM
‎2009 Jan 13 5:45 AM
‎2009 Jan 13 5:54 AM
‎2009 Jan 13 5:55 AM
‎2009 Jan 13 6:00 AM
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
‎2009 Jan 13 6:07 AM
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
‎2009 Jan 13 6:18 AM
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
‎2009 Jan 16 10:49 AM