Wednesday, December 22, 2010
REPORT ZTEST_PROGRAM .
DATA: IT_DATA TYPE TABLE OF T001.
DEFINE RADIO_BUT1.
PARAMETERS:&1 RADIOBUTTON GROUP GR1 DEFAULT 'X'.
END-OF-DEFINITION.
DEFINE RADIO_BUT2.
PARAMETERS:&1 RADIOBUTTON GROUP GR1.
END-OF-DEFINITION.
RADIO_BUT1:R1.
RADIO_BUT2:R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15.
DATA:RAD TYPE CHAR3.
DATA:SY_INDEX TYPE CHAR2.

AT SELECTION-SCREEN OUTPUT.

DESCRIBE TABLE IT_DATA LINES SY-TFILL.
SY-TFILL = 8. "This will be changed based on the itab records. I just hardcoded the value
SY_INDEX = 1.
LOOP AT SCREEN.
CONCATENATE 'R' SY_INDEX INTO RAD.
IF SCREEN-NAME = RAD.
IF SY_INDEX GT SY-TFILL.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
SY_INDEX = SY_INDEX + 1.
CONTINUE.
ENDIF.
SY_INDEX = SY_INDEX + 1.
ENDIF.
ENDLOOP.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.