BDC(to display all the errors)

Hi Experts,
I am uploading data from flat file to sap application by using bdc call transaction method. My flat file is in Txet format.
Now i want to display all the errors which are nor processed.
The error report should be line no.of error record,error message and the records which are uploading.
i am using bdcmsgcoll structure.but it is not having the fields which are required for me. will suggest me with coding how to do it.
Thanks in advance,
Mythily

Hi,
By using function module  FORMAT_MESSAGE
Here is a sample code:
LOOP AT t_message INTO fs_bdcmsgcoll.(T_message is a type of bdcmsgcoll)
    CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        id        = fs_bdcmsgcoll-msgid
        lang      = sy-langu
        no        = fs_bdcmsgcoll-msgnr
        v1        = fs_bdcmsgcoll-msgv1
        v2        = fs_bdcmsgcoll-msgv2
        v3        = fs_bdcmsgcoll-msgv3
        v4        = fs_bdcmsgcoll-msgv4
      IMPORTING
        msg       = w_message
      EXCEPTIONS
        not_found = 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.
      WRITE:/   w_message.
endif.
endloop.
Hope this solves the issue, let me know if any queries.
Regards,
Rajani

Similar Messages

  • How can i display all the query items to a table?

    how can i display all the query items to a table in a jsp file?
    i always have an out of memory error..

    any body??any idea?
    is it possible thru configuration or i have to write a program by the abaper??
    Biswa

  • Problem while displaying all the table names from a MS Access Data Source.

    I started preparing a small Database application. I want to display all the Table Names which are in the 'MS Access' Data Source.
    I started to executing by "Select * from Tab" as if in SQL.
    But i got an error saying that "Not able to resolve Symbol 'Tab' in the query".
    Please let me know how can i display all the table Names in the MS Access Dats Source.

    Here i am developing the application in Swing using JDBC for accessing the database.
    I want to display all the Table names from the data source in a ListBox for easy selection of tables to view their details.

  • Query to display all the documents

    Hi
    How to display all the document numbers (quotations, orders, invoices etc), posting dates in three columns i.e. Cust Code, Doc No , Posting Date?
    Since all the tables storing this information having the same column names do you think it is possbile? then how to write a query?
    thanks
    SV Reddy

    SV,
    what Raja said is correct. The steps are to write the query the fields you want to display in the query, so it will be as follows:
    select docnum, cardcode, doctotal, objtype from ORDR
    then use UNION ALL, the union all is used to join the other tables e.g. purchase, good receipt or good issue to the above sales order query but must have same fields.
    It will be as this follows:
    select docnum, cardcode, doctotal, objtype from ORDR
    union all
    select docnum, cardcode, doctotal, objtype from OPOR
    union all
    select docnum, cardcode, doctotal, objtype from OIGN
    union all
    select docnum, cardcode, doctotal, objtype from OIGE
    since the result objtype here is a value, I use "case when" to display objtype in the words and user can understand the document name.
    It could be mixed in all the 4th queries and will not give error result.
    Rgds,

  • Additional plugins are required to display all the media on this page

    I realize plugins are not part of Mozilla, but Mozilla is giving me a looping error message that something is missing when I don't see at all that anything is.
    I receive this message when I am trying to play an audio file for transcription. "Additional plugins are required to display all the media on this page". I know the program uses QuickTime, and that is up-to-date, but not sure what other plugins it would need.
    There is an "Install Missing Plugins" button. When I click that, a Plugin Finder Service window opens and the message "No suitable plugins were found".

    Do you have the Windows Media Player plugin?
    * https://support.mozilla.org/kb/Using+the+Windows+Media+Player+plugin+with+Firefox
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    * http://www.interoperabilitybridges.com/windows-media-player-firefox-plugin-download
    * http://www.interoperabilitybridges.com/wmpff/wmpfirefoxplugin.exe
    * http://windows.microsoft.com/en-US/windows/downloads/windows-media-player (see Firefox)

  • How to display all compiler errors ?

    hello !
    I have a questions: how can i see all the errors occured while compiling. by default the compiler shows the first 100 and stops then. does anybody know a solution ?
    Thanks in advance...
    Manuel

    Even if you want to compile your code with other library, the solution is to start with the first errors. I saw (from the other thread) that you don't want to start until you have a list of all errors. This is not how programming is done. A compiler displays the first errors, when you fix those errors the compiler might find new errors, so you have to go gradually and to eliminate errors. Maybe it is better to find first some info about the compatibility between the libraries you want to port the application to (JDK and J2ME) and then to start debugging.

  • How can I display all the columns on the screen without scrolling from side to side?

    My clinic software has many columns. How can I display all the columns without having to scroll from left to right all the time?

    If the software you are using doesn't offer the ability to increase or decrease document size, as many do, then the only way is to increase your screen resolution. If that's not possible, maybe you can decrease your font size?  If you can't do any of these, I think you're out of luck!

  • How can I get my iPod touch to display all the artwork on my computer?

    Hi,
    I have an iPod touch 4th gen 32 GB with iOS 6.1 on it.  I have trouble getting it to display all the album artwork that I have on my computer.  Not all of my music has it, but about 90% of it does.  Is there any way I can make it display everything that's on my computer?  I have iTunes 11 on it and it is a Windows 7 computer.  Thanks!

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Desktop is no longer displaying all the colors on it's monitor.

    My desktop computer is no longer displaying all the colors on its montior.  I've replaced the monitor with a known good one and the problem remains the same.  The desktop is 6 months old and when I purchased it, the first one had to be replaced because of this exact same issue. This appears to be a common problem.  Is anyone else experienced this is issue and has HP recalled any of these specific desktop's because of it?  

    Wjile there can be no consolation with your plight, you do have the replacement option under warrant.  BTW, it does help if you state the exact model or product #.   Saying a "series" is like called out that I had a Chevy.

  • Report to display all the contacts of an opportunity.

    Hello,
    I have a requirement, can we create a report which displays all the contacts of an opportunity apart from primary contact.
    Any inputs on the same will be appreciatable. TIA
    Edited by: 1004233 on May 6, 2013 12:16 AM
    Edited by: 1004233 on May 6, 2013 3:28 AM
    Edited by: 1004233 on May 6, 2013 3:28 AM

    Hey Aveek;
       Try this, which will get the most recent one.  You would just need to change it to loop at the edids records to get at them all...
          TABLES: *edidc, *edids, *t100.
          DATA: wf_string type string.
          CLEAR *edids.
          SELECT SINGLE *
             INTO *edids
             FROM edids
             WHERE docnum = *edidc-docnum
               AND status = '51'.
          SELECT SINGLE text
             INTO *t100-text
             FROM t100
             WHERE sprsl = 'EN'
               AND arbgb = *edids-stamid
               AND msgnr = *edids-stamno.
             CLEAR wf_string.
          MOVE *edids-stapa1 TO wf_string.
          REPLACE '&' WITH wf_string INTO *t100-text.
          IF sy-subrc EQ 0.
            CLEAR wf_string.
            MOVE *edids-stapa2 TO wf_string.
            REPLACE '&' WITH wf_string INTO *t100-text.
            IF sy-subrc EQ 0.
              CLEAR wf_string.
              MOVE *edids-stapa3 TO wf_string.
              REPLACE '&' WITH wf_string INTO *t100-text.
              IF sy-subrc EQ 0.
                CLEAR wf_string.
                MOVE *edids-stapa4 TO wf_string.
                REPLACE '&' WITH wf_string INTO *t100-text.
              ENDIF.
            ENDIF.
          ENDIF.
          A little sloppy (OK, alot!), but it gets the job done...
    Cheers,
    John

  • Cannot display all the tables of the schema!!!

    Hi:
    I use the oracle sql developer on the windows xp, I found that the tables tab cannot display all the tables of the schema owner, I use the sql "select count(*) from user_tables" I found the result is more than the tab can be display, and I also press the "show more" already.... does anyone can help me ???

    Similarly, I have 852 tables owned by the connected user (selected count from user_tables and checked the user tables report which has this many records returned), but when I double-click on the "Show More" and select Show All, I only get approximately 375 tables listed.
    It doesn't help that the sorting is different - ie ASF_ comes before ASFB in the connection pane but the other way around in the report.
    However, it looks as though the problem is that tables that are not analysed (based on the report data in DATE_LAST_ANALYZED) are not being displayed under the Table node.

  • How to Inscribe all the error messages into a single package ??

    Hi,
    I want to Inscribe all the error messages into a single package., and call the concern package from the exception block in every sp by passing the error code to that package, which will return the Concern error message to the calling Sp.,
    Can any one help me out how to accomplish this ., ?
    regards
    Raja

    I want to Inscribe all the error messages into a single package., Why do you want to inscribe all the messages in a package?
    I would suggest you to store them in a table instead and you can write a functin to retrive the error messages required.
    But if your requirement is for 'Package' then assuming that you store all the error messages in a table 'error_table' (say) following code may help you .
    CREATE TABLE Error_Table (
      Error_Code VARCHAR2(10),
      Error_Desc VARCHAR2(1024));Now insert your error codes and descriptions in this table.
    CREATE OR REPLACE PACKAGE pkg_Error_Handler
    AS
      FUNCTION f_Get_Error_Message(p_Error_Code  Error_Table.Error_Code%TYPE) RETURN VARCHAR2;
    END pkg_Error_Handler;/
    CREATE OR REPLACE PACKAGE BODY pkg_Error_Handler
    AS
      FUNCTION f_Get_Error_Message
           (p_Error_Code  Error_Table.Error_Code%TYPE)
      RETURN VARCHAR2
      IS
        lv_Error_msg  Error_Table.Error_desc%TYPE;
      BEGIN
        BEGIN
          SELECT Error_desc
          INTO   lv_Error_msg
          FROM   Error_Table
          WHERE  Error_Code = p_Error_Code;
        EXCEPTION
          WHEN No_Data_Found THEN
            lv_Error_msg := 'No such error code '
                            ||p_Error_Code
                            ||' defined in the system';
          WHEN OTHERS THEN
            lv_Error_msg := p_Error_Code;
        END;
        RETURN lv_Error_msg;
      END f_Get_Error_Message;
    END pkg_Error_Handler;
    /and you can call this packaged funtion from any exception block to get the error description.
    Regards,
    Abhijit.
    N.B.: Code not tested

  • How to use evdre to display all the levels under the node user choose

    I used SELF,LDEP(6) in the memberset of evdre trying to display all the 6 levels from the top node of NetIncome, all the display all the level with the correct amount except the top node which is displayed in the row key, but all the cell which should be the aggregation of all it's children is blank, if I choose only self, it shows the amount with only top level. how could I all the level and the corresponding amount display?

    Hi,
    Did you try SELF,ALL ?
    Hope it works...
    regards,
    Raju

  • How to display All the rows in a Table

    Hi All,
    Our requirement is, we need to display all the records of an VO in a table. We should not have navigation bar with previous and next. Runtime only will come to know how many records the VO has. Is it possible to achieve our requirement using setNumberOfRowsDisplayed() method in OATableBean ?

    Do u want to do it declaratively or programmatically.
    Declaratively You can set no of rows property of table bean. If u want to set it programmatically then u can do it as discussed in the thread..
    Regards,
    Ram

  • OADefaultListBean to display all the values

    Hello,
    Using OADefaultListBean, i was able to display all the selected values using the below logic but how to get list of all the values in the OADefaultListBean instead of just the selected ones?
    OADefaultListBean list =
    (OADefaultListBean)webBean.findChildRecursive("positionsList");
    String name = list.getName();
    String[] selectedValues = pageContext.getParameterValues(name);
    In the above code, pageContext.getParameterValue(name) gives the list of all the selected values but how to get the list of all the values?
    Thanks
    KK

    Basically my whole point in doing this is to give an option of ALL in the OADefaultListBean so that just by selecting the ALL in the list, it should technically select all the values.
    Thanks a lot in advance for your help

Maybe you are looking for

  • HELP! Can No longer edit certain files in DW CS5

    I was editing these fine for the past two days and i reuploaded them to the ftp server and had to make a change to one and now they are all greyed out and impossible to edit here is code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

  • How can I set up a WD My Book with my Airport Extreme

    I just got a WD My Book and want to set it up as an external drive for back up using Time Machine.  I have an Airport Extreme and using the USB port hooked it up to the Airport.  With in the Airport Utilities I am able to see the WD My Book when I cl

  • Flagging of Item OK field in MIGO transaction

    Hi all, Is there any option to flag the Item OK field for multiple line items in MIGO  (select all option)  as the User is ticking the item OK field for line items individually. thanks in advance. regards, Kumar

  • Presenter 9 publish as .pdf

    I've been experimenting with Presenter files published as .pdf (.swf) I've found that some browsers work better than others when posting online for Internet use. Of the current browsers (Internet Explorer, Chrome, Firefox, Safari) I get good results

  • Namespace not defined

    Hi When I was doing mapping I found out that I have not created a field in outbound data type. I went to my outbound data type and added the field. I saved it and tried to activate it. I got an error like this Namespace urn:ABC100 is not defined in t