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

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.

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

Similar Messages

  • HOW TO CREATE "MESSAGE CLASS"?

    HELLO EXPERTS,
        Hereby, I post my another very simple but very important query.
        I have to make <b>"message class"</b>. But I <b>do not</b> know the tracsaction code, procedure and other require syntax.
        Kindly, explain me the <b>ENTIRE PROCEDURE</b>.
        Thanks!!

    <b>You create and edit Message Class using Transaction SE91. Once you have created a message, you can use it in the MESSAGE statement in a program.
    All messages are stored in table T100.</b>
    <b>Creating Message Classes</b>
    To create a new message class from the ABAP Editor:
       1. In the initial statement (for example, REPORT) or directly in the statement MESSAGE ID <id> enter a parameter value of up to 20 characters as a message ID, for example:
          REPORT <name> MESSAGE-ID <message class>.
          Messages are stored system-wide. The chosen message ID (message class) must not already exist in the system.
       2. Double-click the message ID.
          If you enter an ID that already exists in the system, the system calls up Message maintenance. In this case, enter a different ID. Once you have done this, the system asks you whether you want to create a new message class.
       3. Choose Yes.
          The system calls up Message maintenance.
       4. Enter a brief description of the class in Short text.
       5. Choose Save.

  • Create message class

    Hi,
    how is create message class.
    using in dialog program explain for procedure.
    by,
    Megahari.S

    Hi,
           T-Code SE93 is to create message classes.You can use it in pgm by specifying
    REPORT  NAME   MESSAGE-ID [MESSAGE CLASS NAME].       
    To display error messge syntax:
    MSG E(001)--> your message no..

  • How to create a class using java script..

    Hi all,
    Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
    If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
    Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
    Thanks
    Avis_su
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <SCRIPT language = "JavaScript">
    <!--
    //Created classes
    class book
    var title: String;
    var author:String;
    function author()
    doucument.write("Author is " +this.author);
    function tile()
    doucument.write("Title is " +this.title);
    function printall()
    var counter = 0;
    function author();
    function title();
    var chapters = Array[String];
    for(chapter in this chapters)
    counter++;
    document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
    var thisbook = new book()
    thisbook.author = "Sivagami";
    thisbook.title = "MS in CS giude";
    thisbook.chapters = new Array[10];
    thisbook[0] = "Prepare to Excell in all ";
    thisbook[1] = "Learn to be happy";
    thisbook[2] = "Learn to be healthy mentally emotionally physically";
    thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
    thisbook.printall();
    //-->
    </script>
    </body>
    </html>

    Run this program to get your answer:
    public class AnswerToYourPost {
    public static void main(String args[]) {
    System.out.println("TRUE/FALSE: This question
    ion belongs on a Java forum.\n"
    + "ANSWER: " + ("Javascript" == "Java"));
    }Since when do we compare objects for equality using operator == ?

  • How to create a class pool

    Hi how to create a class pool when i tried to create it has shown the following error
    <b>Unable to change program from or to type K
    Message no. DS165
    Diagnosis
    You tried to assign a type to a program that cannot be assigned in the program attributes, but can only be set internally by one of the tools in the ABAP Workbench.
    The following program types are reserved:
    F Reserved for Function Groups
    Function groups are adminstered by the Function Builder, and you can only create or delete them using the Function Builder or the Object Navigator (Transaction SE80).
    K Reserved for Class Defintions
    Class definitions are administered in the Class Builder. You can only create or delete them using the Clas Builder or the Object Navigator.
    J Reserved for Interface Definitions
    Interface definitions are administered in the Clas Builder. You can only create or delete them using the class Builder or the Object Navigator.</b>

    Hi,
    Though you get a popup for different options for different program types like Class pools, function groups etc in SE 38 Program attributes, you can't create them from Se38 transaction.
    They have to be created from different places.
    Class Pools are nothing but creating CLASSes and INTERFACEs using the T Code SE24.
    This needs little Java/OOPs concepts to create and use them.
    Hope this helps.
    Regards,
    Anji

  • How to create development class (package)

    Hi
    Can anybody help me out in creating development class (package) to store ABAP programs.
    Thanks in advance
    Raghav

    Hi
    go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
    provide the name and short text,software component->create req.no.
    with this dev class will be created
    or
    Use the transaction SE80.
    1. Select "Package" from the list box.
    2. Enter "ZEST" in the below text box
    3. Press "Enter".
    4. It will ask you whether to create.
    5. Sy "Yes".
    6. Give Short Description
    7. Click Save button.
    check this
    How to create development class
    If u find it useful plz reward the points
    charitha
    Message was edited by:
            charitha kolla

  • How to create static class in Netbeans ?

    I want to create a static class in netbeans.
    But it gives error like : static modifier not allowed here. as far as java prog concern it is syntactically correct.
    for eg.
    public static class Emp
    -------body & methods
    it looks correct syntactically, but gives error in netbeans, static modifier not allowed here. Why ? How to create static class in netbeans ?

    DrClap wrote:
    I have occasionally seen the name "static class" used to denote a class whose members are all static.I think this is quite common.
    But taking the name literally and trying to declare a class "static" is a little naive."naive" or being used to doing that in C#.

  • BB apps is not working, how to create BB email add? please help

    BB apps is not working, how to create BB email add? please help

    If none of the blackberry apps are working and you are unable to setup an email address..... have you got a Blackberry Data Plan active on your account?

  • Error Occured While Creating message class 8II In SapNote 1486147

    Dear All
    I applied SapNote 1486147 but at the time of creating message class 8II
    It shows error like this
    Object MSAG 8II is in reserved name range for sap partner
    Any body help on this.
    Edited by: chandrap on Feb 24, 2011 2:08 PM

    Hi Yasir,
    remove the jaxb.jar from the WEB_INF/lib and move
    them to your SUNWappserv/lib/endorsed - dir, together
    with the following jars:
    dom.jar jaxb-api.jar jaxb-impl.jar jaxb-libs.jar
    jaxb-xjc.jar namespace.jar relaxngDatatype.jar
    r xalan.jar
    xercesImpl.jar xsdlib.jar
    (restart the deploytool if used)
    This should work,
    Bas van OudenaardeHi Bas
    Thank you for the very useful tip but I don't seem to have a SUNWappserv/lib/endorsed - directory inside my .war archive , could you please advise on this issue

  • I installed CS6 on Mac Pro (10.9 software version). I don't see the Adobe PDF printer in the printer/fax section.  I can not figure how to create the PDF Printer.

    I can not figure how to create a Adobe PDF Printer. Normally when you install the package ( CS6 Standard for Mac Pro) the installer creates the PDF printer automatically. In the System Preferences under the Printer/Fax I don't see the PDF printer. How do you create the PDF printer.
    Thanks,
    Melanie

    did you install acrobat x and does it work as expected?

  • How to create Messages with Value Bindging

    Hello,
    i have an custom component and want to show all message for this component:
    <h:column>
    <t:messages binding="#{FolgeterminMessages.messages}" globalOnly="false"></t:messages>
                                                                          <co:note noteManager="#{performanceGesp.folgeGespraech}"
                                                                               noteClient="#{performanceGesp.noticeClient}">
                                                                          </co:note>
                                                                     </h:column>

    To Create messages in message bundles with parameters, perform the steps as given below
    Scenario: To Create a message as "Department Name XXXXXXX is already existing "
    Step#1: For the given entity object “DepartmentEO”, Go to “overview” tab and click “Business Rules” finger tab.
    Step#2: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
    Step#3: Now go to “Failure Handling” tab, and click the Magnifier Icon.
    Step#4: Now in the “Display Value” field, enter the message with flower-braces as below.
    Department Name {department_name} is already existing
    Step#5: Also modify the Key & Description fields as needed. And click “Save and Select” button.
    Step#6: Now go to “Token Message Expressions” section, double-click the Expression field corresponding to "department_name" & give the relevant Attribute names say "DepartmentName"
    Step#7: Now click “OK”.

  • How to create messages with parameters In ADF model.

    In ADF model, How to create messages with parameters?

    To Create messages in message bundles with parameters, perform the steps as given below
    Scenario: To Create a message as "Department Name XXXXXXX is already existing "
    Step#1: For the given entity object “DepartmentEO”, Go to “overview” tab and click “Business Rules” finger tab.
    Step#2: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
    Step#3: Now go to “Failure Handling” tab, and click the Magnifier Icon.
    Step#4: Now in the “Display Value” field, enter the message with flower-braces as below.
    Department Name {department_name} is already existing
    Step#5: Also modify the Key & Description fields as needed. And click “Save and Select” button.
    Step#6: Now go to “Token Message Expressions” section, double-click the Expression field corresponding to "department_name" & give the relevant Attribute names say "DepartmentName"
    Step#7: Now click “OK”.

  • How to create message based exception class?

    Hi Guys,
    I try to create exception class at Workbech (se24), for example ZCX_TEST. At header information everything is default, but radiobutton "Exception class" is set and checkbox "With message class" is set. After this I enter text for my exceptions, for example TEXT, I assign it to SAP message (for example, class 00, message number 002). I'm going to tabstrip "Attributes" and public constant with name "TEST" should appear with assigned associated type SOTR_CONC and initial value with ID (normal behavior), but attribute "TEST" is created without type and value. It is not possible to use such exception. Where I am wrong?
    Regards,
    Evgeni

    Hmmm. It looks that it works fine with such definitions. Sorry for disturbs.

  • Selecting and moving many messages not working - try sorting by message classes

    I posted this a while back, and have an update now.
    I file my sent items.  Call me crazy, but I like to at the end of every quarter, move sent items from that quarter into sub folders.  It's usually 2-4000 items, and ever since I installed OL2010, I have had weird issues when trying to clean my Sent items.
    Example:  Select 2000 items, sorted by date from Sent Items.  Drag and drop to my 2009Q4 folder.  It then prompts me "Creating a new item from the selected items could take some time. Are you sure you want to create a new item from these 2000 items?"
    So I figured possible Ctrl is stuck down or something, so I right click, Move, select the folder.  Same issue.
    I start selecting smaller data sets.  I got to about 50-60 items at a time that I was able to move and not get that message.  I got frustrated and stopped working on it.
    This morning, I decided to re-test this.  Same issue presents itself.  So instead, I sorted by message class.  I was able to select 3800 message items.  The remaining items were messages with attachments, text/mobile messages, and calendar invite responses.
    It appears that some combination of selecting multiple message classes was triggering my issue.  I suspect the newest of them, the mobile messages to be the issue, so I deleted them, and retried, nope, same error, even selecting only the show message class types.   Would like to see this fixed, of course, and will be sending a frown with the link to this thread as well.
    Chris

    I had this problem too.  For me, simply sorting by message class, then finding all the calendar items and moving them first, then going back and doing the rest, allowed me to move them as I liked.   However, its not clear to me that I have
    all message classes (not sure what they all are), so it could be there are other message classes that cause problems when you move "mixed classes".   I do think this is an MS Outlook bug, but not clear anyone has reported it to MS.  ;-<
    You can prove this by simply selecting a calendar item and a msg, and try moving the two.  You will have this issue.
    However, you'd think that MS itself would be a vast user of MS Outlook and if we're discovering this, you'd think MS internal folks are too, so I'm deferring to them to self-resolve.   Until then, I'll just use this workaround.
    Definition of "Message classes" for others reading this...  You may have already inferred, but two examples of "classes" are a normal email (.msg) and a calendar item.  You can sort these by clicking on the "icon" field at the top of your email
    folder, just to the right of the "bell" (Reminders).   Not sure how to put a .JPG in this posting, since a picture would explain this much better than I can using words.

  • How to Create a Class, do something, and return the name of the child class

    Hello Java Experts,
    I am relatively new to using java. Particularly when it comes to creating something on my own (ie without some of the good samples sun and o'reilly provide!).
    Here is what I am trying to learn how to do:
    I want a class, I am calling in Message. The Message
    class with have various message types. I know what I want to call these message types: one example is what I will call a "ZeroSpace" ("0 143321 4 070302") message, another type is BracketHex, and yet another is BracketNN ("[99]").
    I will test a string (which will be a message received via a serial port, java serial, etc). Then after testing the string (like "0 143321 4 070302"). I will look for the "0" and the space (chr(32)) and want to return ZeroSpace as the message type. Not a string "ZeroSpace". Something like an enumeration in C or Delphi Pascal (ordinal list??)
    the hierarchy is like this: class Message msg;
    msg zsp = new ZeroSpace();
    msg bhex = new BracketHex();
    etc. Depending on the message type I what to do different processing - something like class Shape, and Circle, Square, etc are shapes, but their areas are different, etc
    any tips will help!
    Thank you
    eric w. holzapfel

    one way is to make Message an abstract class, make it a factory, eg with public static Message Create( String str ) method. have it check the string in determining the subclass to instantiate and return. eg if begins with "0 ..", then return new ZeroSpace( str ), where ZeroSpace extends Message. similar for BracketHex and BracketNN.

Maybe you are looking for