Suppress the Information message during BAPI Call

Hi, I am getting the information message pop up during the BAPI Call "BAPI_BUS2054_CREATE_MULTI". Is there any possiblity to suppress the message?

Hi,
use call function with destination. Here is a short example:
REPORT  zhabitest.
DATA:
  et_return LIKE bapiret2 OCCURS 0.
  CALL FUNCTION 'ZTEST'
    DESTINATION 'NONE'
    TABLES
      et_return = et_return.
DATA:
  ele_return LIKE bapiret2,
  rc LIKE sy-subrc.
CLEAR rc.
LOOP AT et_return INTO ele_return.
  IF ( ele_return-type = 'E' )     "error
     OR ( ele_return-type = 'A' ). "abort
    rc = 8.
    EXIT.
  ENDIF.
ENDLOOP.
IF rc IS INITIAL.
  WRITE: / 'Call OK'.
ELSE.
  WRITE: / 'Call error'.
ENDIF.
And the function is here:
FUNCTION ztest.
*"*"Lokale Schnittstelle:
*"  TABLES
*"      ET_RETURN STRUCTURE  BAPIRET2 OPTIONAL
  MESSAGE i208(00) WITH 'Separate I/O and processing!'.
  GET TIME.
  DATA:
    ele_return TYPE bapiret2.
* return error randomly
  IF sy-uzeit+5(1) CA '13579'.
    ele_return-type = 'E'.
    APPEND ele_return TO et_return.
  ENDIF.
ENDFUNCTION.
Pay attention to the documentation of call with destination (db commit).
Regards
Walter Habich

Similar Messages

  • [svn] 2706: Improve the information given during parse errors by providing more context about which parent token is not expecting a particular child token to follow .

    Revision: 2706<br />Author:   [email protected]<br />Date:     2008-08-01 10:10:58 -0700 (Fri, 01 Aug 2008)<br /><br />Log Message:<br />-----------<br />Improve the information given during parse errors by providing more context about which parent token is not expecting a particular child token to follow.<br /><br />QA: Yes<br />Doc: No<br />Checkintests: Pass<br />Reviewer: Paul<br /><br />Bugs:<br /> SDK-15791 - [MXML Namespaces] Provide better error message when language tags are added as child of Declarations tag<br /> SDK-15659 - [MXML Namespaces] Error message not descriptive when Private tag is not immediate child of mxml document<br /> SDK-15669 - [MXML Namespaces] Error message not descriptive when incorrect <Library> and <Definition> tags are defined<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/SDK-15791<br />    http://bugs.adobe.com/jira/browse/SDK-15659<br />    http://bugs.adobe.com/jira/browse/SDK-15669<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties

    Thank you for the sympathy and the information about the Adobe.com forum Michael.
    I posted here because, to be honest, for a company that's acknowledged their installers and updaters and support needs some work, they seem very determined to obfuscate the means by which users can provide direct feedback to the company. Much like you, I've also noticed a trend in CS5 installations that mirrors the issues that were present in CS4. it's a sad state of affairs.
    As for my installation, you are also quite right to say that a clean install would have been a lot faster than what I went through with TS and it was actually my first idea. Before calling TS I'd actually read through the forums and noticed that a large number of users who were faced with my situation had no other choice but to reformat. I was just giving Adobe the benefit of the doubt and wasted 2 and a half weeks through that course of action...
    What makes this situation even more frustrating is that the installer failed on a fresh system. It was a custom-built design machine, assembled and configured by myself. The only software that had been installed on it prior to Design Premium was Firefox, an FTP client and the start of my problems, trial versions of various CS4 programs. I used trials just long enough to retire the previous design computer so that I wouldn't contravene the EULA's stipulation of not running more than one instance of software at the same time on different machines.  Turns out being honest once again penalised a legal customer.
    If there is just thing users should learn from my far from unique tale of failed tech support it's that if you ever run into a problem with the installation, don't bother calling TS, just reformat and start from scratch.  It might seem like it'll take longer to get going again, but in actuality, it's the opposite. Reformatting means you'll be up and running in about 1 or 2 days rather than 2 weeks.
    Marc

  • Error message in BAPI call

    I have imported RFC Interfaces from SAP system. Each interfaces doesn't  have fault message.
    How to get error message in BAPI call when error occurs?
    I can catch an exception in BPM but I need to get error message and send it to another system.

    Hi Denis,
    >>>I have imported RFC Interfaces from SAP system. Each interfaces doesn't have fault message.
    if you want to use fault messages
    consider using ABAP Proxies
    >>>>How to get error message in BAPI call when error occurs?
    most bapis have return table in which they
    return error messages (you can do it either
    in a sync way or in an async way if the call is too long - with corrlelation of course)
    Regards,
    michal

  • Supressing the information message in ALE

    Hi All,
      I created a report which will call this bd10 based on the selection screen parameters. it is executing correctly, but this tcode should be given to end users.
    generally after execution of BD10 , it will give the information message 1 master idoc is setup and after entering this it will show another information message like 1 communication idoc is setup for this. I dont need to display these two messages. <b>how to supress this information message.</b>
    Is it possible?
    Regards,
    vinoth.

    Hi,
    This can be possible,but its beyond a developers rights,this information message will be displayed always.
    if you want to avoid it run in background.
    regards,
    pankaj singh

  • SD: Change the Information Message to Error V1-406 Material Marked for Del

    How can we change or supress the infromation message, I am using the exit MV45AFZB already, but the information message is not suppressed.
    I have tried to look for this on the forum, but I havent found the right answer.
    Best regards,
    Hamid

    Hi Hamid
    Why do you want to suppress or change this message? Business Requirment ??? - This Error message ensures that such of those Parts which are not to be used any further and have been marked for deletion are not forming part of Order management.
    If you still want to, then remove the deletion indicator in the material master.
    just for information - following SAP std programs check for validations of this requirement and you are not supposed to change this condition.
    FV45CF0C_CVBAP_FUSSZEILE_PRUEF
    FV45PF0M_MAAPV_SELECT
    FV45PF0M_MAEPV_SELECT
    FV45PF0M_MAKT_SELECT
    <b>The above 4 programs are meant for your (& forum members) information & all cautioned from tampering these std programs</b>.
    cheers
    nandu
    FV45PF0M_MT61D_SELECT

  • Deactivating the information messages

    Hi
    Is it possible to deactivate the information messages (Not error or warning messages) in SAP?
    Is there any enhancement to deactivate it, Is it possible. Does it involve changing the standard SAP code.
    Thanks for your time
    Best regards
    Ameen

    Hi Ameen,
    this depends on the application.
    Artilce and material master can be controlled via OMT4
    regards
    Björn

  • HT201401 My iphone 3GS keeps freezing and showing the apple logo during phone calls.  Can anybody help plese ? Bee

    My iphone 3GS keeps freezing and showing the apple logo during phone calls.  Can anybody help plese ? Bja

    Hiya thankyou for the answer.
    Trying to set it up as a new device but can't find the backup to save it.
    I have no "mediasync" folder in my library/application support. Did these folders get moved around with Lion?
    Thankyou again,

  • Suppress Information message during submit a standard program

    Hi experts,
    I am calling standard program RCATSCO from a report using following code:
    SUBMIT rcatstco WITH p_pernr  IN s_pernr
                      WITH p_date   IN lt_r_date
                      WITH p_belnr  IN s_belnr
                      WITH s_rkdauf IN s_rkdauf
                      WITH p_budat EQ sy-datum
                      WITH p_warn   EQ gc_x
                      EXPORTING LIST TO MEMORY
                      AND RETURN.
    When all data are already transferred to controlling this standard program displays a popup information message 'No data for transfer'. I need to suppress this popup and continue execution of the report. Please help.
    Thanks,
    Arnab

    One option is to do that check yourself and bypass submitting the program if there is no data to transfer. Another option is to submit the program via job. That way the the message will go to the job log. I see that you are using the option exporting list to memory, which means you want to read the spool after the program is executed. With the "via job" option, you may need to monitor the status of the job for completion and then read its spool.

  • Suppress Warning [W] message during BDC process [as batch SM36]

    Hi expert,
    i had problem where Warning message is force my BDC program to stop during SM36 batch job submit.
    if program trigger in ad-hoc process [call program directly using tcode] , program works fine.
    let me share briefly about My program, i intend to create VA41 transaction which have contract start date less than today's date. Warning message V5 001 will appear [not as pop-up window] which force my BDC to stop during SM36.
    please kindly help.

    Hi Rudy..
    The problem is with Contract begin date should be greater than the begin date...you cannot create the Contract for past dates.
    Even BDC will continue for Warning and Information messages and stops if encounters the error message.
    Pass the contran begin date greater or Equal to current date .

  • Problem facing during BAPI call for an inbound interface.

    I have requirement where in i need to make a BAPI call from SRM system using RFC adapter.
    After importing the BAPI(Z_INV_REF_PO) in the Integration Repository the structure looks to be a follws,
    1.Request
    2.Response and
    3.Exception (fault) Message types.
        In my BPM i did a transformation for my source structure with BAPI request. But while doing a BAPI call it throws me Application error as follows,
    RFC adapter is working fine.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">Z_INV_REF_PO.Exception</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please help me out on this. Itz very urgent

    Hi,
    As the error is Applcation_error, the data reached the target system but the BAPI call fails. So you mignt not be providing all the mandatory fields to the BAPI.
    Perform a standalone testing of your BAPI, with the data being passed from XI See if the BAPI call is successful..
    Hope this helps you.
    cheers,
    Siva Maranani.

  • How to display the information message in the end in BDC

    Dear All,
    I have been submitting a BDC for FB01, in a dialog program of mine.
    The BDC gets executed successfully but it does not display the 'Documnet No....generated' information message in the end.
    I have even written the following code in the BDC, after call transaction, to accomplish this, by assigning the value of genno (variable) to sy-msgv1, but it's not working.
    call transaction 'FB01' using bdcdata1 mode 'E'.
      message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      genno = sy-msgv1.

    Hi,
    try this its easy .
    create an internal table e_report for sucess with the fields you want to display .like the same for F_tab for failure .
    so finally u will be having the success record in e_report and the failure in f_itab.
    call transaction 'FB09' using bdcdata MODE 'N' MESSAGES INTO IT_ERROR.
    IF sy-subrc eq 0.
      E_report-status = 'Sucessfully Updated'.
      e_report-belnr = itab-belnr.
      e_report-year = fiscalyear.
      APPEND E_report.
    else .
       F_tab = itab.
       F_tab-year = fiscalyear.
       F_tab-status = 'FAILED'.
       APPEND F_tab.
    finally print this
    sort e_report by  belnr ascending.
    LOOP AT E_report.
        at FIRST .
           WRITE:/'**********SUCCESSFUL RECORDS ARE **********'.
           FORMAT COLOR 6.
           WRITE:/ 'Document Numer',20 'Year',35'Status',54 ''.
        ENDAT.
        FORMAT COLOR 3.
        write:/ E_report-belnr,20 E_report-year ,35 E_report-status.
        FORMAT COLOR OFF.
       at LAST.
         write:/ 'Total No.Of Successful Records:',sy-tabix.
         FORMAT COLOR OFF.
       ENDAT.
       RESERVE 20 LINES.
    ENDLOOP.
      IF F_tab is initial.
           FORMAT COLOR 1.
           WRITE:/ ' NO Errored Files'.
           FORMAT COLOR OFF.
      ENDIF.
    WRITE:/ SY-ULINE.
    new-PAGE.   " to display in a  new page
    sort f_tab by  belnr ascending.
    LOOP AT F_tab.
        at FIRST .
           WRITE:/'**********FAILED RECORDS ARE **********'.
           FORMAT COLOR 6.
           WRITE:/ 'Document Numer',20 'Year',35'Status',54 ''.
        ENDAT.
           FORMAT COLOR 5.
           WRITE:/ f_tab-belnr ,20 F_tab-year, 35 F_tab-status.
        at LAST.
         write:/ 'Total No.Of Failed Records:',sy-tabix.
        ENDAT.
    ENDLOOP.
    ENDIF.
    if they want to display in the excel sheet pass the internal table to the F.M.
    plz motivate me.
      by rewards.
    thanks
    vinoth

  • How to suppress the Warning messages while doing GR(MIGO)

    Hi ALL,
    I have a requirement while posting goods GR/GI using T-code MIGO.
    Trying to do GR against PO using MIGO.After selecting the line item quantity and entering BATCH Number for line item Material when I click on 'CHECK' Pushbutton i am Getting the below Warning msg
    'For batch RAB001 of material 1522582, no class could be determined'. Message no M7207.
    How to suppress this above warning message, I want to Post the goods by suppressing the above warning message .
    Like similarly while issuing the goods to the to the Production order using MIGO i am getting warning message when I click on 'CHECK' Pushbutton.
    I do want to issue the goods by suppressing warning message in this case also.
    I know this could be solved by customization but we are dealing with batch managed materials.
    How to suppress the the above warning messages in MIGO through ABAP coding ...
    Looking forward the helpfull answer.
    Regards,
    venky

    Hi
    Answer is pure assumption.
    Pls check the following OSS notes
    Note 319094 - Warning message during batch classification in IM
    Note 122937 - UD: Error message M7207 when you save
    Note 399416 - Message M7207 not analyzed in background
    Note 786755 - You cannot suppress message M7 207
    Note 201196 - MIGO: Error M7207 for goods receipt for batch
    Pls take opinion from SAP / Basis before implementing the OSS note
    Regards
    Madhan D

  • Suppressing status bar message after function call?

    Hi,
    I'm calling a few functions in a program.
    After calling them, for example function "L_TO_CREATE_DN", I get a message in the status bar, in this case saying that a TO has been created successfully.
    How can I suppress all status bar messages for all the functions that are being called in the program?
    THX!

    Hi
    Try to use the default excption error_message
    CALL FUNCTION
    EXCEPTIONS
        error_message = 1
        OTHERS        = 2.
    Max

  • Catching Information message in Program called using SUBMIT

    Hello All,
    I am calling a report program using below
    SUBMIT program EXPORTING LIST TO MEMORY
    AND RETURN.
    the program called is having one inforamtion message and is coming out after this message appears on screen. I want to capute this information message and need to display in my main program.
    Please let me know how  capture this type of messages in SUBMIT.
    Thanks in advance.
    Regards,
    Ganesh.

    Hi  ,
    DATA: text       TYPE c LENGTH 10,
         lt_selscreen  TYPE TABLE OF rsparams WITH HEADER LINE .
    lt_selscreen-sign = 'I'.
          lt_selscreen-option = 'EQ'.
          lt_selscreen-low = '7100'.
          append lt_selscreen.
    FIELD-SYMBOLS <lt_pay_data>   TYPE ANY TABLE.
    DATA lr_pay_data              TYPE REF TO data.
      cl_salv_bs_runtime_info=>set(    EXPORTING display  = abap_false
                                                 metadata = abap_false
                                                 data     = abap_true ).
    Submit Wage Type Reporter
       SUBMIT ZMR113_NON_MOVING_AGING    WITH SELECTION-TABLE lt_selscreen  with so_werks ='7100'  AND RETURN.
      TRY. 
      cl_salv_bs_runtime_info=>get_data_ref(        IMPORTING r_data = lr_pay_data ).
      ASSIGN lr_pay_data->* TO <lt_pay_data>.
      CATCH cx_salv_bs_sc_runtime_info.
      MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
      ENDTRY.
      cl_salv_bs_runtime_info=>clear_all( ).
    THis Code i used  in my report   it was  Created  by Glen Simpson   Expert Blogger  : it was nice piece  of code  to Gain Access  from Other ALV Report  of SAPGUI
    regards
    Deepak.
    Edited by: Deepak Dhamat on Oct 5, 2011 8:18 AM
    Edited by: Deepak Dhamat on Oct 5, 2011 8:21 AM

  • How can I change the default message after System Call Handler transfer error?

    Hi,
    I'm using Unity Connection 9.1 and System Call Handlers to allow to join internal extensions (not reachable from the PSTN).
    I succeeded but I would like to change the default message played when the extension dialed is not known. I tried with Error greetings but nothing changed.
    Thanks for your help.
    Regards,
    Julien

    Just tried this on my 9.1 and 10.0(1) servers and it worked fine.
    I went to the opening greeting call handler, selected the "error" greeting, set the greeting to play my personal greeting (it defaults to the system generated greeting), recording "hey, you dialed the wrong number" and then called in and during the opening greeting I dialed "88" - I heard "hey, you dialed the wrong number" and then it repeated the opening greeting recording as it should.
    the default action after playing your custom greeting in this case is to "restart greeting" - which is why the opening greeting plays again.
    Not sure what you did in your testing with the error greeting - check to make sure you have it set to play your personal greeting instead of the default system greeting - since you can't disable the error greeting there's not a lot of other items I can think of to check.

Maybe you are looking for