Skip to Content
avatar image
Former Member

Report is not displaying

Hello,

I have a problem with a new report.

Under the transaction SE80 I have created and activated a new program.


I can start the program with the direct processing .

If I call the program with the assigned transaction, then the selection material is displayed.

I choose the material and execute F8.

Nothing happens and the SAP main menu is displayed.

My program:

REPORT  ZREQUIREMENTSTOPRODUCTION.

parameters mat_no like mara-matnr matchcode object mat1. "  default

data it_mapl TYPE TABLE OF MAPL.
data lt_mapl LIKE LINE OF it_mapl.

data it_plko TYPE TABLE OF PLKO.
data lt_plko LIKE LINE OF it_plko.

data it_plas TYPE TABLE OF PLAS.
data lt_plas LIKE LINE OF it_plas.

data it_plmk TYPE TABLE OF PLMK.
data lt_plmk LIKE LINE OF it_plmk.

SELECT * FROM MAPL INTO lt_mapl WHERE WERKS = 'MEMC' AND PLNTY = 'Q' AND LOEKZ <> 'X' AND MATNR = MAT_NO.
   APPEND lt_mapl TO it_mapl.
ENDSELECT.

LOOP AT it_MAPL INTO lt_MAPL.

   SELECT * FROM PLKO INTO lt_plko WHERE PLNTY = 'Q' AND PLNNR = lt_mapl-PLNNR AND LOEKZ <> 'X' AND VERWE = '5'.
     APPEND lt_plko TO it_plko.
   ENDSELECT.

ENDLOOP.

LOOP AT it_PLKO INTO lt_PLKO.
   SELECT * FROM PLAS INTO lt_PLAS WHERE PLNTY = 'Q'  AND PLNNR = lt_PLKO-PLNNR AND PLNAL = lt_PLKO-PLNAL AND LOEKZ <> 'X'.
     APPEND lt_PLAS TO it_PLAS.
   ENDSELECT.
ENDLOOP.

LOOP AT it_PLAS INTO lt_PLAS.
   SELECT * FROM PLMK INTO lt_PLMK WHERE PLNTY = lt_PLAS-PLNTY AND PLNNR = lt_PLAS-PLNNR AND PLNKN = lt_PLAS-PLNKN AND LOEKZ <> 'X'.
     APPEND lt_PLMK TO it_PLMK.
   ENDSELECT.
ENDLOOP.

write: / text-z05.
write: / text-z10.

LOOP AT it_PLMK InTO lt_PLMK.
   write / lt_PLMK-VERWMERKM.
   write 10 lt_PLMK-KURZTEXT.
   write 45 lt_PLMK-MASSEINHSW.
   IF lt_PLMK-SOLLWNI IS NOT INITIAL.
     write 50 lt_PLMK-SOLLWERT.
   ELSE.
     write 50 '               '.
   ENDIF.

   IF lt_PLMK-TOLOBNI IS NOT INITIAL.
     write 72 lt_PLMK-TOLERANZOB.
   ELSE.
     write 72 '               '.
   ENDIF.

   IF lt_PLMK-TOLUNNI IS NOT INITIAL.
     write 97 lt_PLMK-TOLERANZUN.
   ELSE.
     write 97 '               '.
   ENDIF.

   write 122 lt_PLMK-STICHPRVER.
ENDLOOP.


Can anyone help me?


Ulrike

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 08, 2015 at 01:22 PM

    Dear Ulrike,

    Please can you explain us what do you want to do with this report and what is the logic you want do do? That can help us to understand more quickly you Z report.

    And also, I think this question is more for ABAP topic, surely if it redirects there, people have more knowledge to your question.

    Regards,

    Xavier

    Add comment
    10|10000 characters needed characters exceeded