Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg. Output for the simple programme

Dear Experts

I am new to ABAP. I wrote simple coding but there is no output and Input screen only coming. There is no required fields display.

Report ZPR.

Tables:MARA,MAKT.

Data:begin of PR occurs 0,

MATNR like MARA-MATNR,

ERSDA like MARA-ERSDA,

ERNAM like MARA-ERNAM,

LAEDA like MARA-LAEDA,

AENAM like MARA-AENAM,

LVORM like MARA-LVORM,

MAKTX like MAKT-MAKTX,

End of PR.

data:PR1 like PR occurs 0 with header line.

selection-screen begin of block b1 with frame.

select-options:MAT for MARA-MATNR.

selection-screen end of block b1.

MAT = MAT+3(15).

select MARAMATNR MARAERSDA MARAERNAM MARALAEDA MARA~AENAM

MARALVORM MAKTMAKTX into (PR1-MATNR, PR1-ERSDA, PR1-ERNAM, PR1-LAEDA,

PR1-AENAM, PR1-LVORM, MAKT-MAKTX) from MARA inner join MAKT on

MARAMATNR = MAKTMATNR where MARA~MATNR eq MAT.

endselect.

Loop at PR1.

write:/ PR1-MATNR,

PR1-ERSDA,

PR1-ERNAM,

PR1-LAEDA,

PR1-AENAM,

PR1-LVORM,

PR1-MAKTX.

endloop.

Pls check the above coding and help me.

Thanks

Rajakumar.K

Tags:
Former Member
replied

Hi Raja.

Just append the header line to your internal table.

Append pr1.

Just above the endselect.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question