Query help required to link two fields

Hi all,
I have made an query as under :
SELECT T2.Period, T0.dept, T0.empID, T0.firstName, T0.lastName, T1.U_ebasic, T1.U_ehra, T1.U_etrspt, T1.U_ecola, T1.U_emeins, T1.U_education, T1.U_grosssal,T1.U_totduc, T1.U_oadd, T1.U_netsal, T1.U_bank, T1.U_branch, T1.U_accno FROM OHEM T0 , [dbo].[@PAYROLL_PR_DETAIL]  T1, [dbo].[@PAYROLL_PROLL_HEAD]  T2 where t2.docentry=t1.docentry and t1.U_ecode=t0.empid
Now I want that the Department Full NAME as mentioned in the Human Resource screen for that employee should come. Apart from it I also want to link a new field in this query user_code from OUSR table for each employee.
Can you please help me to make this query.
Regards,
kamlesh

Dear Gordon,
After rectifiying the spelling mistake I used the following query as under
SELECT T2.Period, T0.dept, T3.Name, T0.empID, T0.firstName, T0.lastName, T4.USER_CODE,T1.U_ebasic, T1.U_ehra, T1.U_etrspt, T1.U_ecola, T1.U_emeins, T1.U_education, T1.U_grosssal,T1.U_totduc, T1.U_oadd, T1.U_netsal, T1.U_bank, T1.U_branch, T1.U_accno
FROM dbo.OHEM T0
INNER JOIN dbo.OUDP T3 ON T3.Code = T0.dept
INNER JOIN dbo.OUSR T4 ON T4.INTERNAL_K = T0.userId
INNER JOIN dbo.@PAYROLL_PR_DETAIL T1 ON t1.U_ecode=t0.empid
INNER JOIN dbo.@PAYROLL_PROLL_HEAD T2 ON t2.docentry=t1.docentry
but now the syntax error is coming as - 'Incorrect syntax near '@PAYROLL_PR_DETAIL'
(SEWSY) (s) could not be prepared
Please guide.
Regards,
Kamlesh

Similar Messages

  • Query Help required to Connect JDT1 with OINV tables

    Dear Experts,
    I have the following query which gives me the customer ageing report. I want some addtional fields from the OINV table and the document numbering table like Document Series Name, AR Invoice document Number,AR invoice remarks, BP Projects Number ( filled in accounting tab in BP projects) and in the query in Reference 1 column its giving the Invoice Numbers as posted in the Journal but for manual Journal Entries it not giving the Journal Number which I also want to be shown in Ref 1 or a seperat field.
    The Query is as under :
    select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb 'Debit Amount',syscred 'Credit Amount',
    case JDT1.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 30
    and (datediff(dd,refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 60
    and (datediff(dd,refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "61 to 90 days",
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "90 + days"
    from JDT1,OCRD where JDT1.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
    ORDER BY OCRD.CARDCODE, taxdate
    Would appreciate if you can help me to get a solution in it.
    Regards,
    Kamlesh

    Dear Gordon,
    While executing the followings modified query it giving an error of
    Incorrect Syntax near the keyword 'to' and incorrect Syntax near 'Series'
    the query is as under :
    {select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb 'Debit Amount',syscred 'Credit Amount',
    case l.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    j.BaseRef'Trans #',
    case l.transtype
    when '13' then
    (Select Comments from OINV where OINV.Transid=j.Transid)
    else '-'
    end 'Inv.Rem.',
    (Select SeriesName From NNM1 Where Series=j.DocSeries and ObjectCode=l.TransType)'Series',
    to
    (Select Isnull(SeriesName, 'Manual') From NNM1 Where Series=j.DocSeries and ObjectCode=l.TransType)'Series',
    l.Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), l.refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), l.duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), l.taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,l.refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,l.refdate,current_timestamp))+1 > 30
    and (datediff(dd,l.refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,l.refdate,current_timestamp))+1 > 60
    and (datediff(dd,l.refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "61 to 90 days",
    CASE
    when (DATEDIFF(dd,l.refdate,current_timestamp))+1 > 90
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "90 + days"
    from JDT1 l
    Inner Join OJDT j On j.TransId=l.TransId
    ,OCRD where l.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
    ORDER BY OCRD.CARDCODE, l.taxdate}
    Regards,
    Kamlesh

  • Query Help required

    HI Experts ,
    Could you please help me in getting below output ,
    My Input Table :
    Number
    Loc_A
    LOC_B
    PARENT_NUMBER
    A-01
    Ind
    Aus
    A
    A-02
    Fra
    NZ
    A
    A-03
    Ind
    SL
    A
    A-04
    USA
    Aus
    A
    A-05
    Pak
    WI
    A
    A-06
    Fra
    Ag
    A
    A-07
    Rus
    Ban
    A
    A-08
    SA
    Ind
    A
    A-09
    Ind
    Ind
    A
    My Required Output
    Number
    Loc_A
    LOC_B
    PARENT_NUMBER
    A-01
    Ind
    Aus
    A
    A-02
    Fra
    NZ
    A
    A-03
    Ind
    SL
    null
    A-04
    USA
    Aus
    null
    A-05
    Pak
    WI
    A
    A-06
    Fra
    Ag
    null
    A-07
    Rus
    Ban
    A
    A-08
    SA
    Ind
    A
    A-09
    Ind
    Ind
    null
    I am comparing each and every record with its previous rows values for column Loc_A and Loc_B and if they are getting matched i m inserting null .
    table structure
    with t as
    (select 'A-01' as Num,'Ind' as Loc_A,'Aus' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-02' as Num,'Fra' as Loc_A,'NZ' as Loc_B,'A' as Parent_Num from dual
    Union all
    select 'A-03' as Num,'Ind' as Loc_A,'SL' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-04' as Num,'USA' as Loc_A,'Aus' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-05' as Num,'Pak' as Loc_A,'WI' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-06' as Num,'Fra' as Loc_A,'Ag' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-07' as Num,'Rus' as Loc_A,'Ban' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-08' as Num,'SA' as Loc_A,'Ind' as Loc_B,'A' as Parent_Num from dual
    union all
    select 'A-09' as Num,'Ind' as Loc_A,'Ind' as Loc_B,'A' as Parent_Num from dual
    select * from t;
    Could you please help ,i have 1000's of rows with this kind of data

    Hi,
    I have tried to create a query, this might help you
    WITH t AS (SELECT 'A-01' AS Num,
                      'Ind' AS Loc_A,
                      'Aus' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-02' AS Num,
                      'Fra' AS Loc_A,
                      'NZ' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-03' AS Num,
                      'Ind' AS Loc_A,
                      'SL' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-04' AS Num,
                      'USA' AS Loc_A,
                      'Aus' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-05' AS Num,
                      'Pak' AS Loc_A,
                      'WI' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-06' AS Num,
                      'Ind' AS Loc_A,
                      'Ag' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-07' AS Num,
                      'Rus' AS Loc_A,
                      'Ban' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-08' AS Num,
                      'SA' AS Loc_A,
                      'Ind' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL
               UNION ALL
               SELECT 'A-09' AS Num,
                      'Ind' AS Loc_A,
                      'Ind' AS Loc_B,
                      'A' AS Parent_Num
                 FROM DUAL)
    SELECT t.num,
           t.loc_a,
           t.loc_b,
           CASE
              WHEN (FIRST_VALUE (LOC_A)
                       OVER (ORDER BY NUM RANGE UNBOUNDED PRECEDING)) IN
                         (LOC_A, LOC_B)
                    OR (FIRST_VALUE (LOC_B)
                         OVER (ORDER BY NUM RANGE UNBOUNDED PRECEDING)) IN
                         (LOC_A, LOC_B)
              THEN
              ELSE
                 t.parent_num
           END
              parent_num
      FROM t
    NUM
    LOC_A
    LOC_B
    PARENT_NUM
    A-01
    Ind
    Aus
    A-02
    Fra
    NZ
    A
    A-03
    Ind
    SL
    A-04
    USA
    Aus
    A-05
    Pak
    WI
    A
    A-06
    Ind
    Ag
    A-07
    Rus
    Ban
    A
    A-08
    SA
    Ind
    A-09
    Ind
    Ind
    Only error I have here is the First Value is showing '-'. I have not got enough time to remove it.
    Regards,
    Adarsh

  • Linking two fields in a dictionary view to the same field

    My DBA asked me if I knew how to do this without resorting to ABAP code, and I said I'd ask you guys over here.
    A customer wants a view on several tables.  Vendor name from LFA1 is one of the
    columns in the view.
    He has two other columns in the view which can hold two different vendor numbers at the same time.
    He wants the view to automatically bring in the names from LFA1 from both of them.
    My DBA knows how to do this directly in DB2, of course, but can it be done in native SAP dictionary ???
    Reason he's asking is because he suspects the customer wants to use the view directly in SQLQuery, where there's no chance for an ABAP code intercept.
    Or is there?  Are there ABAP exits in dictionary views?  Or in SQLQueries?

    Hi
    We can straight away write a select statement to a database view similar to a TABLE in ABAP
    see the sample views VIAUFKS and VIAUF_AFVC
    and see the select statement below for this view
    CLEAR: i_ord.
      REFRESH: i_ord.
      SELECT aufnr            " PM Order No
             equnr            " Equipment Number
             tplnr            " Functional Location
             auart            " Order Type
             aedat            " Order Date
             swerk            " Maintenance Plant
             werks            " Plant
             ktext            " Order Text
             kokrs            " Controlling Area
             objnr            " Object Id
             kostl            " Cost Center
        INTO TABLE i_ord
        FROM viaufks
        WHERE aufnr IN s_aufnr AND
              equnr IN s_equnr AND
              tplnr IN s_tplnr AND
              swerk IN s_swerk AND
              aedat IN s_date  AND
              auart IN s_auart.
    Reward points for useful Answers
    Regards
    Anji

  • Help required for linking Organization Admin Roles to User Profile in R2

    Hi,
    We are using OIM 11.1.2.0 (Without any patch).
    Current Requirement:
    We have requirement to provide search capability to end users to search/see users of other Organizations in OIM.
    For example: I belong to Org1: UK, So OOTB OIM just support searching/viewing profile of UK Organization users. I can not search/view user info of Org2: Italy.
    To overcome this issue,Oracle has suggested us to add both the following roles in order to see user information of other organization.
    • User Viewer
    • Organization Viewer
    After just logged in using xelsysadm, I can able to assign Admin Roles of each organization to end users.
    We want some API info/ how to automate this assignment to Admin Roles(Which are available to Organization) to end users?
    We went through the APIs available for OIM 11.1.2.0, but could not find any API related to Admin Roles of OIM.
    Please suggest.
    Regards,
    J

    Hi,
    Has any one implemented this method?
    addAdminRoleMembership(oracle.iam.platform.authopss.vo.AdminRoleMembership membership) Add a admin role membership.
    Regards,
    J

  • Query to find match on two fields where third does not..

    Struggling with this one..
    Stripped down example data
    SECTION     GROUPID     SUBGROUPID     COMPONENT     PNUM     USERNAME
    HVAC     AC     MOTOR          HOSE          111.1     BOB
    HVAC     AC     MOTOR          HOSE          111.2     BOB
    HVAC     AC     MOTOR          HOSE          111.3     JIM
    HVAC     AC     MOTOR          BOLT          411     BOB
    HVAC     AC     MOTOR          BOLT          411     BOB
    HVAC     AC     MOTOR          BOLT          411     BOB
    HVAC     AC     MOTOR          BOLT          (null)     (null)
    HVAC     AC     MOTOR          CLAMP          211.1     BOB
    HVAC     AC     MOTOR          CLAMP          211.2     JIM
    HVAC     AC     MOTOR          CLAMP          211.3     BOB
    HVAC     AC     MOTOR          STRAP          611.1     JIM
    HVAC     AC     MOTOR          BELT          811.3     BOB
    HVAC     AC     MOTOR          BELT          (null)     (null)
    HVAC     AC     MOTOR          DISC          (null)     (null)
    HVAC     AC     MOTOR          DISC          (null)     (null)
    HVAC     AC     MOTOR          DISC          (null)     (null)
         What I need to get, is a list of records where the GroupID and Component Matched, and where they had a PNUM that were not all the same
    So in this case I would only want these returned, Section/SubgroupID/Username are not needed to match on anything, but here to visualize the
    extra data that can be there. Items that have PNUM that IS NULL need to be ignored? Example would be the intance where above the PNUM
    for one record was 811.3 while the one below it was null, that should not return back. Its considered "ok" and does not need to be reported.
    SECTION     GROUPID     SUBGROUPID     COMPONENT     PNUM     USERNAME
    HVAC     AC     MOTOR          HOSE          111.1     BOB
    HVAC     AC     MOTOR          HOSE          111.2     BOB
    HVAC     AC     MOTOR          HOSE          111.3     JIM
    HVAC     AC     MOTOR          CLAMP          211.1     BOB
    HVAC     AC     MOTOR          CLAMP          211.2     JIM
    HVAC     AC     MOTOR          CLAMP          211.3     BOB

    maybe this.
    SQL> select section, groupid, subgroupid, component, pnum, username
      2    from (select section, groupid, subgroupid, component, pnum, username,
      3                 count(pnum) over (partition by groupid, component, pnum order by groupid, component, pnum) cnt1,
      4                 count(pnum) over (partition by groupid, component order by groupid, component) cnt2
      5            from (select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'HOSE'  component, 111.1  pnum, 'BOB'  username from dual union all
      6                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'HOSE'  component, 111.2  pnum, 'BOB'  username from dual union all
      7                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'HOSE'  component, 111.3  pnum, 'JIM'  username from dual union all
      8                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'BOLT'  component, 411    pnum, 'BOB'  username from dual union all
      9                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'BOLT'  component, 411       pnum, 'BOB'  username from dual union all
    10                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'BOLT'  component, 411       pnum, 'BOB'  username from dual union all
    11                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'BOLT'  component, (null) pnum, (null) username from dual union all
    12                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'CLAMP' component, 211.1  pnum, 'BOB'  username from dual union all
    13                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'CLAMP' component, 211.2  pnum, 'JIM'  username from dual union all
    14                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'CLAMP' component, 211.3  pnum, 'BOB'  username from dual union all
    15                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'STRAP' component, 611.1  pnum, 'JIM'  username from dual union all
    16                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'BELT'  component, 811.3  pnum, 'BOB'  username from dual union all
    17                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'BELT'  component, (null) pnum, (null) username from dual union all
    18                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'DISC'  component, (null) pnum, (null) username from dual union all
    19                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'DISC'  component, (null) pnum, (null) username from dual union all
    20                  select 'HVAC' section, 'AC' groupid, 'MOTOR' subgroupid, 'DISC'  component, (null) pnum, (null) username from dual)) vt
    21  where vt.cnt1 = 1
    22    and vt.cnt2 > 1
    23  order by vt.pnum;
    SECTION GROUPID SUBGROUPID COMPONENT       PNUM USERNAME
    HVAC    AC      MOTOR      HOSE           111.1 BOB
    HVAC    AC      MOTOR      HOSE           111.2 BOB
    HVAC    AC      MOTOR      HOSE           111.3 JIM
    HVAC    AC      MOTOR      CLAMP          211.1 BOB
    HVAC    AC      MOTOR      CLAMP          211.2 JIM
    HVAC    AC      MOTOR      CLAMP          211.3 BOB
    6 rows selected
    SQL>

  • How to concatenate two fields CSKS-KOSTL & CSKT-LTXT in BEx Query?

    Hi,
    I have a requirement to concatenate two fields CSKS-KOSTL (Cost Center) and CSKT-LTXT (Cost Center Text) and show them as one field in the BEx query.
    I do not know what to do, so please help me out.
    Thanks in advance.
    Regards
    Harman

    Hi Harman,
    If cost center is a masterdata, it can have its own text..i doubt why do u have 2 different fileds..
    Anyways if its a masterdata object maitaining its own text, then in the query properties under Display tab select Key&Text option this give you both key and text values in the output.
    If its two different fileds then its better to use concatenate in the transformation.
    Regards,
    Geetha

  • How do you link two audio clips to one video clip?

    Hi guys,
    I want to think multiple audio clips to one video clip and aint know how to do it! I found this page on Adobe knowledge base:-
    http://livedocs.adobe.com/en_US/PremierePro/3.0/help.html?content=WS1c9bc5c2e465a58a91cf0b 1038518aef7-7f40.html
    It says you can do it but I don't think it explains how? Can anyone provide me with the simple steps required to link two audio clips to one video clip? Many thanks.

    Do you mean manual syncing? I've been reading this thread about workaround, which aren't working for me: http://forums.creativecow.net/thread/344/21236
    But the question they are asking is the same one I am asking. Isn't this a typical situation, having multiple mics for one camera? For example, if someone filmed a concert with one camera but used both the camera audio, and ambient mic, and a mix from the board, then that would be 3 audio tracks with 1 video track. I'm in a similar situation, and I'm finding it hard to believe that FCPX isn't equipped to edit this way. There must be some way to get one video clip (with reference audio) to sync with four audio tracks.

  • Search Help with in a serach help required in SRM 4.0

    Hi,                                                     
    Requirement: Search help required for Product Category field in the Search help for Product(BBPH_PRODUCT) in SRM portal.
    This search help is used in Create shopping Cart transaction. The hyper link on Internal Goods/Services leads to the search help BBPH_PRODUCT. 
    My analysis:           
    The field Product Category (CATEGORY_ID) has search help(COM_CAT_HIER) attached to its data element. When I single test the search help BBPH_PRODUCT in SAP GUI,I can see the search help for field product category in the selection dialogue box. However the same does not appear on the corresponding screen in HTML.
    Please let me know whether I need to do some thing to make the search help appear on the HTML screen?
    With Regards,         
    Prakash Kamath

    Hi Prakash,
    I have the same problem but with another field. Unloading point. Could you please tell me how did you solve this problem with displaying F4 help on html/ SRM portal?
    Thank you very much.
    Best regards,
    Danijela ZIvanovic

  • Query for Linking Two Tables without Reference

    Hi Folks,
    Good Day!
    I have this dilemma on how to link two tables without a reference. In the Business Partner Master Data, there is a field for the Territory which is from the table OTER. This OTER focuses on its description. Once you have added the particular Territory for that Business Partner, it is being stored in the Territory field of the BP right? Our client wants to have an automated way of searching for the Business Partner's Profit Center in creating a Sales Order wherein it is the same as the Business Partner's Territory. The Profit Center is from the table OPRC.
    When I create a Sales Order, after I have entered the Business Partner/Customer Code, the Profit Center should have the value of the Profit Center Code wherein it is the Business Partner's Territory. My query will go like this:
    Enter the BP/Customer Code automatically the Profit Center code where Profit Name = BP's Territory.
    OTER and OCRD don't have connections. How can it be?
    I'm thinking of retrieving the Territory first before the Profit Center but can you suggest of any other way?
    Thank you much!
    Regards,
    Fringe

    Hi Fringe,
    Okay, I already understood your case here. I presume your configuration as follows:
    OTER (Territory)
    territryID - descript
    1 - Philippine
    2 - Indonesia
    3 - Germany
    OPRC (Cost Centre)
    PrcCode - PrcName
    25 - Philippine
    33 - Indonesia
    47 - Germany
    Was above illustration correct? Then, you could use this formatted search in Cost Centre / Dimension field in Sales Order rows
    SELECT PrcCode FROM OPRC WHERE PrcName=(
    SELECT TOP 1 descript FROM OTER T0
    INNER JOIN OCRD T1 ON T0.territryID=T1.Territory
    WHERE T1.CardCode=$[OCRD.CardCode.0])
    However, I suggest you use a little bit different approach here. Since you can't define Territory Code / Territory ID (you could only type the Territory name, Philippine etc.), why don't you standardize Territory name with Cost Centre code? Let say, you define Philippine as PHI, Indonesia as INA, Germany as DEU and so on. Therefore, user can read the Cost Centre or more precisely Distribution Rules in Sales Order form in more familiar way.
    OTER (Territory)
    territryID - descript
    1 - PHI
    2 - INA
    3 - DEU
    OPRC (Cost Centre)
    PrcCode - PrcName
    PHI - Philippine
    INA - Indonesia
    DEU - Germany
    When FMS worked in Sales Order document, your user will read PHI instead of 25, should be more familiar to them. With that being said, you could use simpler FMS
    SELECT descript FROM OTER T0
    INNER JOIN OCRD T1 ON T0.territryID=T1.Territory
    WHERE T1.CardCode=$[OCRD.CardCode.0]
    You only need to maintain consistency between Territory Name and Cost Centre code. Just my two cents. Hope this help.
    Best Regards,
    Hendry Wijaya

  • SQL Query CASE statement using two fields

    Hi,
    I have two fields. One is called rescategory1, the other is called rescategory2.
    I'm not sure if its a CASE statement I need or some sort of WHERE clause but I want to create a query that does the following or something similar:
    CASE rescategory2
    WHEN rescategory1 = '44' AND rescategory2 = '1' THEN 'Backup'
    WHEN rescategory1 = '44' AND rescategory2 = '2' THEN 'Hardware'
    END AS [Resolution Sub Category]
    Basically, I'm looking to give rescategory2 a value based on that of rescategory1 and rescategory2 combined.
    How do I write this?
    Cheers
    Paul

    do you mean this?
    rescategory2 = CASE
    WHEN rescategory1 = '44' AND rescategory2 = '1' THEN 'Backup'
    WHEN rescategory1 = '44' AND rescategory2 = '2' THEN 'Hardware'
    END
    ie assigning value for rescategory2
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Can I combine the out put of TWO FIELDs into One fields  in BW query

    Hi,
    For example, I have two fields ‘FIRST name’ and ‘last Name’ in the info provider and in theBW query these two are displayed in two separate field with independent drill down capability, Can I combine those and show as a single field with a single drill down capability.
    Thanks

    Hi Arunava,
    Combination of two fields can be done at Excel level where we will not get the drill down. We can rather use use an object which is compunded for the two names and then add them in the cube. we can achieve the functionality of drill down on the report level.
    Hope this will help you in resolve the issue.
    Regards,
    Phani.

  • Linking two different query created in SQVI

    Hi friends
    1) How to link two different queries created in SQVI
    The output of the first query will  the input of the second query
    for example i have created one query to extract the material documents, now i want to pass this material documnts into the second query for serial number extraction
    2) Is is possible to use a particular table twice in a single query,  I am getting the error that Table already used
    Regards
    Amuthan M

    Try Table joins, Take help of technical persons

  • How to link or call two FIELD EXIT

    Hi Friends,
    I've to do a Field exit object for MIGO...and my logic is i've to capture the meory id concept by Export and Import function.So, I heard that I've to create one field exit with Export function and again create under one more field exit to import the memory id from Export.
    I know the logic of Export and Import.But i dont know how to fix it in the function module,means how to create one field exit and call the same under one more field exit.
    Pls do the needful and post me with some good field exit examples for my reference.i.,e How to give codes inbetween Function and End Function. and how to call this field exit with one more field exit for import stmt.
    if u find BADI or USER EXIT is good for MIGO,pls reply with good and correct example functions.
    Thanks and regards
    sankar.
    Edited by: sankar babu on Dec 29, 2007 10:00 AM

    Hello Sankar,
          Just you want to use the functionaly Import and Export , that why you required two Fields Exit in transitation MIGO.
    I suggest MIGO is huge transitation which conver some table like MSEG and BSEG which affect the performance of the program. Better you go with one field Exit . Although there are many Some are attach Below.
    Re: MIGO Enhancement
    Re: How to add field to MIGO Urgent??
    SMOD enhancement MBCF0005 looks promising.
    MBCF0002
    MBCF0005
    MBCF0006
    MBCF0007
    MBCF0009
    MBCF0010
    MBCF0011
    MBCFC003
    MBCFC004
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/QMIMIL/QMIMIL.pdf.
    MB_DOCUMENT_BADI or MB_DOCUMENT_UPDATE
    and these exits: MBCF0002, MB_CF001
    Regards
    Swati Namdeo

  • How to LINK two or more Text Field

    I have already asked once to get help with creating a link between two text fields (two fields created with a text tool) so that when text reached the end of one text field it will simply go into another. The given explanation was not specific enough. If you know how to do this and are willing to help, would you PLEASE give me SPECIFIC instructions, step-by-step on how this is done. Please do not assume that I have worked with the Adobe Acrobat program all my life. Thanks :)

    Stevan,
    It's almost laughable that I should give instructions since I know very little about JavaScript, but here goes . . .
    Be sure to follow George's instruction precisely. Make three text fields, which I'll call Text1, Text2, and Text 3.
    1) For the first text field, in the Options tab, remove Multi-line and remove Scroll long text. In the Format tab, in Custom Keystroke Script, click the Edit button, and enter the following:
    var t1=this.getField ("Text1");
    if (event.fieldFull)
    getField("Text2").setFocus();
    2) For the second text field, in the Options tab, remove Multi-line and remove Scroll long text. In the Format tab, in Custom Keystroke Script, click the Edit button, and enter the following:
    var t2=this.getField ("Text2");
    if (event.fieldFull)
    getField("Text3").setFocus();
    Click the Hand tool and start entering text in the first text field. When you run out of space in the first text field it should flow to the second text field and then to the third.
    As noted in my previous message of October 7, 8:05, there are some very severe limitations to this technique which I've not been able to overcome. I was hoping that George might have a suggestion to offer about the limitations, but since we haven't heard from him, maybe there are no workarounds for the limitations.

Maybe you are looking for

  • How to move an icon from one Pic into another Pic?

    Hello, I haven't seen this question addressed so forgive me if this was already discussed. I like to know how I can place a small smiley icon (pic) into another existing photo. In Photoshop Elements (be it 4.0 or 6.0) if I drag the the picture into E

  • Design View not displaying external files...HELP!

    This is my second attempt asking for anybody's help. I'm using Dreamweaver 8.0.2 (OS X 10.4.11) and when I open "any" of my local files In "Design View" NO external files loads. Here's what I've done so far to no avail: Delete "site cache" Delete all

  • Material Staging for Production Order

    Hi, I am doing Material Staging against production Order using T Code MF60. We don't have WM setup in the enterprise structure so the Staging is done via IM Mvmt. Type 311. My problem is that the material document created using MF60 does not have a r

  • Install of CS6 Photoshop and keep CS 5 extended on Win 7 PC?

    Can I have both CS6 Photoshop and CS 5 extended on my PC??  Since I rarely use 3D (but might in the future) I would like to keep CS 5 extended installed.  As I no longer qualify for the extended version at a discount, I will likely opt for the CS6 up

  • Adobe Premiere Elements 4.0-HDV 1080i-project

    Do I get an improvement of a non-HDV-inputfilm if I open it as a HDV 1080i-project and finish it as an HDV 1080i-project compared with the case where I open it as a non-HDV-project?