In call transaction not catching error regarding Currency?

Hi All sap Gurus,
I am uploading  data using BDC call transaction in the flat file if country is IN it has to accept only INR currency i.e. currency of that particular country but if I gave some different country with wrong currency even though it is accepting that currency. I want to trap that error. I tried a lot but helpless. I ask the help regarding this in SDN but i didn't get helpful answer.
I DEFINE ONE VARIABLE AS CHARACTER ALSO.
Thanks In advance.
Pravin

hi,
in SAP you can post any country - any currency combination (most of the time). You have to code the logic on your own: Country and currency are stored in table T005. Load the data from T005 into an internal table and check with the values from the file. Logically don't post the entries, which don't match!
hope this helps
ec

Similar Messages

  • Hi guys please give me sample code for call transaction that handles error

    hi guys, please give me sample code for call transaction that handles error,
    please send me the sample code in which there should be all decleration part and everything, based on the sample code i will develop my code.
    please do help me as it is urgent.
    thanks and regards.
    prasadnn.

    Hi Prasad,
    Check this code.
    Source Code for BDC using Call Transaction
    *Code used to create BDC
    *& Report  ZBDC_EXAMPLE                                                *
    *& Example BDC program, which updates net price of item 00010 of a     *
    *& particular Purchase order(EBELN).                                   *
    REPORT  ZBDC_EXAMPLE  NO STANDARD PAGE HEADING
                          LINE-SIZE 132.
    Data declaration
    TABLES: ekko, ekpo.
    TYPES: BEGIN OF t_ekko,
        ebeln TYPE ekko-ebeln,
        waers TYPE ekko-waers,
        netpr TYPE ekpo-netpr,
        err_msg(73) TYPE c,
    END OF t_ekko.
    DATA: it_ekko  TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko  TYPE t_ekko,
          it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_error TYPE t_ekko,
          it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_success TYPE t_ekko.
    DATA: w_textout            LIKE t100-text.
    DATA: gd_update TYPE i,
          gd_lines TYPE i.
    *Used to store BDC data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Used to stores error information from CALL TRANSACTION Function Module
    DATA: BEGIN OF messtab OCCURS 0.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF messtab.
    *Screen declaration
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                        TITLE text-001. "Purchase order Num
    SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
                                        TITLE text-002. "New NETPR value
    PARAMETERS:  p_newpr(14)   TYPE c obligatory.  "LIKE ekpo-netpr.
    SELECTION-SCREEN END OF BLOCK block2.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Retrieve data from Purchase order table(EKKO)
      SELECT ekkoebeln ekkowaers ekpo~netpr
        INTO TABLE it_ekko
        FROM ekko AS ekko INNER JOIN ekpo AS ekpo
          ON ekpoebeln EQ ekkoebeln
       WHERE ekko~ebeln IN so_ebeln AND
             ekpo~ebelp EQ '10'.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Check data has been retrieved ready for processing
      DESCRIBE TABLE it_ekko LINES gd_lines.
      IF gd_lines LE 0.
      Display message if no data has been retrieved
        MESSAGE i003(zp) WITH 'No Records Found'(001).
        LEAVE TO SCREEN 0.
      ELSE.
      Update Customer master data (instalment text)
        LOOP AT it_ekko INTO wa_ekko.
          PERFORM bdc_update.
        ENDLOOP.
      Display message confirming number of records updated
        IF gd_update GT 1.
          MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
        ELSE.
          MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
        ENDIF.
    Display Success Report
      Check Success table
        DESCRIBE TABLE it_success LINES gd_lines.
        IF gd_lines GT 0.
        Display result report column headings
          PERFORM display_column_headings.
        Display result report
          PERFORM display_report.
        ENDIF.
    Display Error Report
      Check errors table
        DESCRIBE TABLE it_error LINES gd_lines.
      If errors exist then display errors report
        IF gd_lines GT 0.
        Display errors report
          PERFORM display_error_headings.
          PERFORM display_error_report.
        ENDIF.
      ENDIF.
    *&      Form  DISPLAY_COLUMN_HEADINGS
          Display column headings
    FORM display_column_headings.
      WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
      SKIP.
      WRITE:2 'The following records updated successfully:'(013).
      WRITE:/ sy-uline(42).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(004), sy-vline,
              (11) 'Old Netpr'(005), sy-vline,
              (11) 'New Netpr'(006), sy-vline.
      WRITE:/ sy-uline(42).
    ENDFORM.                    " DISPLAY_COLUMN_HEADINGS
    *&      Form  BDC_UPDATE
          Populate BDC table and call transaction ME22
    FORM bdc_update.
      PERFORM dynpro USING:
          'X'   'SAPMM06E'        '0105',
          ' '   'BDC_CURSOR'      'RM06E-BSTNR',
          ' '   'RM06E-BSTNR'     wa_ekko-ebeln,
          ' '   'BDC_OKCODE'      '/00',                      "OK code
          'X'   'SAPMM06E'        '0120',
          ' '   'BDC_CURSOR'      'EKPO-NETPR(01)',
          ' '   'EKPO-NETPR(01)'  p_newpr,
          ' '   'BDC_OKCODE'      '=BU'.                      "OK code
    Call transaction to update customer instalment text
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
             MESSAGES INTO messtab.
    Check if update was succesful
      IF sy-subrc EQ 0.
        ADD 1 TO gd_update.
        APPEND wa_ekko TO it_success.
      ELSE.
      Retrieve error messages displayed during BDC update
        LOOP AT messtab WHERE msgtyp = 'E'.
        Builds actual message based on info returned from Call transaction
          CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                    msgid               = messtab-msgid
                    msgnr               = messtab-msgnr
                    msgv1               = messtab-msgv1
                    msgv2               = messtab-msgv2
                    msgv3               = messtab-msgv3
                    msgv4               = messtab-msgv4
               IMPORTING
                    message_text_output = w_textout.
        ENDLOOP.
      Build error table ready for output
        wa_error = wa_ekko.
        wa_error-err_msg = w_textout.
        APPEND wa_error TO it_error.
        CLEAR: wa_error.
      ENDIF.
    Clear bdc date table
      CLEAR: bdc_tab.
      REFRESH: bdc_tab.
    ENDFORM.                    " BDC_UPDATE
          FORM DYNPRO                                                   *
          stores values to bdc table                                    *
    -->  DYNBEGIN                                                      *
    -->  NAME                                                          *
    -->  VALUE                                                         *
    FORM dynpro USING    dynbegin name value.
      IF dynbegin = 'X'.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-program,
               value TO bdc_tab-dynpro,
               'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-fnam,
               value TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    ENDFORM.                               " DYNPRO
    *&      Form  DISPLAY_REPORT
          Display Report
    FORM display_report.
      FORMAT COLOR COL_NORMAL.
    Loop at data table
      LOOP AT it_success INTO wa_success.
        WRITE:/      sy-vline,
                (10) wa_success-ebeln, sy-vline,
                (11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
                (11) p_newpr, sy-vline.
        CLEAR: wa_success.
      ENDLOOP.
      WRITE:/ sy-uline(42).
      REFRESH: it_success.
      FORMAT COLOR COL_BACKGROUND.
    ENDFORM.                    " DISPLAY_REPORT
    *&      Form  DISPLAY_ERROR_REPORT
          Display error report data
    FORM display_error_report.
      LOOP AT it_error INTO wa_error.
        WRITE:/      sy-vline,
                (10) wa_error-ebeln, sy-vline,
                (11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
                (73) wa_error-err_msg, sy-vline.
      ENDLOOP.
      WRITE:/ sy-uline(104).
      REFRESH: it_error.
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  DISPLAY_ERROR_HEADINGS
          Display error report headings
    FORM display_error_headings.
      SKIP.
      WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
      SKIP.
      WRITE:2 'The following records failed during update:'(008).
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(009), sy-vline,
              (11) 'Netpr'(010), sy-vline,
              (73) 'Error Message'(012), sy-vline.
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_NORMAL.
    ENDFORM.                    " DISPLAY_ERROR_HEADINGS
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Posting_illegal_statement, call transaction not allowed

    Hi everybody !
    I'm trying to create an order and then an invoice automatically when a first invoice is saved. For that, I've got an output type in VF01 which performs special function (8). This calls my program where I used two call transactions.
    I've got the error 'POSTING_ILLEGAL_STATEMENT', with the message 'call transaction not allowed'.
    I saw that the same question has been asked in this forum (messageID=876563), but it is still marked as 'not answered'...
    Also, someone proposed to "not use 4-immediate processing. Create an event, using tcode SM62. Raise it in your code in the special function using BP_RAISE_EVENT.
    Define a job to be triggered, after the event is raised and do all that you want to do in the job."
    If I don't use 4-immediate processing, which one is better to use to process VA01 immediatly after saving the billing document ?
    Then, if I create a job, as it is executed in background, I don't know how to debug it and which data I can access in the program called by the job. To create the order, I need the vbeln of the billing document just created. How can I have it ? Does the table nast contain it at this moment?
    Thanks in advance !
    Emilie

    Hi Nicole,
    Here's the coding of the call function :
      CALL FUNCTION 'BP_EVENT_RAISE'
        EXPORTING
          eventid                      = 'ZEVENT_FACT_TRIANG_AUTO'
    *   EVENTPARM                    = ' '
    *   TARGET_INSTANCE              = ' '
       EXCEPTIONS
         bad_eventid                  = 1
         eventid_does_not_exist       = 2
         eventid_missing              = 3
         raise_failed                 = 4
         OTHERS                       = 5
    Regards,
    Emilie

  • A Start Doc Print call was not issued - error appears

    Hi
    HP M1136 MFP used on windows Vista for over one year. Software reloaded using HP-CD supplied. Now "A Start Doc Print call was not issued" - error appears whenever print command from MS-Word, Excel or DF or even notepad is given

    rrhp,
    Welcome to the HP Forum.
    You might wish to remove (from Programs and Features) and then reinstall your Full Feature Software:
    HP LaserJet Pro M1136 Multifunction Printer Drivers
    Find the Full Feature Software in Category "Driver - Software Installation Software"
    Restart / Reboot the computer after the software installation is complete
    Next, if you have not done so, take a look at the Firmware Update for your printer; check Category "Firmware".
    NOTE:  You will want to install the Software first, then perform the firmware update on the printer.
    Finally:  If you like, you can update / check the tools in Category "Utility - Diagnostic Tools"
    Hope this helps.
    Click the Kudos Star!
    It is a great “Thank You” for the Experts who offer to help!
    Kind Regards,
    Dragon-Fur

  • Capturing "transaction not found" errors ...

    Is there any way of catching the error when a transaction is not found and has been called?.
    I've tried a number of things but it does not look possible. The path I'm currently looking at is to check whether the transaction exists (Table TSTC) before the CALL is made, then and only then call the transaction. This sort of gets around the issue. In theory I know this should never happen, but as the menu system currently in place calls transactions and in some cases there are entries for apps that have not yet been created yet and hence have no transaction code yet. The method that I've mentioned will allow a polite message to "transaction does not exist" and avoid short-dumping.
    I am surprised that I've never had to do this before and even more surprised that it's not intuitive to capture these errors. Unless anyone know differently.

    Hi,
    I usually do what you've mentioned ... check to see if the tcode exists in table TSTC. In addition, I like to determine if the user has authorization for the transaction. FM 'AUTHORITY_CHECK_TCODE' serves this purpose well.
    Hope this helps ...
    Reward if helpfull...
    Cheers,
    Sundar.

  • FB05 CALL TRANSACTION BACKGROUND MODE ERROR

    Hi Experts,
                     I have a recording for FB05 transaction and I using call transaction to run it ..problem is its running fine in Foreground and not in background ...I am getting an error in screen..
    NO BATCH INPUT DATA FOR SCREEN SAPMF05A 0710 
    Actually I know the reason that is that screen has Additional selections in which I have to select the radio-button for Document number as by default always None would be selected. How to achieve this ?? Its urgent please...
    Full points will be rewarded for helpfull answer's..
    Raghav

    Hi,
    Waht ever you want to do do it manually.
    EX;
    Say you are unalbe to record radion button click.
    In your program read recording code  carefully and get confirm where to add your code. Now on your tcode(FB05)  click on F1 help and get the screen field name .Ex: T041T-AUGLT  pass thsi to below perform
    This is to put cursor on radio button
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                         'T041T-AUGLT'.
    This to check
    PERFORM bdc_field       USING 'ITOB-INVNR'
                                          'X'.
    In above code you can write conditions ,like  based on some conditons particular radio button has to check.
    Pls. reward if useful....

  • CALL Transaction 'MIRO' return error messages in MESSTAB

    Dear All,
    We have created a test function module to call transaction 'MIRO', the function works fine on one server but the same give error messages on other server.
    The messages returned by call transaction is as follows
    ======================================================
    Messages retunrned by 'CALL Transaction MIRO' as on server I (success)
    ======================================================
    1 MIRO SAPLMR1M 6000 I E F5 096 1,002,010.00 INR Advance to Vendors CTU
    2 MIRO SAPLMR1M 6000 S E F5A 034 BusA CTU
    3 MIRO SAPLMR1M 6000 S E M8 060 5200000423 CTU
    ======================================================
    Messages retunrned by 'CALL Transaction MIRO' as on server II (error)
    ======================================================
    1 MIRO SAPLMR1M 6000 S E F5 480 RE Doc. Header Text CTU
    2 MIRO SAPLMR1M 6000 I E M8 584 CTU
    3 MIRO SAPLMR1M 6000 S E F5 480 RE Doc. Header Text CTU
    4 MIRO SAPLMR1M 6000 S E 7Q 333 1008473 CTU
    5 MIRO SAPLMR1M 6000 E E F5 480 RE Doc. Header Text CTU
    In fact, when the MIRO screen is displayed to user and user enter the data in MIRO and simulate, there is no error.
    But when we post the transaction the screen is exited without displaying the invoice document number.
    Where as if we call MIRO directly, it works fine without any error.
    Kindly help.
    Regards
    Ruhi Hira

    The sample code is
    FUNCTION Z_TEST_MIRO.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(ERRCODE) TYPE  N
    *"     REFERENCE(INVOICENUMBER) TYPE  C
    *"     REFERENCE(OLDINVOICENUMBER) TYPE  C
        DATA: BEGIN OF tran_opts,
            dismode   TYPE ctu_params-dismode VALUE 'A',
            updmode   TYPE ctu_params-updmode VALUE 'S',
            cattmode  TYPE ctu_params-cattmode,
            defsize   TYPE ctu_params-defsize ,
            racommit  TYPE ctu_params-racommit,
            nobinpt   TYPE ctu_params-nobinpt VALUE 'X',
            nobiend   TYPE ctu_params-nobiend,
        END OF tran_opts.
        DATA: BEGIN OF MESSTAB OCCURS 10.
            INCLUDE STRUCTURE BDCMSGCOLL.
        DATA: END OF MESSTAB.
        ERRCODE = 0.
        GET PARAMETER ID 'RBN' FIELD OldInvoiceNumber.
        DATA BEGIN OF BDCDATA OCCURS 1.
            INCLUDE STRUCTURE BDCDATA.
        DATA END OF BDCDATA.
        CALL TRANSACTION 'MIRO' USING BDCDATA OPTIONS FROM tran_opts MESSAGES INTO MESSTAB.
        LOOP AT MESSTAB.
            WRITE: / MESSTAB-TCODE,
            MESSTAB-DYNAME,
            MESSTAB-DYNUMB,
            MESSTAB-MSGTYP,
            MESSTAB-MSGSPRA,
            MESSTAB-MSGID,
            MESSTAB-MSGNR,
            MESSTAB-msgv1,
            MESSTAB-msgv2,
            MESSTAB-msgv3,
            MESSTAB-msgv4.
            IF MESSTAB-MSGTYP = 'S' AND MESSTAB-msgid = 'M8' AND MESSTAB-msgnr = '060'.
                invoicenumber = messtab-msgv1.
            ENDIF.
        ENDLOOP.
        IF OldInvoiceNumber = InvoiceNumber OR InvoiceNumber IS INITIAL.
            ERRCODE = 1.
        ELSE.
            ERRCODE = 0.
        ENDIF.
        REFRESH BDCDATA.
    ENDFUNCTION.

  • Hi all, BDC call transaction METHOD, trapping ERRORS

    hi
    i have developed BDC (recording via call transaction method) for VB01. 
    could u please tell me how to display records having errors after running recording or to give index of records having errors.
    and is it possible to give transaction code for recording since my bdc is executable program.
    plase answer both the questions.
    thanx

    Here is the flow that Raja is explaining to you.
    DATA: v_index LIKE sy-tabix.
    LOOP AT itab.
      v_index = sy-tabix.
    *-- prepare the BDC data
      CALL TRANSACTION 'VB01' USING bdcdata
                               MODE 'N'
                              MESSAGES INTO bdcmsgcoll.
      READ TABLE bdcmsgcoll WITH KEY msgtyp = 'E'.
      IF sy-subrc = 0.
    *-- Error occured for the record with index <b>v_index</b>
      ELSE.
    *-- unless there is a success message with this number,
    *   it is not succesfull because 'No data for screen xxx'
    *   will not show up as an error message type, but will be
    *  a success message type
        READ TABLE bdcmsgcoll WITH KEY msgnr = '312'.
        IF sy-subrc = 0.
    *-- success
        ELSE.
    *-- error with index <b>v_index</b>
        ENDIF.
      ENDIF.
    ENDLOOP.
    As you can see, now you have the index of the record where the error occured. Now this will become complicated if you are combining several records into one transaction call. In that case you need to find how you can know all the records that you just accumulated.
    As an example, let us say you have an internal table with external number, customer, material, quantity and at every new external number, you want to create a sales order. Until you get a new external number, you will not do the call transaction because until then it will be items of the same sales order. So in this case, after the call transaction, you will have get all the records that belong to making this sales order by using the external number and then prepare your messages.
    I hope this is clear.
    Srinivas
    Message was edited by: Srinivas Adavi

  • Call Transaction not executing in Function Module

    Hi,
    I am sending an IDoc from non SAP system to SAP system,IDoc calls(Inbound Process Code) Function Module in which i wrote BDC code.i found that it is not calling Call Transaction  but when i test the same IDoc from WE19 it executes perfectly and update data in database.
    And for this communication i dont have any other option then BDC.
    Suggest me what to do
    RP

    1.Check for leading zeros for key fields like material number, vendor number etc .
    2. make use of wrappers. check the below link:
    https://www.sdn.sap.com/irj/go/km/docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/bapi_wrapper_types.html

  • Changes to an order through Call Transaction not showing up in change log

    I m having a problem such that if I update an order programmatically with Call Transaction u2018VA02u2019, the order does get updated updated but I donu2019t see the changes in the change log. I m only updating the order quantities. However if I update the same order quantities manually by going to TCode VA02. The changes do get shown in the change log from the Environment u2013> Changes menu. Can you please help.
    Following is the simple recorded code.
    PERFORM bdc_dynpro      USING 'SAPMV45A' '0102'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'VBAK-VBELN'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'VBAK-VBELN'
                                  '10655'.
    PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=POPO'.
    PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
    PERFORM bdc_field  USING 'BDC_CURSOR'  'RV45A-POSNR'.
    PERFORM bdc_field  USING 'BDC_OKCODE'  '=POSI'.
    PERFORM bdc_field  USING 'RV45A-POSNR'  '10'.
         PERFORM bdc_field       USING 'BDC_CURSOR'
                                       v_rowid.
    PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=SICH'.
    PERFORM bdc_field  USING 'BDC_CURSOR'  'RV45A-KWMENG(01)'.
    PERFORM bdc_field       USING 'RV45A-KWMENG(01)'
                                   '7'.
    PERFORM bdc_dynpro      USING 'SAPLSPO2' '0101'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=OPT1'.
    CALL TRANSACTION 'VA02'
                     USING t_bdcdata
                     MODE   'A'
                     MESSAGES INTO t_messtab.
    COMMIT WORK AND WAIT.
    IF sy-subrc NE 0.
    ENDIF.

    Could not find answer

  • Call transaction system lock error

    Hi friends,
    i am uploading data to some transaction using call transaction method with synchronus update.
    when i schedule the same program as 2 jobs in the back ground (splitting the file in to 2) most of the records are failed with the error 'SYSTEM_LOCK'.....
    any suggession on this? thanks

    That would depend on a number of factors - the transaction you are using, your hardware platform and other system activity while the load is going on. So no, I can't tell you how long this will take.
    But if you load say 1,000 records into your QA system (and multiply by 100), this should give you a rough idea of how long. The Production load will take more or less time depending on hardware and system usage.
    Rob

  • TransactionScope persists causing linked server transaction not supported error

    I have code similar to the following. And on the second pass it throws an error (after the first TransactionScope has been created and destroyed.) The code is being executed by a unit test.
    The requested operation could not be performed because OLE DB provider "MSDASQL" for linked server "SERVER2" does not support the required transaction interface.
    void StartProcess(string[] accountNames)
    try
    foreach (string accountName in accountNames)
    // This fails on the 2nd account name with error above
    DataSet dataSet = GetDataFromLinkedServer(); // System.Transactions.Transaction.Current at this point on the 2nd pass has a null value.
    InsertData(dataSet);
    catch (Exception ex)
    DataSet GetDataFromLinkedServer(string accountName)
    try
    { // I have tried to execute this with and without the scope to suppress the transaction
    using (var scope = new System.Transactions.TransactionScope(System.Transactions.TransactionScopeOption.Suppress))
    // open connection
    // execute dataset query via OpenQuery to linked server
    // via 'Microsoft.Practices.EnterpriseLibrary.Data' scope.Complete()
    // return dataset
    catch (SqlException sqlEx)
    int InsertDataInto(DataSet dataSet)
    using (var scope = new System.Transactions.TransactionScope())
    foreach (DataRow row in dataSet.Rows)
    // insert row into database
    scope.Complete();

    Hi mangomadness,
    Thank you for posting in the MSDN forum.
    I know that it is the unit test project, but based on your description, the real issue would be related to the ADO.NET dataset, am I right?
    If so, I suggest you debug your test, and then get the line code which generated this issue, and then post this issue to the dataset forum here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetdataset
    I think you would get dedicated support from the experts who familiar with the dataset.
    Sincerely,
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Call transaction - not skipping first screen until browser window maximized

    I've had a search on the forum for this but have not been able to find an answer. I'm calling an SAP transaction from a Web Dynpro application, passing over a document number and asking it to skip the first screen, as follows:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=MIR4  RBKP-BELNR=5105600751' '&DYNP_OKCODE=SHOW'
    into url.
    This pops up the transaction in the new window with the document number (hard-coded above while I'm testing this out) but doesn't immidiately skip the the first screen. The browser window opens at a reduced size and as soon as as I maximize it (not pressing enter or doing anything else), that's when it jumps through to the detail screen. A little strange.
    Does anyone have any ideas why it's doing this and what I can do to correct it ?
    thanks,
    Malcolm.

    this is now resolved. My call to the transaction was slightly incorrect. This is now the working code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=*MIR4 RBKP-BELNR=5105600751' ';DYNP_OKCODE=SHOW'
    into url.

  • WHEN OTHERS not catching error

    I have the following SQL script:
    WHENEVER SQLERROR EXIT FAILURE
    SET VERIFY OFF
    DECLARE
    error_notes VARCHAR2(500);
    BEGIN
    process_test('TX', '&1');
    EXCEPTION
    WHEN OTHERS THEN
    log_error (
    SQLCODE,
    SUBSTR(SQLERRM, 1,150),
    SUBSTR(SQLERRM,151,150),
    error_notes);
    COMMIT;
    END;
    EXIT;
    This script is executed from a Unix command line SQLPLUS uid/pwd@SID @scriptname.sql. The catch is that I am trying to test my exception handling. To test the error I have intentionally renamed a table that the PL/SQL procedure 'process_test' is based on, so that it shows up as invalid. The failure is detected by the WHENEVER and the Unix status gets set to 1 so that the Unix end of the error trap operates fine. The problem is that there is nothing inserted into the error_log table. Is it that the WHENEVER clause at the top (there to propogate the error out to Unix) is causing the control to drop out of the block immediately after the error occurs so that my exception handler is not allowed to run? I need it in there to send the fail code out to Unix. The process in question is loading some tables with data from external tables, and after it loads a file it deletes it. I want to stop the deletion from occurring if the load didn't happen. The part is actually working, but it's not logging the error in the error table. Here's the error message, it if helps:
    process_test('TX', '/home/datatest/trans005.dat');
    ERROR at line 7:
    ORA-06550: line 7, column 5:
    PLS-00905: object OUTB.PROCESS_TEST is invalid
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored
    Shouldn't this get caught by the WHEN OTHERS and dealt with before it exits the block, or is the WHENEVER SQLERROR clause causing control to move out of the block before the exception handler runs?

    Oh. Well, this SQL script executed a procedure that was invalid. Yes, it did show as invalid in PL/SQL Dev as soon as I changed the table name. I'm actually a big fan of packages and such. I was trying to think of a way to force an error in what is basically a simple system. There's not a lot of places for it to be broken. I can see now that I need to find a better place to break it. This way isn't allowing the PL/SQL exception handlers to be tested.
    The script itself is to be executed by a CRON job in Unix to fire off the file extracts. It's driven from Unix because we need to loop through a bunch of Unix file names. It creates a symbolic link so we can use External Tables to do the data extracts from the flat files, then it deletes the source file and moves on to the next one. The error trap is to stop the deletion of the source file if anything went wrong, so the file is still there for the next pass to load it. (Theoretically, once any errors have been corrected...)

  • Movie "Margin Call" will not download error 8008 or -50. all other movies and music will download without a problem.

    any ideas? i've tried shutting down the AV and Apple firewall with no luck.

    The mystery remains....
    Thanks for the pointers. The file type is .mts (a proprietry sony one).
    I have now found some video converter software (Wondershare and iSkysoft) at a cost. Either will convert this file for me into .mp4. This I can then import into iMovie without any problems. I've checked this on the trial versions and it worked well but without paying am left with a giant watermark in the video
    The mystery (which I still havent solved) is why did 20 other .mts files import fine and then this one not?
    If you could point me in the direction of some free .mts converter software that would be the cherry on the cake.
    Thanks

Maybe you are looking for