Joins for OKS (Billing) tables
Hi,
A couple of questions:
1) Can anyone let me know how the following tables can be joined correctly with OKC_K_LINES_B? If there is more than one way, please let me know that too:
OKS_BILL_CONT_LINES
OKS_BILL_SUB_LINES
OKS_BILL_SUB_LINE_DTLS
OKS_BILL_TRANSACTIONS
OKS_BILL_TXN_LINES
2) From contracts form, when I choose Tools -> Invoice Details, I'm able to see the invoice #. But when I go to Lines - Pricing/Products tab and click on Billing button....I see no invoice information at Stream Level. (The Service Contracts Fetch Receivables Info for Billing concurrent request has already been run). This is happening with a warranty contract created thru OM. My assumption was that once the Service Contracts Fetch Receivables Info for Billing conc. request is run, I would be able to see the invoice #. FYI, the History tab also does not show any invoice related details.
Help is greatly appreciated.
Thanks,
Alka.
Please look at the following query to get an idea about the joins:
SELECT BCL.id,BCL.cle_id,BCL.btn_id,BCL.bill_action,OKL.id line_id,OKH.id header_id
FROM OKS_BILL_CONT_LINES BCL,
OKC_K_LINES_B OKL,
OKC_K_HEADERS_B OKH,
OKS_BILL_TRANSACTIONS BTN,
OKS_BILL_TXN_LINES BTL
WHERE OKH.contract_number = p_contract_number
And nvl(OKH.contract_number_modifier,'-') = nvl(p_contract_no_modifier,'-')
And BCL.bill_action = 'TR'
And OKH.ID = OKL.DNZ_CHR_ID
And OKL.CLE_ID IS NULL
And OKL.ID = BCL.CLE_ID
And BTN.ID = BCL.BTN_ID
And BTN.TRX_NUMBER = -99
And BTL.BTN_ID = BTN.ID
And BTL.BILL_INSTANCE_NUMBER IS NOT NULL
And NOT EXISTS
(SELECT 'x' FROM RA_INTERFACE_LINES_ALL
WHERE SALES_ORDER = OKH.CONTRACT_NUMBER
AND INTERFACE_LINE_ATTRIBUTE2 = NVL(OKH.contract_number_modifier,'-')
AND interface_line_attribute3 = BTL.bill_instance_number
And NOT EXISTS
(select 'x' from ra_customer_trx_lines_all
where interface_line_attribute1 = OKH.CONTRACT_NUMBER
and INTERFACE_LINE_ATTRIBUTE2 = NVL(OKH.contract_number_modifier,'-')
AND interface_line_attribute3 = BTL.bill_instance_number
);
Similar Messages
-
Join for dataview and tables.
Hi,
can i write join for dataview and tables.
Regards,
Suresh.hi,
YEs u can create for data view and tables.
You can create database views in the ABAP Dictionary. Views (aggregate objects) are application specific and allow you to work with multiple database tables.
Regards,
Rahul -
Joins for PO & RCV tables in R12
Could you provide me joins for below tables
rcv_shipment_headers rsh
rcv_shipment_lines rsl
rcv_transactions rct
po_headers_all poh
po_lines_all pol
Thanksrsh.shipment_header_id = rsl.shipment_header_id
AND rsl.po_header_id = rct.po_header_id
AND rsl.po_line_id = rct.po_line_id
AND rct.po_header_id = poh.po_header_id
AND rct.po_line_id = pol.po_line_id
AND poh.po_header_id = pol.po_header_id
Thanks,
PS. -
Joins for CRM - Service tables
Hi,
Could you let me know joins for below tables.
CS_INCIDENT_TYPES_TL Name (SR Name)
MTL_SYSTEM_ITEMS_B
cs_incidents_audit_b
csi_item_instances
csi_iea_values
csi_iea_values_h
Q_ESTIMATE_DETAILS_V
JTF_TASK_AUDITS_B
jtf_task_assignments_audit_b
csi_item_instances_h
cs_incident_statuses_vl
QA_RESULTS
QA_RESULTS_V
Thanks
PraveenCould you let me know joins for above tables.
-
Please help to provide a join for the three tables and output as per list
to produce a report to list out all condition records for output and pricing.
<u><b>usage app procedure step counter cod type description access seq </b> </u>
<u><b>accseqnum cond table sales org doctype customer channel sale doc type</b></u>
the above list of fields from tables t683s ,t685,and t682i to be pulled, i need an inner join
regards
ksraoHi,
check the site www.alvrobot.com.ar
you can create a report over there using inner join just by providing simple information
follow step by step procedure and create a report
<u><b>Reward points if usefull.</b></u> -
How to use Inner Join for these 4 table's
Hi Guys,
My Requirement is i have to get the data into the final Internal table whose structure is like this (BWKEY type MBEW-BWKEY,
MATNR type MBEW-MATNR,
MAKTX type MAKT-MAKTX,
BWTTY type MBEW-BWTTY,
BWTAR type MBEW-BWTAR,
MEINS type MARA-MEINS,
BKLAS type MBEW-BKLAS,
VPRSV type MBEW-VPRSV,
STPRS type MBEW-STPRS,
PEINH type MBEW-PEINH,
CRCY(3) type c,
LBKUM type MBEW-LBKUM,
SALK3 type MBEW-SALK3,
LAEPR type MBEW-LAEPR,
J_3ADEFSI type MARC-J_3ADEFSI,
J_4kDEFSC type MARC-J_4kDEFSC,
SCLAS type MARA-/AFS/SCLAS,
EKALR type MBEW-EKALR,
HKMAT type MBEW-HKMAT,
HRKFT type MBEW-HRKFT,
KOSGR type MBEW-KOSGR,
PRCTR type MARC-PRCTR,
MMSTA type MARC-MMSTA,
SOBSK type MARC-SOBSK,
PPRDL type MBEW-PPRDL,
LPLPR type MBEW-LPLPR,
PPRDZ type MBEW-PPRDZ,
ZPLPR type MBEW-ZPLPR)
from 4 table's MBEW , MARA MAKT and MARC.
Can anybody provide the logci for this based on the below requirement
"Go to table MBEW with material number, plant and valuation type; fetch the information laid out in output format. There are some fields which need to come from tables MARC, MARA and MAKT. The common criterion is material number across these tables.
MBEW-MATNR = MARC-MATNR
MBEW-MATNR = MARA-MATNR
MBEW-MATNR = MAKT-MATNR
Thanks,
Gopi.Hello Gopi,
I did not have system now and just written in notepad..
types : begin of ty_mbew ,
MATNR type MBEW-MATNR,
BWTTY type MBEW-BWTTY,
BWTAR type MBEW-BWTAR,
MEINS type MARA-MEINS,
BKLAS type MBEW-BKLAS,
VPRSV type MBEW-VPRSV,
STPRS type MBEW-STPRS,
PEINH type MBEW-PEINH,
CRCY(3) type c, " What is this field ,i did not include in join
LBKUM type MBEW-LBKUM,
SALK3 type MBEW-SALK3,
LAEPR type MBEW-LAEPR,
J_3ADEFSI type MARC-J_3ADEFSI,
J_4kDEFSC type MARC-J_4kDEFSC,
SCLAS type MARA-/AFS/SCLAS,
EKALR type MBEW-EKALR,
HKMAT type MBEW-HKMAT,
HRKFT type MBEW-HRKFT,
KOSGR type MBEW-KOSGR,
PRCTR type MARC-PRCTR,
MMSTA type MARC-MMSTA,
SOBSK type MARC-SOBSK,
PPRDL type MBEW-PPRDL,
LPLPR type MBEW-LPLPR,
PPRDZ type MBEW-PPRDZ,
ZPLPR type MBEW-ZPLPR,
end of ty_mbew.
types : begin of ty_makt ,
matnr type makt-maktx,
MAKTX type MAKT-MAKTX,
end of ty_makt.
types : begin of ty_final ,
MATNR type MBEW-MATNR,
MAKTX type MAKT-MAKTX,
BWTTY type MBEW-BWTTY,
BWTAR type MBEW-BWTAR,
MEINS type MARA-MEINS,
BKLAS type MBEW-BKLAS,
VPRSV type MBEW-VPRSV,
STPRS type MBEW-STPRS,
PEINH type MBEW-PEINH,
CRCY(3) type c,
LBKUM type MBEW-LBKUM,
SALK3 type MBEW-SALK3,
LAEPR type MBEW-LAEPR,
J_3ADEFSI type MARC-J_3ADEFSI,
J_4kDEFSC type MARC-J_4kDEFSC,
SCLAS type MARA-/AFS/SCLAS,
EKALR type MBEW-EKALR,
HKMAT type MBEW-HKMAT,
HRKFT type MBEW-HRKFT,
KOSGR type MBEW-KOSGR,
PRCTR type MARC-PRCTR,
MMSTA type MARC-MMSTA,
SOBSK type MARC-SOBSK,
PPRDL type MBEW-PPRDL,
LPLPR type MBEW-LPLPR,
PPRDZ type MBEW-PPRDZ,
ZPLPR type MBEW-ZPLPR,
end of ty_final.
Internal tables
data :i_mbew type standard table of ty_mbew,
i_makt type standard table of ty_makt,
i_final type standard table of ty_final.
Work Areas
data : wa_mbew like line of i_mbew,
wa_makt like line of i_makt,
wa_final like line of i_final.
start-of-selection.
get the data from MBEW,MARA,MARC Table
select aMATNR aBWTTY
aBWTAR bMEINS
aBKLAS aVPRSV
aSTPRS aPEINH
*CRCY(3) type c,
aLBKUM aSALK3 a~LAEPR
c~J_3ADEFSI type MARC-J_3ADEFSI,
c~J_4kDEFSC type MARC-J_4kDEFSC,
b~SCLAS type MARA-/AFS/SCLAS,
aEKALR aHKMAT
aHRKFT aKOSGR
cPRCTR cMMSTA
cSOBSK aPPRDL
aLPLPR aPPRDZ
a~ZPLPR into corresponding fields of table i_mbew
from mbew as a inner join mara as b on bmatnr = amatnr
inner join marc as c on cmatnr = amatnr.
if sy-subrc eq 0.
select matnr maktx from makt into table i_makt
for all entries in i_mbew
where matnr = i_mbew-matnr
and spras = sy-langu.
endif.
loop at i_mbew into wa_mbew.
read the data from MAKT Table
read table i_makt into wa_makt with key matnr = wa_mbew-matnr.
if sy-subrc eq 0.
move-corresponding wa_mbew to wa_final.
move wa_makt-maktx to wa_final-maktx.
append wa_final to i_final.
endif.
endloop.
Thanks
Seshu -
WHERE clause creating a join for two or more tables
The CS3 Dreamweaver book says that the WHERE clause can
create a join for two or more tables. The join was created, but the
data is repeating. I have searched the web and this forum and have
not found the answer.
My Master page filters the recordset by Style No and when a
customer clicks on a particular style, it sends him to the Detail
page. All the records are showing from all tables on the detail
page from the Dynamic List, except they are showing multiple times
(ex. Size table has 4 sizes and Color table has 2 colors - my Size
Drop Down list is showing 8 options and my Color Drop Down List is
showing 8 options) I have a Master Page with a recordset pointing
to a Detail Page using the same recordset.
Master page works perfectly.
Master Recordset SQL:
SELECT products.itemID, products.category, products.styleno,
products.name, products.description, products.ourprice,
products.imageTH, products.image, coloroption.color,
sizeoption.size
FROM products, coloroption, sizeoption
WHERE category = 'chefcoats' AND
products.styleno=sizeoption.styleno AND
products.styleno=coloroption.styleno
GROUP BY products.styleno
ORDER BY styleno ASC
The Detail Recordset:
SELECT products.itemID, products.category, products.styleno,
products.name, products.description, products.ourprice,
products.imageTH, products.image, sizeoption.size,
coloroption.color
FROM products, sizeoption, coloroption
WHERE itemID=colname AND products.styleno=sizeoption.styleno
AND products.styleno=coloroption.styleno
I tried using the GROUP BY on the detail page, but then it
only showed one size and color from the dynamic drop down list. I
tried changing the field name "styleno" in the other tables to be
unique, however, I was using the table identifer. I tried using the
JOIN command instead of the WHERE clause and that didn't help
either.
On the detail page, the customer is supposed to click on the
Size box and see sizes XSM - 6XL ONLY ONE TIME. and then be able to
click on the Color option and see White, Black, Red ONE TIME.
Is this possible?
Thank you for giving your time to read this.!
EvieDo you have a link we can look at to see what you are trying
to do?
Dave
"EviePhillips" <[email protected]> wrote in
message
news:[email protected]...
> The CS3 Dreamweaver book says that the WHERE clause can
create a join for
two
> or more tables. The join was created, but the data is
repeating. I have
> searched the web and this forum and have not found the
answer.
>
> My Master page filters the recordset by Style No and
when a customer
clicks on
> a particular style, it sends him to the Detail page. All
the records are
> showing from all tables on the detail page from the
Dynamic List, except
they
> are showing multiple times (ex. Size table has 4 sizes
and Color table has
2
> colors - my Size Drop Down list is showing 8 options and
my Color Drop
Down
> List is showing 8 options) I have a Master Page with a
recordset pointing
to a
> Detail Page using the same recordset.
>
> Master page works perfectly.
> Master Recordset SQL:
> SELECT products.itemID, products.category,
products.styleno,
products.name,
> products.description, products.ourprice,
products.imageTH, products.image,
> coloroption.color, sizeoption.size
> FROM products, coloroption, sizeoption
> WHERE category = 'chefcoats' AND
products.styleno=sizeoption.styleno AND
> products.styleno=coloroption.styleno
> GROUP BY products.styleno
> ORDER BY styleno ASC
>
> The Detail Recordset:
> SELECT products.itemID, products.category,
products.styleno,
products.name,
> products.description, products.ourprice,
products.imageTH, products.image,
> sizeoption.size, coloroption.color
> FROM products, sizeoption, coloroption
> WHERE itemID=colname AND
products.styleno=sizeoption.styleno AND
> products.styleno=coloroption.styleno
>
> I tried using the GROUP BY on the detail page, but then
it only showed
one
> size and color from the dynamic drop down list. I tried
changing the
field
> name "styleno" in the other tables to be unique,
however, I was using the
table
> identifer. I tried using the JOIN command instead of the
WHERE clause and
that
> didn't help either.
>
> On the detail page, the customer is supposed to click on
the Size box and
see
> sizes XSM - 6XL ONLY ONE TIME. and then be able to click
on the Color
option
> and see White, Black, Red ONE TIME.
>
> Is this possible?
>
> Thank you for giving your time to read this.!
> Evie
>
> -
Hi,
Could you provide joins for below tables:
mtl_system_items_b
mtl_kanban_cards
mtl_onhand_quantities_detail
MTL_SECONDARY_INVENTORIES
MTL_ITEM_CATEGORIES
MTL_CATEGORY_SETS_TL
MTL_CATEGORIES_B
ThanksYes it is kind of limitation in obiee. But there are some solutions which might deviate from best practices.
Sol 1. Snowflake the dimensions in Business Model. Rather than merging both of them into single logical table, separate them into two different logical tables.
Sol 2. For the logical table , have two LTSs. First LTS will have both tables and all columns mapped to both tables. Second LTS will have only main table, Columns belong to that table only mapped. In this way when you selected columns related to first source system will use second LTS which has only only one table.
- Madan Thota -
Hi,
Could you give me joins for below tables, r12.
qa_results
qa_results_v
cs_incidents_audit_b
Thanks.You can get from etrm, refer this link: http://etrm.oracle.com/pls/et1211d9/etrm_fndnav.show_object?n_tabid=55117&n_appid=250&c_type=TABLE http://etrm.oracle.com/pls/et1211d9/etrm_search.search thanks
-
Field Catalog (Output Billing) for new Condition Table
Dear all,
I am struggling with new Field Catalog Fields for my Condition Table
To determine two different printers I have tried to add ERNAM (SAP author of document), and to print or not to print certain documents depending on Customer Number (Proforma and Packing list) I have tried to add KNDNR
No matter which field I add, the system warns me "Choose the key from the allowed namespace"
and in the Acces Sequence later on I am getting a red flag.
So far I have gotten advise that I need to ABAP user exits, create tables and lots of tech stuff.
I want to configure the system, not program it.
So: Can I add fields to the Field Catalog without being an ABAPPER or can I not?
Thanks,
NickelodeonHi,
You can add the field in the OUTPUT COMMUNICATION STRCTURES
OUTPUT COMMUNICATION AREA for Billing is KOMKBV3 and the Include is KOMKBZ5.
If you want to add the new field ERNAM then add this field from the VBRK
Enter the field ZZERNAM in the commnication strctre KOMKBV3 in the include KOMKBZ5 in the data dictionary
By entering the field in the Include KOMKBZ5 you automatically include it in the commnication structre KOMKBV3
Next add the field ZZERNAM in the communication table KOMB
Now assign the values to the field in the FUNCTION MODULE KOMKBV3FILL_
Include the ZZERNAM in the field catalogue for the CONDITION TABLE of Billing documents .
After doing this you can check the new field in the FIELD CATALOGUE in the CONDITION TABLE for OUTPUT DETERMINATION.
Please try this for your Application area ( as i gave example for Billing documents) and revert back if you need any more details
regards,
santosh -
Tables/Joins for logical tables being combined
I have 2 logical tables set up that have multiple physical table sources (using map to these tables). Some of the physical sources are the same in each logical table. It seems that when I make selections from Answers and look at the SQL, it is picking tables from both logical tables (instead of just the one I used). It is also grabbing the content (additional 'where condition') from the other logical table as well. Why is it doing that?
Yes it is kind of limitation in obiee. But there are some solutions which might deviate from best practices.
Sol 1. Snowflake the dimensions in Business Model. Rather than merging both of them into single logical table, separate them into two different logical tables.
Sol 2. For the logical table , have two LTSs. First LTS will have both tables and all columns mapped to both tables. Second LTS will have only main table, Columns belong to that table only mapped. In this way when you selected columns related to first source system will use second LTS which has only only one table.
- Madan Thota -
Handling Outer Join for hard coded values in the Logical Table Source
Has anyone tried to apply an outer join in the Logical Table Source Content Tab?
I have to add this APPLSYS.FND_LOOKUP_VALUES.LANGUAGE (+)= 'US' but the outer join is not allowed. I get this message.... [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] .
Could you tell me please how this should be handled? I have a lot of this cases in my project and without this being set-up affects the expected output of my report.
Thank you in advance.hi Ap,
Pull only Dim_W_LOV_D_Acty_Src column into answers and check whether u r able to see CUST_SRC_ACT or not .Of course, you need to check sql query too
Thanks,
Saichand.v -
Logical level for logical fact table sources
it is clear that for fact aggregates, we should use the Content tab of the Logical Table Source dialog to assign the correct logical level to each dimension.
question is : is it mandatory to assign even for non-aggregates fact tables the logical level for each dimension (which normally should be set to the most detailed level of each dimension) ? is it any known issue if "logical levels"in content tab are not set ?
the reason I'm asking this is a strange bug I have (I'm not going to discuss it here) and then only workaround seems to be NOT setting the logical levels (on content tab) for logical fact table sources.
thank you !If levels are not set: By default levels are considered as lowest level
It should not matter if you set or not
Generally we set for facts explicitly when we are using Aggregate tables.
Your current issue might be a case by case; I would suggest to check implicit fact, any table mapped to the source to force a join etc
Mark if helps
Let me know how it helps
Edited by: Srini VEERAVALLI on Feb 5, 2013 8:33 AM
Any updates on this?+_
Edited by: Srini VEERAVALLI on Feb 14, 2013 9:09 AM -
P.O number for a billing document number
Hi Experts,
From which table we can find a PO number for corresponding billing document number(VF03)?hi RAVI,
Go to T.code SE16
enter table name VBRK-->enter
billing doc type,billing doc no,s.org,d.channel
execute
waiting for reward points
mcm -
Delivery document no for a Billing doc
Hi ,
How to find a Delivery document no for a Billing document no. Is there any table, that has relation b/w Billing & Delivery docu no.
Thankssee.. its a simple thing..
sales --- delivery -- billing..
so for delivery, reference document is sales order,
for billing, reference document is delivery...
hope this clears the entire thing... always go for item level linkage.. its accurate..
Maybe you are looking for
-
Deletion of production order in ECC / APO
Hi, It is not possible to set DLFL (Deletion flag) when the order is in CRTD status also when the order is DLV or TECO with no actual cost or open order value . It is happening in both the scenarios when 1. Plan order is created in APO and then conve
-
How do I connect osx laptop to windows xp desktop?
Hi. I would like to connect my macbook pro (running osx 10.6) to my desktop (running windows xp) for the purpose of sharing files between the two and also utilizing the wired internet connection of the desktop computer (no wireless). Is this possible
-
Hi What are the steps to integrate with Sharepoint using BPEL?
Hi What are the steps to integrate with Sharepoint using BPEL? We are going to integrate with Web Center Interaction at the other end. I really appreciate if you can share if you have a document or instructions / links on how the same be achieved
-
Mutiple transcation update using bdc
Dear Gurus I have two questions . 1. Can we update two transaction code using CALL TRANSACTION method in BDC? through searching in the forum i found that it not possible to update multiple transaction using CALL TRANSACTION method to update two t cod
-
HTML template on portlet form ?
Hello, we have some functionality in our portal forms that will for example set my cursor in some predefined field. This is accomplished thru a javascript and a call to wwv_javascript.fetch_script in the HTML template. This does not work when running