Error Handling for BAPI MB_COUNT_POST_WITHOUT_INV_DOC for MI10 Transaction

Hi,
Can any one suggest me, how to handle the errors for the BAPI MB_COUNT_POST_WITHOUT_INV_DOC, because this bapi does not have any return table for errors handling? And also suggest any other BAPI which fits for MI10 transaction.
<removed by moderator>
Thanks&Regards,
Damuan.
Edited by: Thomas Zloch on Feb 2, 2012

Hi Dear,
Your answer is very helpful, thanks..!!
But when  i am testing with the EIKPF structure, neither error is populating in EIKPF  nor the records are  posting in MI10. Could you please guess what would be the problem?
Below are the fields that i am passing through this BAPI
1)Document date 2)count date 3)plant 4)storage location 5)item number 6)material code 7) entry quantity
Thanks&Regards,
Damuan.

Similar Messages

  • Error Handling in table control for line item.

    Hi,
    Please how to do error handling in table control for line item in bdc,i have used format_message for header but i don't no fill decamps internal tabled and  how to do background processing in call transaction.
    Thanks

    Background processing is not possible using call transaction method.
    You can create an executable program which can have CALL TRANSACTION BDC code. And this can be run in background.
    What do you exactly mean by Error handling for Items in table control. Can you give some more details.

  • Error handling in bapi

    hi all,
          how to handle errors in bapis,and also can anyone send faqs on bapis.

    Hi
    A BAPI should be able to record and classify all possible errors that may occur a function Module BAPI_MESSAGE_GETDETAIL is used to Handle the Error Messages..
    You have to create a parameter named Return for every BAPI. This parameter returns exception messages or success messages to the calling program.
    BAPIs themselves must not trigger any messages (such as MESSAGE xnnn) in the coding. In particular they must not generate terminations or display dialog boxes. Instead, all messages must be intercepted internally and reported back to the calling program in the Return parameter. Otherwise the BAPI will not be processed correctly and control may not be given back to the calling program.
    All error messages or indeed any message that may be returned by the BAPI, must be defined in message table (Tools ® ABAP Workbench ® Development ® Programming environment ® Messages) and described in the documentation for the return parameter. This also applies to the most important or most likely error messages generated by other programs that can be indirectly passed via the BAPI to the application program.
    You must not use exceptions in BAPI interfaces.
    When a termination message (message type A) is triggered, a database rollback is executed in the standard programming model, that is, all tasks performed since the last COMMIT WORK are canceled. When you program BAPIs, we recommend that you also execute a database rollback in the return parameter for termination messages. You must describe this process in the documentation for the Return parameter. For messages of type E (error), the calling program performs the error handling.
    Application developers are provided with two service BAPIs to diagnose and process error messages from BAPI calls:
    BapiService.MessageGetDetail() displays the short and long texts of BAPI error messages.
    BapiService.ApplicationLogGetDetail(), with which information in application logs can be displayed.
    Features
    The export parameter Return can be implemented as follows:
    As a structure, whereby it must be defined in the function module as an export parameter, as well as in the method in the BOR.
    As a table, whereby it must be defined in the function module as a table parameter, as well as in the method in the BOR as an export parameter.
    Before filling the Return parameter you should either initialize the structure with CLEAR or the table with REFRESH and CLEAR.
    If the return parameter is not set or is set to an initial value this means that no error has occurred.
    The Return parameter may be based on the following reference structures:
    BAPIRET2
    You must use this reference structure when developing new BAPIS.
    BAPIRET1, BAPIRETURN
    These reference structures are still partly used in old BAPIs.
    Both structures must be filled in the logon language.
    Reward if Helpfull,
    Naresh.

  • Error handling in Abap Class for SAP Workflow

    Hi Experts,
    I would like to know if we have an option in abap classes used in workflows to send errors to the workflow log. We can achieve this in BOR Object methods by using the EXIT_RETURN <CODE> var 1 var 2 to send the errors back to the workflow, but how is this achieved through methods from classes  used in workflows.
    Appreciate your quick responses,
    Chaitanya

    Just raise exceptions in the normal OO way. Any exception that is a subclass of CX_BO_ERROR should be automatically available in workflow. Use subclasses of CX_BO_TEMPORARY for temporary errors.

  • Error while using BAPI BAPI_GOODSMVT_CREATE for Momvent type 321

    Hi Guys,
    We trying to transfer material from Inspection to Un.Stock by using momvent type 321...In SAP we do QVM1 and do stock postion.
    We are using BAPI BAPI_GOODSMVT_CREATE getting this error " E QA 495 Change the inspection stock of material 11036125 in QM only".
    Any one have any idea how to overcome this issue.
    Atul

    Hi Sachin,
    Pass the Item Number of Reservation to GOODSMVT_ITEM-RES_ITEM .
    Regards
    DKS

  • Error handling in Native SQL for ORACLE

    Hi,
    I have the next code:
    DATA instr TYPE char4.
    EXEC SQL.
        SELECT INSTRUMENTO INTO instr FROM DATOSMAESTROS
    END EXEC.
    And I want to control if the select has no results. Is it possible with the statement EXCEPTION inside EXEC SQL? Something like that:
    DATA instr TYPE char4.
    EXEC SQL.
        SELECT INSTRUMENTO INTO instr FROM DATOSMAESTROS WHERE id_inst = '01'
        EXCEPTION
             WHEN NO_DATA_FOUND THEN
                      :err = SQLCODE
                      INSERT INTO error( field, code_err) VALUES ( 'instrumento',:err)
    END EXEC.
    Is this a correct code? If not, how can I do it?
    Thank you all,
    Cris.

    Hello,
    Take a look on this: http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm
    Try this:
    DATA instr TYPE char4.
    EXEC SQL.
    SELECT INSTRUMENTO INTO :instr FROM DATOSMAESTROS
    ENDEXEC.
    Look that I put : inside the native SQL before the intr.
    To catch if no data was recovered try this:
    DATA instr TYPE char4.
    EXEC SQL PERFORMING no_data.
    SELECT INSTRUMENTO INTO :instr FROM DATOSMAESTROS
    ENDEXEC.
    FORM no_data.
      IF instr IS INITIAL.
        MESSAGE ...
      ENDIF.
    ENDFORM.
    Regards.

  • Looking for BAPI/FM for LT10

    Hi All-
    Can anyone please provide me if there is any BAPI or FM is available to create Stock Transfer using LT10...
    Please provide me the suggestions...I will give you reward points for helpfull answers...
    Thanks,
    Sony...

    Hi,
    The following FM are used in the program LT10.
    check these..
    L_TO_CREATE_SINGLE
    L_TO_CREATE_MULTIPLE
    Thanks,
    Naren

  • Return parameters and error handling in bapi

    i am checking one codition. if that condition satisfies, to give a message i have to fill the return parameter.
    For this i have used the function module BALW_BAPIRETURN_GET2 and in this RETURN parameter is of structure BAPIRET2.
    But my requirement is, i want a function module to give messagewhich uses RETURN parameter of type BAPIRETURN1.
    could you please help me if u have any idea.

    Hi Keshav,
    yes, its a custom function module..
    i am sending the code
    FUNCTION zbapi_hr_record_time.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(EMPNO) LIKE  ZBAPIP9090-EMPNO
    *"     VALUE(EDATE) LIKE  ZBAPIP9090-EDATE
    *"     VALUE(NO_OF_HOURS) LIKE  ZBAPIP9090-NO_OF_HOURS
    *"     VALUE(COMMENTS) LIKE  ZBAPIP9090-COMMENTS
    *"     VALUE(EENDDA) LIKE  ZBAPIP9090-EENDDA DEFAULT SY-DATUM
    *"     VALUE(EBEGDA) LIKE  ZBAPIP9090-EBEGDA DEFAULT SY-DATUM
    *"  EXPORTING
    *"     VALUE(RETURN) LIKE  BAPIRET2
    DATA : p9090 LIKE p9090,
           opern LIKE psyst-ioper VALUE 'INS'.
    DATA : it_pa9090 LIKE pa9090 OCCURS 0 WITH HEADER LINE,
           wa_hours(2) TYPE c.
    SELECT no_of_hours FROM pa9090
                       INTO CORRESPONDING FIELDS OF TABLE it_pa9090
                       WHERE empno = empno
                       AND   edate = edate.
    CLEAR wa_hours.
    LOOP AT it_pa9090.
    wa_hours = wa_hours + it_pa9090-no_of_hours.
    ENDLOOP.
    wa_hours = wa_hours + no_of_hours.
    IF wa_hours GT 24.
    *CALL FUNCTION 'BALW_BAPIRETURN_GET2'
    *  EXPORTING
    *    type             = 'E'
    *    cl               = 'ZHR_TIME'
    *    number           = '000'
    **   PAR1             = ' '
    **   PAR2             = ' '
    **   PAR3             = ' '
    **   PAR4             = ' '
    **   LOG_NO           = ' '
    **   LOG_MSG_NO       = ' '
    **   PARAMETER        = ' '
    **   ROW              = 0
    **   FIELD            = ' '
    * IMPORTING
    *   return           = return
    ELSE.
    ENDIF.
    ENDFUNCTION.
    in the aboove code, after IF condition (IF wa_hours GT 24.) instead of using BALW_BAPIRETURN_GET2 function module i want an alternative function module to return message. here in BALW_BAPIRETURN_GET2, RETURN is declared as BAPIRET2,  but i want it as of BAPIRETURN1 structure. so could you please tell me if u know any other FM to RETURN message which uses BAPIRETURN1 structure.

  • Looking for BAPI/FM for LB12 and  LT12

    Hi All-
    I am trying to find-out either BAPI's or FM to create Trasfer Orders(LB12) and Confirm Transfer Order(LT12)...
    Please help me out....

    I used "L_TO_CREATE_MULTIPLE",this can create a transfer order with two or more items,
    just like:
    REPORT  Z_L_TO_CREATE_SINGLE.
    data begin of i_ltap_cr occurs 0.
         include structure LTAP_CREAT.
    data end of i_ltap_cr.
    data : w_tanum TYPE ltak-tanum.
    i_ltap_cr-matnr = '000000000064802100'.
    i_ltap_cr-werks = '7960'.
    i_ltap_cr-lgort = '9820'.
    i_ltap_cr-CHARG = '711A001002'.
    i_ltap_cr-altme = 'KG'.
    i_ltap_cr-ANFME = '3103.776'.
    *i_ltap_cr-squit = 'X'."This means automatically confirm APPEND i_ltap_cr.
    Now the Stillage must be added.
    APPEND i_ltap_cr.
    i_ltap_cr-matnr = '000000000064900001'.
    i_ltap_cr-werks = '7960'.
    i_ltap_cr-lgort = '9820'.
    i_ltap_cr-CHARG = '727A01A004'.
    i_ltap_cr-altme = 'KG'.
    i_ltap_cr-ANFME = '5630'.
    *i_ltap_cr-squit = 'X'."This means automatically confirm APPEND i_ltap_cr.
    APPEND i_ltap_cr.
    CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
      EXPORTING
        i_lgnum                      = '832'
        i_bwlvs                      = '201'
       I_BENUM                      = '8086021402'
       I_BNAME                      = SY-UNAME
    IMPORTING
      e_tanum = w_tanum
      tables
        t_ltap_creat                 =  i_ltap_cr
    IF sy-subrc <> 0.
    ENDIF.

  • Error in BAPI RETURN for Service Contract

    Hi,
      I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
    Header1 Detail1 Text1
    HEader1 Detail2 Text2
    Header1 Detail3 Text3
    So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.

    Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
    method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
    break-point.
    *DATA : i_ce_goodsmovement TYPE REFERENCE
              ALM_ME_CUSTOMER_ENHANCEMENT.
    DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
    DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
    *DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
    CALL METHOD lr_badi_goods_movement->create
      EXPORTING
           ce_goodsmovement = ce_goodsmovement
      IMPORTING
           user_data        = ls_user_data
           custom_user_data = ls_ce_user_data
           goods_movement   = goods_movement
      changing
           return           = return[].
    CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
           TABLES
                return = return.
    endmethod.
    Please help me to get the data in this method. How do I call this.

  • BAPI's for SU01 Transaction

    i am looking for Bapi's for SU01 transaction

    Hi,
    Take a look at this
    BAPI_USER_ACTGROUPS_ASSIGN
    BAPI_USER_ACTGROUPS_DELETE
    BAPI_USER_CHANGE
    BAPI_USER_CLONE
    BAPI_USER_CREATE
    BAPI_USER_CREATE1
    BAPI_USER_DELETE
    BAPI_USER_DISPLAY
    BAPI_USER_EXISTENCE_CHECK
    BAPI_USER_GETLIST
    BAPI_USER_GET_DETAIL
    BAPI_USER_INTERNET_CREATE
    BAPI_USER_LOCACTGROUPS_ASSIGN
    BAPI_USER_LOCACTGROUPS_DELETE
    BAPI_USER_LOCACTGROUPS_READ
    BAPI_USER_LOCK
    BAPI_USER_LOCPROFILES_ASSIGN
    BAPI_USER_LOCPROFILES_DELETE
    BAPI_USER_LOCPROFILES_READ
    BAPI_USER_PROFILES_ASSIGN
    BAPI_USER_PROFILES_DELETE
    BAPI_USER_UNLOCK
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • How to ignore a DML operation using error handler.

    In our streams replication application (using Oracle 10G), we have error handler to handle the errors at destination apply process. It uses straight apply process no DML handlers except error handlers. The error handler should just log the error and LCR info into the error log table and discard the DML LCR. Error logging is not a problem. But the problem is how to ignore the error DML LCR and move to next LCR in the same transaction without rollback of the transaction or any error.
    Another question, do I need to use LCR.EXECUTE() procedure to continue the transaction in case of errors?
    Appreciated your help.

    Thanks for reference, confirmation of use of execute function.
    I read those pages and other related pages in "Oracle® Streams Concepts and Administration" too.
    I am able to write an error handler to handle errors with regular apply process. It is logging "no data found" errors but failing in case of foreign key violations. Error handler takes any kind of error and logs a record into errorlog table and ignores the error. I think it is not calling error handler. I checked for handlers in dba_apply_dml_handlers table. There is a handler for Inert, update and delete. I am investigating it further now. If you have any leads, please post.
    Thanks for your time and help.
    Dharma

  • Error Handler Settings

    Can anybody give me more insights about Error Handler Settings in CRM Middleware. Transaction SMW00.
    I need to execute a custom function module, if the BDOC errors out. Also need to send an email message with details.
    Any help would be appreciated.
    Thanks!

    HI
    Error Handling Configuration SMW00
    Different assignments of error actions are possible:
    > Standard Error Action (valid for all messages)
    > Error Action for a Specific BDoc Type
    > Error Action for a Specific Site Type
    > Error Action for Aborted Messages
    > These four logical levels are used in reverse order to determine the error actions to be carried out. If no
    specific error action has been assigned to a message, the least specific action (this means the default
    action) starts.
    > You can choose the following actions for a message:
    > Workflow event: the start event SERVICEERROROCCURRED of object type MIDMESSAGE has
    been prepared (the end event is SERVICEERRORFINISHED). This event triggers a work item of
    standard task TS75110000 (MIDMESSAGE.ShowMessage).
    As the event is executed, you can view the message and decide on what to do with it (Deletion,
    Resubmission, Resume Processing with the next service).
    > E-mail function:
    > Customer function: Calls a customer function module.
    Hope it helps

  • Error handling HTTP 400 in WCF-WebHttp adapter BizTalk 2013

    Hi!
    Does anyone knows how to catch HTTP errors when using WCF-WebHttp REST adapter in BizTalk 2013? I've looked into the article BizTalk
    Server: REST Services Error Handling, but that is for BizTalk 2010 using the WCF-Custom adapter.
    What I want is to catch the exception in an orchestration, and do some actions dependent on which HTTP error it is, i.e. HTTP 400.
    Idar H.

    Hi Idar,
    Welcome to BizTalk forum.
    From your description above, I don't have exact same scenario like yours, this scenario exposes a BizTalk Orchestration as a RESTful webservice using WCF-WebHttp, perhaps it will be good reference for you. See:
    http://blog.tallan.com/2014/09/29/wcf-webhttp-and-custom-json-error-messages/
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Where is the Error-Handler config DB file?

    Where is the Error-Handler config DB file?
    <P>
    All the Config DB files are in the config directory under the
    postoffice directory. Each config file has the same name as the
    Module it's the config for (e.g. Error-Handler contains the configs
    for the Error-Handler.)

    Look in the database alert file - in the "bdump" directory
    Look in the trace files in the "udump" directory
    If still no wiser:
    ALTER system SET event = '31098 trace name context forever, level 2' scope=spfile
    Try again and look for the trace files starting with "s..." in the "udump" directory.

Maybe you are looking for

  • Trigger to update field on a table with the sum of fields on another table

    My experience creating triggers and pl/sql in general can best be described in oracle terms as null. I've been practicing by creating tables and applications on my personal home server to help me with some of my work related tasks. Right now I'm tryi

  • Header in text file.

    Hi expert, wn i m downloading a text file into presentation server , hw can i add header there for heading of the particular fieds which is showing in file.plz suggest. thanx and regards... sunil.

  • Hwo to make this effect in flash

    SO i know in after effect i can make this but i dont have the program and this is for a flash intro... Lets say I have a ball in motion and I was a line trailing behind it like a ball has been kick and it is flying through the air how can i make the

  • Device drive of lab view fpga 2013 for Spartan 3E FPGA

    Hi NI I has get labview 2013 but I need  FPGA device drive of Spartan 3E can NI release it for us !!!!!!!!!!!! best regards hi ?Q>

  • Is there anything like Siri for iPad

    I really want to speech to text option on my keyboard. Anyone found a work around.