cancel
Showing results for 
Search instead for 
Did you mean: 

Report is not displaying

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member215526
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi Xavier,

thank you for your quick response.

It is only an simple report. The report shows the inspection characteristic from an special inspection plan.

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

I think you are right, can I change this question to an other topic?

Best regards,

Ulrike

former_member215526
Active Participant
0 Kudos

Hi Ulrike,

Unfortunately I don't know how. (Please consult the moderator I think)

In my experience I don't think is program error, maybe how you create the transaction code.

Please just to be sure tell me if you active the code transaction with this option.

Or test to remove your creation and please test with this.

Remark: I did test and your report works well for me with this option above.

Regards,

Xavier

Former Member
0 Kudos

You are the BEST!!!

It works!!!

Thank you, Xavier!

Best Regards,

Ulrike