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

Implementing Note 836401. How to create message class 'Z'?

0 Likes
499

Hello Experts,

I'm trying to implement SAP Note 836401 -" FBCJ: Receipt print with display not allowed " In SAP ERP 6.0. Could somebody help me please with action in this note:

"You must then adjust the error class 'Z' to your error class and replace the error number '000' with the error number of the message you created." I have some misunderstanding - What I must to do here? In SE91 i can't find message class 'Z' and I can't to create it there, because of the rule: name of message class must minimum 2 characters.

In correction of object :"R3TR REPS MFCJ0F01" of this note, in source code I'm facing strings:

...

     ID 'BEGRU' FIELD ls_tcj_c_journals-begru.
    CHECK sy-subrc NE 0.
    AUTHORITY-CHECK OBJECT 'F_FBCJ'
      ID 'ACTVT' FIELD '32'                      "Save
      ID 'BEGRU' FIELD ls_tcj_c_journals-begru.
    CHECK sy-subrc NE 0.
    ld_no_auth = 'X'.                            "no authorization
     MESSAGE ID 'Z' TYPE 'I' NUMBER 000.
*   Sie haben keine Berechtigung, Quittungen zu drucken.

  ENDIF.                                         "begru initial?

ENDFORM.   

...

How to create the error class'Z'?

How to adjust error class 'Z' to my error class?

Best regards,

Pavel Bogomolov.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
450

Hello Pavel

The SAP note says that you should look for an appropriate Z-message class having a message (i.e. number) with the required text.

Alternatively, you may use the following approach:


...
    CHECK sy-subrc NE 0.
    ld_no_auth = 'X'.                            "no authorization
     MESSAGE ID '00' TYPE 'I' NUMBER 208 WITH 'Sie haben keine Berechtigung, Quittungen zu drucken'.
"     MESSAGE ID 'Z' TYPE 'I' NUMBER 000.
"*   Sie haben keine Berechtigung, Quittungen zu drucken.
 
  ENDIF.                                         "begru initial?
 
ENDFORM.   
 
...

Regards

Uwe

Hello Experts,

I'm trying to implement SAP Note 836401 -" FBCJ: Receipt print with display not allowed " In SAP ERP 6.0. Could somebody help me please with action in this note:

"You must then adjust the error class 'Z' to your error class and replace the error number '000' with the error number of the message you created." I have some misunderstanding - What I must to do here? In SE91 i can't find message class 'Z' and I can't to create it there, because of the rule: name of message class must minimum 2 characters.

In correction of object :"R3TR REPS MFCJ0F01" of this note, in source code I'm facing strings:

...

     ID 'BEGRU' FIELD ls_tcj_c_journals-begru.
    CHECK sy-subrc NE 0.
    AUTHORITY-CHECK OBJECT 'F_FBCJ'
      ID 'ACTVT' FIELD '32'                      "Save
      ID 'BEGRU' FIELD ls_tcj_c_journals-begru.
    CHECK sy-subrc NE 0.
    ld_no_auth = 'X'.                            "no authorization
     MESSAGE ID 'Z' TYPE 'I' NUMBER 000.
*   Sie haben keine Berechtigung, Quittungen zu drucken.

  ENDIF.                                         "begru initial?

ENDFORM.   

...

How to create the error class'Z'?

How to adjust error class 'Z' to my error class?

Best regards,

Pavel Bogomolov.

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
451

Hello Pavel

The SAP note says that you should look for an appropriate Z-message class having a message (i.e. number) with the required text.

Alternatively, you may use the following approach:


...
    CHECK sy-subrc NE 0.
    ld_no_auth = 'X'.                            "no authorization
     MESSAGE ID '00' TYPE 'I' NUMBER 208 WITH 'Sie haben keine Berechtigung, Quittungen zu drucken'.
"     MESSAGE ID 'Z' TYPE 'I' NUMBER 000.
"*   Sie haben keine Berechtigung, Quittungen zu drucken.
 
  ENDIF.                                         "begru initial?
 
ENDFORM.   
 
...

Regards

Uwe