TRAVEL MNGT QUERY

Dear Freinds,
Based on the SAP Best Practices documentation I have done all the basic configurations pertaining to Configuration and was successfull mapping infotype  0017 to employee code.
After that when I have entered all the details in TRIP after clicking on 'Approve' button it is giving error as 'TRIP Schema PL is not allowed'
If you have any solution to this please revert back.
Have a nice time!
Regards,
Raghavendra

Dear Narsimha,
Thanks for your concern. Your answer was helpful to me.
All the best and Happy Navratri!!
Best regards
Raghavendra

Similar Messages

  • Travel module query

    Hi
    We are implementing Travel expense only where employee will fill travel expenses in ESS that will go for an approval in MSS. My query is- " Can we implement travel expense without implementing travel request. What I have seen is while creating travel expense report employee need to select trip number in portal. How would it happen without implementing travel request.
    Urgent help appreciated. Thanks

    Hi Rajaram
    In Travel Mgt we have two ways to get a Trip Number, as it serves a base in the entire Travel Mgt module.
    Travel Request: where Employee books his Itinerary details with Trip destinations & Advances with activity types & saves/sends the record. Here system will create a Trip request number.
    Travel Expenses: Where Employee Incur's all his expenses for reimbursements to the Trip number which he created during Travel Request.
    If Employee doesn't want to create a Travel Request & wants to Incur the Expenses directly into the system. Then he can create directly from PR05 in R/3 or Create Travel Expense Report in ESS.
    Selection criteria to create a new Travel Expenses:
    1) Trip Schema (Most Important)
    2) Click on Create tab
    3) Provide Itinerary details
    4) Advances can also be given from Travel Expenses
    5) Enter Receipts
    6) save as draft or send for approval
    Now system will create a Trip number & send it for approval. It will be processed based on the std workflows
    WS 20000040 - Trip Approval
    WS 20000050 - Request Approval
    You can create your custom workflow's by copying the std one's based on your requirements.
    Hope this Info will be useful
    Cheers
    Pradyp

  • Oracle TEXT and using 'ABOUT' as a string literal, not a command

    We have a context index on a NAME column, and we're getting an error when searching on the string
    CONTAINS(name, '%ALL ABOUT TRAVEL%') > 0A query on ALL ABOUT, and ABOUT TRAVEL works, but the entire phrase causes a problem. I've since found that ABOUT is a keyword when using CONTAINS( ).
    So, is there a way to escape ABOUT, include it in double quotes, etc, so that it gets treated as a string literal?
    Thanks,
    --=Chuck

    Should've searched google more before posting ... :(
    Maybe this'll help someone else out, though:
    CONTAINS(name, '%ALL {ABOUT} TRAVEL%') > 0

  • Ad-hoc  Query - Travel Privilege Field Group

    Hi am new to this Ad-hoc Query...
    can any body tel me this.
    Asia HR is currently using/assigned to AQB : ZHR_UG_01 ABAP Query: User group and AQS: ZHR_PA_ASIA SAP Query: InfoSet which does not include the Travel Privilege Field Group.  The same Travel Privilege Field Group is already included in the Global infoset AQB - ZHR_UG_01 - ABAP Query: User group and AQS - ZHR_UG_01 - SAP Query: InfoSet
    Please tel me how to create ASIA HR as per the requirement.
    Thanks in advance..
    Regards,
    kalam A.

    Hi Kalam,
    seems that you simply have to add this field to the use InfoSet in transaction SQ02.
    Regards,
    Michael

  • Query on travel management

    hi,
    can anybody tell me what is  per diem and flat rates in travel mgt? any relevant info on travel mgt will be appreciated.

    Per diems / flat rates decide which reimbursement rates are applied by Travel Expenses when the reimbursement amounts are calculated.
    For example, your company provides mileage reimbursement for Car at 0.50 per km and Motorcycle at 0.30 per km.
    Then depending on travel expense entry ( car or motorcycle ) and the total distance, the travel expense reimbursement amounts will be calculated accordingly.

  • Traveling down AD OUs, with xMII LDAP Query

    Hi,
    Now I can get into AD when I run the user list test query:
    select sAMAccountName name from cn=Users where objectCategory=user
    I get into the basic top level users OU.
    I need to get into the OU ProdUsers, as that is where our users are.
    OU=ProdUsers,OU=Monterrey,OU=Food,OU=AM,OU=PKG,OU=PROD,DC=Company,DC=biz.
    I modified the query tol look like this:
    select sAMAccountName name from cn=users, ou=ProdUsers, ou=monterrey, ou=food, ou=am, ou=pkg, ou=Prod where objectCategory=user.
    But I am not getting a list of users,
    Query test returned the following number of records: 0
    and the error is:
    javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'OU=ProdUsers,OU=Monterrey,OU=Food,OU=AM,OU=PKG,OU=PROD,DC=Company,DC=biz' ]; remaining name 'cn=users, ou=ProdUsers, ou=monterrey, ou=food, ou=am, ou=pkg, ou=Prod,DC=Company,DC=biz'
    From what I found out that this is a groups settings error.
    Any idea what that groups setting should look like?
    Thanks

    Hi, Disregard that post found the problem.
    Query does not need a cn=, so it looks like this now and it works
    select sAMAccountName name from ou=ProdUsers, ou=monterrey, ou=food, ou=am, ou=pkg, ou=Prod where objectCategory=user
    Thanks for looking.

  • How to create a variable in Bex Query Designer

    Hi guys,
    I am writing a query for a travel management report using the SAP Standard cube. I would like to restrict the query so it only shows me the last two months excluding the current month. I have checked BI content in RSA1, but I canu2019t find a relevant SAP standard variable that I can use.
    Can anyone please tell me if I can create my own? And if so, how I can do this.
    Many Thanks
    Forhad.

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • Problem inserting and querying XML data with a recursive XML schema

    Hello,
    I'm facing a problem with querying XML data that is valid against a recursive XML Schema. I have got a table category that stores data as binary XML using Oracle 11g Rel 2 on Windows XP. The XML Schema is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="bold_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="keyword_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
                   <xs:element name="plain_text" type="xs:string"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="emph_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="text_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="parlist_type">
              <xs:sequence>
                   <xs:element name="listitem" minOccurs="0" maxOccurs="unbounded" type="listitem_type"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="listitem_type">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="parlist" type="parlist_type"/>
                   <xs:element name="text" type="text_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:element name="category">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="name"/>
                        <xs:element name="description">
                                  <xs:complexType>
                                            <xs:choice>
                                                           <xs:element name="text" type="text_type"/>
                                                           <xs:element name="parlist" type="parlist_type"/>
                                            </xs:choice>
                                  </xs:complexType>
                        </xs:element>
                                                                </xs:sequence>
                                                                <xs:attribute name="id"/>
                                            </xs:complexType>
                        </xs:element>
    </xs:schema>I registered this schema and created the category table. Then I inserted a new row using the code below:
    insert into category_a values
    (XMlElement("category",
          xmlattributes('categoryAAA' as "id"),
          xmlforest ('ma categ' as "name"),
          (xmlelement("description", (xmlelement("text", 'find doors blest now whiles favours carriage tailor spacious senses defect threat ope willow please exeunt truest assembly <keyword> staring travels <bold> balthasar parts attach </bold> enshelter two <emph> inconsiderate ways preventions </emph> preventions clasps better affections comes perish </keyword> lucretia permit street full meddle yond general nature whipp <emph> lowness </emph> grievous pedro')))    
    The row is successfully inserted as witnessed by the results of row counting. However, I cannot extract data from the table. First, I tried using SqlPlus* which hangs up and quits after a while. I then tried to use SQL Developer, but haven't got any result. Here follow some examples of queries and their results in SQL Developer:
    Query 1
    select * from category
    Result : the whole row is returned
    Query 2
    select xmlquery('$p/category/description' passing object_value as "p" returning content) from category
    Result: "SYS.XMLTYPE"
    now I tried to fully respect the nested structure of description element in order to extract the text portion of <bold> using this query
    Query 3
    select  xmlquery('$p/category/description/text/keyword/bold/text()' passing object_value as "p" returning content) from  category_a
    Result: null
    and also tried to extract the text portion of element <text> using this query
    Query 4
    select  xmlquery('$p/category/description/text/text()' passing object_value as "p" returning content) from  category_a
    Result: "SYS.XMLTYPE".
    On the other hand, I noticed, from the result of query 1, that the opening tags of elements keyword and bold are encoded as the less than operator "&lt;". This explains why query 3 returns NULL. However, query 4 should display the text content of <text>, which is not the case.
    My questions are about
    1. How to properly insert the XML data while preserving the tags (especially the opening tag).
    2. How to display the data (the text portion of the main Element or of the nested elements).
    The problem about question 1 is that it is quite unfeasible to write a unique insert statement because the structure of <description> is recursive. In other words, if the structure of <description> was not recursive, it would be possible to embed the elements using the xmlelement function during the insertion.
    In fact, I need to insert the content of <description> from a source table (called category_a) into a target table (+category_b+) automatically .
    I filled category_a using the Saxloader utility from an flat XML file that I have generated from a benchmark. The content of <description> is different from one row to another but it is always valid with regards to the XML Schema. The data is properly inserted as witnessed by the "select * from category_a" instruction (500 row inserted). Besides, the opening tags of the nested elements under <description> are preserved (no "&lt;"). Then I wrote a PL/SQL procedure in which a cursor extracts the category id and category name into varchar2 variables and description into an XMLtype variable from category_a. When I try to insert the values into a category_b, I get the follwing error:
    LSX-00213: only 0 occurrences of particle "text", minimum is 1which tells that the <text> element is absent (actually it is present in the source table).
    So, my third question is why are not the tags recognized during the insertion?
    Can anyone help please?

    Hello,
    indded, I was using an old version of Sqlplus* (8.0.60.0.0) because I had a previous installation (oracle 10g XE). Instead, I used the Sqlplus* shipped with the 11g2database (version 11.2.0.1.0). All the queries that I wrote work fine and display the data correctly.
    I also used the XMLSERIALIZE function and can now display the description content in SQL Developer.
    Thank you very much.
    To answer your question Marco, I registered the XML Schema using the following code
    declare
      doc varchar2(4000) := '<?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="bold_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="keyword_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
                   <xs:element name="plain_text" type="xs:string"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="emph_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="text_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="parlist_type">
              <xs:sequence>
                   <xs:element name="listitem" minOccurs="0" maxOccurs="unbounded" type="listitem_type"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="listitem_type">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="parlist" type="parlist_type"/>
                   <xs:element name="text" type="text_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:element name="category">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="name"/>
                        <xs:element name="description">
                                  <xs:complexType>
                                            <xs:choice>
                                                           <xs:element name="text" type="text_type"/>
                                                           <xs:element name="parlist" type="parlist_type"/>
                                            </xs:choice>
                                  </xs:complexType>
                        </xs:element>
                                                                </xs:sequence>
                                                                <xs:attribute name="id"/>
                                            </xs:complexType>
                        </xs:element>
    </xs:schema>';
    begin
      dbms_xmlschema.registerSchema('/xmldb/category_auction.xsd', doc,     LOCAL      => FALSE, 
            GENTYPES   => FALSE,  GENBEAN    => FALSE,   GENTABLES  => FALSE,
             FORCE      => FALSE,
             OPTIONS    => DBMS_XMLSCHEMA.REGISTER_BINARYXML,
             OWNER      => USER);
    end;then, I created the Category table as follows:
    CREATE TABLE category_a of XMLType XMLTYPE store AS BINARY XML
        XMLSCHEMA "xmldb/category_auction.xsd" ELEMENT "category";Now, there still remains a problem of how to insert the "description" content which I serialized as a CLOB data into another table as XML. To this purpose, I wrote a view over the Category_a table as follows:
    CREATE OR REPLACE FORCE VIEW "AUCTION_XWH"."CATEGORY_V" ("CATEGORY_ID", "CNAME", "DESCRIPTION") AS
      select category_v."CATEGORY_ID",category_v."CNAME",
      XMLSerialize(content ( xmlquery('$p/category/description/*' passing object_value as "p" returning content)) as clob) as "DESCRIPTION"
      from  auction.category_a p, 
    xmltable ('$a/category' passing p.Object_Value as "a"
    columns  category_id varchar2(15) path '@id',
              cname varchar2(20) path 'name') category_v;Then, I wrote a procedure to insert data into the Category_xwh table (the source and target tables are slightly different: the common elements are just copied wereas new elements are created in the target table). The code of the procedure is the following:
    create or replace PROCEDURE I_CATEGORY AS
    v_cname VARCHAR2(30);
    v_description clob ;
    v_category_id VARCHAR2(15);
    cursor mycursor is select category_id, cname, description from category_v;
    BEGIN
    open mycursor;
      loop
      /*retrieving the columns*/
      fetch mycursor into v_category_id, v_cname, v_description ;
      exit when mycursor%notfound;
      insert into category_xwh values
      (XMlElement("category",
          xmlattributes(v_category_id as "category_id"),
          xmlelement("Hierarchies", xmlelement("ObjHierarchy", xmlelement ("H_Cat"),
                                                               xmlelement ("Rollsup",
                                                                                  (xmlelement("all_categories",
                                                                                   xmlattributes('allcategories' as "all_category_id")))
        xmlforest (
                  v_cname as "cat_name",
                  v_description as "description")    
    end loop;
      commit;
      close mycursor;
    END I_CATEGORY;When I execute the procedure, I get the following error:
    LSX-00201: contents of "description" should be elements onlyso, I just wonder if this is because v_description is considered as plain text and not as XML text, even if its content is XML. Do I need to use a special function to cast the CLOB as XML?
    Thanks for your help.
    Doulkifli

  • URGENT: Problem with lexical reference in query statement!

    I am modifying the seeded Receipt Traveler report.
    The query I need to modify is the receipts query (Q_RECEIPTS). The entire query statement for this is a lexical reference - &P_SELECT_RECEIPTS. The actual query is being set in the After Parameter Form trigger. I need to add a few columns to the select clause and tables to the from clause. Modifying the query in the trigger alone did not help. I got the error - REP 0498 "selected columns differ from report definition"
    => How do I add these new columns to the report now? Do I need to put them in the initial value of the parameter &P_SELECT_RECEIPTS?
    => I tried modifying P_SELECT_RECEIPTS, but I get a REP 1070 error saying the file cannot be saved.
    => In addition, P_SELECT_RECEIPTS does not have a from clause, which causes a problem for me, but I am wondering how the report was originally saved
    Any help with this rather lengthy question will be greatly appreciated.
    Thanks,
    P.S.
    The initial value of &P_SELECT_RECEIPTS is set to:
    SELECT rrp.item_id,rrp.organization_id rrp_organization_id,MSI.SEGMENT1||''||MSI.SEGMENT2||''||MSI.SEGMENT3||''||MSI.SEGMENT19||''||MSI.SEGMENT20 C_FLEX_ITEM,MCA.SEGMENT1||''||MCA.SEGMENT2||''||MCA.SEGMENT3||''||MCA.SEGMENT19||''||MCA.SEGMENT20 C_FLEX_CAT,rrp.revision_num,rrp.category_id,rrp.item_description,rrp.un_num,rrp.un_description,rrp.hazard_class,rrp.routing_name,rrp.document_type_code,rrp.document_number,rrp.release_num,rrp.line_num,rrp.buyer_preparer_name,rrp.source_type,rrp.source,rrp.source_unit_of_measure,rrp.vendor_product_num,fnd_date.date_to_canonical(rrp.due_date) due_date,round(rrp.quantity_ordered,:P_qty_precision) quantity_ordered,rrp.note_to_receiver,rrp.pll_note_to_receiver,decode(psp.manual_receipt_num_type,'ALPHANUMERIC',rrp.receipt_num,decode(rtrim(rrp.receipt_num,'0123456789'),NULL,to_number(rrp.receipt_num),rrp.receipt_num)) RECEIPT_NUM,rrp.receipt_unit_of_measure,fnd_date.date_to_canonical(rrp.receipt_date) receipt_date,rrp.receipt_location,rrp.receiver_first_name,rrp.receiver_last_name,rrp.freight_carrier,round(rrp.quantity_received,:P_qty_precision) quantity_received,rrp.primary_quantity parent_primary_quantity,round(rrp.quantity_remaining,:P_qty_precision) quantity_remaining,rrp.shipment_num,rrp.bill_of_lading,rrp.vendor_lot_num,rrp.packing_slip_num,rrp.containers,rrp.receiver_comment,rrp.transaction_type rrp_transaction_type,rrp.transaction_id rrp_transaction_id,rrp.shipment_line_id rrp_shipment_line_id,rrp.shipment_header_id rrp_shipment_header_id,rrp.distribution_id rrp_distribution_id,rrp.po_header_id,rrp.po_line_id,rrp.po_line_location_id,rrp.requisition_header_id,rrp.requisition_line_id,rrp.from_interface rrp_from_interface,rrp.deliver_to_location,rrp.license_plate_number

    You can see the query being bulit within the BUILD_QRECIEPTS Program Unit

  • Explain Plan understand technique & Query optimizing check list

    Hello gurus,
    Can some body help me with doc available or your experience to tell on how to understand Explain Plan & Query optimizing check list.
    Thanks..

    That's correct,
    But unfortunately the institute is pretty far from home.. and travelling time will be high..
    I am a working man..
    Please suggest if some good book or link.
    Thanks.

  • Query for BOM Allocations to Master Routes

    I just acquired Query Building permissions and the involved transactions in SAP-PP.  I have access to the sandbox (QAS) to build them before they go into production.  I have a good technical background but never built a query in SAP.  I should be able to catch on fairly quick.
    **I would like to create a query that reports which material numbers have BOM components that are/aren't allocated.  Is this possible where do I start?
    **Are there any threads in this forum that show good query information in regards to production versions, master routes, BOMs, etc. that someone can point me to?

    Hi Lucas,
    Sorry for the late reply. I was travelling yesterday. Was able to create your query in quickviewer.
    Table I used for Joining are as follows:
    Mast: Material to BOM Link
    STPO: BOM Item
    PLMZ: Allocation of BOM to operation
    PLPO: Task List - operation/activity
    Join Condition:
    MAST-STLNR to STPO-SLNR
    STPO-STLTY to PLMZ-STLTY
    STPO-STLNR to PLMZ-STLNR
    STPO-STLKN to PLMZ-ZUONR
    PLMZ-PLNTY to PLPO-PLNTY
    PLMZ-PLNNR to PLPO-PLNNR
    Selection Screen:
    Material Number: MAST-MATNR
    Plant: MAST-WERKS
    List Fields:
    Material Number: MAST-MATNR
    Plant: MAST-WERKS
    BOM Item Number: STPO-POSNR
    BOM Component: STPO-IDNRK
    Component Quantity: STPO-MENGE
    Component Unit: STPO-MEINS
    Operation Assignment: PLPO-VORNR
    I guess this will help you in getting your query set. In case you need to change the field you can do as per your requirement. As told earlier once you are ok with Quickviewer you can convert it to SAP Query from SQ01 transaction.
    Hope this helps you out.
    Best regards,
    Kiran

  • Travel Management Tables - PTRV_SREC  & PRTV_ROT_AWKEY

    Hi SAP'ers,
    We have a situation where we want to see the full receipt history of our expense postings for travel.  Unfortunately PTRV_SREC only shows "final" history and not what may have happened to the receipt from the beginning. 
    Here's the scenario we see in PTRV_SREC;
    I have  a expense receipt posted to FI for 400 and PTRV_SREC shows ths amount, 400.   The next day the employee goes in and corrects that same receipt from 400 to 100.  PTRV_SREC only shows the 100 balance.  There is no history of the 400 original posting/receipt.
    Now PTRV_ROT_AWKEY shows the receipt movements shown above, 400 to 100, but only in local currency, not in the original receipt currency. 
    Does anyone know of any PTRV tables that might keep the  history and keep it in receipt currency?
    Any advice would be greatly appreciated and points will be awarded.
    Thanks a bunch,
    Jim

    Hello,
    You can use the report RPR_TRIP_COST_ASSIGNMENT_DATA or you can create your own query in SQ01 by using the LDB PTRVP as your Infoset base query.
    Regards,
    Raynard

  • How to bring Picture from OHEM table into Crystal Report using query

    Hi expert
    i had a query and which is attached to a crystal report, and its working fine,
    the thing what i need is to bring the picture which is stored in OHEM table, (Employee Photo)
    to the report. in the query i had attache the picture field. but not able to see it over the Crystal reprot
    The below given is the query
    select OHEM.empID,isnull(OHEM.firstName,'')+' ' +isnull(OHEM.middleName,'')+ ' '+isnull(OHEM.lastName,'')AS [Employee Name],
    OHPS.name AS [Position],OUDP.Name AS [Department],OUBR.Name AS[Branch],OHEM.U_SponsName,OHEM.U_EMPOLD_ID,OCRY.Name AS [Nationality],
    OHEM.U_JoinDate As [Joining Date (G)],OHEM.U_JoinDateH As [Joining Date (H)],OHEM.birthDate, (CAST(DATEDIFF(day,OHEM.birthDate,GETDATE())/(365) AS int)) As [AGE],(CAST(DATEDIFF(day,OHEM.startDate,GETDATE())/(365) AS int)) As [Year],
    OHEM.startDate As [Emp Contract Start Date (G)],OHEM.U_CEDate As [Emp Contract End Date (G)],OHEM.U_ConType As [Emp Contract Type],
    OHEM.U_ContDur AS [Emp Contrat Duration],OHEM.U_CRDate As [Emp Cont Renewal Date (G)],OHEM.U_IQId AS [Iqama ID],OHEM.U_IQIsDate As [Iq Issue Date (G)],
    OHEM.U_IQExDate As [Iq Expiry Date (G)],OHEM.U_IQIsDateH As [Iq Issue Date (H)],OHEM.U_IQExDateH As [Iq Expiry Date (H)],OHEM.U_InsType As [Insurance Type],
    OHEM.U_InsExpDate AS [Insurance Exp Date],OHEM.U_InsName As [Insurance Company],OHEM.U_DestiCity As [Destination City],
    OHEM.U_TicketType As[Ticket Type],OHEM.U_TicketClass As [ Ticket Class], OHEM.U_TravelDate As [Travel Date],OHEM.passportNo,OHEM.U_PassportIsDate AS [Passport Issue Date],
    OHEM.passportEx AS [Passport Expiry Date],OHEM.U_BSal As [Basic Salary], OHEM.U_HoAllow As [House Allowance],OHEM.U_TrAllow As [Transport Allowance],
    OHEM.U_FoodAllow AS [Food Allowance],OHEM.U_CarAllow AS [Car Allowance],OHEM.U_OthAllow As [Other Allowance],OHEM.U_BonusAllow As [Bonus],
    OHEM.U_VacStartDate1 AS [First Vacation Start Date], OHEM.U_VacEndDate As[ First Vacation End Date],OHEM.U_VacResDate As [First Vacation Resume Date],
    OHEM.U_VacDur AS [First Vacation Duration],OHEM.U_VacStartDate2 As [Second Vacation Start Date],OHEM.U_VacEndtDate2 AS [Second Vacation End Date],
    OHEM.U_VacDur2 As [Second Vacation Duration],OHEM.U_VacResDate2 AS [Second Vacation Resume],OHEM.U_VacStartDate3 AS [Third Vacation Start Date], OHEM.U_VacEndtDate3 As[ Third Vacation End Date],
    OHEM.U_VacRestDate3 As [Third Vacation Resume Date],OHEM.U_VacDur3 AS [Third Vacation Duration],OHEM.U_VacStartDate4 AS [Fourth Vacation Start Date],
    OHEM.U_VacEndDate4 As[ Fourth Vacation End Date],OHEM.U_VacResumeDate As [Fourth Vacation Resume Date],
    OHEM.U_VacDur4 AS [Fourth Vacation Duration],OHEM.U_VisaDuration AS [Visa Duration],OHEM.U_VisaStartDate AS [Visa Start Date],
    OHEM.U_VisaEndDate AS [Visa End Date],OHEM.U_VisaType As [Visa Type],OHEM.picture,OHEM.remark,OHEM.attachment,OHEM.mobile AS [Mobile],OHEM.homeTel AS [Residence Tele],OHEM.email AS [E-Mail] from OHEM
    left outer join OHPS ON OHEM.position=OHPS.posID
    left outer Join OUDP on OHEM.dept=OUDP.Code
    left outer join OUBR on OHEM.branch=OUBR.Code
    left outer join OCRY on OHEM.citizenshp=OCRY.Code
    Pls suggest how to make it appear the photo in the crystal report
    regards

    Hi,
    Please refer this how to guide which may give some idea for creation formula:
    http://www.pioneerb1.com/wp-content/uploads/2012/04/How-to-work-with-Crystal-Reports-8.8.pdf
    Thanks & Regards,
    Nagarajan

  • SAP Query Genrator Error Again

    Experts,
    select T0.Father 'Parent Item',
    T0.Code 'Children',
    Case
    When T1.ItemType = 'I' Then 'Item'
    When T1.ItemType = 'L' Then 'Labour'
    When T1.ItemType = 'T' Then 'Travel'
    End 'Item Type',
    Case
    When T1.PrcrmntMtd = 'B' Then 'Buy'
    When T1.PrcrmntMtd = 'M' Then 'Make'
    End 'Procurement Method ',
    T1.CardCode 'Preferrd Vendor',
    ISNULL((select T2.Price from OSPP T2 where T2.CardCode = T1.CardCode and T2.ItemCode = T0.Code), 0)'Price of the Item in Special price list ',
    Case
    When T1.ItemType = 'L' Then T1.AvgPrice
    Else 0
    End 'Item Cost (If Labour)'
    from ITT1 T0 inner join OITM T1 on T0.Code = T1.ItemCode
    where T0.Father = '[%0]'
    group By
    T0.Father,
    T0.Code,
    T1.ItemType,
    T1.PrcrmntMtd,
    T1.CardCode,
    T1.AvgPrice
    This gives error i SAP Query genrator . Plz help

    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Must specify table to select from. 2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared.
    For
    select T0.Father 'Parent Item',
    T0.Code 'Children',
    Case
    When T1.ItemType = 'I' Then 'Item'
    When T1.ItemType = 'L' Then 'Labour'
    When T1.ItemType = 'T' Then 'Travel'
    End 'Item Type',
    Case
    When T1.PrcrmntMtd = 'B' Then 'Buy'
    When T1.PrcrmntMtd = 'M' Then 'Make'
    End 'Procurement Method ',
    T1.CardCode 'Preferrd Vendor',
    ISNULL((select T2.Price from OSPP T2 where T2.CardCode = T1.CardCode and T2.ItemCode = T0.Code), 0)
    'Price of the Item in Special price list ',
    Case
    When T1.ItemType = 'L' Then T1.AvgPrice
    Else 0
    End 'Item Cost (If Labour)'
    from ITT1 T0 inner join OITM T1 on T0.Code = T1.ItemCode
    inner join OSPP t2 on t2.ItemCode = T1.itemcode
    where T0.Father = '[%0]'
    group By
    T0.Father,
    T0.Code,
    T1.ItemType,
    T1.PrcrmntMtd,
    T1.CardCode,
    T1.AvgPrice

  • Report on Travel expense trip details

    I have been asked to gather information relating to mileage traveled by car, motorcycle and bicycle, and detailing the number of passengers where applicable from Travel expense data. None of the standard reports go down to this level of detail.
    I have tried creating a query using the logical database PTRVP to extract this information but the fields such as number of passengers do not seem to be available.
    Is this information only held in the TE cluster and I must extract from here?
    Any help would be greatly appreciated and rewarded!
    Many thanks,
    Dannyboy!

    I need to programatically retrieve this information on a report rather than a transaction.
    I think I now have some code which will work but I was wondering if there is not a standard infoset I could use to get this information from the TE cluster?
    Kind regards,
    Dan

Maybe you are looking for

  • Error message says error writing Mail preferences

    There's a discussion about the very same problem I'm having at <http://discussions.apple.com/thread.jspa?messageID=2047886&#2047886> about Mail not being able to save preferences... or at least a message pops up each time despite the fact that the pr

  • Display image in Forms 10.1.2

    Forms 10gr2 using Webutil. I have an multi row block, each record has an image item. I want to populate this image at runtime depending on the values of the rest of the record. Problem I have is that the images (GIF files) are not in the database, th

  • Append Duplicate entries in Start Routine through ABAP code

    Hi Experts, I need to write an ABAP code in the start routine for the following conditions. For every record in fiscal period (FISCPER) which has non u2013quarter months eg if Jan/Feb ie (001.2007 or 002.2007) I need to create an additional duplicate

  • My MacBook Air keyboard has become raised and spacebar is not working!

    My sons MacBook Air Keyboard has become raised/warped. The centre point of the raised area is the top left hand corner of the trackpad. I would say the highest point is 2 to 3mm above the normal surface line. The first signs of the problem was an inc

  • Upgrade Project: CRM Function Groups

    Hi All, The Function groups like "CRM_ISALES_SOLDTO" which was present in SRM 3.0 is replaced in SRM 5.0. I am currently on an upgrade project anr there are several Z FM's which gives a call to the FM's under this function group. Since they are unava