Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Row selection on Table control

Hi All,

I have a requirement wherein i need to display 2 screen navigation.

The first screen contain selection parameters and based on that selection parameters data get displayed in second screen. The second screen contain table control wherein i have displayed fields from custom table.

The requirement is that if internal table is not initial then data should be displayed on table contol in display mode. The table control contain one selection field. When user select one of line on table control then table control must be changed from display mode to change mode and allow user to change existing data .

Now problem is i am unable to change table control from display mode to change mode.

plz help me out.

Thanks & regards,

Parag

replied

Hi Parag, you can change the atribute of a table control using Loop at screen, also you can add words to the fiels to control the behavior or filter by the fields names.

LOOP AT SCREEN.

IF screen-group1 = 'CRE'

OR screen-group2 = 'CHG'.

screen-input = 1.

IF screen-group3 = 'REQ'.

screen-required = 1.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Very important here, this have to be include in the PBO into the table control loop.

PBO

LOOP AT t_itab

WITH CONTROL tc_XXXX

CURSOR tc_XXXX-current_line.

MODULE tc_status. " here you include the code above

ENDLOOP.

Regards

Alexis

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question