Multiple transactions

Hey ppl,
I have a major problem with transactions. Im doing a DBMS with my application connecting to MS Access2000.
The problem ive got is that i cant execute more than one transaction. For example, if my gui has 2 buttons, and both execute a transcation each when pressed. If the first button is pressed, the appropriate transaction is executed properly. However, if i then press the second button straight after, its transaction is rolled back. im using the transaction isolation level TRANSACTION_READ_COMMITTED. Ive enabled and disabled auto commit mode appropriately and called the rollback methods. I just cant figure out whats going wrong.
PLZ COULD SUM1 GIV ME SOME SUGGESSTIONS!!! PLZ!!!!! ITS URGENT!!! THANKS!!!!

You start each transaction in its own connection,
don't you?
What's irritating me is, that you mean with
"Ive enabled and disabled auto commit mode
appropriately and called the rollback methods."
To do a transaction inside a connection, you must set
AutoCommit to false only once.
When do you rollback the transaction, and what shall
this help, after a locking conflict has happened?
What I can tell you about the reason - without seeing
any piece of code:
In isolation level TRANSACTION_READ_COMMITTED you get
a conflict if the first transaction has changed a row
and the second transaction tries to read it, before
the first transaction has committed it.Hey hartmut thanks for the reply. Here's some code which i thought might help clarify my problem.
The following code fragment is in a button listener:
try{
connect.setAutoCommit(false);
stmt.executeUpdate("insert into EMPLOYEES values (('"+forenameField.getText()+"'), ('"+surnameField.getText()+"'), ('"+add1Field.getText()+"'), ('"+add2Field.getText()+"'), ('"+cityField.getText()+"'), ('"+pcodeField.getText()+"'), ('"+telephoneField.getText()+"'), ('"+emailField.getText()+"'), ('"+usernameField.getText()+"'), ('"+passwordField.getText()+"'))");
stmt.executeUpdate("insert into WORK values (('"+usernameField.getText()+"'), 'None', 0, 0, 'Level 0', 'Day Off', 'Day Off', 'Day Off', 'Day Off', 'Day Off', 'Day Off', 'Day Off')");
stmt.executeUpdate("insert into HOURS values (('"+usernameField.getText()+"'), 0)");
connect.commit();
connect.setAutoCommit(true);
catch(SQLException sql){
try{
connect.rollback();
}catch(SQLException sqle){}
And the following fragment is in the listener for a different button:
try{
connect.setAutoCommit(false);
stmt.executeUpdate("delete from EMPLOYEES where USERNAME = ('"+usernameField.getText()+"')");
stmt.executeUpdate("delete from WORK where USERNAME = ('"+usernameField.getText()+"')");
stmt.executeUpdate("delete from HOURS where USERNAME = ('"+usernameField.getText()+"')");
connect.commit();
connect.setAutoCommit(true);
catch(SQLException sql){
try{
connect.rollback();
}catch(SQLException sqlex){}
I hope you might be able to see whats going wrong.
Sorry for the code not being too clear.
Thanks in advance.

Similar Messages

  • Advice needed on designing schema to accomodate multiple transaction tables.

    Hi,
    The attached images shows my current schema. It consists of three transaction tables, a product table and a calendar table.
    - Background -
    The product table 'Q1 Data Set' contains all unique sales. In addition it also contains a number of columns by which I will later filter my pivot tables (e.g. whether the customer of the order is new/returning). This
    table also contains a column named 'DateOrdered',the date the order was originally placed (but not paid). 
    Each sale that is paid can be done so either in a single transaction, or across multiple transactions of different transaction types.
    An example of a sale  paid in multiple parts would be an order that has three transactions;
    one online (table 'trans_sagepay',
    one over the phone (table'trans_epdq')
    and another by card (table'trans_manual'). Furthermore there can be more than one transaction of each type for an sale.
    I have created measures which total the sales in each transaction table.
    Each transaction has a 'transaction_date' which is the date of that individual transaction.
    The calendar is simply a date table that has some friendly formatted columns for laying out pivot tables. An example column
    is FiscalMonthAbbrv which displays months similar to '(04) - January'
    to accommodate our fiscal year.
    - Problem -
    My problem is that I need the ability to create some tables that have the
    Date Ordered as the rows (listed by Year>Month), and I need to produce other tables that have
    Transaction Date as the rows.  
    Date ordered works fine, however the problem comes when I try and create a table based on the transaction date.
    With the current model seen in the attached image I cannot do it because the transactions have a relationship to
    Q1 Data Set and this table has the relationship with the
    Cal_Trans table. What happens in this scenario is that whenever I set the rows to be FiscalMonthAbbr  the values it displays is the transactions based not on transaction date but date ordered. To explain further:
    If I have an order A with a DateOrdered of 01/01/2014, but the transaction of £100 for that order was made later on the 05/01/2014, that £100 is incorrectly attributed to the 01/01/2014.
    To clarify the type of table I am aiming for see the mock-up below, I however NEED the ability to filter this table using columns found in
    Q1 Data Set.
    How can I make a schema so that I can use both DateOrdered and TransactionDate? I cannot combine all three transaction tables into one because each transaction type has columns unique to that specific type.

    Thanks for your suggestions, at the moment I don't have time to prepare a non-confidential copy of the data model, however I've taken one step forward, and one step back!
    First to clarify; to calculate sales of each transaction type I have created the following measures (I've given them friendly names):
    rev_cash
    rev_online
    rev_phone
    I then have a measure called rev_total which sums together the above measures. This allows me to calculate total revenue, but also to break it down by transaction type.
    With this in mind I revised the schema based on Visakh original suggestion to look like this:
    Using this I was able to produce a table which looked like that below:
    There were two issues with this:
    If I add the individual measures for each transaction type I get no errors, as soon as I add the 'Total Sales' measure on the end of the table I get an error "Relationship between tables may be needed". Seemingly however the numbers still calculate as expected
    - what is causing this error and how do I remove it?
    I CAN with this scenario filter by 'phd' which is a column in the Q1 Data Set table
    and it works as expected. I cannot however filter by all columns in this table, an example would be 'word count'.
    'Word Count' is a integer column, each record in the Q1 Data Set table has a value set for this column.
    I would like to take the column above and add a new measure called 'Total Word Count' (which I have created) which will calculate the total number of words in that monthly period. When I add this however I get the same relationship error as above and it
    display the word count total for the entire source tbale for every row of the pivot table.
    How can I get this schema working so that I can filter by word count and other columns from the product table. It Is confusing me how I can filter by one column, but not by a another in the same table.
    Also, I don't fully understand how I would add a second date table or how it would help my issues.
    Thanks very much for you help.

  • Multiple Transaction with Fully Rolled Back

    Hi there,
    I've the scenario for a project that require multiple transaction as a subsequent process. I'll have one RFC Function Module that wrap multiple BAPI inside there. This RFC will be publish as a webservice and will be consumed by .NET application.
    The problem that I've, the subsequent process will depend each other. For the example : Create SO, Purch Requisition, and with Reference to PR, I need to create the PO. So I need to commit the transaction for Sales Order creation before I can't continue to create the purchase order.
    If there is a problem during the creation of PO, the Sales Order already committed to the database and I can't roll it back.
    Any suggest, how I can handle this situation with concept of Complete the whole transaction and not at all if there is an error for one of the transaction.
    Thanks in advance for any help.
    Cheers,
    Danny

    Hi Danny,
    Unfortunately this is the only option for you because you cannot rollback after you commit to the database. The other option would be to trigger Check BAPIs or BAPIs with test mode = 'X'....but that will be a problem for e.g. if you want to create a PO with reference to a PR created in the earlier step. If you can omit the part of creating with reference, then I think this is possible by first triggering BAPIs in test mode for all the documents that have to be created - if the whole chain is successful then you trigger BAPIs in update mode to post the docs (Commit) or else exit the process. Hope it made sense.
    Cheers,
    Sougata.

  • How to handle multiple transaction in session method.

    hi experts.
    please tell me how to<b> write code for multiple transaction</b> in session methods.
    Quest.  -de<b>another question is exactly which method we have to follow , how to</b>decide.
    what r the conditions for selecting which method is suitable for which type of
    transaction.

    hi,
    if you have run time validation while updating the data into SAP R/3 Transaction,then use BDC Call Transaction.
    example : when you load the data into Sales order then you need to load the into Header text of sales order.
    for this ,you have to use Update Mode 'S'.
    it is online update and if you small amount of data ,then prefer this one
    2. If you have huge amount of data and then prefer Session Method.
    we have one more advantage in session method...
    suppose file has 1,00,000 records and the if you use all the records at time,then you will get short dump like system time exceed .
    then you can split the each 10,000 records into one session and will process.
    3. Direct Input method : we prefer this method only few Transaction ,
    this will not applicable to when system has customer fields .
    for session method using multiple transactions.
    Have one BDC_OPEN_GROUP, multiple BDC_INSERT s and one BDC_CLOSE_GROUP.
    You should have multiple BDC_INSERT s for multiple transactions.
    call function BDC_OPENGROUP.
    Build BDC data and cal lBDC_INSERT for transaction 1
    Build BDC data and cal lBDC_INSERT for transaction 2
    Build BDC data and cal lBDC_INSERT for transaction 3
    paas the tcodes to bdc_insert.
    call function BDC_CLOSE_GROUP.

  • Multiple transactions in Call Transactions

    Hi All,
      Can i use the below code to do multiple transactions in call transaction using the Below code.
    Call Transction for XK01 using BDCDATA1
    Call Transction for MM01 using BDCDATA2
    Call Transction for VA01 using BDCDATA3
    Please advise.
    Regards
    Krishna

    Hi
    Try the following code....
    LOOP AT ITAB1.
    < your statements here to append the rows to internal table BDCDATA1>.
    Call Transction 'XK01' using BDCDATA1.
    ENDLOOP.
    LOOP AT ITAB2.
    < your statements here to append the rows to internal table BDCDATA2>.
    Call Transction 'MM01' using BDCDATA2.
    ENDLOOP.
    LOOP AT ITAB3.
    < your statements here to append the rows to internal table BDCDATA3>.
    Call Transction 'VA01' using BDCDATA3.
    ENDLOOP.
    Hope this would help you.
    Murthy
    Edited by: Kalyanam Seetha Rama Murthy on Jul 28, 2008 6:16 AM

  • How to use multiple transactions

    hi experts,
    1.how to handle multiple transactions in call transaction and session method.
    2.is it possible to handle multiple transactions in call transaction method.
    3.can plz send how handle multiple transactions in session method.
    thanks in addvance

    hi,
    Go through this program.
    REPORT zra_gl_cr NO STANDARD PAGE HEADING LINE-SIZE 255.
    TYPE-POOLS: truxs.
    DATA: it_raw TYPE truxs_t_text_data.
    DATA:messtab1 LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA:messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF i_mess OCCURS 0,
    l_mstring(480),
    msgnr(5),
    msgv1(15),
    END OF i_mess.
    DATA:i_mess1 LIKE i_mess OCCURS 0 WITH HEADER LINE.
    DATA: l_mstring(480),l_mstring1(480).
    DATA: BEGIN OF it_itab OCCURS 0,
    saknr(10), "G/L a/c number.
    bukrs(4), "Company Code.
    ktoks(4), "G/L a/c group.
    xplacct(1), "P&L statement account.
    xbilk(1), "Balance sheet account.
    txt20_ml(20), "G/L a/c short text.
    txt50_ml(50), "G/L a/c long text.
    waers(5), "Account currency.
    MWSKZ(2),
    mitkz(1), "Reconciliation a/c for a/c type.
    xopvw(1), "Open item management
    xkres(1), "Line item display.
    zuawa(3), "Sort Key.
    fstag(4), "Field status group.
    xintb(1), "Post automatically only.
    hbkid(5), "House bank.
    hktid(5), "Account id.
    vzskz(2), "Interest indicator
    END OF it_itab.
    DATA: hdate LIKE sy-datum.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(15) text-103. " FOR FIELD P_FILE1.
    SELECTION-SCREEN POSITION 25.
    PARAMETERS : p_file1 LIKE rlgrap-filename.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
    Perform file_selection will help to select the location of the file
    PERFORM file_selection.
    START-OF-SELECTION.
    Perform data_upload will help to upload the data from the flat file
    to the internal table.
    PERFORM data_upload.
    PERFORM open_group.
    Peform bdc_upload will help to upload the data from the internal
    table into its respective fields.
    PERFORM bdc_fspo.
    PERFORM bdc_upload.
    PERFORM exp_log.
    PERFORM close_group.
    Perform display_log will prepare a log for the data that has been
    uploaded
    PERFORM display_log.
    END-OF-SELECTION.
    FORM file_selection .
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ' '
    def_path = 'C:\'
    mask = ',.txt,.xls.'
    mode = 'O'
    title = 'Open a excel file'
    IMPORTING
    filename = p_file1
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    ENDFORM. " file_selection
    FORM data_upload .
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw
    i_filename = p_file1
    TABLES
    i_tab_converted_data = it_itab
    EXCEPTIONS
    conversion_failed = 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.
    ENDIF.
    ENDFORM. " data_upload
    FORM bdc_upload .
    LOOP AT it_itab.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ACC_CRE'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_KEY-SAKNR'.
    perform bdc_field using 'GLACCOUNT_SCREEN_KEY-SAKNR'
    it_itab-SAKNR.
    perform bdc_field using 'GLACCOUNT_SCREEN_KEY-BUKRS'
    it_itab-BUKRS.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=2102_GROUP'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-XPLACCT.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=2102_BS_PL'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-XBILK'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-XPLACCT.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-XBILK.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTER'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-XBILK.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-TXT20_ML.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-TXT50_ML.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-BILKT'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-BILKT'
    it_itab-saknr.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=TAB02'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-ktoks.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-txt20_ml.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-txt50_ml.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-BILKT'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-BILKT'
    it_itab-saknr.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=TAB02'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-XBILK.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-TXT20_ML.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-TXT50_ML.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-BILKT'
    it_itab-saknr.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTER'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-WAERS'
    it_itab-waers.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
    it_itab-MWSKZ.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MITKZ'
    it_itab-mitkz.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-XOPVW'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-XOPVW'
    it_itab-XOPVW.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-XKRES'
    it_itab-XKRES.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
    it_itab-ZUAWA.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-xplacct.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-xbilk.
    IF it_itab-xbilk = 'X'.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=TAB03'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-WAERS'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-WAERS'
    it_itab-waers.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-XOPVW'
    it_itab-xopvw.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-MITKZ'
    it_itab-mitkz.
    ENDIF.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-XKRES'
    it_itab-xkres.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
    it_itab-zuawa.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SAVE'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-FSTAG'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-FSTAG'
    it_itab-fstag.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-XINTB'
    it_itab-xintb.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-HBKID'
    it_itab-hbkid.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-HKTID'
    it_itab-hktid.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-VZSKZ'
    it_itab-vzskz.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=TAB03'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-WAERS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-WAERS'
    it_itab-WAERS.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
    it_itab-MWSKZ.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MITKZ'
    it_itab-MITKZ.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
    it_itab-ZUAWA.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTER'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-FSTAG'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-FSTAG'
    it_itab-FSTAG.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=SAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-FSTAG'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-FSTAG'
    it_itab-FSTAG.
    PERFORM bdc_transaction USING 'FS00'.
    CALL TRANSACTION 'FS00' USING bdcdata MODE 'A'
    UPDATE 'S'
    MESSAGES INTO messtab1.
    PERFORM mess1.
    REFRESH bdcdata[].
    ENDLOOP.
    ENDFORM. " bdc_upload
    FORM bdc_fspo .
    LOOP AT it_itab.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ACC_CRE'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_KEY-SAKNR'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_KEY-SAKNR'
    it_itab-saknr.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_KEY-KTOPL'
    '1000'.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=2102_GROUP'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-ktoks.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-xplacct.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-xbilk.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SAVE'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-ktoks.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-xplacct.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-TXT50_ML'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-txt20_ml.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-txt50_ml.
    *perform bdc_transaction using 'FSP0'.
    CALL TRANSACTION 'FSP0' USING bdcdata MODE 'A'
    UPDATE 'S'
    MESSAGES INTO messtab.
    PERFORM mess.
    REFRESH bdcdata[].
    ENDLOOP.
    ENDFORM. " bdc_fspo
    FORM mess . "fsp0
    LOOP AT messtab.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = messtab-msgid
    lang = messtab-msgspra
    no = messtab-msgnr
    v1 = messtab-msgv1
    v2 = messtab-msgv2
    v3 = messtab-msgv3
    v4 = messtab-msgv4
    IMPORTING
    msg = l_mstring
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CONDENSE l_mstring.
    i_mess1-l_mstring = l_mstring(250).
    i_mess1-msgnr = messtab1-msgnr.
    i_mess1-msgv1 = messtab1-msgv1.
    APPEND i_mess1.
    ENDLOOP.
    ENDFORM. " mess
    FORM mess1 . "fs00
    LOOP AT messtab1.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = messtab1-msgid
    lang = messtab1-msgspra
    no = messtab1-msgnr
    v1 = messtab1-msgv1
    v2 = messtab1-msgv2
    v3 = messtab1-msgv3
    v4 = messtab1-msgv4
    IMPORTING
    msg = l_mstring1
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CONDENSE l_mstring1.
    i_mess-l_mstring = l_mstring1(250).
    i_mess-msgnr = messtab1-msgnr.
    i_mess-msgv1 = messtab1-msgv1.
    APPEND i_mess.
    ENDLOOP.
    ENDFORM. " mess1
    FORM exp_log .
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = 'c:\temp\error_fsp0.txt'
    filetype = 'DAT'
    TABLES
    data_tab = i_mess1.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = 'c:\temp\error_fs00.txt'
    filetype = 'DAT'
    TABLES
    data_tab = i_mess.
    ENDFORM. " exp_log
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM. "BDC_DYNPRO
    FORM bdc_field USING fnam fval.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDFORM. "BDC_Field
    Rewards points.
    Rgds,
    P.Nag

  • B2B Inbound File with Multiple Transactions failing

    Hi ,
    Problem Summary: When the inbound file is coming with multiple transactions (combination of 997 and non-997) ,
    If the 997 is the FIRST transaction in file, B2B is processing only 997 and remaning transactions are getting rejected.
    Where as if the 997 is the LAST transaction in file, then all the transactions are processing correclty.
    SOA Version: SOA 11G (11.1.1.5).
    Example 1: below sample we got two transactions, 997 and 214. here 997 is the FIRST transaction in the file.
    in this case B2B is processing 997 correctly, and 214 is errored with below error message
    "B2B-51507 - A data segment with 'Mandatory' status is missing. A data segment with 'Mandatory' status is missing. An X12 syntax error occurred. An X12 syntax error occurred. An X12 syntax error occurred. A data segment with 'Mandatory' status is missing. A data segment with 'Mandatory' status is missing.
    ISA00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005822*0*P*:~*
    GSFA*xxxx*1234555*20120516*1018*5822*X*004010~*
    ST997*58220001~*
    AK1SM*7159~*
    AK9A*1*1*1~*
    SE000004*58220001~*
    GE1*5822~*
    IEA1*000005822~*
    ISA*00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005823*0*P*:~
    GS*QM*xxxx*1234555*20120516*1018*5823*X*004010~
    ST*214*58230001~
    B10*2313813*M1213131*xxxx~
    N1*SF*xxxxxx*ZZ*124~
    N4*xxxxxx*AR~
    LX*1~
    AT7*AF*NS***20120516*1017*LT~
    MS1*xxxxx*AR~
    L11*01*QN~
    AT8*G*L~
    SE*10*58230001~
    GE*1*5823~
    IEA*1*000005823~
    Example 2 : below sample we got two transactions, 997 and 214. here 997 is the LAST transaction in the file.
    in this case B2B is processing ALL TRANSACTIONS correctly
    ISA*00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005823*0*P*:~
    GS*QM*xxxx*1234555*20120516*1018*5823*X*004010~
    ST*214*58230001~
    B10*2313813*M1213131*xxxx~
    N1*SF*xxxxxx*ZZ*124~
    N4*xxxxxx*AR~
    LX*1~
    AT7*AF*NS***20120516*1017*LT~
    MS1*xxxxx*AR~
    L11*01*QN~
    AT8*G*L~
    SE*10*58230001~
    GE*1*5823~
    IEA*1*000005823~
    ISA00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005822*0*P*:~*
    GSFA*xxxx*1234555*20120516*1018*5822*X*004010~*
    ST997*58220001~*
    AK1SM*7159~*
    AK9A*1*1*1~*
    SE000004*58220001~*
    GE1*5822~*
    IEA1*000005822~*
    Thanks,
    Naveen

    Hi,
    My name is Phil DeLaine and I work for one of Oracle's Gold Partners, TechDemocracy.
    I saw your post about the B2B transaction errors you are experiencing. We have great experience with B2B and have solved very complex problems. (References available.)
    Would you like to use one of our B2B expert technical resources to solve this problem and deliver your project error free and fully functional?
    Please let me know if you would like to discuss what we can do for you. You can reach me anytime.
    Regards,
    Phil
    Phil DeLaine
    Sales Director - Northeast
    TechDemocracy
    (978) 758-3156 (Cell)
    [email protected]
    http://www.techdemocracy.com/
    Our Successes:
    1) We won the 2011 Oracle Titan Award for the Best Middleware Implementation. Our award winning solutions included SOA, IAM and BI.
    2) We have been awarded with the highly prestigious Oracle ACE Director status for outstanding industry achievement and track record.
    3) We sit on several Advisory Boards for Oracle Product Management (for Fusion Middleware Products).
    4) We are an Oracle Center of Excellence Partner for SOA and IAM.
    5) We are frequently invited to speak at a number of Oracle Customer Success forums such as Oracle's "OpenWorld".
    6) We have been rated by Inc. Magazine as one of the top 10 fastest growing companies for 3 consecutive years.
    7) We have won and successfully deliveried several projects at Fortune 100, 500 and 1,000 companies. (References Available)

  • Oracle, Issue with Multiple transaction from two nodes.

    Hi All,
    Below is the scenario ,that we are encountering.
    We have Client which is RAC modelled having Node1 and node2 and the server having primary and secondary nodes.
    From Client we are getting multiple transactions at a rate of nano-milliseconds to the server.
    Our code setup:
    1) Requests would be fired from client  for either insert or update into DB to a Table(Table_A).
    If record exists, we are going for update or else we are inserting.
    Table Structure:
    Table_A Table has Primary key on Account_id
    Our Scenario is that
    Scenario 1:
    a) Database is verifying ,if the data exists in table.
    b) Data not available(record count=0) in the table and as per functionality it goes for insert query.
    c) Before commit occurs, another requests comes in and checks in table for data existence.
    d)  Since commit is yet to happen, the count on table is ZERO and hence the second request is also coming as INSERT.
    e) Since two insert on same record comes in, Unique Key Constraint Violation error is been triggered.
    Scenario 2: We tried to simplify the above process by using Merge option In Oracle. But even that is not solving our concern.
    Thanks

    Scenario 1 - you will probably have to perform some sort of locking to prevent this issue. However, doing so will hurt scalability.
    Scenario 2 - your situation sounds perfect for the MERGE statement. Can you provide more details on "But even that is not solving our concern."? What are you doing and what are you seeing?
    Also, post your version.
    Cheers,
    Brian

  • How to create Dynamic Tab in ADF, to achive multiple transaction at a time

    Hi,
    I want to create Dynamic tab in ADF, to achieve Multiple transaction at a time by opening new tab for a transaction.
    For Example: User can order multiple product at the same time by opening the order form in multiple TAB.
    Scenario:
    i) When user will click on addNewTab, new tab will be added.
    ii) If user Click on close btn on Tab, Tab will be closed (Transaction will be removed).
    iii) user can save all transaction( can save multiple product Order in different tab.)
    iv) when user select any product in form, Rename the Tab name as well.
    Need Help on this :(
    Thanks & Regards
    Pratap Rudra

    Hi Rudra,
    You can implement all your problem using Tab API .
    When you are closing the tab you can roll back transaction which you want.
    Tab API will give control over closing and opening tab.
    And also you can give tab name while opening the tab.
    Thanks
    Prateek

  • MT 100 DME file for multiple Transactions

    Hello
    We are not able to generate the <b>DME file in MT100 format for Multiple Transactions of the Bank Account after F110.</b>
    We are able to generate DME file in MT 100 format for a Single Transaction.
    Please suggest us if we had missed any configuration or any specific process is required to generate the DME file in MT100 for Multiple Transactions of the Bank Account after F110.
    Regards
    Srini

    Hi,
    I am just trying to give some additional information on this one. Here is a snippet from the PDF handbook.
    Option:
    SpoolBatches Enter Yes to tell the PDF Print Driver to print an entire batch of transaction to a single PDF file. The default is No.
    Please do keep in mind...
    • To create a linearized PDF file (for page-at-a-time downloading), you must set this option to No.
    • If you are using single step processing, you must set this option to No.
    In addition to this, you must also turn off the MultiFilePrint callback function. To do this, remove or comment out the CallbackFunc option. Here is an example of commenting out the CallbackFunc option:
    < Print >
    ; CallbackFunc = MultiFilePrint
    You cannot generate linearized PDF files if you set the SpoolBatches option to Yes because when linearizing, the PDF Print Driver must have the entire contents of the PDF
    file in memory. Since batches can be very large, it is not practical to keep an entire batch in memory.
    Important point for your reference:
    I just went through the FAQ in the below link and understood that there are some problems when you try to create a single PDF for a batch as a whole - Acrobat Reader only display the first transaction in a PDF file which contains multiple transactions.
    FAQ Book link -> http://download.oracle.com/docs/cd/E16256_01/faq_book.pdf
    PDF Handbook -> http://download.oracle.com/docs/cd/E16256_01/pdf_book.pdf
    I did not get a chance to explore much on this. Please explore if it helps. Thank you.

  • Multiple transaction in activity

    Hi everyone,
    I need to update users in the directory using the Fuego library, and in the same time update a flag in an external database. This is done in an activity, handling 300 or 400 users at the time.
    My problem is that a database transaction is opened at the begining of the activity, and closed at the end. So if the update was successful for 299 users and fails for the 300th, the whole transaction is rolled back, and the 299 users have to be updated again.
    Is there a way to avoid that, and have one transaction per user to update ?
    Due to performance issues I cannot have one activity per user.
    Thanks and regards,
    Andreas

    Hi Ruben,
    We already though about looping on the activity itself, and update participant by participant. But this leads to performance issues. That's why we are looking for a solution to have multiple transactions in one activity.
    Regards

  • LSMW with multiple transaction n multiple files

    Hi experts,
          is it possible to do data transfer using LSMW(recording) with multiple transaction and multiple files .
    Like 3 transaction and 3 files.
    I want 1st transaction and 1st file to upload first then
    2nd transaction and 2nd file
    3rd transaction and 3rd file

    Hi,
    i think you mean that you want to process first the 1st record of file1 with transaction 1 than 1st record of file 2 with transaction 2
    This is possible using recordings(as you asked for).
    First Maintain Object Attributes then mark batch input recordings and maintain recordings name.
    On the right side are two buttons one for overviewing recordings and one for maintaining more recordings.
    Here enter your additional recordings.
    Now specify for each recording a own Source Structure and
    maintain the Structure Relations and so on...
    If you just want to do 1st transaction with all records of file1 than 2nd transaction use three different LSMWs.
    You can automize the process by using Data Transfer Workbench(SXDA).
    Regards,
    Sebastian

  • Multiple transaction types

    Hi all,
    I am working on SRM 5.0 and ECC 6.0. Implementing extended classic scenario.
    1.] Can someone tell me how to create multiple transaction types for SC which result in PO's in SRM?E.g ACPO; EMPO etc
    2.]Further,when users create shopping cart, they should have the ability to select a transaction type before creating a shopping cart?
    Points will be awarded.
    Trey

    Hi to everybody,
    I am also interested in this topic.I created a new document type ZSHC for the shopping cart. Afterwards I assigned new number ranges to this document type.
    But I am not able to select the document type before creating a shopping cart.
    I wonder why this should not be standard, because I was able to do the above described settings in customizing.
    Any ideas?
    Best regards,
    Martina

  • Single PDF for Multiple transactions

    Hi,
    As of now we are getting multiple PDF files for Multiple transactions in the single extract file. But is there any possibility to generate single pdf file with all the transactions. Im not sure where we need to change in the FSISYS.INI file. Can anybody help on this. Is there any option like that???
    we are using 11.4 environment and input is an extract file. Please let me know if any details required.
    Many Thanks,
    Vamshi Mundla.

    Hi,
    I am just trying to give some additional information on this one. Here is a snippet from the PDF handbook.
    Option:
    SpoolBatches Enter Yes to tell the PDF Print Driver to print an entire batch of transaction to a single PDF file. The default is No.
    Please do keep in mind...
    • To create a linearized PDF file (for page-at-a-time downloading), you must set this option to No.
    • If you are using single step processing, you must set this option to No.
    In addition to this, you must also turn off the MultiFilePrint callback function. To do this, remove or comment out the CallbackFunc option. Here is an example of commenting out the CallbackFunc option:
    < Print >
    ; CallbackFunc = MultiFilePrint
    You cannot generate linearized PDF files if you set the SpoolBatches option to Yes because when linearizing, the PDF Print Driver must have the entire contents of the PDF
    file in memory. Since batches can be very large, it is not practical to keep an entire batch in memory.
    Important point for your reference:
    I just went through the FAQ in the below link and understood that there are some problems when you try to create a single PDF for a batch as a whole - Acrobat Reader only display the first transaction in a PDF file which contains multiple transactions.
    FAQ Book link -> http://download.oracle.com/docs/cd/E16256_01/faq_book.pdf
    PDF Handbook -> http://download.oracle.com/docs/cd/E16256_01/pdf_book.pdf
    I did not get a chance to explore much on this. Please explore if it helps. Thank you.

  • System is creating multiple transaction cubes at the backend for one BPCApp

    Hi
    in one of the planning application, we have done a full optimization 8 times , out of that 5 times it came as error and 3 times it has successful.
    Now when we are sending the data through the Input Schedule it's shoiwng success and also the Data Manager package is also shoiwng success with the data showing witing back to the data base.
    But when the user is showing the report there is no data.
    So when we went to check the back end, we saw 7 transactional cubes with different technical name and 1 transactional cube with a _B sign associated with it, showing as a virtual info provider.
    Since the multi provider is not getting changed due to ful optimization we tried to figure out the very recent transactional cube by double clicking on the same and when we try to find the data with respect to data send we couldn't find any data.
    What can be the reasons of  creating multiple transactional cubes for a BPC planning application. And how to do we know which is the current cube for the respective BPC Planning application after the last Full Optimization.
    Regards
    Krish

    Hi Nilanjan
    Wish you a very happy new year.
    I need to get  it clarifed with the team whether they have aborted in between the Full Optimization process. Becuase i remember in one of the earlier engagement , we have aborted the modify application application and it cretaed multipple cubes at the back and subsequently SAP has suggested to delete the other cubes keeping the correct one.Can you elucidate the relevance of the _B Virtual Info provider from the rationale perspective, why its required them.
    I shall update you on the same.
    Thanks
    Krish

  • How can we use multiple transactions by using bdc_insert.

    HI
    How can we use multiple transactions by using bdc_insert.

    Hi,
    In between the Open and Close we have to use the BDC_INSERT for the Tcodes you have to do.
    BDC_OPEN_GROUP
    BSD_INSERT
    TCODE = tcode1
    BDC_INSERT
    TCODE = tcode 2
    BDC_CLOSE_GROUP
    check the SDN for more on this.
    Regards
    Lekha

Maybe you are looking for

  • Customer/Vendor/supplier Analysis Report

    Hi all, when ever i am going to MCOE,MCOP,MCO1,MCOA 'there is no data'  popup is coming, Please help me Regards Hanamanta

  • Forzen gray screen at boot

    I'm using an iMac that was new in Dec '12. 27-inch I think it's still the current model. Lately I've been getting long if not terminal hang-ups at boot on the plain gray screen. The only system maintenance I have with this Mac is to confirm and corre

  • Slide Shows not behaving

    I just spent last night going over iphoto 09 and found it very frustrating how the slide show settings would not change when requested. To begin with I would create a new slide show, then adjust the settings and play. Sometimes the inital settings ed

  • Stock transfer between plants - availability check

    Hi  all, We are currently facing a scenario, where a Stock transfer Purchase order is created for goods movement between two plants. The outbound delivery was created, but at the time of goods issue, there was a problem of inadequate stock on hand. I

  • Why do my captions not appear in my image project?

    Why do my captions not appear in my image project?  Is there a command to turn them on?