Table joins from Expediture Items to Po distribution

Hi,
I have a requirement to add the column PO.PO_DISTRIBUTIONS_ALL.DELIVER_TO_PERSON_ID to an existing report that is built using the following tables:
pa_expend_items_adjust2_v
pa_cost_distribution_lines_all
po_vendors
ap_invoices_v
gl_code_combinations
gl_periods
The view pa_expend_items_adjust2_v is based on the following tables:
pa_projects_all
pa_tasks
pa_expenditure_items_all
pa_expenditures_all
pa_project_types_all
pa_transaction_sources
hr_all_organization_units_tl
per_jobs
I am unable to find the table linkage between the tables already used in the report to the column in the table I need to add. I can easily get the PO_NUMBER in the report but can't get down to the LINE_ID and/or PO_DISTRIBUTION_ID level.
Does anyone have a query for doing this?
Thank you very much!
Suzanne

This is overkill, but try this...
(Make sure to set the item master org on the 9th line from the end)
SELECT
mmx.project_num,
mmx.project_name,
mmx.task_num,
mmx.task_name,
mmx.system_linkage_function slf,
mmx.po_num po,
mmx.po_line,
NVL(mmx.po_vendor_name,mmx.vendor_name) vendor,
mmx.exp_cat,
mmx.expenditure_type exp_type,
mmx.job_name,
mmx.item_number,
mmx.item_description,
mmx.exp_comment,
mmx.item_cat,
mmx.incurred_by_org,
mmx.incurred_by_person,
mmx.quantity,
mmx.raw_cost cost,
mmx.gl_period,
     TO_CHAR(mmx.expenditure_item_date,'YYYY-MM-DD')     item_date
FROM
(SELECT
FROM
(SELECT
DECODE(peia.transaction_source, 'PJM_CSTBP_INV_NO_ACCOUNTS', rt.po_distribution_id, 'PO RECEIPT', exp.orig_exp_txn_reference1, NULL ) AS po_distribution_id,
org.name AS incurred_by_org,
et.expenditure_category AS exp_cat,
pv.vendor_name,
job.name AS job_name,
com.expenditure_comment AS exp_comment,
cdl.recvr_gl_period_name AS gl_period,
peo.full_name AS incurred_by_person,
pa.segment1 AS project_num,
pa.name AS project_name,
pt.task_number AS task_num,
pt.task_name AS task_name,
peia.*
FROM
pa_expenditure_items_all peia,
pa_expenditures_all exp,
pa_expenditure_types et,
rcv_transactions rt,
mtl_material_transactions mmt,
pa_projects_all pp,
hr_all_organization_units org,
po_vendors pv,
per_jobs_tl job,
pa_expenditure_comments com,
pa_cost_distribution_lines_all cdl,
per_all_people_f peo,
pa_projects_all pa,
pa_tasks pt
WHERE 1=1
AND DECODE(peia.transaction_source,'PJM_CSTBP_INV_NO_ACCOUNTS',peia.orig_transaction_reference,NULL) = mmt.transaction_id (+)
AND mmt.rcv_transaction_id = rt.transaction_id (+)
AND pp.project_id = peia.project_id
AND org.organization_id (+) = exp.incurred_by_organization_id
AND exp.vendor_id = pv.vendor_id (+)
AND peia.expenditure_id = exp.expenditure_id
AND peia.expenditure_type = et.expenditure_type
AND job.job_id (+) = peia.job_id
AND com.expenditure_item_id (+) = peia.expenditure_item_id
AND cdl.expenditure_item_id = peia.expenditure_item_id
AND exp.incurred_by_person_id = peo.person_id (+)
AND NVL(peo.effective_end_date,TO_DATE('01-01-2200','dd-mm-yyyy')) > SYSDATE
AND pa.project_id = peia.project_id
AND pa.project_id = pt.project_id
AND pt.task_id = peia.task_id
) expenditure,
(SELECT
ph.segment1 AS po_num,
pl.line_num AS po_line,
mc.segment1 AS item_cat,
pd.po_distribution_id AS po_dist_id,
pv.vendor_name AS po_vendor_name,
msi.segment1 AS item_number,
pl.item_description
FROM
po_headers_all ph,
po_lines_all pl,
mtl_categories mc,
po_distributions_all pd,
po_vendors pv,
mtl_system_items_b msi
WHERE 1=1
AND ph.po_header_id = pl.po_header_id
AND pl.category_id = mc.category_id
AND pl.po_line_id = pd.po_line_id
AND ph.vendor_id = pv.vendor_id
AND pl.item_id = msi.inventory_item_id (+)
AND msi.organization_id (+) = 103 --set this to your Item Master Org Id
) po
WHERE 1=1
AND expenditure.po_distribution_id = po.po_dist_id (+)
) mmx
WHERE 1=1
     AND mmx.project_num LIKE ?
ORDER BY
1,3,5,6,7

Similar Messages

  • Deleting a row from the item table

    Hi All,
    I have a requirement where I need to put a button to delete the selected row from the item table and for this I have written the following code:
    DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
        DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
        DATA ls_t_bseg TYPE wd_this->element_t_bseg.
        data: it_tab type table of wd_this->element_t_bseg.
      lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
      lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
      lo_el_t_bseg->get_static_attributes(
        IMPORTING
          static_attributes = ls_t_bseg ).
        lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
        lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
        IF lo_el_t_bseg IS not INITIAL.
          lo_nd_t_bseg->remove_element( lo_el_t_bseg ).
        ENDIF.
    Now the problem is although it's deleteing the selected line correctly but because of this I am losing one line on the screen for the user to enter... my form has a fixed number of lines and in my case it's 10... so everytime I am using deleting a line item I am losing one line to enter..... can you please tell me how can I avoid this?
    Edited by: rajatg on Aug 4, 2011 3:12 PM

    lets say...
    i have 1,2,3 documents
    i have cleared , document 2....
    1. when the user selects this record.... you can read the context_element....using the context element you can get the values and clear those values and set the blank values...
    when the user click on save ...you can have only those two records in the table.
    2. conitnue with your logic .... remove_element. once it is done ,,, create_element at the deleted index...
    3. when clicked on delete ...remove_element ( current code).... bind the table to the node... and you will have ur values

  • Multiple outer joins from a single table

    Here is my scenario - I have 3 folders:
    Theater - contains Theater Name and Theater ID
    Agency - contains Agency Name and Theater ID
    Depot - contains Depot Name and Theater ID
    A theater may or may not have an agency. Likewise, it may or may not have a depot.
    Thus, I've set up a join from Theater (master) to Agency on Theater ID, and selected "outer join on detail"
    Likewise, I've done the same between Theater (master) and Depot on Theater ID
    When I attempt to create a report with the columns Theater Name, Agency Name, and Depot Name, I am unable to do so. I can only pick either Agency Name or Depot Name, not both. When I try to add the second outer joined element, Discoverer reports that it cannot determine the join configuration because "more than 1 of the detail folders uses non-aggregate items"
    What am I doing wrong? Any help would be greatly appreciated, thanks!

    Hi,
    Try change the joins to be "outer join on detail" and "one to one join relationship between master and detail".
    Hope that helps,
    Rod West

  • Is it Possible to make a join from a single table

    Hi all,
    Is it Possible to make a join from a single table
    Suppose HR_ALL_ORGANIZATION_UNITS table
    can we make a join in the following way
    HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID =HR_ALL_ORGANIZATION_UNITS.BUSINESS_GROUP_ID
    Thanks in advance

    Hi
    Yes you can join,
    Like below =- it is called self join -
    Slect a.oersson_id,a.employee_numebr, b.full_name
    form
    hr_all_organization_units a,
    hr_all_organization_units b
    where
    a.person_id = b.person_id and
    sysdate between a.effective_start_date and a.effective_end_date and
    sysdate between b.effective_start_date and b.effective_end_date
    914618 wrote:
    Hi all,
    Is it Possible to make a join from a single table
    Suppose HR_ALL_ORGANIZATION_UNITS table
    can we make a join in the following way
    HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID =HR_ALL_ORGANIZATION_UNITS.BUSINESS_GROUP_ID
    Thanks in advance

  • Finding Item and brand distribution base on customer master

    Please help me to write query on my SQL 2008 database to how in one row the following data
    1- Brand, item, Route(Salesman),Division (City), Total Available customer (Per Route),Total Available customer (Per Division), Total Customer purchased the Item (Per Route),Total Customer purchased the Item (Per Division),
    I have two tables [CustomerMaster and SalesData] as shown below.
    CustomerMaster
        | CODE |       NAME | ROUTE | DIVISION |
        |------|------------|-------|----------|
        | 1001 |  Customer1 |    R1 |     Div1 |
        | 1002 |  Customer2 |    R1 |     Div1 |
        | 1003 |  Customer3 |    R1 |     Div1 |
        | 1004 |  Customer4 |    R2 |     Div1 |
        | 1005 |  Customer5 |    R2 |     Div1 |
        | 1006 |  Customer6 |    R2 |     Div1 |
        | 1007 |  Customer7 |    R3 |     Div2 |
        | 1008 |  Customer8 |    R3 |     Div2 |
        | 1009 |  Customer9 |    R3 |     Div2 |
        | 1010 | Customer10 |    R4 |     Div2 |
    SalesData
        | CUSTOMERCODE |               DATE | ITEM | BRAND | QUANTITY |
        |--------------|--------------------|------|-------|----------|
        |         1001 |  January, 01 2014  |  IT1 |   BR1 |        2 |
        |         1001 | February, 01 2014  |  IT2 |   BR2 |        5 |
        |         1003 |  January, 01 2014  |  IT1 |   BR1 |       20 |
        |         1003 | February, 01 2014  |  IT3 |   BR1 |        6 |
        |         1005 |  January, 01 2014  |  IT1 |   BR1 |        5 |
        |         1005 | February, 01 2014  |  IT2 |   BR2 |       11 |
        |         1007 |  January, 01 2014  |  IT1 |   BR1 |       15 |
        |         1007 | February, 01 2014  |  IT2 |   BR2 |        7 |
        |         1007 |    March, 01 2014  |  IT3 |   BR1 |        9 |
        |         1007 |    April, 01 2014  |  IT4 |   BR2 |       18 |
    I need to answer below questions
    To get the Brand distribution over Route and Division
    1-Count of customers that bought a brand per Route and Per Division
    *  ex:BR1 reached 2 customers out of 3 in R1
    *  ex:BR1 reached 3 customers out of 6 in Div1
    To get the Item distribution over Route and Division
    1-Count of Customers that bought an item per Route and Per Brand
    *  ex:IT2 reached 1 customers out of 3 in R1
    *  ex:IT2 reached 2 customers out of 6 in Div1
    It will be a great if someone can help me.

    Try below code
    select'1001' code ,'Customer1' name,'R1' route,'Div1' division into #CustomerMaster union all
    select'1002','Customer2','R1','Div1'union all
    select'1003','Customer3','R1','Div1'union all
    select'1004','Customer4','R2','Div1'union all
    select'1005','Customer5','R2','Div1'union all
    select'1006','Customer6','R2','Div1'union all
    select'1007','Customer7','R3','Div2'union all
    select'1008','Customer8','R3','Div2'union all
    select'1009','Customer9','R3','Div2'union all
    select'1010','Customer10','R4','Div2'
    select'1001' CUSTOMERCODE ,'January, 01 2014' DATE ,'IT1' ITEM ,'BR1' BRAND ,'2' QUANTITY into #SalesData union all
    select'1001','February, 01 2014','IT2','BR2','5'union all
    select'1003','January, 01 2014','IT1','BR1','20'union all
    select'1003','February, 01 2014','IT3','BR1','6'union all
    select'1005','January, 01 2014','IT1','BR1','5'union all
    select'1005','February, 01 2014','IT2','BR2','11'union all
    select'1007','January, 01 2014','IT1','BR1','15'union all
    select'1007','February, 01 2014','IT2','BR2','7'union all
    select'1007','March, 01 2014','IT3','BR1','9'union all
    select'1007','April, 01 2014','IT4','BR2','18'a
    --brand per Route
    SELECT A1.*,B1.TCount from
    (SELECT B.BRAND,A.ROUTE,COUNT(B.CUSTOMERCODE) Rcount
    FROM #CustomerMaster A
    INNER JOIN (select distinct BRAND,CUSTOMERCODE from #SalesData )B
    ON B.CUSTOMERCODE=A.CODE
    GROUP BY B.BRAND,A.ROUTE) A1
    INNER JOIN
    (SELECT A.ROUTE, COUNT(A.CODE) Tcount from #CustomerMaster A GROUP BY A.ROUTE)B1
    ON A1.ROUTE=B1.ROUTE
    --brand Per Division
    SELECT A1.*,B1.TCount from
    (SELECT B.BRAND,A.DIVISION,COUNT(B.CUSTOMERCODE) Dcount
    FROM #CustomerMaster A
    INNER JOIN (select distinct BRAND,CUSTOMERCODE from #SalesData )B
    ON B.CUSTOMERCODE=A.CODE
    GROUP BY B.BRAND,A.DIVISION) A1
    INNER JOIN
    (SELECT A.DIVISION, COUNT(A.CODE) Tcount from #CustomerMaster A GROUP BY A.DIVISION)B1
    ON A1.DIVISION=B1.DIVISION
    -- item per Route
    SELECT A1.*,B1.TCount from
    (SELECT B.ITEM,A.ROUTE,COUNT(B.CUSTOMERCODE) Rcount
    FROM #CustomerMaster A
    INNER JOIN (select distinct ITEM,CUSTOMERCODE from #SalesData )B
    ON B.CUSTOMERCODE=A.CODE
    GROUP BY B.ITEM,A.ROUTE) A1
    INNER JOIN
    (SELECT A.ROUTE, COUNT(A.CODE) Tcount from #CustomerMaster A GROUP BY A.ROUTE)B1
    ON A1.ROUTE=B1.ROUTE
    --item per Division
    SELECT A1.*,B1.TCount from
    (SELECT B.ITEM,A.DIVISION,COUNT(B.CUSTOMERCODE) Dcount
    FROM #CustomerMaster A
    INNER JOIN (select distinct ITEM,CUSTOMERCODE from #SalesData )B
    ON B.CUSTOMERCODE=A.CODE
    GROUP BY B.ITEM,A.DIVISION) A1
    INNER JOIN
    (SELECT A.DIVISION, COUNT(A.CODE) Tcount from #CustomerMaster A GROUP BY A.DIVISION)B1
    ON A1.DIVISION=B1.DIVISION
    Thanks
    Saravana Kumar C

  • Update FI item text from PO item text

    Hi all,
                     i am trying to update FI item text(bseg) from PO item text(ekpo).I know that bseg is a culster table therefore inner join is not allow.So is there a way i can join these two tables together so i can retrieve the line item and then i'll do a modify to update into FI item text.I have tried the various codes that are posted within this forum but can never get anything to write:/ out.
                       I've manage to retrieve the various info from PO (ekpo) and also manage to update the FI text field with some random words(but both seperately).What i need now is to create a link between bseg and ekpo.
                       I have attached my coding for better understanding..Thankss
    REPORT  ZSTKLILINTEST3 LINE-SIZE 1023 LINE-COUNT 1023 NO STANDARD PAGE HEADING.
    Table Declaration
    TABLES: ekpo, ekko, bseg, zstkll_1.
    Types Declaration
    TYPES:  BEGIN OF t_bseg,
            ebeln LIKE bseg-ebeln,
            hkont LIKE bseg-hkont,
            END OF t_bseg,
            BEGIN OF t_ekpo,
            ebeln LIKE ekpo-ebeln,
            txz01 LIKE ekpo-txz01,
            bukrs LIKE ekpo-bukrs,
            ebelp LIKE ekpo-ebelp,
            hkont LIKE bseg-hkont,
            END OF t_ekpo.
    Data  Declaration
    *grab data from t_ekpo then append it to zstkcy008
    DATA: ekpo_tab TYPE STANDARD TABLE OF t_ekpo WITH HEADER LINE,
          bseg_tab TYPE STANDARD TABLE OF t_bseg WITH HEADER LINE,
          zstkll_1_tab TYPE STANDARD TABLE OF zstkll_1,
          wa_zstkll_1 LIKE LINE OF zstkll_1_tab.
    Selection-Screen
    SELECT-OPTIONS: s_bukrs FOR ekpo-bukrs,
                    s_ebeln FOR ekpo-ebeln,
                    s_hkont FOR bseg-hkont.
    INITIALIZATION EVENT
    AT SELECTION-SCREEN EVENT
    START-OF-SELECTION
    START-OF-SELECTION.
      SELECT bukrs
      FROM ekpo
      INTO CORRESPONDING FIELDS OF TABLE ekpo_tab
      WHERE bukrs IN s_bukrs.
    IF ekpo_tab[] IS NOT INITIAL.
    SELECT ekkoebeln ebelp bedat txz01 ekkobukrs
    FROM ekpo INNER JOIN ekko
    ON ekpoebeln = ekkoebeln
    INTO CORRESPONDING FIELDS OF TABLE ekpo_tab
    FOR ALL ENTRIES IN ekpo_tab
    WHERE ekko~bukrs = ekpo_tab-bukrs
    AND ekko~ebeln IN s_ebeln.
        WRITE:/ 'Extracted Data:'.
        LOOP AT ekpo_tab.
          MOVE-CORRESPONDING ekpo_tab TO wa_zstkll_1.
          WRITE:/ ekpo_tab-bukrs, ekpo_tab-ebelp, ekpo_tab-txz01, ekpo_tab-ebeln, ekko-ebeln, ekko-bedat.
          AT END OF ebeln.
           APPEND wa_zstkll_1 TO zstkll_1_tab.
          ENDAT.
          CLEAR: wa_zstkll_1, ekpo_tab.
        ENDLOOP.
        SKIP 2.
        TRY.
            CLEAR sy-dbcnt.
    INSERT zstkll_1 FROM TABLE zstkll_1_tab.
          CATCH cx_root.
            WRITE:/ 'Record(s) already exist!'.
        ENDTRY.
        WRITE:/ sy-dbcnt, ' Records are inserted.'.
    ELSE.
    WRITE:/ 'No data Selected.'.
    ENDIF.
    END-OF-SELECTION
    END-OF-SELECTION.
    REPORT  ZSTKLILINTEST13.
    TABLES:bseg.
    DATA:it_bseg LIKE bseg OCCURS 0 WITH HEADER LINE.
    PARAMETERS:p_belnr LIKE bseg-belnr,
               p_bukrs LIKE bseg-bukrs,
               p_gjahr LIKE bseg-gjahr.
    START-OF-SELECTION.
    SELECT * FROM bseg INTO TABLE it_bseg WHERE belnr = p_belnr AND bukrs = p_bukrs AND gjahr = p_gjahr.
    MOVE 'IF THIS APPEAR UPDATE IS SUCCESSFUL' TO it_bseg-sgtxt.
    MODIFY it_bseg FROM it_bseg TRANSPORTING sgtxt where belnr = p_belnr AND bukrs = p_bukrs AND gjahr = p_gjahr.
    LOOP AT it_bseg.
    WRITE:/3 it_bseg-belnr, it_bseg-gjahr, it_bseg-sgtxt.
    ENDLOOP.
    MODIFY bseg FROM TABLE it_bseg.
    COMMIT WORK.
    IF sy-subrc EQ 0.
    WRITE:/3 'BSEG TABLE UPDATED SUCCESSFULLY WITH TEXT'.
    ENDIF.

    self solved

  • Using Table.Join formula takes extremly long time to get results.(Why Query Folding doesn't work?)

    Hi,
    I built a query with 4 tables inside (load from Oracle DB and two of them are quite big, more than millions of rows). After filtering, I tried to build relationships between tables using Table.Join formula. However, the process took extremly long time to
    bring out results (I ended the process after 15 mins' processing). There's a status bar kept updating while the query was processing, which is showed as  . I suppose
    this is because the query folding didn't working, so PQ had to load all the data to local memory first then do the opertion, instead of doing all the work on the source system side. Am I right? If yes, is there any ways to solve this issue?
    Thanks.
    Regards,
    Qilong 

    Hi Curt,
    Here's the query that I'm refering,
    let
        Source = Oracle.Database("reporting"),
        AOLOT_HISTS = Source{[Schema="GEN",Item="MVIEW$_AOLOT_HISTS"]}[Data],
        WORK_WEEK = Source{[Schema="GEN",Item="WORK_WEEK"]}[Data],
        DEVICES = Source{[Schema="GEN",Item="MVIEW$_DEVICES"]}[Data],
        AO_LOTS = Source{[Schema="GEN",Item="MVIEW$_AO_LOTS"]}[Data],
        Filter_WorkWeek = Table.SelectRows(WORK_WEEK, each ([WRWK_YEAR] = 2015) and (([WORK_WEEK] = 1) or ([WORK_WEEK] = 2) or ([WORK_WEEK] = 3))), 
        Filter_AlotHists = Table.SelectRows(AOLOT_HISTS, each ([STEP_NAME] = "BAKE" or [STEP_NAME] = "COLD TEST-IFLEX" or [STEP_NAME] = "COLD TEST-MFLEX") and ([OUT_QUANTITY] <> 0)),
        #"Added Custom" = Table.AddColumn(Filter_AlotHists, "Custom", each Table.SelectRows(Filter_WorkWeek, (table2Row) => [PROCESS_END_TIME] >= table2Row[WRWK_START_DATE] and [PROCESS_END_TIME] <= table2Row[WRWK_END_DATE])),
        #"Expand Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"WRWK_YEAR", "WORK_WEEK", "WRWK_START_DATE", "WRWK_END_DATE"}, {"WRWK_YEAR", "WORK_WEEK",
    "WRWK_START_DATE", "WRWK_END_DATE"}),
        Filter_AolotHists_byWeek = Table.SelectRows(#"Expand Custom", each ([WORK_WEEK] <> null)),
        SelectColumns_AolotHists = Table.SelectColumns(Filter_AolotHists_byWeek,{"ALOT_NUMBER", "STEP_NAME", "PROCESS_START_TIME", "PROCESS_END_TIME", "START_QUANTITY", "OUT_QUANTITY", "REJECT_QUANTITY",
    "WRWK_FISCAL_YEAR", "WRWK_WORK_WEEK_NO"}),
        Filter_Devices= Table.SelectRows(DEVICES, each ([DEPARTMENT] = "TEST1")),
        SelectColumns_Devices = Table.SelectColumns(Filter_Devices,{"DEVC_NUMBER", "PCKG_CODE"}),
        Filter_AoLots = Table.SelectRows(AO_LOTS, each Text.Contains([DEVC_NUMBER], "MC09XS3400AFK") or Text.Contains([DEVC_NUMBER], "MC09XS3400AFKR2") or Text.Contains([DEVC_NUMBER], "MC10XS3412CHFK") or Text.Contains([DEVC_NUMBER],
    "MC10XS3412CHFKR2")),
        SelectColumns_AoLots = Table.SelectColumns(Filter_AoLots,{"ALOT_NUMBER", "DEVC_NUMBER", "TRACECODE", "WAFERLOTNUMBER"}),
        TableJoin = Table.Join(SelectColumns_AolotHists, "ALOT_NUMBER", Table.PrefixColumns(SelectColumns_AoLots, "AoLots"), "AoLots.ALOT_NUMBER"),
        TableJoin1 = Table.Join(TableJoin, "AoLots.DEVC_NUMBER", Table.PrefixColumns(SelectColumns_Devices, "Devices"), "Devices.DEVC_NUMBER")
    in
        TableJoin1
    Could you please give me some hints why it needs so long to process?
    Thanks.

  • How to query a table join in SAP?

    Hi,
    We are rolling out SAP and our abapers are wondering how to debug production problems.  From our experience with PeopleSoft, there is often a need to query tables directly in production.  These queries are often joins.  SAP provides SE16 to query a single table, but how to SDN'ers query a join in PROD?
    For a basic example, how would you join a sales item and sales header?  We are thinking of using Oracle OpenSQL to have direct table access.  Solutions that somehow use SAP security for developers to access production are good!
    Any suggestions are welcome and points will be rewarded!!
    Peter

    Peter,
    Be careful if your company is large enough to have been impacted by Sarbanes-Oxley 404.  Your external auditing firm should be engaged in whatever approach you take.
    This type of information/querying is now much more monitored/controlled for SOX 404-impacted organizations.
    Example - SQVI has been removed from all PRD instances in our company b/c of SOX 404.

  • Deleted Allocation Table in vendor PO items

    Hi guys, I write because it is having the problem I describe below:
    It creates an allocation table referencing a vendor PO.
    STO´s are created for each store included in the allocation rule in the allocation table.
    It is noted that there was an error in choosing the allocation rule
    Deletes the STO´s items generated for distribution to stores
    Deletes the allocation table.
    It tries to regenerate the allocation table referencing to vendor purchase order, but this is not generated because the order is linked to the previous allocation table.
    After the situation described, I wonder if there is any way to rearrange the vendor purchase order items so as to disassociate from the allocation table initially created.
    Greetings, and thanks in advance

    how is your problem fixed,please share with me!
    Thanks in advance .
    Deyi.

  • About table join

    i have 2 tables in my report.
    table A: group-id, item-id, name, ...
    table B: group-id, item-id, detail-id, name, ...
    i want to join the 2 table using group-id & item-id.
    i tried but the join result is not correct, it looks like only joint on 1 column.
    does crystal report support this kind of join?
    how can i define the joint condition:
    - tableA.group-id = tableB.group-id and tableA.item-id = tableB.item-id
    - tableA.group-id = tableB.group-id or tableA.item-id = tableB.item-id
    it seems there is no way to specify the "and", "or".
    thanks in advance

    Hello,
    Yes CR should allow this unless the DB driver you are using does not support it.
    Older DB drivers may not support mutliple joins.
    I assume also that you are dragging the field from Table A to Table B and then right clicking on the link and selecting the join type?
    What DB are you using and how are you connecting, ODBC, OLE DB, native or ????
    What you can do is create the SQL outside of CR and then as a test use a Command and paste in your SQL. If this works then you should be able to do the same in the database expert Linking options.
    Thank you
    Don
    Edited by: Don Williams on Sep 23, 2009 7:26 AM

  • Need your help to confirm the table join rules on DocEntry and DocNum.

    Hi guys,
    I've done some study and awared table join rules on SBO documents, let me put in the followings:
    (1) the table of documents head (i.e. ODLN) and line items (i.e. DLN1) can be joined via DocEntry/BaseEntry.
    (2) the table of related documents (i.e. RDR1 and DLN1) can be joined via DocNum/BaseRef.
    finnally, can we say that we can ONLY join table by DocEntry/BaseEntry or DocNum/BaseRef, and we should NOT use DocEntry/BaseRef.
    Am I right? pls help to correct it for my misunderstanding.
    Thanks.

    thanks for your help.
    but I'm truly confused about why some table have both BaseRef and BaseEntry columns, some table only have DocEntry columns?
    As I know, e.g. OWOR and WOR1, there have some series generated from NMM1, the value of DocEntry/DocNum in OWOR may not be the same, and we can only join OWOR/WOR1 via OWOR.DocEntry = WOR1.DocEntry.
    So when to use (T0.DocEntry/T1.DocEntry), when to use (T0.DocEntry/T1.BaseEntry) and when to use (T0.DocNum/T1.BaseRef)?

  • Building a report from folder items

    I would like to know whether somebody might be able to answer this question.
    I have a list of file type items held in a folder. These items happen to be statistical information and are held in the database as you can imagine as blobs. I want to be able to build a report that extracts the content of these items and combines them into a single report. No formatting is reuired simply as it appears. Any ideas, thoughts or suggestions?
    Thanks.

    All item data are stored in portal30.wwv_things table.
    Get the filename from this table for all the items you want.
    Then with the folder path, append this filename and
    open it with a URLconnection class in java(I am not sure with pl/sql) and use methods in URLconnection class to read the data.
    If you put this in the loop, you can join all the content of
    document files.
    Try this out.

  • Order Query in SQ01 using Table Joins in CRM

    Hello Experts,
    I am trying to create a query using table joins in SQ01 in CRM because I need a report that will give me all transactions for a selected Business Partner.  I am unable to display any results when running my query.  I have found other threads which give a list of possible tables to join together, but the fields used in the joins were not described. 
    The tables I have joined in my query are as follows:
    CRMD_ORDERADM_H
    CRMD_ORDER_INDEX
    CRMD_PARTNER
    BUT_000
    I have used SE16 to try to search for additional tables to use for linking the Business Partner with a transaction, but I have been unsuccessful.
    Would anyone please give advice as how to proceed? 
    Reward points are available!
    Thank you in advance,
    David

    David
    The link with be the GUID.
    CRMD_ORDERADM_H = Document Header Table
    CRMD_ORDERADM_I = Document Line item Table
    CRMD_LINK = Lists various ‘link’ GUIDs, to
    access order Information
    The Table CRMD_ORDERADM_H will contain you transactions , once you find the GUID of your sales transaction in the table CRMD_ORDERADM_H.
    You then need to check the table CRMD_LINK.
    In this table you will then find a number in 11 = sales. This refers to the table CRMD_SALES. There are also links to many other tables ie Shipping, pricing, org etc.
    CRMM_BUT_SET0140 - for Sales Group, Sales Office, District
    CRMM_BUT_LNK0141 - for Sales Area data
    Transaction CRMD_BUS2000115 allows you to see all sales transactions for a BP. CRMD_BUS2000126 shows you activities for selected BP.
    Regards
    M

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • Which all tables suffice all line item GL data requirements

    Please clarify this requirement for Line Item Data from  New GL. my client BMW Inc have configured  New GL in ECC 6.0  if i pull all the records to BW from FAGLFLEXA (Line Item Table) is that sufficient to meet the <b>all line item GL data</b> or is there any other tables missing that also shall be combined to bring the Line item GL  data. Please help me for this if u can check with any of your friends in FICO.  
    2. I have seen that BSEG AND BKPF are used earlier in old FI  versions so what is there now in New GL ECC 6.0 that will suffice for these BSEG AND BKPF  or still i have to pull records by using these tables. for GL Line Item Data.
    If you can help me to give the short  overview of  New GL posting process it would be great.
    Thanks
    Regards
    Soniya Kapoor

    Hi Soniya,
    FAGLFLEXA & FAGLFLEXT would contain all FI line item
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/e26840b151181ce10000000a1550b0/content.htm
    Pls assign points as way to say thanks

Maybe you are looking for

  • Error Starting WebLogic Server 5.1 (SP11)

    Hi, I have installed weblogic server 5.1 (SP11) in NT, I tried to start the Weblogic Server and got the message "weblogic server started", immediatly after that I got the message " IIOP service not started as vm 1.3 was not found". Do you know what c

  • Disable desktop image - how

    Is there a way to disable desktop image - to get more speed to ARD. Timbuktu does it - maybe ARD can also ?

  • Watching movies from seagate

    Hello can someone please help me i was up all night busting my head trying to figure out this problem. I just recently purchased an ipad mini and a seagate wireless for my 2015 vacations. Just trying it out i have LOTS of digital copys with my movies

  • IRecruitment in DMZ

    Hi Apps Gurus, We have a situation where we need to take the Irecruitment external and we want to make it as a secure connection. Our envirionment is like this: OS- RHEL AS4 APPLICATION - Oracle 11.5.10.2 Two tier System where DB, admin and concurren

  • My iPod Touch 4gen turn on or reset no matter what I try?

    My iPod Touch won't start no matter what I try. For a while it wasn't being used and when I tried it wouldn't turn on. I tried charging it thinking it just might be dead but nothing still. Plugging it into the computer doesn't help neither. Also when