Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to display a record by using MACROS with Include program.

0 Likes
1,338

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.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
1,258

Macros are obsolete and very bad programming practice. Do not use.

6 REPLIES 6
Read only

Abinathsiva
Active Contributor
1,258

Hi Rasul,

Follow link below this helps a lot in understanding Macros

How to use Macro

Read only

0 Likes
1,258

Thanks for sharing link. Good information about Macros. i could able to solve my prog.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,258

Hmm, in fact your question is about "random number generation", right?

Read only

matt
Active Contributor
1,259

Macros are obsolete and very bad programming practice. Do not use.

Read only

0 Likes
1,258

Yes you are correct Matthew. i just wanted to know concept.

Thank you

Read only

0 Likes
1,258

Not exactly sundra, get_row statement should pick up particular line record of internal table. ITAB already been declared in ZDISPLAY Include prog.