‎2009 Oct 24 7:37 AM
Hi Experts,
I am working in a module pool program where in table controle i want a perticular row should become in display mode if a specific field is NE SPACE. is it possible if possible than please sugest me how.
Thanks and Regards,
D Tarun Kumar
‎2009 Oct 24 7:54 AM
HI Kumar,
in PBO
loop at itab with control tc.
endloop.
module modify_screen. ---> This should come next to the above loop
in program.
module modify_screen.
loop at itab
if not itab-field is initial.
loop at screen.
if screen-fieldname = 'ITAB-FIELDNAME'.
screen-input = 0.
modify screen.
ENDIF.
endloop.
endif.
endloop.
Cheers
Ram
‎2009 Oct 24 7:54 AM
HI Kumar,
in PBO
loop at itab with control tc.
endloop.
module modify_screen. ---> This should come next to the above loop
in program.
module modify_screen.
loop at itab
if not itab-field is initial.
loop at screen.
if screen-fieldname = 'ITAB-FIELDNAME'.
screen-input = 0.
modify screen.
ENDIF.
endloop.
endif.
endloop.
Cheers
Ram
‎2009 Oct 24 8:01 AM
In this case all the rows will be in display mode
Exactly My Requirement I am describing with example
Suppose in table control I have three Records and the first field is main field which is if initial than the row should in change mode otherwise is should be in display mode.
Field1 Field2 Field3 Field4 Field5
1abc2 1abc3 1abc4 1abc5 Record 1
2xyz1 2xyz2 2xyz3 2xyz4 2xyz5 Record 2
3pqr2 3pqr3 3pqr4 3pqr5 Record 3
So here the second rowu2019s first field is not initial so I need here in table control the second row should be in display mode and next first and second row should be in change mode.
Now You tell me is it possible or not if possible than please suggest me what I have to do
Thanks & regards,
D Tarun Kumar
Edited by: Devalla T Kumar on Oct 24, 2009 9:17 AM
‎2009 Oct 24 9:09 AM
HI Kumar,
Please note the following Changed Code, I just checked and it is working fine
in PBO
loop at itab with control tc.
module modify_screen. This should be here only
endloop.
in program.
module modify_screen.
if not itab-field is initial.
loop at screen.
if screen-fieldname = 'ITAB-FIELDNAME'.
screen-input = 0.
modify screen.
ENDIF.
endloop.
endif.
Cheers
Ram
‎2009 Oct 24 11:37 AM
‎2009 Oct 24 11:36 AM