Displaying messages after BDC execution

Dear All,
I am running a BDC to change the pricing of the return document in transaction VA02. The BDC is getting executed after the execution of one report which is diaplying some records in the output. The output values of the report are : Check Box, Sales Document No & Billing Document No.
After the BDC is executed for the selected records, I am getting a screen which displayes me for each record if that has been executed successfully or is there any error while executing BDC.
Now, I want that after the BDC has been executed, a list should be displayed which just shows about the Sales Document No which has been processed successfully by the BDC and another list which displays about the Sales Document No which are not processed successfully.
Kindly guide me on how I can proceed on this.
Waiting for your reply.
Warm Regards,
N.Jain

hi Nishu..
Use the BDCMSGCOLL structure to capture the Messages:
Using BDCMSGCOLL Structure we have to declare an itab.
DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .
Then We can catch the messages using:
CALL TRANSACTION 'MK01'
USING IT_BDCDATA
MODE 'N'
MESSAGES INTO IT_MSG.
IF sy-subrc ne 0.
LOOP AT IT_MSG INTO WA_MSG
WHERE MSGTYP = 'E' OR MSGTYP = 'A'..
  <<process Error messages>> 
ENDLOOP.
Else.
LOOP AT IT_MSG INTO WA_MSG
WHERE MSGTYP = 'S'
  <<process Success messages>> 
WRITE:/ 'Doc No', WA_MSG-MSGV1.
ENDLOOP.
Endif.
<b>reward if Helpful.</b>

Similar Messages

  • Displaying the successfully created records as messaage after bdc execution

    Hi all,
    I want to display the number of  successfully created records as message(information) after execution of batch session created in sm35.
    could anyone suggest me any solution regarding this?
    Thanks and Regards,
    Ashik

    for error log code check this
    [click here for error log code|http://wiki.sdn.sap.com/wiki/display/ABAP/BDC-Howtohandleerrorlogfiletouploadthedataincalltransaction+method]
    for BDC Session - Automatic Execution from Report
    [click here|http://wiki.sdn.sap.com/wiki/display/ABAP/BDCSession-AutomaticExecutionfromReport]

  • How to Display a message after inserting row in table............

    Hi
    I want to display a message after inserting rows in table like *'you have inserted a new row successfully*'.
    i am using the createinsert ADF Button to insert the rows in table.after that i am comitting it.
    after commiting i want to display message for the user.for this what i need to do.
    Please help me.
    Sailaja.

    user10860137
    Can you please explain me the each line in the code briefly.
    +public String saveButton_action(){+
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    +// note "!" operator has been removed from the default code.+
    +if(operationBinding.getErrors().isEmpty()){+
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage saveMsg = new FacesMessage("Record Saved Successfully");
    ctx.addMessage(null,saveMsg);
    +}+
    return null;
    +}+
    And i have requirement to show the message on favcet "status bar".not in a popup window.(from the above code the message is showing in popup window. )the Layout i am using is PanelCollection.
    can you tell me what i need to do.
    Thanks
    Sailaja.
    Edited by: sj0609 on Mar 19, 2009 8:03 AM

  • Messages doesn't  keep my "Show as Boxes"display preference after restart.

    Any ideas on how to make Messages keep my “Show as Boxes”display preference after restart. It always defaults back to “Show as Ballons”.
    Thank you community,
    Paul

    Hi,
    Open a Finder  window
    Go to the View Menu and chose "Show Path Bar"
    This will show the way to the folders and files you navigate to.
    In the Finder still, use the Go Menu whilst holding down the ALT key
    Select the Library that appears
    Navigate to the Preferences Folder.
    Now Right click the Library in the Path Bar.
    Choose Get Info.
    In the panel that opens up check the Ownership and Permissions section
    highlight your Name and then use the cogwheel type icon.
    Your shortname should appear in a sentence that reads "Make Shortname (me) the Owner" but it should be greyed out if you already Own the folder.
    Your name in the list should have Read and Write Permissions.
    Do you have Read and Write Permissions an Own the Library folder ?
    Repeat for the Preferences Folder.
    Repeat for a file in the Preferences folder called  com.apple.ichat.plist (just highlight the file and then do CMD + i keys (Get Info))
    Basically to be able to change a Preference you need permission to Write to the file involved.
    However you also need Read and Write permissions to the containing folders.
    If it is not sticking then it would seem you do not have those.
    9:30 pm      Monday; November 4, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • "Variable applied"display  after query execution  through WAD incorrect

    Hi ,
    In my queries i provide varible entries for  0FISCPER, 0FISCVARNT along with other variables.In the query i dispplay the values for the variables applied.When i run these queries through 2004s WAD  if i were to select 0FISCPER = 01/08/2007 and 0FISCVARNT = AK after query execution the variable applied displays - 
    <b>0FISCPER = AK/01/08/2007
    0FISCVARNT = #</b>.
    It works fine on 3.5 templates.We are on SP9.We have a sandbox also and i tested it out in sandbox  and have no problem there.
    Is anyone facing the same issue?
    Regards,
    Shiva

    Not much experience in WAD but I think there should be a query in BEx Query Designer.
    There you can choose that characteristics which takes time. Select "Advanced" tab from right hand side.
    Under "Filter Value Selection During Query Execution"  you will get 4 options.
    BTW if you have a query on DSO then creating index ( secondary) on the affected characteristics would also resolve your problem
    Regards
    Anindya

  • Need to displaye message "User created successfully" after creating user

    Hi,
    I need to display message "User created successfully" after creating a user in OIM i.e after clicking on create user button, thie message should be displayed. Please guide me in this regard.
    Thanks.

    Hi,
    In ideal situation when you create an user and user gets created successfully the user profile page displayed.
    Now, if you want to show your message on top of that then you need to customize the Create User jsp.
    If you want to show new screen with required message then you need to create an custom screen,action class and some modification in struts framework.
    Regards
    Alabhya Goel

  • No rows are loaded after the execution

    Which product and version are you using?
    ans client 9.2.0.2.8 and db 9.2.0.4
    - On which platform and version is it installed?
    windows 2000
    - Is this part of Oracle Applications (i.e. Financials, Inventory, etc.)?
    its part of 9ids. I installed data warehouse in saperate home
    - Has this ever worked correctly? If yes, what has changed?
    No. This is my first project and we are evaluating oracle over other warehouse
    product.
    All is working except the rows are not loaded. Mapping is validated correctly. Deployed successfully, executed successfully from the deployment manager but 0
    rows are loaded. You get a small pop up window after execute of a mapping. Log message
    at the end of the execute shows insert 0, update 0, delete 0 and merged 0.
    The mapping consists of two table operators. One from source table from differenct schema and one for target. There is nothing so complicated here. All I want is
    to copy the data from source to target table through warehouse. My question really what do I need to insert the record? Once the mapping is defined, deployed and executed should not the rows be loaded?
    Everything else is working. Like creation of target tables and so on.
    The source operator properties are bound_name-eqpthist_qtr, primary source-no loading type-Insert.
    The target has bouondname-test, primary source-no, loading type delete/insert.

    after the execution there errors whatsoever. It executes with out any error.
    Its working when I replace the source table with one from the target schema itself. I mean a copied table to target using slqplus. I uses any tables under its schema itself then all the rows are inserted. Its not working when copying/referencing from another source schema. THe target user is given select any table, all object privileges of the source table, even dba role. Still no rows are loaded.
    the target has DBA,CONNECT,RESOURCE,AQ_USER_ROLE, WB_A_VLSIOWRUN, WB_D_VLSIOWRUN, WB_R_VLSIOWRUN, WB_U_VLSIOWRUN, SELECT_CATALOG_ROLE.
    The target has system privs as
    CREATE VIEW
    CREATE TABLE
    ALTER SESSION
    CREATE SESSION
    CREATE SYNONYM
    CREATE TRIGGER
    CREATE ANY TYPE
    CREATE SEQUENCE
    CREATE SNAPSHOT
    CREATE DIMENSION
    CREATE INDEXTYPE
    CREATE PROCEDURE
    SELECT ANY TABLE
    DROP ANY DIRECTORY
    DROP PUBLIC SYNONYM
    CREATE ANY DIRECTORY
    CREATE DATABASE LINK
    GLOBAL QUERY REWRITE
    UNLIMITED TABLESPACE
    CREATE PUBLIC SYNONYM
    SELECT ANY DICTIONARY
    CREATE PUBLIC DATABASE LINK
    and the following privs on the source table as well
    SELECT
    ALTER
    DELETE
    INDEX
    INSERT
    UPDATE
    REFERENCES
    ON COMMIT REFRESH
    QUERY REWRITE
    DEBUG
    FLASHBACK

  • Some character display incorrect after unicode conversion

    Dear Experts,
    Currently we upgrade our SAP system from 4.6B NU to ECC6.0 UN.
    in 4.6B system we had implemented Simple Chinese and French language package to the system. after upgrade to ECC6.0 no-unicode system. we perform a MDMP unicode conversion.currently system running with ECC6.0 unicode interface with language 1EFD. SUMG releated tasks had been finished. Chinese and French language checked OK in ECC6 UN system.
    Our issue is. in the past time. some Spanish local end user typing some spanish character in some master date field when they login in 4.6B GUI choice english as login language.these kind of spanish characters could not display correct in current unicode environment.
    could you please given us some suggestion for how to fix this issue.
    I also sent this message in the Netweaver administrator forums with below links.
    Spanish display incorrect after unicode conversion

    Hello,
    I doubt that the data shown by you in the link was caused by Spanish users logged on in EN.
    I think this was rather caused by utf-8 data uploaded into the Non-Unicode system.
    In this case, you need to repair the according texts manually, I do not know any automatic repair.
    Best regards,
    Nils Buerckel
    SAP AG

  • Failed to display CR after export to PDF in Browser

    Post Author: asnila
    CA Forum: Exporting
    Hi,
    I had a problem to display CR after export to PDF in browser. No message error displayed except the browser is blank.
    Below is the code that i had been used.
    Dim RptFilePath As StringDim RptExportOpt As CrystalDecisions.Shared.ExportOptionsDim ExportLocation As New CrystalDecisions.Shared.DiskFileDestinationOptionsDim ExportPath As StringRptFilePath = "C:\Project\reportPro.rpt"myReport.Refresh()myReport.SetDatabaseLogon("root", "", "localhost", "dbpro")ExportPath = "C:\Project\reportPro.pdf"ExportLocation.DiskFileName = ExportPathRptExportOpt = myReport.ExportOptionsWith RptExportOpt.DestinationOptions = ExportLocation.ExportDestinationType = ExportDestinationType.DiskFile.ExportFormatType = ExportFormatType.PortableDocFormatEnd WithmyReport.Export()Response.ClearContent()Response.ClearHeaders()Response.ContentType = "application/pdf"Response.WriteFile(ExportPath)Response.Flush()Response.Close()MyConnection.Close()
    Fyi, i'm using Crystal Report 10 embedded with VS 2005. Please help me.

    It looks like the 2 DLLs you mentioned, are getting corrupted or modified due to some operation that might have been performed on them. Can you please try the below mentioned instructions and see if that gets your application to install without any errors:
    1. Try installing your business app.
    2. When you see the error message as stated, try running the below mentioned commands: (Start | Run | Type cmd and hit Enter)
        regsvr32 LTKRN11n.dll /i /s
        regsvr32 LTKRN11n.dll /s
        regsvr32 LTDIS11n.dll /i /s
        regsvr32 LTDIS11n.dll /s
    3. The above commands should fix the issues in the mentioned DLLs and allow normal installation of your business app.
    Hope this gets your app to work and install properly.

  • Mac Mini wont' Display Sleep after Yosemite Update

    My Mac Mini is no longer going into Display Sleep. Instead I now see the Screen Saver.  I have checked System Preferences | Energy Saver and it is definitely set to Display Sleep after 10 minutes (The default). What is interesting is that if I try to change the Display Sleep time (e.g. to 1 hour), when I go back into Energy Saver, it is back to 10 minutes - this doesn't look right!  In fact none of the options (e.g. Wake on LAN) seem to stay changed.
    This seemed to start after the update to Yosemite 10.10.1 a few days ago - but that might be coincidental. Until then Display Sleep had worked fine.
    Any suggestions?
    Thanks
    Nick

    This procedure is a diagnostic test. It makes no changes to your data.
    Please triple-click anywhere in the line below on this page to select it:
    defaults read /Library/Preferences/SystemConfiguration/com.apple.PowerManagement | pbcopy
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered.
    The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.
    The Terminal window doesn't show the output. Please don't copy anything from there.

  • Mail stops receiving messages after a period of time

    Every since installing Mavericks my Mail app stops receiving messages after a period of time. I know because I get the email on my phone, but I try to grab them in Mail and nothing. If I restart Mail then they come through.
    I'm using Gmail as my email provider. Is anyone else suffering with this? Is there a work around?

    Workaround or not, this is an annoyance, and that's a nice way of putting it. Coming from Mountain Lion, when Mail was working flawlessly, having to deal with this issue is just plain ridiculous. What happened to the Mail application? I don't understand how Apple could screw this up to badly.
    Every time I restart or reset the connection to the servers, the Mail app is downloading thousands of messages (I can see the display on the bottom-left). I have no idea what it's doing or why, for that matter. If Apple doesn't fix this soon, I will seriously be forced to look for an alternative, which saddens me greatly. I really like Mail, but if it cannot reliably get my mail simply because I've left it open too long, or hidden it behind another window, I will stop using it.
    What's worse is that I've had similar issues with other applications like iPhoto and iTunes. Whatever is happening to Mail is probably not just application-specific. It's probably OS-specific. I hope Apple is working on it and that we will see a major update to Mavericks soon. All I know is that, right now, I'm seriously regretting upgrading to Mavericks.

  • I create trigger but not display massage after insert in oracle 10g

    I create trigger but not display massage after insert in oracle 10g
    **CREATE OR REPLACE TRIGGER TableName**
    **AFTER INSERT OR DELETE OR UPDATE ON test**
    **BEGIN**
    **if inserting then**
    **dbms_output.put('Message');**
    **end if;**
    **END;**

    What user interface are you using?
    If the tool doesn't support the SQL*Plus syntax (set serveroutput on), it probably has an option somewhere to enable DBMS Output. Not even knowing what tool you're using, it's impossible for us to guess where that option might be configured.
    As others have suggested, using DBMS Output to test code is less than ideal because you're dependent on the application you're using to display it to you and not every application can or will do that. If you want to use DBMS_Output, you may need to switch to a different GUI (SQL Developer or SQL*Plus are both free utilities from Oracle). Otherwise, you'd probably be better off having the trigger do something that you can subsequently query (i.e. write a row to a log table).
    Justin

  • Inserting into Table-in-Table after re-execution the Outer Table query

    Hi Gurus,
    I have a problem with inserting into Table-in-Table after re-execution the Outer Table query:
    The problem:
    I have two tables; both tables are based on VO; tables have a VL between them;
    The Inner Table is hidden when page lode.
    I'm executing the Outer Table, open the details to see the Inner Table, I can add rows to the Inner Table. Everything is OK.
    But-
    After I'm executing the Outer Table again –
    Adding new rows to the Inner Table is not work anymore, despite I'm executing the Inner Table RowSet query.
    Scenario is:
    In processRequest():
    In the processRequest() I'm calling executeQuery() of the Outer Table Only.
    (So the Details executeQuery() will be done by VL and Its works fine.)
    In processFormRequest():
    User opens the details to see the Inner Table.
    On some event, I'm executing the Outer Table query.
    On some other event, programmatically I am inserting a new row to the Inner Table, and a new row is displayed in the Inner Table as I wanted.
    In this way, one row after another, I can add as many rows as I wish, without any problem.
    (This scenario should behave as same clicking on button of type "Add-Another-Row", just adding the row automatically)
    The code for the inserting (as specified in the chapter "Classic Tables" --> "table-in-table"):
    OARow newRow = (OARow) innerRowSet.createRow();
    innerRowSet.insertRow(newRow);
    innerRowSet.setRangeSize(innerRowSet.getRangeSize()+ 1);
    innerRowSet.executeQuery();
    If the user won't cause to re-execution of the outer table – no problem occurs.
    * Should I add something after the Outer Table VO execution?
    * Maybe to the inserting to the Inner Table code?
    Please help…

    Hi, Thanks.
    I don't know which one of the Outer Table rows is the current row,
    But-
    Only the Details (the Inner Tables) who where opened before the executeQuery() of the Outer table are not acts as they should.
    All the Details who where closed before the executeQuery() of the Outer table are still works fine.
    Please advise.

  • In trying to install a Flash update on my Mac (version 10.7.5), I'm getting an "unable to install metafile" message after initialization starts (at the 25% point)-regardless of the site from which I download the installation folder.

    In trying to install a Flash update on my Mac (version 10.7.5), I'm getting an "unable to install metafile" message after initialization starts (at the 25% point)—regardless of the site from which I download the installation folder.

    Hello everybody, good news: after upgrading to Mountain Lion 10.8.5 I've been able to run the installer and all went fine.
    Mountain Lion allows user to force execution through the context-menu (CTRL-click) Open command and it does work, just that simple.
    So my advice is: if you want to install or re-install Flash Builder 4.6 on a Mac with Lion installed, upgrade to Mountain Lion or better to avoid problems.
    Apple introduced some (not all) Gatekeeper functionalities in 10.7.3 and following, but apparently you need a full-fledged 10.8 to have also what you need to circumvent a Revoked Certificate error.
    Since usually OS X has auto updating active, if you are running Lion you end up with 10.7.5 and won't install FB46. If you manage somehow to hold 10.7.2 I suppose you should be able to install FB46, sincerely I didn't check it out. Anyway it's simpler and safer to move on to 10.8.x.
    Bye

  • How to block displaying message "Save changes to file 'Test1' " in BEx?

    Hello, dear colleagues!
    Do You know how to block displaying message "Save changes to file 'Test1' " in BEx?
    I need some BEx setting which can block it and make it the same way as You close common Excel workbook without any changes made to it after opening e.g. without any messages, just clicking the cross. 
    Thank You all very much in advance!
    Val
    Edited by: vtb777 on Nov 21, 2011 1:46 PM
    Edited by: vtb777 on Nov 21, 2011 1:50 PM
    Edited by: vtb777 on Nov 21, 2011 1:52 PM

    from time to time i am working with macroses, but they are not good for the report's reliability.
    maybe You have some example of such macros?
    UPDATE:
    I have tried to edit event, called WorkbookBeforeClose in module BExEventHandler, adding there such a line:
    Application.DisplayAlerts = False
    but no result. maybe there are some other ways of solving this problem?
    Edited by: vtb777 on Nov 22, 2011 6:26 AM
    UPDATE-2:
    I got such a code, but it doesn't work:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    If MsgBox("Save changes to file? " & Name, vbYesNo, "") = vbNo Then
       Cancel = True
    End If
    End Sub
    Edited by: vtb777 on Nov 22, 2011 11:07 AM
    Edited by: vtb777 on Nov 22, 2011 11:16 AM
    Edited by: vtb777 on Nov 22, 2011 11:20 AM

Maybe you are looking for

  • How to copy complete internal table into main dababase table

    please tell me how to copy complete internal table into main dababase table by overwriting all the entries of the main DBtable.

  • Nuisance Contact Requests on BBM

    Hi, I have a Curve 8900 and since last night I have been receiving nuisance bbm contact requests which I do not recognise and they do not make any sense. I tried declining them first few but they kept on coming in with different user ids and now I am

  • JButton in a BoxLayout

    A JButton has not the same reaction like a JTextField in a BoxLayout. Why? I need something like this and don't know how: JLabel JButton JLabel JButton The JButtons don't have the same Text, but they must have the same size and the same Difference fr

  • Query to test

    I want to write complex queries to test my knowledge of sql and pl/sql. Is there any online site that provides sample data and sample queries to write or a challenging sql query puzzle. By complex i mean lots of lines of queries. Thanks

  • Making text scalable when exporting to epub

    I've created a digital book in InDesign and I need to know how to make the text scalable on e-readers when I export the file as an epub. Does anyone know how to do this?