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 Pool table controle row level prob

Former Member
0 Likes
797

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
619

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

5 REPLIES 5
Read only

Former Member
0 Likes
620

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

Read only

0 Likes
619

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

Read only

0 Likes
619

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

Read only

0 Likes
619

Thanks Ram now its working fine.

Read only

Former Member
0 Likes
619

Thanks for Reply and valuable Answer