‎2020 Feb 17 9:33 AM
Hi Abaper's
I wrote a program with include and macros. In include there is an Internal Table(IT) in which there are 10 records available. Now i want to display random records through macros. i mean like want 4, 6 & 9 record from internal table to display.
Over view of program.
{
Include ZDISPLAY.
uline.
DEFINE GET_ROW.
-----
END-OF-DEFINATION.
GET_ROW 4.
GET_ROW 6.
GET_ROW 9.
}
Thank you in Advance.
‎2020 Feb 17 11:55 AM
Macros are obsolete and very bad programming practice. Do not use.
‎2020 Feb 17 9:53 AM
‎2020 Feb 17 12:00 PM
Thanks for sharing link. Good information about Macros. i could able to solve my prog.
‎2020 Feb 17 11:17 AM
Hmm, in fact your question is about "random number generation", right?
‎2020 Feb 17 11:55 AM
Macros are obsolete and very bad programming practice. Do not use.
‎2020 Feb 17 12:01 PM
Yes you are correct Matthew. i just wanted to know concept.
Thank you
‎2020 Feb 17 12:05 PM
Not exactly sundra, get_row statement should pick up particular line record of internal table. ITAB already been declared in ZDISPLAY Include prog.