Using Transaction type

Hi
Our app's code is in core java and we do not use EJB. I am implementing a common functionality that will be used to log errors into a database table. In case of a failure condition all others database writes other than the error log entry should be rolled back .
I was wondering if there is something like the transaction type (require_new) in EJB in core java that I can use to make the call to the logging function as a seperate transaction. Or can I accomplish it by using EJB as a wrapper (I am still reading on how to use EJB just as a wrapper).
Any help or direction would be appreciated.
Thanks

Hi parvin,
In EJB, the way this is typically done is by declaring a separate business method with tx attribute TX_REQUIRES_NEW that performs the transactional operation you want to be done indepdent of the other work. When this method is called its work will be executed within a new transaction and then committed. When control returns to the 1st method its transaction will be resumed. Then, the work performed there will either commit or rollback accordingly.
For this kind of application your best bet is to use Java EE rather than Java SE. There's nothing in the core Java SE API that is the equivalent of EJB tx attributes or JTA distributed transactions. There are other Java based frameworks such as Spring that have similar functionality, but I haven't used them so I can't speak to the details.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Want to use transaction type

    Hi,
      Enter another transaction type (Transaction type . does not exist)
    Message no. AA816
    Diagnosis
    According to your entry or specification, you want to use transaction type .. However, this transaction type has not been defined.
    Procedure
    Check the if transaction type . is defined in FI-AA Customizing.

    wat are u trying to do? nature of transaction?
    which transaction code are u using? and
    which transaction type u used?

  • Partner Determination using Transaction Type in Org Model

    Hi Experts,
    I am a functional consultant working on CRM 5.0 and currently customizing the partner determination procedure for transaction Lead. As per the business requirement, for all the leads created by default the system should determine a Lead Qualifier in the transaction Lead. In order to achieve this I am using rule 14000146 Orgman_14 which provides org unit for a transaction type. In the org model I am having a org unit defined as "Lead Management Dept" as well as I have created and assigned position Lead Qualifier and assigned emp to this position too. Now I have defined the sales attributes for this Org Unit "Lead Management Dept" and for the sales attribute "Transaction Type" filled in value as Y001 which is my transaction type for Lead.
    The issue is that this defined attribute is not inherited by the position although this position is assigned to the above mentioned Org Unit and therefore the partner is not getting determined in the transaction. Can someone provide guidance about this issue? How to inherit this attribute to position so that the position is determined in the PDP? or any other alternative for this situation??
    Thnaks and regards
    Ambar Adhav

    Hi,
    Try transaction OOATTRCUST, scenario SALE> Attributes/Scenarios:
    For PROC_TYPE attribute try to change the Inherit.Type and see how the system behaves.
    Regards,
    Susana Messias

  • Acquisition error: can't use transaction type

    I want to use F-91or other t-code to post asset acquisition, my requirement and expected entry is as follows:
    (1)Dr: Asset 1000
    Cr: accumulated depreciation 300(including prior year accumlated depreciation 200, and current year 100)
    Cr: AP vendor-intercompany 700
    (2). in asset explorer, it should have ordinary depreciation , fiscal year start 200, change 100
    I go to AO73 and define a transaction type Z01,using gross method, but when i use F-91, error is below:
    You cannot post with transaction type Z01 here
    Message no. AA495
    Diagnosis
    The transaction type used (Z01) specifies the posting of an acquisition to the asset with the depreciation that has already accrued on the acquisition and production costs.  This type of posting is not possible with the current transaction.
    System Response
    The transaction type is rejected.
    so how to post to AP?  also in ABSO, I can't post to AP vendor account and accumulated depreciation 300 go to value adjustment line in explorer, this is not I wanted, any solution? thanks

    Are you scanning from MP Navigator or ImageCapture?
    on the 10.9 or 10.10 computers I'd download the ICA driver and the Scanner driver, along with the latest version of MP Navigator from the website and install them, then reboot.
    http://usa.canon.com/cusa/support/consumer/scanners/canoscan_series/canoscan_lide210#DriversAndSoftware
    Try to scan using MP Navigator. If you get the error, close MP Navigator and try to scan using ImageCapture. Do you still get the error?
    I'm not including suggestions for El Capitan because there aren't drivers available for it yet, so I wouldnt expect it to work.

  • Transaction type used for FA posting to depreciation area 01 (ordinary dep)

    Hi Expert,
    There is a difference between my ordinary dep area 01 and book dep area 03.
    area 01 is having a USD100
    area 03 is having zero USD
    I need to zerolized area 01.
    I have created a new TTY and limit the dep area posting to 01 in OAYA. However, when I tried to post via ABZE, it is giving me an error message AA350.
    Diagnosis
    According to Table T093A, if you use transaction type 050, area 03 has to adopt values from area 01 (chart of depreciation TPGL). However, the specifications made in Table TABWA for the two areas do not agree.
    Procedure
    Maintain the transaction type using the Customizing menu. Both areas have to have either the indicator 'propose for posting' or 'has to be posted'.
    I have checked both tables and it is not allowing me to post to area 01 only. I have done this before by creating a new TTY and post to area 02 and it works.
    Please advise soon how to rectify this.
    Thanks.
    Angel.

    Hi,
    please check ion OABC if area 02 takes over the values identically.
    regards Bernhard

  • Transaction type to be used for revaluation

    Hi Sir,
    Question is how to revaluate the asset.
    1.  In oabw, oayr and in ao90 I checked and the posting of gross revaluation in abaw Tty 800 is posted.
    2. It is shown in aw01n.
    Till here It is fine, after that What I need to do.
    Pl Suggest different scenarios.
    Thanks in advance.

    Hi,
    You have been using manual revaluation, please go through following documnetation which will help you to understand. (If you have defined separate depreciation area for revaluation then such area post APC values periodically) or you are using existing depreciation area which post APC values periodically then you need to run periodic posting to post values in FI. IF APC values are being posted realtime for the area which is being revaluated e.g. area 01 then you have already done all activity and not required to do anything else.
    Manual Planning
    If you choose to plan revaluation manually, the revaluation report can still be used to create the depreciation areas required for the individual assets. If you choose, the report does not create a posting session in that case. For planning, use transaction type Rxx (xx = key of the revaluation). The system automatically creates this transaction type when you define the revaluation.
    If you want to post gross revaluation, that is, with the revaluation of historical depreciation (backlog calculation), use transaction type 800. Transaction type 800 is defined in the standard system so that it posts to all depreciation areas that allow for revaluation and backlog calculation in their Customizing definitions. If you want to limit the posting of gross revaluation only to specific depreciation areas, you have to change the Customizing definition of transaction type 800 accordingly (function Areas). Or copy transaction type 800 and change the copy.
    In this instance also, FI documents are not created until the periodic posting of the depreciation area to Financial Accounting is carried out.
    Thanks!!!
    Murlidhar Khatri

  • Transaction Type is 922 does not exist

    Hi,
    While posting FI document I am getting below error message :
    Error: Enter another transaction type (Transaction type 922 does not exist)
    Message no. AA816
    Diagnosis:
    According to your entry or specification, you want to use transaction type 922. However, this transaction type has not been defined.
    Procedure:
    Check the if transaction type 922 is defined in FI-AA Customizing
    Please advise how can I rectify this issue!
    Regards
    VS Rao

    Hi VS Rao
    Seems you used TT.922 in T-cd: OAYT but somehow you deleted  TT.922 afterwards. You can either delete the setting of TT.922 from T-cd: OAYT or simply redefine the TT.922 accordingly if any necessary.
    Best regards
    George

  • Create transport request based on SDMI transaction type

    Hello,
    a customer of mine intends to use transaction type SDMI in a kind of unusual way. He only creates SDMIs without creating projects, cycles or change requests in ChaRM. He uses a customized copy of the normal correction to track his changes and now needs to activate the functionality to create transport requests as an auditor requirement.
    As I'm not proficient in ChaRM, I would like to know if that is at all possible.
    Assuming it is possible, what would be the preferences to use action "Create Transport Request" regarding IBase etc.?
    Assuming it is not possible, what would be necessary as a minimum to establish the link to the respective system in which the transport request should be created to get that action working, a maintenance cycle? How is the maintenance cycle linked to the ticket?
    That are a lot of questions, and it would be highly appreciated if somebody could lighten up the fog there for me.
    Thank you in advance!
    Kind regards,
    Emanuel

    Hi,
    1) Do I need to perform any steps in the task list before ChaRM can be used?
    No once task list is in active state and sdmn is created for ur project u can start using charms
    2) How is the maintenance cycle ticket (SDMN) linked to the change requests? Is this linkage done in the SDCR ticket via the maintenance project in the "Customer fields", where solution, maintenance project etc. can be assigned? Or is this implicitly done by the chosen IBase?
    Yes everything is dependent on IBASE and logical component.
    Check this links
    https://websmp202.sap-ag.de/~sapdownload/011000358700000657692007E/ECTS_CHARM_SP12.PDF
    /people/dolores.correa/blog/2008/07/26/first-steps-to-work-with-change-request-management-scenario
    http://help.sap.com/saphelp_sm32/helpdata/en/0c/5b2160f6fa4b83a3674a210b1cdeb0/content.htm
    Check SMP/SDN
    https://websmp208.sap-ag.de/changecontrol
    Resources on CTS+ [original link is broken]
    Hope it solves ur queries
    Regards
    Prakhar

  • Settlement Transaction type problem

    Gurus,
    We currently use CJ88 to settle to AUCs to Fixed assets for US Projects. SAP internally uses transaction types 331/336 while posting this settlement and values are settled to all depreciation areas. Now, we are implementing for Mexico where they want only select depreciation areas to post acquisition costs. I created custom transaction types for 331/336 for the select transaction types.
    But the question is how do I make CJ88 to select 331/336 for US and the custom Ttypes for Mexico.
    Any suggestions will be highly appreciated.
    Thanks
    Alen

    Hi Bernhard,
    Could you elaborate what your proposed solution is?
    I welcome other too to take a shot at this.
    Thanks,
    Alen

  • Excise Transaction Types

    Dear Gurus,
    What is the importance of the step " Specify Excise accounts per excise transaction" ?
    As there are many excise transaction type defined , i wanted to know when do all these transaction types comes in picture?
    How system select them automatically and what is the importance of them from the perspective of MM and FI?
    What are the factors on which the appropriate selection of these transaction type is depend upon?
    Best Regards,
    Ashutosh

    Hi
    Hope the following will be hepfull
    Subtransaction types
    CIN uses transaction type as a way of differentiating between the various excise related processes. They are:
    GRPO – Goods receipt for purchase order in Plant. Also used in Depot for a PO and material document
    EWPO – Excise invoice without purchase order
    57FC      -  Subcontracting Challan
    57NR – Reversal  and Recredit for Subcontracting Challan
    CAPE-  Capital Goods credit accounts
    OTHR- Excise Invoice for Other Movements
    DLFC- Factory Sale and Stock Transfer via SD
    CEIV- Cancellation of Generated Excise Invoice
    DIEX- Differential Excise Invoice Credit
    MRDY- Excise Duty reversal without reference
    MRRD- Excise Duty reversal if material used for non-production
    MRWO- Excise Duty Reversal for Write off Cases
    TR6C - PLA account adjustment through TR6 Challan
    UTLZ- is used for determining the accounts when a JV is posted with an option of fortnightly payment
    The Transaction type that are not used : 57CM, 57GR, CAGI, CAGR, GRTR.
    Regards
    Gopal SP

  • Organtisational data determination for transaction type

    Hi!
    We are implementing the organizational data determination.
    The idea is to fix a specific org unit for several transaction types, because they will always use this unit.
    In order to achieve this, we have implemented Org data determination with rule 14000146, Org. Unit Using Transaction Type.
    Within the rule, in tab Container, I could assign 1 transaction type. How can I define more? And where do I determine the Org Unit it the  rule should determine?
    Best regards,
    Cristina

    hi Cristina
    you need to enhance that rule
    just copy the rule to Z rule and then create containers specifying the different transaction type in the same way the original transaction is there,
    else you need not do this because it is the standard behavior of rule,for every transaction type u just assign the org data profile,it will work the way u want from  this
    and regarding ur question"where do I determine the Org Unit it the rule should determine"
    the rule will automatically determine the org unit,because inside the container the org attributes are used, its like
    IN PPOMA_CRM, choose your Organization Unit, Go to tab Attributes, Choose Attribute Maintaineance Scenario as SALES, and below you will be able to view Attribute Transaction Type.
    i believe u r using rule for org model
    best regards
    ashish

  • What is the transaction type to reduce the acquisition value

    Hello all:
    I use Transaction type 100 to acquire the asset for example 100 eur.
    what is transaction type to do reduction for 20 eur for example for some interest expense.
    BR,
    Manthana

    Hi
    You want to reduce the Asset value then use the Transaction Type 105 or 160 based on the Year of Acquisition.
    You can simply pass a manual entry Crediting this Asset and Debiting an AUC or Expense G/L Account.
    1.  70 AUC Asset TTYPE(100) 20Eur
         75 Asset (105/160) 20EUR
    2. 40 ExpenseG/LA/C 20EUR
        75 Asset (105/160) 20EUR
    Regards
    Venkat

  • Transaction type 100 cannot be used for activity 'Acquisition from invoice'

    Hi
    My user got the error message : Transaction type 100 cannot be used for activity 'Acquisition from invoice receipt w/ affil. comp.'
    when post the invoice via MIRO t code for 98% of the total amount.
    The posting was is related to affiliated company, & by right it should pick transaction type 153 but it is pointing to 100.
    If user post 100% , no error.
    Please advice.

    Check any of the following notes:-
    =>  Note 972556 - MIRO: Incorrect movement type with affiliated companies
    =>  Note 1060719 - Error AAPO 176 for postings from Logistics without vendor
    thanks
    G. Lakshmipathi

  • Business Transaction Profile - Error when using Z-Transaction Type

    Dear Experts,
    we are using SAP CRM 7.0 (Support Level 0007 - SAPKU70007). I have created a Z-Business Transaction Profile Z_IC_SERVICE.
    SAP Help says:
    Enter the transaction type to be used as a default in your scenario in the IC WebClient. For example, choose the transaction type 0010 (Interaction Record) if an interaction record is to be created automatically. The system creates this interaction record automatically after the interaction has started (for example, after accepting a call). During this, the activity clipboard in the interaction record is filled with the relevant data.
    So when I am using the transaction type 0010 (Interaction Record) in my Business Transaction Profile all is OK that means I can search for accounts and I can confirm them to go on with the process.
    BUT: When I entering here a Z Transaction Type (Z000) the systems shows the errors:
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event InteractionStarted.
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event BPConfirmed.
    Then I have made a copy of the transaction type 0010 (Name of copy: Z010) and tried to use it in my Business Transaction Profile the system says:
    Customizing settings missing. Assign partner functions to Z010
    Anybody know what to do and where to avoid errors? Note 1346892 is obsolete in this case because we already have the highest Support Package Level.
    Best Regards
    Oliver

    Hi yes you were right. In the case of both transaction type I have corrected the customizing parameters in
    SPRO -> Customer Relationship Management -> Interaction Center WebClient -> Business Transaction -> Assign Partner Functions to Business Transactions
    In the case of Transaction Type Z010 I had Z-Partner Functions and and that leaded to the errors:
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event InteractionStarted.
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event BPConfirmed.
    In case of the Transaction TYPE Z000 I forgot to assign the Partner Functions that is why this error appeared:
    Customizing settings missing. Assign partner functions to Z010
    Thread Closed

  • You cannot use this transaction type to post to this asset Message no. AA83

    < MODERATOR:  Message locked.  Please post this message in the [Asset Accounting forum|SAP ERP Financials  - Asset Accounting;. >
    Hi,
    I am settling credit values [-ve values] from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp  A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
          Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    Hi,
    Please check the SAP note 1091728 for this.
    Regards

Maybe you are looking for

  • Does Lightroom 4 work with Windows Vista?

    Hi, I can't find Vista mentioned anywhere in association with Lightroom 4. Before I purchase this software, could someone please tell me if I will have compatability issues between LR4 and Vista. Thank you

  • NI Configurat​ion Manager Crashes Windows 7 64bit

    Up until recently, LabVIEW has been working fine. First symptoms of the problem was Windows freezing at startup. I narrowed down the  background program causing the problem to the NI Configuration Manager. After disabling it, Windows, LabVIEW, and MA

  • CS5 - Export .jpg specify (or change) Image Size

    Ok we have currently setup 2 templates one for print cards and one for web cards. What we would like to do since both cards are identical except the size of the card, is have just one template. Both of these are linked to .Ai vector graphics. Problem

  • Un-pausing a Network Administred printer in Mac OsX 10.6.8

    The same problem as others but this printer is a network printer supported by a windows admin group. Is there any way to edit the settings without them comming back? I have to clear paused printers using admin password all day! I have tried the termi

  • Error after trying to log in to email messaging we...

    Hi all, I am trying to log in to email.messaging.com I have an existing account and have been using it without any problems. But this morning the email app on my phone kept asking me for my messaging password and it would not accept the one I know is