How to display error messages in BAPI_PO_CHANGE  with PO and item ?

Hello Friends,
I am calling BAPI_PO_CHANGE to update delivery flag for 50 POs.
Each PO has 4 line items. For ex.
10001     10     5.00     material1      X
10001     20     45.00     material2      X
10001     30     22.00     material15      X     u201Cerror
10001     40     45.00     material41      X
10002     10     46.00     material17      X
10002     20     25.00     material3      X     u201Cerror
10002     30     75.00     material5      X     u201Cerror
10002     40     44.00     material8      X
u2026u2026u2026u2026u2026..
u2026u2026u2026u2026u2026
Now, suppose some line items have error.
I am able to get it from BAPIu2019s    RETURN table.
But how can I display that error message with PO and line item?
NOTE : I am calling BAPI_PO_CHANGE for each PO with ITEM internal table.
Please guide me.
Regards
RH

The it_change_return fields parameter and row identify the PO_ITEM.
Try this...
*&      Form  READ_MESSAGES_OP_CHANGE
      BAPI_PO_CHANGE Return messages
FORM read_messages_op_change .
  DELETE it_change_return WHERE type = 'W'.
  DELETE it_change_return WHERE type = 'I'.
  LOOP AT it_change_return ASSIGNING <is_change_return>.
    IF <is_change_return>-type = 'E'.
      z_error_flg = 'X'.
    ENDIF.
    v_item = v_item + 1.
    it_log_mess-packagenr = v_packagenr.
    it_log_mess-object = v_object.
    it_log_mess-docnum = v_docnum.
    it_log_mess-itemnr = v_item.
    it_log_mess-type = <is_change_return>-type.
    it_log_mess-id = <is_change_return>-id.
    it_log_mess-mnumber = <is_change_return>-number.
    IF <is_change_return>-parameter <> 'POITEM'.
      it_log_mess-message = text-po1.
      REPLACE '&' WITH z_po_number INTO it_log_mess-message.
      CONCATENATE it_log_mess-message <is_change_return>-message
        INTO it_log_mess-message SEPARATED BY space.
    ELSE.
      READ TABLE it_change_poitem ASSIGNING <is_change_poitem>
        INDEX <is_change_return>-row.
      it_log_mess-message = text-pr2.
      REPLACE '&' WITH z_po_number INTO it_log_mess-message.
      REPLACE '@' WITH <is_change_poitem>-po_item
        INTO it_log_mess-message.
      CONCATENATE it_log_mess-message <is_change_return>-message
            INTO it_log_mess-message SEPARATED BY space.
    ENDIF.
    it_log_mess-message_v1 = <is_change_return>-message_v1.
    it_log_mess-message_v2 = <is_change_return>-message_v2.
    it_log_mess-message_v3 = <is_change_return>-message_v3.
    it_log_mess-message_v4 = <is_change_return>-message_v4.
    APPEND it_log_mess.
  ENDLOOP.
ENDFORM.                    " READ_MESSAGES_OP_CHANGE

Similar Messages

  • How to resolve Error Message WWC-41400 with OID and Portal

    Hello.
    I followed the guidelines to use Oracle's OID as the login
    server for my 9iAS-based Portal. The login names and passwords
    were successfully copied from the Portal to the users.lfif file
    (visible in Oracle Directory Manager).
    I tested the login/passwords and could not login to the Portal.
    I received the error message WWC-41400. I check past "tars",
    and the followed the steps to check the library linkage,
    external library file, status of the listner, and the
    environment settings for the TNS names file.
    The settings are correct, yet I still can not login to the
    Portal.
    Any suggestions.
    Joyce

    Hello Joyce
    I think you should input cn=orcladmin during "Configuring Login
    Server to use LDAP using DBMS_LDAP package" step with
    ssooid.sql script in "Enter value for bind_dn:" field
    wbr from Russia

  • How to display error message in Shopping Cart?

    How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.

    Hi Paul,
    In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
    Regards,
    Noel

  • How to forward sms messages via email with date and contact received info

    Does anyone know how to forward sms messages via email with date and contact received info.
    Currently when I forward only the body copy of the sms message is sent in the email.

    This is not currently possible. Sorry.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to display error message ??

    Hi,
    I have a BDC program to upload data from an excel sheet. I could see that some records of data fail to pass and hence after my bdc run i would like to display error message for the failed records as follows:
    costcenter:
    cost element:
    fiscal year:
    etc etc
    is it possible ?? how to do that ? please explain in detail.
    for ur reference my program is pasted below.
    thanks
    *& Report  ZBDC_BUDGET_UPLOAD
    REPORT  ZBDC_BUDGET_UPLOAD.
    types: begin of tdata,
             rec(150) type c,
           end of tdata,
           begin of tmtgp,
             costcent LIKE CCSS-KOSTL,
             costelem LIKE CCSS-KSTAR,
             fisyear LIKE CCSS-GJAHR,
             jan(10),
             feb(10),
             mar(10),
             apr(10),
             may(10),
             jun(10),
             jul(10),
             aug(10),
             sep(10),
             oct(10),
             nov(10),
             dec(10),
           end of tmtgp.
    data: idata type table of tdata with header line.
    data: imtgp type table of tmtgp with header line.
    Data : fieldval(10) type c.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_file type localfile default 'C:\budget_data_csv.csv'.
    selection-screen end of block b1.
    include zbdcrecx1.
    at selection-screen on value-request for p_file.
    call function 'KD_GET_FILENAME_ON_F4'
            exporting            static    = 'X'
            changing            file_name = p_file.
    start-of-selection.
    perform upload_data.
    loop at imtgp.
    Write imtgp-fisyear to fieldval.
    perform open_group.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KPP0B-VALUE(04)'
                                  fieldval.
    Write imtgp-costcent to fieldval.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(06)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KPP0B-VALUE(06)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-costelem to fieldval.
    perform bdc_field       using 'KPP0B-VALUE(09)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CSPB'.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-jan to fieldval.
    perform bdc_field       using 'Z-BDC03(01)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-feb to fieldval.
    perform bdc_field       using 'Z-BDC03(02)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-mar to fieldval.
    perform bdc_field       using 'Z-BDC03(03)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-apr to fieldval.
    perform bdc_field       using 'Z-BDC03(04)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(05)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-may to fieldval.
    perform bdc_field       using 'Z-BDC03(05)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(06)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-jun to fieldval.
    perform bdc_field       using 'Z-BDC03(06)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(07)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-jul to fieldval.
    perform bdc_field       using 'Z-BDC03(07)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(08)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-aug to fieldval.
    perform bdc_field       using 'Z-BDC03(08)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-sep to fieldval.
    perform bdc_field       using 'Z-BDC03(09)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(10)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-oct to fieldval.
    perform bdc_field       using 'Z-BDC03(10)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(11)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-nov to fieldval.
    perform bdc_field       using 'Z-BDC03(11)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(12)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-dec to fieldval.
    perform bdc_field       using 'Z-BDC03(12)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(12)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CBUC'.
    perform bdc_transaction using 'KP06'.
    perform close_group.
    endloop.
    form upload_data.
    data: filename type string.
    clear idata.
    refresh idata.
    filename = p_file.
    call function 'GUI_UPLOAD'
        exporting            filename        = filename
        filetype        = 'ASC'
        tables            data_tab        = idata
        exceptions            file_open_error = 1
        file_read_error = 2
        no_authority    = 6
        others          = 17.
        check sy-subrc = 0.
        loop at idata.
        clear imtgp.
        split idata at ',' into imtgp-costcent imtgp-costelem imtgp-fisyear
    imtgp-jan imtgp-feb imtgp-mar imtgp-apr imtgp-may imtgp-jun imtgp-jul
    imtgp-aug imtgp-sep imtgp-oct imtgp-nov imtgp-dec.
        append imtgp.
        endloop.
    endform.

    check the below code,.,
    DATA : t_bdcmsgcoll TYPE STANDARD TABLE OF bdcmsgcoll WITH HEADER LINE.
      CALL TRANSACTION '<DELIVERYTRANSACTION>' USING t_bdctab
                              mode 'N'
                              MESSAGES INTO t_bdcmsgcoll.
      DESCRIBE TABLE t_bdcmsgcoll LINES g_lines.
      READ TABLE t_bdcmsgcoll INDEX g_lines.
      IF t_bdcmsgcoll-msgtyp = 'S' AND
         t_bdcmsgcoll-msgid = <Msg id> AND
         t_bdcmsgcoll-msgnr = <Msg number>.
    * Trap your Call Transaction messages
        t_success-deliverynumber = t_bdcmsgcoll-msgv1.
    * You can format the message returned by call transaction using function 'FORMAT_MESSAGE' which will return g_mesg
        t_success-message = g_mesg.
        APPEND t_success.
        CLEAR  t_success.
      ELSE.
    * If there an Error-Do this..
        READ TABLE t_bdcmsgcoll WITH KEY msgtyp = 'E'.
        IF sy-subrc = 0.
    * Format your message using FORMAT_MESSAGE "FM
         CLEAR g_mesg.
         t_error-msg   = g_mesg_incl.
         APPEND t_error.
         CLEAR  t_error.
       ENDIF.
    ENDIF.
    * Clear for next run
      CLEAR: t_bdcmsgcoll,
             t_bdctab.
      REFRESH: t_bdcmsgcoll[],
               t_bdctab[].

  • How to display error message in Billing Output Type (VF03).

    Hi,
    could anyone suggest how do i display error message via billing (VF03) output type?

    i want to display an error message from my sapscript program.
    *determine discount
    it_zmas-discount = it_zmas-gross_value - zkwert.
    MODIFY it_zmas.
    ELSE.
    MESSAGE ID 'Z0' TYPE 'S' NUMBER '999' WITH 'Please maintain cust pricing grp 34 for ' wa_zmas-matnr.
    p_proc_screen = 'X'.
    ENDIF.
    when user enter billing doc no in vf03, user will click 'issue output type' and select their output type to be printed out.
    if there's an error in the print program, it should promt out an error message and do not allowed user to print preview and print the form out.
    what i had did previously, i prompt the error message and disable the print preview button. i think its not a good solution and i am not sure how to stop the form from not printing it out.
    i was wondering is there any user exit of the output type, vofm (which i had this solutions from my previous question, but unsure how to use it) or any other solutions.
    please help.

  • How to display error message in abap

    How to dispaly error message in report?
    i have to check the range bewteen two days and if it is not in range have to display error message only once.
    next time if i press the execute button report will get executed without showing the warning message.
    i am calculating the days between two dates, i am displaying the error message but if i press the execute button i will not allow me to execute the report.it again shows me the error message.i have to skip this in 2nd time.
    can any one  suggest what to do with this?

    hello suman,
    i am using select-option in my report. And i have to check the difference between two dates in select option input box( low-value and high-value). if it is greater then suppose 10 then i have to display warning message at once and then if click on execute button , the report should get executed without showing any warning messages in report.
    here i am attaching my source code.please take a close look and tell me where should i have to make change.
    SELECT-OPTIONS :s_bedat FOR ekko-bedat.
    AT SELECTION-SCREEN ON s_bedat.
      IF NOT s_bedat IS INITIAL.
        PERFORM bedat_validate.                       " Perform for Purchasing Document Date Validation
      ENDIF.
    FORM bedat_validate .                        " Form for Purchasing Document Date Validation
      DATA  : diffr TYPE i.
      CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis                   = s_bedat-high
          i_datum_von                   = s_bedat-low
      I_KZ_EXCL_VON                 = '0'
      I_KZ_INCL_BIS                 = '0'
      I_KZ_ULT_BIS                  = ' '
      I_KZ_ULT_VON                  = ' '
      I_STGMETH                     = '0'
      I_SZBMETH                     = '1'
       IMPORTING
         e_tage                        =  diffr
    EXCEPTIONS
      DAYS_METHOD_NOT_DEFINED       = 1
      OTHERS                        = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        IF diffr GT 31.
          MESSAGE s009(zerrormsg) WITH text-000 DISPLAY LIKE 'W'.
          LEAVE TO LIST-PROCESSING.
        ENDIF.
      ENDIF.
    ENDFORM.                    " BEDAT_VALIDATE

  • How to display error message in case of function module ?

    In the report i was using  " message-id "   to display error message....
    how to use in function module ?

    Hi,
    Messages in Function Modules and Methods
    Messages have two different functions in function modules and methods:
    Normal Messages
    If you use messages in function modules and methods without the RAISING addition in the MESSAGE statement, and the caller does not catch the message, the message is handled
    normally according to the context in which it is called within the function module or method.
    Triggering Exceptions with Messages
    If you use messages in function modules and methods with the addition
    ... RAISING <exc>
    the way in which the message is handled depends on whether the calling program handles the exception <exc> or not.
      If the calling program does not handle the exception, the message is displayed and handled according to the context in which it occurs in the function module or method from which it
    was called.
      If the calling program handles the exception, the message is not displayed. Instead, the procedure is interrupted in accordance with the message type, and processing returns to the calling program. The contents of the message are placed in the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
    Catching Message in the Calling Program
    You can catch messages from function modules that are not sent using the RAISING addition in the MESSAGE statement by including the implicit exception ERROR_MESSAGE in the
    EXCEPTIONS list of the CALL FUNCTION statement. The following conditions apply:
      Type S, I, and W messages are ignored (but logged during background processing)
      Type E and A messages trigger the exception ERROR_MESSAGE
      Type X messages trigger the usual runtime error and short dump.
    Catching messages is not currently supported for methods.
    Regards,
    Bhaskar

  • How to erase error message in jsf with facelets

    hi,
    I am using jsf 1.2 with facelets. we provided on required validation for menu in a page .if i click submit button with out giving required value, then corresponding message is showing.but after giving that required value that error message is not erasing from that page.
    but in my requirement when ever i gave that required value immedialty i want to erase that messge.
    In the following codec i click on submit button without selecting Bank , then it will display error message like Select Bank .after that i selected bank but that message is not removing.
    so could any body suggest me where i did mistake and how to do for that requirement..... please hint me
    mypage.xhtml
    <h:selectOneMenu  id="dropDownBanksName"  value="#{cardPrintBean.bankId}"
                                         required="true"  requiredMessage=" * Select Bank " title="select bank"
                                         valueChangeListener="#{cardPrintBean.valueChange}">
                                            <f:selectItems value="#{cardPrintBean.banks}" noSelectionLabel="Please select"/>
                                       </h:selectOneMenu>          
                                       <h:message for="dropDownBanksName" errorStyle="color:red" />can any one please help me........
    thanks in advance

    gbabu wrote:
    I think by using javascript with DOM we can put alert's boxes .Uh, think?
    I wasn't talking about alerts. Alerts also have nothing to do with DOM.
    but how to erase that error message of JSF in XHTML pageI already answered that. If you just want plain code, you're here at the wrong place.
    Better learn Javascript and HTML DOM. w3schools has nice tutorials about that.
    [http://www.w3schools.com/JS/default.asp]
    [http://www.w3schools.com/HTMLDOM/default.asp]

  • How To Display Error Message In Self Service Page

    Dear All,
    I am using 11.5.10 Oracle HRMS self Service ,,,
    How can I display error message on the top of the self service page if some action happen ?
    Best Regards

    Time entry rules maybe?

  • How to display error message with some variable

    Hi
    I want to display errror message along with material number which is thr in d LOOP .
    Basically i want some variable to display along with error message .
    Can anybody suggest me how can i go about it?
    Edited by: sonal musale on Apr 14, 2009 12:06 PM

    Hi,
    In the message class, suppose  you use 001 for invalid material message.
    So keep it like:-
    Invalid Material : &1
    in the message class for 001.
    Now in loop use as:-
    loop at itab into wa.
      "perform validations
      "if validation fails for current material
      MESSAGE e001 WITH wa-matnr.
    endloop.
    Similary you can use more variables:-
    Invalid Material : &1 &2 &3
      MESSAGE e001 WITH <variable1> <variable2> <variable3>.
    Hope this helps you.
    Regards,
    Tarun

  • How to display Error message in USEREXIT_NUMBER_RANGE ?

    Hi All,
    - We are using subroutine USEREXIT_NUMBER_RANGE in include RV60AFZZ to override the existing number range.
    - For this, we have created a maintenance view, where number ranges are stored w.r.t Sales Org and Billing document type.
    - If a number range is not found in this maintenance view, we display an error message "Number range not found"
    If we create billing document from transaction everything works fine.
    But, what we want to know is:-
    How do we give error message if Billing documents are being created in Batch Input job ?
    OR
    How to add message to log of batch input job?
    Regards,
    Ashish

    Thanks Gary, for the reply.
    But, we dont want the batch job to stop, we want it to continue with the next record.
    In that case we believe writing the error to an application log would be better, isnt it ?
    Also, how is it possible to just return an error code to the batch program (without writing an application log) from where the current user exit was called ?
    Regards,
    Ashish

  • How to display Error Message in APEX from Database Stored Procedure

    Hello,
    Using APEX version 3.2
    DB version 9.2.0.8.0
    Internet Explorer version 6
    I have an After Submit Page Process that calls a stored procedure. In the exception section I'm using dbms_output.putline to display an error message, but the error message is not displayed in APEX. How can I have the error message generated from the stored procedure display in APEX?
    Thanks so much.

    Hi Apex_Noob,
    I created On Load - Before Header process that uses apex_application.g_notification := :P3_ROLE;I'm sorry but I'm not sure what you mean by "instead of using dbms_output.putline use :P1_ITEM"
    I have the following code in my stored procedure
    EXCEPTION
         WHEN OTHERS THEN
         dbms_output.put_line('Role does not exist');Thanks.

  • How to display error message in Popup window

    Hi,
    I have main view and when I click button I opened new pop up window.
    I have some validation for the form in pop up window. I want to display the error message in pop up window.
    Please let me know how to get it.
    Thanks

    Hi mami,
           Is is very difficulty to request focus to the POP window..in our case we are trying lot of time ..but we are not success to display massage in pop window.
    you will  put TEXTView in you pop window where you want to display massage in you POPWINDOW.
    and Create one context value Attribute as Massage
    Value Attribute-----ErrMassage.
    ErrMassage Attribute set your Text property of TEXTVIEW  UI Element.
    If(your condition is TRUE){
    //Excute Your code perfectly.
    else
    wdContext.currentContextElement().setErrMassage("Please provide proper name");
    In this way we were this massage showing in our popwindow..
    thanks
    jati

  • How to display error message in front end application

    Hi Expert,
         I have one concurrent program that used to activate and deactivate the responsibilities ,
    I want that if any error occured in this program then how can I display the error message in application front end.
    Thanks in advance.

    Hi Paul,
    In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
    Regards,
    Noel

Maybe you are looking for

  • When I click on a bookmark stored in my bookmark toolbar it opens in a sidebar rather than a new tab. How do I get it to open in a new tab?

    I just set my bookmark toolbar up with my most often used URL's. However when I click on a bookmarked URL from my toolbar, it opens in a sidebar to the left on my main screen, rather than in a new tab. The sidebar is cumbersome because I have to scro

  • Disable clamshell mode via Terminal

    Hi everyone. Is there any way to disable "clamshell mode" and avoid my MacBook Pro waking up seconds after I close the lid?. I always use my MBP17 with a magic mouse, usb hub, external monitor and plugged magsafe but using both screens at the same ti

  • What is the latest Patch level?

    Dear All, Software component    Release         Level SAP_HR                             604              0069 EA-HR                                606               0021 EA-HRGXX                        606              0021 EA-HRRXX                 

  • What is the small circle near Verizon at top of iPhone?

    My phone keeps calling contacts, playing music, trying to FaceTime with contacts, is often unresponsive to home button...Verizon store rep checked it out and said it was 4G "bouncing" they had been doing, and many customers had similar problems.  But

  • Need ORIGINAL software back!! PLEASE PLEASE help!!!!!

    OMGOMGOMG...I was trying to do some clever things with my Nano (4gb 3rd) and now something is terribly wrong. Everything I had on it (tunes, pictures, etc) are GONE...completely. There is nothing on it, but yet I only have 512kb showing available!!!