Hi Friends,
I have a selection screen like below.
PARAMETER: NUMBER(2) OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETER: SEGTYP TYPE IDOCSYN-SEGTYP MODIF ID ID,
FIELD TYPE DFIES-FIELDNAME MODIF ID ID,
VAL(255) MODIF ID ID.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN OUTPUT.
IF P_NUMBER EQ ' '.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'ID'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
So, here when I enter a number 1 in my NUMBER field, the BLOCK B1 is getting displayed one time which is correct. But, when I enter number 2 in my NUMBER field, I need to display the BLOCK B1 2 times, if 3, display BLOCK B1 3 times and so on...... how do I need to display the same BLOCK multiple times based on the number entered? I haven't done this scenario before. Please let me know how to achieve this.
Thanks,
Nani