Complete error message not getting displayed

Hi All,
I've built a custom webadi integrator which loads into a custom staging table.
All fine with the webadi but the error messages are getting truncated to only 45 characters. The variable size is 4000 characters and a debug message before RAISE_APPLICATION_ERROR indicates there is no truncation of the message in the PL SQL package.
Where and how is my message getting truncated?
Any pointers highly appreciated !

Hi
See the sample BADI code for PR which raises an exceptions and do accordingly
BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
Definition Name: ME_REQ_POSTED
Interface Name : IF_EX_ME_REQ_POSTED
Implementing Class: ZCL_IM_PUR_REQ
Method :            POSTED
METHOD if_ex_me_req_posted~posted .
  DATA : v_mtart TYPE mtart.
  DATA l_s_eban TYPE ueban.
  LOOP AT im_eban INTO l_s_eban.
    IF l_s_eban-estkz NE 'B'.
      CLEAR v_mtart.
      SELECT SINGLE  mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
      IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
        MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
      ENDIF.
    ENDIF.
    IF  l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
      IF l_s_eban-knttp NE 'A'.
        IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' ) 
           AND l_s_eban-matnr EQ space.
          MESSAGE e000(zm_msg) WITH 'You cannot create'
            'a PR without material number'.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDMETHOD.
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Problem in BADI, error message not getting displayed

    Hello Experts,
    I am facing a strange problem in BADI.
    The requirement is that the user should not be allowed to change the plant field
    on the screen of standard MM transctions for PO/PR amendment.
    I have written the code in separate BADIs for PO and PR.
    I am displaying an error message if the user tries to change the field.
    For PO, it is working fine.But for PR, the same code is not working.
    The control is going over to the BADI for PR and rest of the code is working fine.
    But the error message is not getting displayed for PR amendment.
    Can anybody please suggest the possible cause of problem and some solution to it.
    Thanks in advance.

    Hi
    See the sample BADI code for PR which raises an exceptions and do accordingly
    BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
    Definition Name: ME_REQ_POSTED
    Interface Name : IF_EX_ME_REQ_POSTED
    Implementing Class: ZCL_IM_PUR_REQ
    Method :            POSTED
    METHOD if_ex_me_req_posted~posted .
      DATA : v_mtart TYPE mtart.
      DATA l_s_eban TYPE ueban.
      LOOP AT im_eban INTO l_s_eban.
        IF l_s_eban-estkz NE 'B'.
          CLEAR v_mtart.
          SELECT SINGLE  mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
          IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
            MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
          ENDIF.
        ENDIF.
        IF  l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
          IF l_s_eban-knttp NE 'A'.
            IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' ) 
               AND l_s_eban-matnr EQ space.
              MESSAGE e000(zm_msg) WITH 'You cannot create'
                'a PR without material number'.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHOD.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Support messages not getting displayed in Messages Tab - Solar01/02

    Hi,
    I am having an issue in displaying the support messages under the message tab of Solar01 and Solar02. If I try to create a new message, the notification pops up and also gets saved. But the message does not get displayed under the tab.
    I can find that the message is properly created through transaction monitor.Even if I try to manually assign the support message number in Messages tab it gives an error saying the number does not exist.We are using SOLMAN 4.0 SP 11.
    Please help. Points will be awarded for useful answers.
    Regards,
    J.Prabananth

    Dear Prabanath,
           I am not too sure you will be able to assign numbers to support messages. Run the report CRM_DNO_MONITOR and get the full number from the report and insert the ticket number in issue messages tab and click on save and go back one screen, it will ask you if you want to save, select yes.
       That worked for me. Recently I have strugged to resolve this. We are on Solman 4.0 SP12. Check if you have all necessary permissions for you and do you have any thing in sm21 or st22 by any chance if the issue is related to support pack ?
         Let me know if there are any issues. I might be able to help you.
    N

  • Error msg not getting displayed on first time button click in SRM UI

    Hi,
    I have created a custom message in an impl. of SRM BADI BBP_DOC_CHECK_BADI in which one message is getting populated correctly in debugging. Again, when I check PO, the message is getting displayed correctly, however when I click on order button for the first time, it is not getting displayed but on subsequent occassion, it is working fine. Just wonder, why this is not happening for first time. Any input ??
    Regards,
    Ni3

    Hi Virender,
    I found a note 1239499 close to my requirement but not valid for SRM release 5.0. Is it the same, you wish to referred or is there any other?
    Regards,
    Ni3

  • Messages not getting displayed in BADI

    Hi experts,
    I have implemented a BADI for automating FB50 in MIGO. Atlast i am using
    CALL FUNCTION 'MESSAGE_TEXT_BUILD'
      EXPORTING
        msgid                     = WA_MESSTAB-MSGID
        msgnr                     = WA_MESSTAB-MSGNR
       MSGV1                     = WA_MESSTAB-MSGV1
       MSGV2                     = WA_MESSTAB-MSGV2
       MSGV3                     = WA_MESSTAB-MSGV3
       MSGV4                     = WA_MESSTAB-MSGV4
    IMPORTING
       MESSAGE_TEXT_OUTPUT       = WA_TEXTOUT
    MESSAGE WA_TEXTOUT TYPE 'I'.
    But after this message is executed...the MIGO transaction's message is getting triggered immediately. So my message is not popping up.
    What to do?

    When i debug the program...
    I get the following things..
    wa_messtab-msgid = F5
    wa_messtab-msgnr = 312
    wa_messtab-msgv1 = 100128404
    wa_messtab-msgv2 = XYZ
    wa_textout = Document 100128404 was posted in company code XYZ
    and when i say
    message wa_textout type 'i'.
    at the output a popup window should display information in wa_textout.
    But this is not happening and message of type 'S' is getting displayed...that is standard msg of MIGO
    which is - Material document 5000115652 posted
    I want my custom msg in wa_textout to be displayed first. before the standard MIGO msg.

  • Message not getting displayed in BTE 1030

    I am displaying a message in functional module implemented for BTE 1030.
    The message is not getting diplayed. I have changed the message tyto 'S, I. W, E but still it does not display.  The sy-subrc is 0 after passing the messga statement.
    (The functional module is called normally and not in background)

    Just check your settings in transaction FIBF, and make sure you have choose the right Process Modules(Ususally we choose "of an SAP Application"), and if you have set some other limitation on Country ISO code or Application Indicator, pls make sure all of them have been satisfied.

  • Error Message not getting clear while creation of purchase order

    Hi All,
    I am facing one problem while creating purchasing order.
    I have written one user-exit for purchase order. User has to enter purchase requisition number for certain purchase order type. If he doesn’t enter PR number, we have to throw an error message.
    I have used the MM06E005 for the same. User exit is working fine, but the problem is, all error messages are collected in log and it will be displayed in a dialog screen when you check the document (Transaction ME21N).
    When I enter PR number and check the document, the error message is still there, system is not clearing the error log. I have created “Z” message class and have used in User exit.
    Do you guys have any solution for this? Am I using the right user exit? What should I do to clear the error message?
    If you don’t have answer, please pass it to your friends also….
    Thanks a lot in advance…

    Hi Rob,
    Your inforamtion was good enough to start. thanks a lot for that. I tried to implement the same but no luck this time also.
    FYI..
    The FM exit name is EXIT_SAPMM06E_012 and see the following code, i used.
    TYPES:  BEGIN OF type_my,
            subrc TYPE sysubrc,
            msgid TYPE symsgid,
            msgty TYPE symsgty,
            msgno TYPE symsgno,
            msgv1 TYPE symsgv,
            msgv2 TYPE symsgv,
            msgv3 TYPE symsgv,
            msgv4 TYPE symsgv,
            END   OF type_my.
    DATA:  my TYPE type_my.
    DATA : GV_PO(10) TYPE I.
      if I_EKKO-BSART = 'Z005'.
      GV_PO = I_EKKO-EBELN.
        loop at TEKPO.
          if TEKPO-BANFN is initial.
           message E000(ZBC_MESSAGES) with TEKPO-EBELP.
            my-subrc = sy-subrc.
           my-msgid = sy-msgid.
           my-msgty = sy-msgty.
           my-msgno = sy-msgno.
            my-msgid = 'ZBC_MESSAGES'.
            my-msgty = 'E'.
            my-msgno = '000'..
            my-msgv1 = sy-msgv1.
            my-msgv2 = sy-msgv2.
            my-msgv3 = sy-msgv3.
            my-msgv4 = sy-msgv4.
      Cleaning
            CLEAR:
            sy-subrc,
            sy-msgid,
            sy-msgty,
            sy-msgno,
            sy-msgv1,
            sy-msgv2,
            sy-msgv3,
            sy-msgv4.
      Generate message
            mmpur_message my-msgty my-msgid my-msgno
            my-msgv1 my-msgv2 my-msgv3 my-msgv4.
      Remove message from message list
            mmpur_remove_messages_by_id GV_PO.
          endif.
        endloop.
    It is still not working. Moreover i don't have PO number at run time.
    I hope this clarify the problem in more detail.
    Meanwhile i am searching for OSS as suggested by Michael Bennett.

  • Message not getting displayed on page

    Hello,
    I have extended a controller and after some validation, i need to display message on top of Page. Please let me know.
    I am not able to display the Message on top of the page; I am able to find the error entry in the log as below
    [23]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Days ====>null
    [23]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Hours ====>18
    [25]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Entering processFormRequest
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:PersonId 13552
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:DurationHours 18
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:NetAccrual 6
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Sql select accrual from pto_bces
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Value true
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Value1 18
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Value2 6
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:ProjectedEndDate 2008-09-10
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Leaving processFormRequest
    [41]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Nextnull
    [42]:EXCEPTION:[kbv.oracle.apps.per.selfservice.loa.webui.MvnCreateAbsenceMainCO]:Hours.null
    [43]:ERROR:[fnd.common.Message.auto_log]:PERMVN_ABS_HOURS_MESSAGENOBJECT_CODE2008-09-10
    Code snippet
    /*try
    if (s!=null)
    if (i < Integer.parseInt(s))
    MessageToken[] tokens = { new MessageToken("OBJECT_CODE",l)};
    OAException message = new OAException("PER", "MVN_ABS_HOURS_MESSAGE", tokens,OAException.INFORMATION, null);
    // OAException message = new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER", tokens,OAException.INFORMATION, null);
    pageContext.putDialogMessage(message);
    // throw new OAException("PER","MVN_ABS_HOURS_MESSAGE",tokens);
    // OAException message = new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER", tokens,OAException.INFORMATION, null);
    // pageContext.putDialogMessage(message);
    }

    It displays on the log not on the page
    [174]:ERROR:[fnd.common.Message.auto_log]:PERMVN_ABS_HOURS_MESSAGENOBJECT_CODE2008-09-10
    [174]:ERROR:[fnd.framework.OAException]:Your request cannot be processed since you do not have enough accrued time as of the date you are requesting.
    Code
    if (s!=null)
    if (i < Integer.parseInt(s))
    MessageToken[] tokens = { new MessageToken("OBJECT_CODE",l)};
    OAException message = new OAException("PER", "MVN_ABS_HOURS_MESSAGE", tokens,OAException.INFORMATION, null);
    // OAException message = new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER", tokens,OAException.INFORMATION, null);
    // pageContext.putDialogMessage(message);
    throw new OAException("PER","MVN_ABS_HOURS_MESSAGE",tokens);
    // throw message;
    // OAException message = new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER", tokens,OAException.INFORMATION, null);
    // pageContext.putDialogMessage(message);
    }

  • Message is not getting displayed.

    Hi all,
    I have a form with KEY_COMMIT Trigger with the code below:
    DECLARE
    cls_date  DATE;
    Duration  NUMBER;
    int_rate  NUMBER(3,2);
    PA_AMT    NUMBER(10,2);
    TRMS      NUMBER;
    I_RATE    NUMBER(4,2);
    pl_id ParamList;
    usernm VARCHAR2(20);
    OLD_FDR_NO NUMBER;
    BEGIN
    PA_AMT:=:KEC_FDACCT_MSTR.AMOUNT;
    TRMS:=SUBSTR(:GROUP_TYPE,1,2);
    commit_form;
    SELECT INT_RATE INTO I_RATE FROM FDSLAB_MASTR WHERE GROUP_TYPE=:GROUP_TYPE AND FDSLAB_NO=:KEC_FDACCT_MSTR.ACCT_TYPE;
    DUARATION_DTL(PA_AMT,TRMS,I_RATE);
    message('3- I want this message to be displayed.This is not getting displayed');
    message(' ');
    SELECT sap_code INTO :KEC_FDACCT_MSTR.sap_code FROM FDSLAB_MASTR WHERE GROUP_TYPE=:GROUP_TYPE AND FDSLAB_NO=:KEC_FDACCT_MSTR.ACCT_TYPE;
    commit_form;
    END;
    In the above code, you can find DUARATION_DTL(PA_AMT,TRMS,I_RATE);
    DUARATION_DTL is a Procedure which is coded in the Program Unit with the below code.
    PROCEDURE DUARATION_DTL(PAMT NUMBER,QTR NUMBER,RATE NUMBER) IS
    .........SOME variables declared..........
    BEGIN
    SOME IF ELSE statements
    SOME INSERT statements
    SOME UPDATE statements
    COMMIT;
    message('FDR No Saved Successfuly'||:KEC_FDACCT_MSTR.ACCT_FD_NO);
    message('');
    END;
    When I run the form, Message('3') that is the message marked is not getting displayed.
    Only the message in procedure DUARATION_DTL that is in green is getting displayed.
    Can you let me know why?
    Is there anything i should do to display this message,
    Or is it because its buggy??
    Help me please.
    Thank You.
    Oracle Forms 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

    Hi AW, I actually don't want to display that message.
    I want to know why is that message not getting displayed??
    Is that because of the following Triggers??
    Trigger:ON_MESSAGE:
    if MESSAGE_CODE = 40400 then
      message('FDR information saved successfully.');
      message('');
      else
    message(MESSAGE_TEXT);
    end if;
    Trigger:ON_ERROR:
    if ERROR_CODE = 40202 then
      message('This field cannot be blank');
      message(' ');
      RAISE form_trigger_failure;
    elsif ERROR_CODE = 41800 then
      message('List of values is not available for this field.');
      message(' ');
      RAISE form_trigger_failure;
    elsif ERROR_CODE = 40401 then
      null;
    else
      message(ERROR_TEXT);
      message(' ');
      RAISE form_trigger_failure;
    end if;
    These above mentioned triggers are present in the form.
    Is it because of these triggers , that the message is not getting displayed??
    If yes, can you tell me why?

  • Dynamic mandatory field error message is not getting displayed in webui

    Hi,
    In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
    Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
    I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
    Can anybody tell where the problem is?
    Thanks,
    Hari.

    Hi Hari,
    Really sorry do not know how to convert this nug file to text
    How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
    Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
    Thanks,
    Rajesh P

  • When i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP

    when i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP.
    Also when i take the disk out it seems fine nd everything seems to be burned onto the disk. I am buring mac os x lion onto a disk.
    The disk i am using is nextech and i am burning at the slowest speed (4x).
    Also this is my 3rd time trying to do this and the verifying process keeps failing.... what do i do?

    see there
    http://www.techmixer.com/best-free-mac-burning-software-for-mac-osx/
    what you like most
    try different brand of CD/DVD

  • I am not able to install my 'Complete National Geographic' cd on my Mac mini which runs Lion OS. The error message I get says  'Can't open installer as classic environment is no longer supported' can some one suggest a solution

    I am not able to install my 'Complete National Geographic' cd on my Mac mini which runs Lion OS. The error message I get says  'Can't open installer as classic environment is no longer supported' can some one suggest a solution.

    It means the software is PowerPC code, which is no longer supported in Lion. Your choices are to go back to Snow Leopard, run Snow Leopard Server in a virtual machine within Lion, see if the vendor has an updated version of National Geographic that will run on an Intel Mac, or run the software on an older Mac separately.

  • Some of the songs I have downloaded onto i tunes won't play when I select it to do so.  The error message I get is "The song could not be used because the original file could not be found.  Would you like to locate it?"  How can I get my songs to play?

    Some of the songs I have downloaded into i tunes won't play when I select it to do so.  The error message I get is "The song can not be used because the original file can not be found.  Would you like to locate it?"  When I select yes I'm sent to a screen that has my i tunes library listed.  When I select the song in question I'm asked if I would like to open the song.  When I select this option I get nothing.  The songs I have downloaded must be somewhere because they are listed in my i tunes library and on the screen I've been sent to.  I can't the songs to play however.  This is not true of all of my songs but it is true of quite a few of them.  Actually, one song is too many.    How do I get my music to play that seems to be locked up somewhere in the computer?

    Presuming they're on your computer, right click on them and then follow the prompts to locate hte file on your computer.

  • I get error message: not enough space to download when I try to buy a tv series on Itunes. It tells me to delete photos or videos to make space, but I have no photos and videos. Help?

    I get error message: not enough space to download when I try to buy a tv series on Itunes. It tells me to delete photos or videos to make space, but I have no photos and videos. Help?

    I would guess that a TV series takes up a fair amount of storage capacity. It is just a standard message I think that may indicate that you are actually running low on storage space.
    If you go to Settings>General>About how many GBs are specified as being available?  If you are low on space maybe deleting some apps may help.

  • I keep getting error message "not enough space on startup disk" on my macbook 10.6, even though I've deleted and compressed many files. Could something else be the problem?

    Somehow 1500 web pages were downloaded into my iphone app! That's when the trouble began Now, I keep gettig error message"not enough  room on your start up disc. "So I deleted most of theml, but when I compress/delete files, it doesn't help. Now i'm unable to back up to a disc, because I get a similar message about lack of room.. I can't download apple updates or printer updates. My computer is almost unusable. When I took it to the Apple store they had no idea what was wrong.
    I bought an external hard drive-Free Agent Go Flex which doesn't seen to function, and has no user interface and apparently little tech support. My cursor is all over the place. No one at Apple seems to be able to fix this computer. Any suggestions for my next move?
    Thank you.

    See Here for Troubleshooting
    Free Disc Space
    http://www.thexlab.com/faqs/freeingspace.html
    See Here for Resolving Startup Issues
    http://support.apple.com/kb/ts1417

Maybe you are looking for

  • SQLException Scheduling error

    I'm using BIP 10.1.3.3 against a 10.2.0 database and getting the following error when I try and schedule a report oracle.apps.xdo.servlet.scheduler.ProcessingException: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 0601

  • DVD stuck in disc drive

    Hi everybody, I currently have a DVD stuck in my disc drive. I fell asleep yesterday night watching the DVD using the "DVD Player" application that is the default for playing a DVD. When I woke up, DVD Player wouldn't quit and I had to force quit the

  • Read-in CSV and Calculate Average Value

    I've got a csv file which I'm reading in but need to calculate the average value of the second column (CPU). It's in the following format: Date CPU 01/09/2014 25.3 02/09/2014 22.3 03/09/2014 26.2 04/09/2014 22.1 I basically need the average CPU for t

  • Error report for itunes

    when i open itunes an error report box pops ups and itunes doesnt open! what can i do?

  • Applications do not appear in Azure Active Directory console

    Hello, In the past couple of days I've been experiencing some issues regarding the "Applications" section in the AAD console. Normally, the list of Applications will include all my registered apps and additional applications that my organization uses