Transaction type SQL help

I have a table with columns type, account,date.Type is the transaction type. Type has data from 1 to 10.
Now i want all the transactions, but if on a particular day there is type 2 & 4 for a particular account then i don't want to retrieve those transactions.
For example on 10th July an Account 100123 has both types 2 & 4. When i do select all i don't want to retrieve both those rows. Please help me with some idea.
EDIT: Actually on a given if there is a type =2 followed by any other types(4,6,3,8.....any) we don't want both of those transactions. On a particular day if there is just type =2 alone we don't want that also.
So basically on a given day we don't want to have type =2.
Edited by: varun on Jul 18, 2011 9:24 AM

If you mean :
When in a day there is some lines with type 2 or 4 then do not retrieve rows from that day even those with type not equal to 2 or 4, then I would try :select *
from table t
where not exists (
select null from table t2
where trunc(t.transaction_date)=trunc(t2.transaction_date) and t2.transaction_type=2
and not exists (
select null from table t3
where trunc(t.transaction_date)=trunc(t3.transaction_date) and t3.transaction_type=4
);or maybe :select *
from table t
where not exists (
select null from table t2
where trunc(t.transaction_date)=trunc(t2.transaction_date) and t2.transaction_type in (2,4)
);Edited by: Nicosa on Jul 18, 2011 6:40 PM
modified from your additionnal explanation.

Similar Messages

  • Incorporating transaction types from F-43 to FB60...urgent help !!

    Hey guys...i need urgent help...my client is upgrading from ECC.5 to ECC.6 and in process they will no longer be using F-43 . Now they want me to incorporate all the transaction types from F-43 to FB60. Can someone explain the process. Thanks in advance.

    Dear Stiffler,
    The Payment Method field (ZLSCH) is not controlled via field status.
    This field cannot be set to required in the standard functionality in
    FB60.
    It means that for Vendor document entry for "payment method",
    you can only achieve it by creating a validation rule at call-up
    point 2.
    Or You can insert it into a Payment Term by OBB8 and insert the Payment Term into Your vendor/customer master data.
    I hope this helps.
    Mauri

  • Using AME for Purchase Requisition Apporval transaction type

    Hi ,
    Product : EBS --11.5.10.2 AME B rollup 2 .
    We wanted to introduce approvers based on requisition line total and a dff value on requisition line.
    For that we created a line level attribute to calculate the requisition line amount Then created a test condition saying if req line total is > 1500 Introduce and approval group.
    When creating a rule It says create a rule at header level So went into Approvals Management Administrator resp and changed the Configuration Variables allowAllItemClassRuleswhether AME allows to create subordinate item class rules-- Yes at transaction type Purchase requisition Approval . This allowed be to create the rule for the line level Tested real transaction on test workbench --This works fine
    When tested this using the actual requisition --It gives and error "You do not have the authority to approve this requisition and an Approval List was not created automatically. Please contact your system administrator."
    Error message in the log shows :
    EXCEPTION:[icx.por.approval.server.ApprovalListAMImpl]:Fatal OAException:java.sql.SQLException: ORA-20001: The input ame_util.approverRecord2 does not belong to the header item class, as ame_api requires.
    ORA-06512: at "APPS.POR_AME_APPROVAL_LIST", line 485
    ORA-06512: at line 1
    Is it the correct way to define rules ?
    Is it possible to create a Header level attribute to calculate the line total or check for req total and add an approver looking at the line level req totals ?
    Please suggest if any body implemented Line level approval for requisition using AME ?
    If this is not the correct forum please inform which forum should i post the thread.
    -Regards,
    Chandra

    Hi,
    Please review the following documents and see if it helps.
    Note: 333270.1 - APINV: Line Item Class Rules Error in AP with ORA-20001: The input ame_util.approverRecord2 does not belong to the header item class, as ame_api. No Errors In AME Test Tab
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=333270.1
    Note: 393099.1 - Ora-20001 Error When Testing In Ame Test Tab
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=393099.1
    Regards,
    Hussein

  • Open follow up transaction type screen automatically after confirm account

    Hi Gurus,
    I have a transaction type Z010 for interaction record that is copied from standart 0010 transaction type.
    I define dependent transaction type SRVO that is service order as a follow up of Z010
    My requirement is to open automatically open service order screen after confirming account
    As agents must do everything vey quickly while they are on phone, it is needed urgently.
    Now they have to open Z010 interction record screen, have to press follow up button, click to clipboard and then can open the scrren of service order.
    How can we automatically open service order screen after confirming account??
    I will be very pleased if you will help...
    Thanks.

    Hi Denis, thanks for reply.
    I read it and see that interaction record is automatically created. How can it be made, is it a standard customizing?? Our interaction record is created automatically when follow up process-it is service order here- is created. First we confirm customer, then press to Interaction Record at the left hanside, then in this screen we press follow-up button, then click on Activity Clipboard, then service order screen is opened. I want to pass two steps, pressing Interaction Record and pressing follow up record, how can I do this??
    Exactly I have to define process type Business Activity for interaction record, I can't give Service Order process type directly to interaction record. Service Order type must be dependent to business activity, is it true?? If there is a way to directly giving service order type as an interaction record type, and making interaction record creation automatically after confirming, my problem is solved as very well.

  • Transaction type 100 not possible (posting to affiliated company)

    Hi All SAP Guru's
    I am trying to post asset acquisition through F-90
    Asset Dr Transcation Type 100
    To, Vendor Cr
    while saving the above document  i am getting an error Transcation type 100 is not possible (Posting to Affiliated Company)
    to explain further my client are using Trading Partner Concept, may be that is the reason document is not getting posted
    In Transcation Type I tried to change Post to affiliated Company then system allowing to post the document, but in real sense we should not give post to affiliated company at Transcation Type
    can anybody help, is there any alternative to go ahead
    Regards
    Sreenivasulu
    Edited by: sreenivasulu VAS on Feb 26, 2009 1:57 PM

    Hi,
    When there's a trading partner in the document, you need to use a different transaction type for external acquisition.
    Have you tried this? (I've used this one. without chaging document type setting)
    150     Acquisition from an affiliated company
    Difference from Transaction type 100 is posting type. 150 has a posting type of 'Post to affiliated company' whereas 100 has not.
    Check with IMG (T-code: AO73)
    Heeseon.

  • Transaction type ZGC not possible (posting to affiliated company) in ABSO

    Hi all,
    We have depreciation areas 01, 30, 31, 32 .
    dep area 30, 31, 32  inherits the values from 01.
    We want to post credit value to dep area 01 after doing the aqusition .
    Hence we created a seperate transaction type ZGC ( in aqusitions- Tcode AO73) and limited it to dep areas 01, 30, 31, 32.
    Transaction type ZGC is having credit and " do not post to affliated company " radio button is selected.
    Now the issue is when we run ABSO to do a credit post in dep area 01 we are getting the below error .
    Transaction type ZGC not possible (posting to affiliated company)
    Message no. AA390
    Diagnosis
    For the current document, you specified either implicitly (via the customer/vendor), or explicitly (with a manual entry), that this posting is to an affiliated company. In this case, Asset Accounting requires you to use special transaction types.  This enables the system to separately identify such transactions.
    Procedure
    Check the line items that you have already entered, and the transaction type you entered.
    Not sure why it is asking for affliated company .
    It will be great if any one help on this why we are getting this issue.

    Hi Daya,
    Please try to choose Trans.Type 100 in AO73 transaction code and select the radio button  Post to affiliated company under Posting type.
    Thanks,
    Kumar

  • Transaction type not found while creation of service order/ticket

    Dear All,
    I had done all basic configuration of CIC but i am not able to create service order and service ticket.
    When i trying to create i am not able to find any transaction type but if i want to create follow-up document from CIC screen then i am able to create both the thing. I am not able to find out where is the  problem. can any body help me out.
    Thanks & regards
    Neeraj

    Hi Francis,
    Thanks
    I am on Interaction Center WebClient 2007.
    I have already done the configuration and Transaction type is popping up for selection screen but once i select the transaction type then system automatically canceled the transaction "Transaction Cancelled"
    But in the same time if i am trying to created follow-up transaction with reference to previous transaction then i am able to created service ticket/service order.
    what could be the problem?
    Regards
    Neeraj

  • Z Transaction Types not showing up at creation in CRM 5.2 WebClient

    Hi Experts,
    I am using CRM 5.2 with webclient.
    I have just created 3 transaction types (BUS2000126 & BUS2000125) copied from standard ones.
    I passed all other transactions as Inactive in SPRO.
    In GUI everything is OK, I can create each of these transactions properly.
    But in WebClient, when I click on "New", the pop-up appears but there is no value in it.
    Is there anything I would have forget in my customizing, anything I should do in the BOL???
    I 'd appreciate any help and reward with maximum points for any helpful answer,
    Thanks,
    Aldo

    Aldo,
    I know for activities (BUS2000126) they must have the correct category assigned in order to show up in the creation list.  This is set under Assignment of Business Transactions Categories, and the customizing header data for the category Activity for the transaction you created.
    The class CL_CRM_UIU_BT_ACT_CUST_GET controls this logic.  There are calls to CRM_BSP_SALES_GET_PROC_TYPE which will retrieve the list of possible transaction types.  You can look at the method GET_PROC_TYPES_FOR_SCREEN_KIND in class CL_CRM_UI_BT_ACT_CUST_GET to see this logic.
    The class of the category of the activity must correspond to the allow values.
    Take care,
    Stephen

  • Transaction types(PO types) not visible on SRM 7.0 portal

    Hi all,
    We added transaction types in the SRM 7.0system.But these are not reflecting in the SRM 7.0 portal.
    Under Purchasing role ->create Documents -> Purchase order .
    Once I click on the purchase order it is giving a table with columns PO type and PO desc.
    and showing a message the table does not contain any data.
    But SRM consultant added the transaction types(PO types) in the backe nd.
    Is there missing configuration steps?
    Thanks and regards,
    Rajesh

    Hello Rajesh,
    Few more pointers, if works:
    1. Check the roles, sometimes security restricts role by document types.
    2. Extended classic scenario is activated.
    3. As a standard, there are 3 purchasing tabs in SRM 7.0 for buyer depending on portal roles, ECC, SRM & harmonized role (ECC & SRM), Check if you are trying to create PO in SRM/Harmonized role purchasing tab & not in ECC. Easiest way to check is you will have shopping cart POWL visible in SRM purchasing tab.
    Hope this helps.
    Thanks
    Ashutosh

  • How to allow create different transaction type for different customer

    We are using CRM 7.0 now. We have two types customer, one is sap customer, the other is potential customer. We want to distinguish the two types customer. And user can create all transaction (for example: quotation, opportunity, activity) the sap customer. And the user only can create activity for  the potential customer, they can't create others transaction type for potential customer. How can we realize it? Thanks.

    Hi,
    We can make use of the BLOCKING REASONS to realize your requirement.
    A Blocking Reason can be assigned to the Business Partner role dependent data  and to the transaction type. A Business partner can be used in a transaction only if he is not assigned to this blocking reason.
    For Ex, In your scenario you can create a Blocking reason 'Not a SAP Customer ' and assign it to all the Potential Customers. You should assign the blocking reason to all the transaction  types which the potential customers should not be allowed.
    Hope it helps. Please let me know if you need further help.
    Regards,
    Vamsi.
    Edited by: Vamsi Krishna Potta on Sep 7, 2010 9:41 AM

  • "No transaction type is available for creating a transaction" service order

    Hi all,
    I am new in IC .
    I try to create service order or service ticket for incoming calls
    We are using CRM 7.0
    After I confirm the account I try to create service order
    But no screen displayed and error "No transaction type is available for creating a transaction" occurs
    in customizing there is a transaction type SRVO, also I copied it to ZRVO
    But here how can I define that this transaction type is assigned to this application??
    Please reply in detail steps.
    Thank you.

    Hi Rupesh,
    Thanks for your reply..
    I made a lot of controls but I can't find where I am wrong..
    My senario is, taking phones, create interaction record and create order for further investigation.
    I copied IC_AGENT role.
    I copied transaction type 0010 to Z010
    I create business transaction named ZBTP for transaction type Z010
    I made Define Transaction Types for Navigation for Z010
    Then Define Business Role -> Assign Function Profiles
    Here I assign my business transaction ZBTP to IC_BT function profile
    But when I connect tot the system with user having this business role
    I can create interaction record with type Z010, it is ok.
    When I press Service Order it gives this error.
    Work center id for Service order is : IC_UIU_SVO
    I copied my business role from IC_AGENT, and here this work center id was not active
    In my business role I made it active.  Is this work center can't used in IC senario
    Also how can I understand which transaction type is needed for it??
    If I know which transaction type is needed to create service order or service ticket under IC, then I will control it of course..
    I also copied transaction type TSVO(service IC) to ZSVO and do the above things for this type too..
    But nothing changed..
    Please help !!

  • Copy Control for Transaction Types

    Hi,
    Was wondering if someone could help on following topic. We need to specify the possibility of copy control (follow-up) for certain transaction types in CRM 6.0. I've specified the source TT (ZAPP) and the target TT (ZCON) in customizing activity : Define Copying Control for Transaction Types.
    ZAPP = Custom Appointment Activity
    ZCON = Custom Opportunity
    Now, when I want to create a follow-up for ZAPP in the WebUI (via dropdown 'More' and action 'Follow-Up'), I always get an extensive list of transaction types (about 30) rather than only the opportunity that I originally specified. Any ideas?
    Thank you,
    Sebastiaan.

    Hi Kai,
    Many thanks for your answer. Indeed, the COPY_DOCUMENT is a very good alternative as it also directs the flow for follow-up. However, I have a question in regards to using this method. I can see that there are parameters that need to be provided (like PROCESS_TYPE etc) but apart from that is it also possible to change fields in the copied document.
    e.g. Currently the description of the copied document gathers the description of the action definition, but how can you pass the description of the previous document for instance? Is this also done via the actual parameters?
    Thank you,
    Sebastiaan.

  • How to create messages for Validation in transaction type OB28

    Hello All!
    I am creating a validation in transaction type ob28. I have created the first point "prerequisite", second point "Check" and in the third point "Message" I want to put the message number 016 but the next error appears "Entry E ZFI 160 does not exist in T100". How can I create this messages number?
    Thank you in advance!

    Hi Leyre,
    This message applies to a problem with change requests. When creating a message, it's a workbench request that system has to create. Apparently, when you try to create a message, it tries to catch 'tramp' on existing CR which is assigned to a different client in your system. You should try assigning a new CR for this change; you could ask your BASIS team to help you on this.
    Regards,
    Eli

  • Error Message during PO GR - Please enter a valid transaction Type

    During the goods receipt movement 1010 of a Purchase Order,  I am getting following error Message:
    "Please enter a valid transaction Type"
    I am not a Purchasing expert. Could please help?
    Thanks and regards.

    Hi,
    Pl do below 2 things:
    1 ) Go to Transaction code = OMBA , Click on Goods receipt Documen type button and check whether MIGO_GR is assigned to DOC Type = WE
    2 ) Go to Transaction code = OMJJ , Tick Movement type and select 101 Movement type .
    Then You need to click on "Allowed Transaction option ( Left pane ) and see whether transaction code MIGO is mentioned for Movement type 101.
    it should solve ur problem.

  • Error while selecting transaction type 650 during ABAA.

    Hi Experts,
    We are facing an issue with transaction type 650 while executing unplanned depreciation posting for a certain company code not for all. The error message no. AA380. But it is working fine for other company codes.
    It has been observed that dep. area 30 is assigned to transation type 650 for that chart of depreciation and the message indicates that to be deleted as the combination is not allowed. But after removing the dep. area 30, the posting calls other transaction types 641/642/651 etc.
    Are we missing any config here for this particular company code? Do we need to do some changes for TT 650?
    A quick response will be highly appreciated.
    Regards
    Partha

    Hi Partha ,
    Please check below two configurations.
    1) Go to OAXE check the transaction type 650 and go to details and ensure that there is Always Post check box selected.
    2) Go to OABU check the relevant depreciation area for which you are posting there should be a check box which needs to be selected for Unplanned depreciation.
    Hope this helps you to address the issue.
    Regards,
    Gokul

Maybe you are looking for

  • Calendar not syncing on iOS 7, now calendars have disappeared.

    Hi all, Just recently I noticed my Calendar on my iPhone 4 with iOS 7 was not syncing correctly. My Mac and iCloud.com are correctly in sync. After following the troubleshooting steps (iCloud: Troubleshooting iCloud Calendar) I got to the stage where

  • What component I should choose to simulate a stepper motor's winding?

    Dear all, I'm now trying to simulate a chopper type stepper motor driver. In order to learn from the basic, only one motor coil was place inside the chopper circuit. Now I choose a advanced inductor for the motor winding. I'm able to measure motor wi

  • Problems in inferencing large owls with Jena

    I am trying to use Jena OWL Reasoner APIs (Mini and full OWL Reasoner) to make inferences on large OWL file (approx. 40k lines). But Jena is throwing a out of memory error even after increasing the JVM heap space to 1GB. I think it is because the Jen

  • Why can't I update Adobe AIR?

    I need to update Adobe AIR to continue onto Acrobat.com but when I do the update it says 'This application requires an update to Adobe AIR but downloading that update was not successful.' How do I get it to update correctly?

  • Can I "not now" an application upgrade?

    Is there a way to tell iTunes-Store or the Apps application not now when it points to upgrades? For example, my iPhone has a "1" upgrade -- to ios6. I don't want to upgrade yet, but that blasted number 1 refuses to go away. Thanks Roxy