Need formula to identify type of transaction

Post Author: skootsu
CA Forum: Formula
I am putting together a report on parts from a transaction table. Each transaction is identified with either a sales order, workorder or purchase order.  I need to create a field that will contain an indicator based on which field is filled. Like C for customer order, W=workorder or P=purchase order. So I can group and total by this type.
I can't tell what is missing but I'm either getting a 'W' (on correct records) and blanks for the cust.and purch. order records. Or if I get an error on the formula.  I'm thinking its the syntax but can't tell where.  Heres an example of what I have for my records.
@UsageTypeIf {INVENTORY_TRANS.WORKORDER_BASE_ID} <> " " then "W"else if {INVENTORY_TRANS.CUST_ORDER_ID} <> " " then "C"else "P"This gave me a 'W's correctly but blank for everything else.My first three records read,INVENTORY_TRANS.TRANSACTION_DATE:6/17/07INVENTORY_TRANS.PART)ID:9000 80000-182-0-29INVENTORY_TRANS.TRANSACTION_ID:447515.00INVENTORY_TRANS.WORKORDER_BASE_ID:  (blank or null)INVENTORY_TRANS.CUST_ORDER_ID:SO516221INVENTORY_TRANS.PURC_ORDER_ID: (blank or nullINVENTORY_TRANS.QTY:1.00@UsageType: (blank)INVENTORY_TRANS.TRANSACTION_DATE:2/28/07INVENTORY_TRANS.PART)ID:9000 80000-182-0-29INVENTORY_TRANS.TRANSACTION_ID:398,861.00INVENTORY_TRANS.WORKORDER_BASE_ID:16644INVENTORY_TRANS.CUST_ORDER_ID:(blank or null)INVENTORY_TRANS.PURC_ORDER_ID: (blank or nullINVENTORY_TRANS.QTY:1.00@UsageType:WINVENTORY_TRANS.TRANSACTION_DATE:5/22/07INVENTORY_TRANS.PART)ID:9000 80000-182-0-29INVENTORY_TRANS.TRANSACTION_ID:435025.00INVENTORY_TRANS.WORKORDER_BASE_ID:(blank or  null)INVENTORY_TRANS.CUST_ORDER_ID:(blank or null)INVENTORY_TRANS.PURC_ORDER_ID: 28514INVENTORY_TRANS.QTY:1.00@UsageType:(blank)Then I tried the second method,not(isnull({INVENTORY_TRANS.WORKORDER_BASE_ID}))then'W' elsenot(isnull({INVENTORY_TRANS.CUST_ORDER_ID}))then "C"else "P"This is giving a "remaining text does not appear to be part of the formula" error.Any one have any tips/hints?  I'm guessing the syntax is not correct.  We are using Oracle.

Post Author: V361
CA Forum: Formula
Try this....
if not(isnull({INVENTORY_TRANS#WORKORDER_BASE_ID})) then 'W' elseif not(isnull({INVENTORY_TRANS#CUST_ORDER_ID})) then "C"else "P"

Similar Messages

  • Need a report_Batchwise Mvt type last transaction date qty

    Dear Gurus
    Please suggest me any standard report or Table for display below report.
    Batchwise>Mvt type>last transaction date>qty
    thanks in advance
    Mayur

    Hi,
    MB51 --- Material documents list.
    Regards,

  • How to identify the type of transaction from hr_api_transactions?

    Hi,
    I want to identify type of transaction from HR_API_TRANSACTIONS.
    I want to find a particular transaction is of CREATE/ UPDATE or DELETE transaction.
    I have checked values of different columns.
    However, I am not able to differentiate between transactions.
    Any pointers on this!!
    Thanks!!
    Best Regards,
    Narender

    I have found that in R12, the table HR_API_TRANSACTION_VALUES is not holding the desired values.
    Instead of this table, we have information in the transaction_document column of HR_API_TRANSACTIONS.
    And we can read this column to identify the type of transaction.
    Thanks!!
    Best Regards,
    Narender

  • We need to restict doc.type sa for specific users only

    Hi,
    we need to Restrict document type SA for Particular users i.e
    1. they Should not allow to post SA document types .
    2. But they allow to view the documents(SA types only)
    Regards
    Ganesh

    Dear Tarimela,
    1. In transaction OBA7, you should fill up the field for all the
       document types which you want to control.  If it is left blank, then
       all the users will be able to post document with that document type.
       Hence, if user A is authorised to post to document type X and in
       the configuration of document type Y field authorisation group is
       left blank, then user A will be able to post document with document
       type Y.
    2. Also you need to enable authorisation check in transaction PFCG and
    need to assign the authorisation group in the profile.
    3. I would recommend you to go through SAP notes 198238 and 150496 for the
       purpose of your information.
    I hope this can help.
    Mauri

  • Need help in identifying fields of sd report creation

    Hi Experts,
    I need to create report in sd from manual report .The fileds in report are taken from Quickbooks.so inorder to create report in sap I need to identify fields  in sap first.we dont had functional guy so i need help in identifying fields in sap for below mentioned report.
    Report: invoice distribution report-service billing for all states.
    Fields:customer number,customer name,city state,SAP Document number,Invoice date,period(month,year)invoice number,invoice type,currency,invoice amount in usd.
    Please help me in suggesting tcodes or table names from where i can fetch these fields.
    Thanking you in advance.
    Regards,
    narasimha.

    Hi Experts,
    Finally with all above suggestions i have chosen tables vbrk(billing document header data),kna1(customer header),vbrp.
    1.I created view to find the output of report with conditions as follows:
    tables:vbrk,kna1,vbrp
    vbrk-vbeln(invoice number)
    vbrk-fkart(invoice type)
    vbrk-fkdat(invoice date)
    vbrk-waerk(currency)
    vbrk-netwr(netvalue)
    vbrk-kunag(customer number)
    kna1-name1(customer name)
    kna1-ort01(customer city)
    kna1-regio(customer state)
    join condition:
    kna1-mandt=vbrk-mandt
    kna1-kunnr=vbrk-kunag.
    when i execute the report i am getting same value for lot of times.
    i am confused how to include sales document number.I hope sales document number and invoice are different.
    2.i have also added vbrp-aubel and join condition as
    vbrk-mandt = vbrp-mandt
    vbrk-vbeln = vbrp-vbeln.
    but when i execute the report i am getting lot of duplicated with same value and unknown invoice numbers.
    please let me know where i went wrong.
    is  there any standard adhoc report so that i can manipulate it with above requirement.
    vf05n is somewhat useful .is it possible to add  customer details in this??
    Thanks&Regards,
    narasimha.

  • Need a BADI/ exit for MIGO transaction

    Hi,
    I need a BADI / exit for tha transaction MIGO. My requirement is before displaying the materials in the item tab, check whether the user has authorization for that material or not. If he has no authorization, give error message. This should be done for all types of documents.
    Please let me know if you need more information.
    thanks,
    Kishore

    hi,
    You can have the authorization for the inventory management via authorisation..
    Check the path: SPRO --> MM --> Purchasing --> Inv. management nad physical inventory --> Authorization management  --> Maintain roles and assign users....
    Regards
    Priyanka.P

  • Standard SO type overwrites transaction variant

    Hi all,
    We have configured transaction variant for VA01 for certain sales order types.
    It is working fine for those SO types.
    The problem is when we use any other SO type where the transaction variant is not used then for the next entry of SO type (with transaction variant) the fields which are supressed are again visible in VA01.
    For example we have two order type SO01- With transaction variant & SO02- With out transaction variant.
    If for the first time in VA01 if create sales order with SO1 then it transaction variant works fine.
    In the second case if we create SO with tyep SO02 then when it comes back to initial screen of VA01 & give entry for SO01 then all the fields which are supressed are visible again.
    To avoid this we need to re exceute VA01 which is not advisible.
    Guide us to overcome this.
    Mimiri

    Awaiting your valuable replies
    Mimiri

  • Component for search all type of transactions

    Does Web UI has component for search all type of transactions?
    For example, for search activities, quotations, lead, opportunities simultaneously.
    Denis.

    Hi Stephen,
    I think component suggested by Nisha "'BT_1O_SEARCH" in the above reply is built on one order query object and it allows searching on all the one order entities..
    In case it's needed to reuse  'BT_1O_SEARCH'  in the other components.. this component is integrated in docflow component as a component usage that will give the idea on binding etc..
    Hope this helps..
    Cheers,
    Sumit Mittal

  • How I tie the formula with conditions type?

    Hi,
    Than create the formula with tcode O3I7:
    1) how I tie the formula with conditions type?
    2) how I tie the conditions type with the formula with Calculation Schema?
    help me, please.
    thanks
    Edited by: celeste ziantoni on Feb 5, 2008 6:45 PM

    Hello,
    Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
    Thanks,
    Venu

  • Formula variable of type replacement path not working

    Hi Folks,
    I have created formula variable of type replacement path and replaces with characteristic key.I wanted to use charecteristic infoobjects in coluns so that i have created formula variable for that.But when excecuting the query in web it is not displaying values for that formula.
    Can anyone plz solve this,if u come accross this situation before.
    Thanks and Regards,
    Ravikiran
    Edited by: MRK@SAPBI on Jun 11, 2011 1:13 PM

    Thanks vineet, for your quick reply.
    yes,i have used the characteristic in a row and it is a number.
    Still it is not displyaing values.But i need to calculate the couter for the same formula created on that charateristic and need to put condition in the query.
    thanks,
    Ravikiran

  • Assignment of requirement type to transaction

    HI,
    we need to assign Requirement type to Item category in
    Availability Check and Transfer of Requirements - Transfer of Requirements - Determination Of Requirement Types Using Transaction
    but we are not getting "Item category+MRP type" to which we need to assign the "Requirement Type" It is in grey.
    and also new entries are not possible.
    so where  we need to assign MRP type to required item category so that It will come into " Determination Of Requirement Types
    Using Transaction" and then we will assign required Requirement type ?
    thanks and regards,
    Anup

    Hi Anup,
    You can maintain that in VOV5. Go to new entries and create it.
    It will reflect in  Determination Of Requirement Types Using Transaction.

  • 5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America

    Step 5.
    5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America, you can look up a local number here. For now, check out all the great free features of Creative Cloud! Get started with trials
    I keep getting this.
    The Bank and Paypal states that Adobe needs to process my transaction twice.
    I have no order number/ no status nor contact from Adobe. I called customer service and he transferred me to sales where the phone rang with no answer.

    Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Need to configure output type for adobe form

    Hello All,
    I need to configure output type for Adobe Form thru NACE. What would be print program and how do I call my form from that program? and, what would be the FORM routine for that form in NACE?
    I'm little confused, Pls I need your help.
    Thanks in advance,
    Chandra

    Hi,
    Just before few weeks we did this task.
    Say for example if you want to print PO details through ADOBE form instead of normal sapscript layout or standard MEDRUCK, you can follow the following steps.
    1. Design the form in SFP tcode, by passing the necessary inputs through form interface.
    2. Then use tcode tcode NACE and select EF as application and click output types button on the          application tool bar. Select NEU output type and double click processing routines on left side.
    3. Then, in the right side of the screen we can see the calling program and the form (may be sapscript or smartform) whatever used.
    4. For form names we have two options in NACE tcode.
    One is Form and the otherone is PDF/Smartform Form. If you are using adobe form give your form name under PDF/Smartform and also select PDF under the type option in the same screen.
    This worked perfectly for us. But pass the required parameters to the form from the routine used in standard program.
    If any queries please post it.

  • Change default document type in transaction F-47

    Hi guys,
    any idea how may I change the default value (not on user level) of the document type in transaction F-47.
    Thanks and regards

    Use transaction OBU1 (path: IMG Financial accounting / general ledger accounting / business transactions / G/L account posting / Carry out and check document settings / default values)

  • GR55 Report - Need to add Document type in selection parameter

    Hi Friends,
    Our client needs to have document type in selection parameter for one report group which has 4 reports attached.
    Changes have been made and now document type is already there in selection parameter. But irrespective of document type Output is same.
    That is if i Give docuement type or not it gives me same output.
    This report is bein copies n new report is made.
    Can any one help me out with how go proceed further.

    Hi,
    This report is bein copies n new report is made.
    You just copied the output from an existing one right....
    Inorder to get the report documenmt type wise you also need to change the output format of the report.
    Ask your ABAPer to get this tobe done...

Maybe you are looking for

  • What is "Publish To New Folder?"

    Captivate's *Edit/Preferences/Global* preferences include options for the user to review a confirmation dialog before the software proceeds to execute a variety of user actions, mostly actions that would delete an asset or change an important setting

  • XML Import doesn't work...

    After watching Sountrack Pro reset all my compresors on export, and runing the mix, I tried an xml export from Final Cut Pro. After a half an hour and two crash outs -NO GOOD. It maybe was a Quicktime 7.2 error - who knows. It opened the XML and it a

  • VERY Basic Questions about Oracle eBusiness - what "languages" are used?

    Please forgive the very basic nature of this post- (I have been in systems (IT) for over 20 years, so I do have lots of systems experience, but no exposure to this particular software.) So here are the basic questions - I assume that much of the data

  • Align list arrow in the Property inspector

    Hello, everyone. I am taking a WEB Design class online, and have a problem figuring out something in Dreamweaver. I need to align an image, but I can't get access to the Align list arrow in the Property inspector. I clicked on the image, but for some

  • Is it possible to print multiple days on the same sheet of paper in iCal

    I want to make my own day to day calender and don't want to have it be huge. I was trying to print in day view but want to put 4 days on each page and I cannot figure it out. Please help.