Bapi error message to info

hi,
     have a table gt_bapiret2 table of type bapiret2.
when the table is filled with gt_bapiret2-type = 'E'. the table need to be
modified to gt_bapiret2-type = 'I'.
regards,
vind.

Hi,
You can handle this in your custom program.
After BAPI call, all messages are populated in internal table gt_bapiret2.
Add this in your code -
gt_bapiret2-type = 'I'.
modify gt_bapiret2 transporting type where type = 'E'.
This will modify all entries with 'E' to 'I'. But why do you need to do this?
ashish

Similar Messages

  • BAPI Error Message Handling

    Hi Group,
    I am using BAPI ,How to display the BAPI  Error Message (eg:BAPIRET1) which is returning by BAPI

    HI ,
    ITS SIMPLE TRY THIS CODE
    AWARD PTS
    DATA: gt_ret     TYPE TABLE OF bapiret2,
               ls_ret    TYPE bapiret2,
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument     = p_vbeln
          order_header_in   = gt_hdr
          order_header_inx  = gt_hdrx
        TABLES
          return            = gt_ret -
    >>>>.<b>IMPORTANT</b>
          order_item_in     = gt_itm
          order_item_inx    = gt_itmx
          schedule_lines    = gt_sched
          schedule_linesx   = gs_schedx
          order_text        = gs_stdtxt.
          PARTNERS          = gs_partner
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      LOOP AT gt_ret INTO ls_ret.
        WRITE:/ ls_ret-type.
        WRITE:/ ls_ret-message.
      ENDLOOP.

  • Passing BAPI  Error Messages to BDC  Session.

    Hi,
    Can any one drive the idea how to convert rather passing BAPI error messages into BDC session.
    regards.

    Naveen,
    I am sure you already have the logic of "If the call transaction is errored out you create a BDC session for the same data".
    Now, when your BAPI fails, irrespective of the error, you need to build the BDCDATA table and pass the data to the session. So, I don't you really need to know the errors and pass them to the BDC Session.
    Check the RETURN table of the BAPI, if it has got E / A / X error types then you can build the BDCDATA table and create the session.
    Regards.
    Ravi
    Note : Please mark the helpful answers and close the thread if the issue is resolved.

  • BAPI Error message in WDA using AIF

    Friends,
    I am working on Custom WDA using AIF to create Purchase Requisitions.
    I am calling the BAPIs  -  'BAPI_REQUISITION_CREATE' and 'BAPI_TRANSACTION_COMMIT' using CALL FUNCTION.
    I passed the item values to zitab and called the function module.
    Here is the code:
    CALL FUNCTION 'BAPI_REQUISITION_CREATE'
    EXPORTING
    SKIP_ITEMS_WITH_ERROR                = 'X'
    AUTOMATIC_SOURCE                     = 'X'
    IMPORTING
    NUMBER                               = number
    TABLES
       REQUISITION_ITEMS                    = zitab
      REQUISITION_ACCOUNT_ASSIGNMENT       =
      REQUISITION_ITEM_TEXT                =
      REQUISITION_LIMITS                   =
      REQUISITION_CONTRACT_LIMITS          =
      REQUISITION_SERVICES                 =
      REQUISITION_SRV_ACCASS_VALUES        =
      RETURN                               = zbapireturn
      REQUISITION_SERVICES_TEXT            =
      REQUISITION_ADDRDELIVERY             =
      EXTENSIONIN                          =
    I am getting the following error messages from BAPI_REQUISITION_CREATE:
    1. Message type - E
    Code - W5069
    Message - Please also pass on a unit of measure for the quantity
    2. Message type - E
    Code - W5002
    Message - No items exist (not possible to save)
    Here are the relevant details:
    System - SAP ECC 6.0 EhP4
    Adobe Livecycle Designer version  - 8.1.2.4246.1.597341
    ADS version - 802.20100318013254.656549
    I found this link that is relevant to the second error, thought the solution is not provided:
    Error : No items Exists (Not Possible to save)
    I would appreciate any hints or thoughts on how to get these errors rectified.
    Regards,
    Arun.

    Thanks Kris for your reply.
    I was able to rectify the 2 errors.
    I need to update 5 custom fields in the CI_EBANDB include in the EBAN table. I am using the EXTENSIONIN parameter.
    Here is my code:
    data: wa_bapiextn type bapiparex,
          zbapiextn type table of bapiparex.
      wa_bapiextn-structure = 'CI_EBANDB'.
      wa_bapiextn-VALUEPART1 = 'A'.
      wa_bapiextn-VALUEPART2 = 'B'.
      wa_bapiextn-VALUEPART3 = 'C'.
      wa_bapiextn-VALUEPART4 = 'D'.
      append zstruct to zitab.
      append wa_bapiextn to zbapiextn.
    CALL FUNCTION 'BAPI_REQUISITION_CREATE'
    * EXPORTING
    *  SKIP_ITEMS_WITH_ERROR                = 'X'
    *  AUTOMATIC_SOURCE                     = 'X'
      IMPORTING
        NUMBER                               = number
        TABLES
          REQUISITION_ITEMS                    = zitab
    *   REQUISITION_ACCOUNT_ASSIGNMENT       =
    *   REQUISITION_ITEM_TEXT                =
    *   REQUISITION_LIMITS                   =
    *   REQUISITION_CONTRACT_LIMITS          =
    *   REQUISITION_SERVICES                 =
    *   REQUISITION_SRV_ACCASS_VALUES        =
         RETURN                               = zbapireturn
    *   REQUISITION_SERVICES_TEXT            =
    *   REQUISITION_ADDRDELIVERY             =
        EXTENSIONIN                          = zbapiextn
    The custom fields are not getting updated. I would greatly appreciate any hints on how to get these custom fields updated.
    Regards,
    Arun.

  • Modeler error messages - more info not provided!

    Dear Friends,
    I got an error executing a planning sequence of function type 'generate combinations'.
    The system messages on the top section of the modeler are :
    1. first message :
    "Planning function Gen Combinations ( ended with errors"
    2. subsequent messages are in green (no error)
    "Context information for the other messages"
    3. Selection for characteristic xyz : Single value 123 (no error)
    : < similar ok messages follows >
    2nd Error message :
    "Cannot generate combinations for MultiProvider 'AGGR_LEVEL'"
    this is followed by
    3rd Error message :
    "Cannot generate combinations in step 'xx'"
    When double clicked on these error messages in the modeler, nothing appears to show more error info.
    Could you experts kindly let me know how can I find out what these errors mean , specifically:
    1. For the 3rd error, how can I know what is the step 'xx' about that the system is referring to where it cannot generate combinations? Is it in the filter, char relationship, or exits?
    2. For the 2nd error What does it mean cannot generate combinations for multiprovider? Could you tell me more about what this means in terms of where is the problem?
    Thanks in a advance!!
    regards
    YHogan

    Dear Gregor,
    For a planning sequence using planning function of type 'generate combinations', in general does this process work in the following sequential step ? :
    1. check the filter
    2. generate the combination based on filtered values
    or    is it the other way round?
    I am trying to know where the error lies since it errored so early in the process , about 3 seconds upon executing the sequence via program RSPLS_PLSEQ_EXECUTE.
    I set break point on the class mentioned to no avail as the generate combinations sequence ended with error very early in the process.
    I also set breakpoint on the characteristic relationship class used as well as standard variable exit include program. Also to no avail as the program errored before these stages as none of the breakpoints appeared in debug mode before the error.
    The error message is " cannot generate combinations in step '04' "
    Kindly could you shed more light on this error in terms of what it is referring to?
    Is the problem with master data , filter or characteristic relationship?
    Based on my testing done with breakpoints, seems that its not filter or characteristic relationship error.
    So, does this mean master data error?
    How could master data be having error?
    Most characteristic relationship used are attribute types. There are 2 using classes.
    Thank you in advance.
    regards
    YHogan
    Edited by: Yohannes Hogan on Jun 20, 2008 1:03 PM

  • Modeler error messages - more info needed!

    Dear Friends,
    I got an error executing a planning sequence of function type  'generate combinations'.
    The system messages on the top section of the modeler  are :
    1. first message :
    "Planning function Gen Combinations ( ended with errors"
    2. subsequent messages are in green (no error) 
    "Context information for the other messages"
    3. Selection for characteristic xyz : Single value 123  (no error)
    :  <  similar ok messages follows >
    2nd Error message :
    "Cannot generate combinations for MultiProvider 'AGGR_LEVEL'"
    this is followed by
    3rd Error message :
    "Cannot generate combinations in step 'xx'"
    When double clicked on these error messages in the modeler, nothing appears to show more error info.
    Could you experts kindly let me know how can I find out what these errors mean , specifically:
    1. For the 3rd error, how can I know what is the step 'xx' about that the system is referring to where it cannot generate combinations?
    2. What does it mean cannot generate combinations for multiprovider? Could you tell me more about what this means in terms of where is the problem?
    Thanks in a advance!!
    regards
    YHogan

    Dear Gregor,
    For a planning sequence using planning function of type 'generate combinations', in general does this process work in the following sequential step ? :
    1. check the filter
    2. generate the combination based on filtered values
    or    is it the other way round?
    I am trying to know where the error lies since it errored so early in the process , about 3 seconds upon executing the sequence via program RSPLS_PLSEQ_EXECUTE.
    I set break point on the class mentioned to no avail as the generate combinations sequence ended with error very early in the process.
    I also set breakpoint on the characteristic relationship class used as well as standard variable exit include program. Also to no avail as the program errored before these stages as none of the breakpoints appeared in debug mode before the error.
    The error message is " cannot generate combinations in step '04' "
    Kindly could you shed more light on this error in terms of what it is referring to?
    Is the problem with master data , filter or characteristic relationship?
    Based on my testing done with breakpoints, seems that its not filter or characteristic relationship error.
    So, does this mean master data error?
    How could master data be having error?
    Most characteristic relationship used are attribute types. There are 2 using classes.
    Thank you in advance.
    regards
    YHogan
    Edited by: Yohannes Hogan on Jun 20, 2008 1:03 PM

  • Bapi error messages, explainations

    Hi All,
    I am working on implementing a Bapi and we are getting a number of different error message returned. for instance one code we are getting is 'SAP Error Code #E-M8-074' = 'Quantity entered larger than quantity to be debited'
    but we can post the voucher manually when we enter the data in the system.
    what is the best way to trouble shoot this issue?
    looking forward to hearing back from you.
    thank you for your time.

    I assume you have read the long text for this message.
    From the long text it appears you are trying to post a subsequent debit or credit.  Is that correct?
    If so, has an invoice been posted for this purchase order?  You cannot post a subsequent debit/credit without at least one invoice posting.
    If an invoice has been posted what was the invoice quantity?  The error is occurring because you are trying to post the invoice against a quantity great than the invoice quantity.

  • Translation for Standard BAPI error messages

    Hi All,
    We are calling a standard BAPI in our report program. This BAPI has return table of type BAPIRET2.
    When i logon in Spanish Language, still the BAPI returns error messages in English.
    Any pointers to get the messages from Standard BAPI's in Logon language.
    Thanks,
    Best regards,
    Prashant

    Hi,
    Since these messages are Standard SAP  Messages, i assume that SAP would maintain the translations for them.
    If i go to message class & check translations for these standard messages, i dont see the translations.
    Are we expected to manually maintain translations for Standard SAP Messages ?
    I feel SAP would be providing translations for Standard SAP message.
    Best regards,
    Prashant

  • BAPI Error Message

    Hi Abapers,
    I am using a BAPI . . and the BAPI is returning this error
    "Entry was not processed because there is no changing parameter available" . .Can anyone tell me why does this happen?
    and what is the resolution for that?

    The data which you are supplying does differ with the data already present.

  • EM repository - Java error message(2)

    Hi!
    When trying to install the EM repository (11gR2 on WIndows Server 2003) the following error message appears:
    INFO: Repository successfully created
    Apr 23, 2010 12:58:20 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
    INFO: Uploading configuration data to EM repository (this may take a while) ...
    Apr 23, 2010 1:00:06 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Uploaded configuration data successfully
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0c5598ca, pid=336, tid=2392
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b03 mixed mode)
    # Problematic frame:
    # C [oranl11.dll+0x498ca]
    # An error report file with more information is saved as hs_err_pid336.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    In an earlier post I mentioned that I resolved the issue, but I didn't, because the same message appeared the next day again.
    Problem with recreating EM repository
    Maybe somebody knows the solution?
    Any help greatly appreciated! Thanks!

    Can you try to use a different JDK/JRE ?
    cu
    Andreas

  • EM Repository - Java error message

    Hi!
    EM Repository successfully created, however this Java error message appears:
    INFO: Repository successfully created
    Apr 23, 2010 12:58:20 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
    INFO: Uploading configuration data to EM repository (this may take a while) ...
    Apr 23, 2010 1:00:06 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Uploaded configuration data successfully
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0c5598ca, pid=336, tid=2392
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b03 mixed mode)
    # Problematic frame:
    # C [oranl11.dll+0x498ca]
    # An error report file with more information is saved as hs_err_pid336.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    What could this mean?
    In connection with post:
    Problem with recreating EM repository
    Edited by: user545194 on Apr 23, 2010 4:26 AM

    Hi!
    I solved the problem in the meantime.
    Solution steps for anyone who had the same problem:
    1. Uninstall Java Runtime, version 6.
    2. Cleanout Windows Registry
    3. Reboot machine
    4. Download and install Java 1.5
    CMD
    5. Set ORACLE_HOME= Your path to Oracle home directory
    6. Set ORACLE_SID= Your DB server
    7. Recreate EM Repository
    Result should be a clean EM installation.
    Cheers!

  • Moving storefront error messages to BCC lookup repository

    Has anybody tried out this?Any suggested approaches/ best practices here?

    There is no list of methods for retrieving user messages.  ATG's form handlers follow a few different patterns depending on things like when they were written, by whom, and what packages they're in.
    What's your motivation for moving user messages from resource bundles to a repository?  Are you planning to let business users edit the messages?  Depending on how you set things up, you may make it more difficult to absorb new ATG releases, which often add messages to existing bundles.  You may also make it difficult to benefit from translations into new languages as Oracle/ATG rolls them out.  Also, if you start overriding methods that retrieve messages, you have to be careful not to break error messages and info messages, which I assume will continue to live in resource bundles.

  • Error message after update while creatin equipment with BAPI

    Hi All,
    I'm creating equipment master record with BAPI 'BAPI_EQUI_CREATE'. After commit I receive the following error message in my inbox - 
    Update was terminated
    System ID....   ***
    Client.......   ***
    User.....   ***
    Transaction..   Z***
    Update key...   4AD49ADAF8E13020E10000000A701B19
    Generated....   15.10.2009, 16:44:33
    Completed....   15.10.2009, 16:44:33
    Error Info...   Error while determ. loc. crcy: exchange rate type date from to
    Who knows what's the reason and how can it be fixed.
    Thanks in advance,
    Kind Regards,
    Nikolai.
    Edited by: Nikolai Gurlenia on Oct 16, 2009 2:18 PM

    Hi ,
    Try to run the transaction and post the record manually and see how it behaves.
    Contact your functional consultant and check with them if they recently made some config changes
    Thanks
    Ramya

  • Unable to capture error message while creating an SO using bapi

    Hi,
    Can anybody suggest how to capture the error message while creating a SO using BAPI.
    I have developed a customeized BAPI and using the BDC format to create the SO.
    Note: i am using a call transaction method for the BDC.
    I am sending the message into message1.
    but i am unable to send the same into an internal table
    shyam.

    Hi Shyam
    If my understanding is correct, you are performing BDC process within the customized BAPI...
    And you want to collect the messages from BDC to an internal table and pass to the output.
    Proceed as below:
    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.
    2. Now the messages will be collected in ita.
    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>
    4. Collect to the returning table.
    Hope this helps...
    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    Kind Regards
    Eswar

  • Just did the iTunes update that iTunes said was available now iTunes won't open, keep getting Runtime Error message.  R6034 An application has made an attempt to load the C runtime library incorrectly.  Please contact the apps support team for more info.

    Just did the iTunes update that iTunes said was available, now iTunes won't open.  I just keep getting a Runtime Error message. 
    R6034
    An application has made an attempt to load the C runtime library incorrectly.  Please contact the apps support team for more info.
    Is anyone else having this problem?
    I tried to re-install and got the following message:  iTunes was not installed correctly.  Please reinstall iTunes.  Error 7 (Windows error 1114)
    Does this mean I have now lost everything?

    I just had the same error: 
    R6034
    An application has made an attempt to load the C runtime library incorrectly.  Please contact the apps support team for more info.
    I went to http://support.apple.com/kb/ht1925 and did a complete removal and reinstallation of iTunes. You MUST follow the directions here exactly...it's more than just iTunes that must be removed, and it MUST be done in the order in which the support article says.  I followed the exact instructions, and iTunes is back on my machine (no more C runtime error) and you do NOT lose your music...it's all in my library, as it was before.
    Good luck!

Maybe you are looking for

  • When I went to the apple store a worker said I could merge two apple ID's. How can I do this?

    My sister was the first person to get an apple product before anyone else so she created her own Apple ID. Then other members in my family including myself, received apple products and made a family Apple ID for all of us to use. My sister now uses t

  • Crystal report is slow in infoview

    Hi, In Internet Explorer ,While browsing the published reports from crystal server the report takes long time to display in the IE.I can able to see all the published roles as folders but when I click on a particular folder the report is taking too l

  • Safari won't open my website

    www.whitefieldchurch.com Sent a link to someone with a mac today and they say they can't access my site. It works on my mac and my iphone so anyone got any ideas what's wrong?

  • Expense Reporting having incorrect value for org_id

    Hello team, Some of our expense reports are having issue while populating the org_id on ap_expense_report_headers_all table. Expense report was created in UK but having the org_id value for US. This is happening randomly and not to all the expense re

  • You have inserted a Blank DVD... But it isn't

    I know, because my MacBook (1 of them, but not the other?), and my iMac reads them. It is Underground Pittsburgh (Video). It plays fine on my DVD player too. This eMac has a combo drive and is 6 years and 2 months old (June, 2002). It also has this m