I am using table COSP in my program. The requirement is i need to add the field values(SMEXXX) of this table structure until the period entered in seletion-screen.
i.e if the period is 005.
i need to add
SME001 UNTIL SME005 TO a variable.
if the period is 007 then
SME001 UNTIL SME007.
I need the logic to choose the no of field values dynamically? please help me.