Related inv to po
Hi
how to relate inv and po table
thnks
Please refer to eTRM for details about Oracle E-Business Suite tables.
eTRM Application
http://etrm.oracle.com
Similar Messages
-
Dear Cons
In posting of incoming invoice through T-code- MIRO, we are getting one type of No range series. Let say 11 series. Now we want to bifercate it . that means EXCISE RELATED invoice ( tax code) case the system will generate other no. range series. LET SAY 12* SERIES. I checked from the menu path IMG-M.M- LOGISTIC INV. VERI.-INC. INV-NO.ASSIGN-MAINTAIN NO. ASSIGN FOR ACCT. DOCUMENT. wE HAVE SELECTED doc type- RE with 11* no. range. how can we assign 12* series no. range with creating a new doc. type by coping RE so that for excise related INV. case the system will provide 12* series no. range for inv. document.
Edited by: nirupama swain on May 5, 2010 10:15 AMIf u talking about LIV number range and not of LIV accounting document number range
IF u talking about LIV number range then in std sap its not possible to have 2 number ranges, and In LIV if u Change RE to other then it will change LIV accounting document number range and not LIV number range
Any way if u want to change number range than u can make use of following user exit
LMR1M003 Number assignment in Logistics Invoice Verification
hope this heklps -
Order Related bIlling Reqd for both Inter Company Inv and Customer Invoice
Hi,
I have 3rd Party scenario whereby I have to generate an Order Related Billing. I want to generate both a Customer Invoice and an Intercompany Invoice w.r.t Sale Order . Current system is allowing me to generate either one of them and not both. Is there any copy control functionality from order to bill vtaa through which I can generate both Customer and Inter Company Invoice (IV).
Regards,
BinayakHi Binayak,
Chang copying requirement to 008 for relevant item category In copy controls from order to billing, then you will be able to create both customer invoice & intercompany invoic.
Hope it will help you and let me know if you have any questions
JM -
Table containing relation between inv org and its OU
Hi,
IN Oracle which table conatins the information which will let us know that a certain Inventory Org belong a a ceratin OU. I actually need the OU name for an inv org...
Thanks...org_organization_definitions or HR_OPERATING_UNITS
Edited by: user2640391 on Apr 27, 2009 10:06 AM -
Delivery related billing - Multiple Inv cyc and IC billing
Hi,
We are on SAP IS-O&G and would like to use invoice cycles to create
multiple customer billing documents and the corresponding Intercompany
billing documents with reference to a delivery document.
We are currently using two invoice cycles and would like to use couple
more of the available 9 invoice cycles.
We have a requirement to have few conditions active only on intercompany document for the second intercompany invoice ( Intercompany invoice for the Invoice cycle 2) .
Here is what we are currently
doing to create intercompany billing documents for invoice cycle 2
1) With reference to delivery document- Customer billing document
F2 ( Invoice cycle 1) is created
2) With reference to delivery document- Intercompany billing
document IV is created.
3) With reference to delivery document- Quality invoice ZQ
(Invoice cycle 2) is created.
4) Using output determination and program RVIVAUFT an intercompany
sales order is created. This sales order is invoiced to create
intercompany billing document ZIQ (Invoice cycle 2).
My questions are,
1) Can Intercompany billing document for invoice cycle 2 be created
directly with reference to the delivery document as done in the case of
invoice cycle 1? That is..
Step 1: Delivery1- Customer Invoice F2- Invoice Cycle 1
Step 2: Delivery1- Intercompany invoice IV
Step 3: Delivery1- Customer Invoice ZQ- Invoice Cycle 2
Step 4: Delivery1- Intercompany Invoice ZIQ
I am able to run through first 3 steps without any issues but when I try to execute step 4 i get the error message " Delivey is already invoiced".
2) Are invoice cycles applicable for intercompany documents? If not,
then is SAP proposing to create one intercompany billing document for
all the invoice cycles?
Any help is appreciated.
Thanks,
RajHi Narayana,
You create a new item level copying routine as per your requirement at VOFM transaction then enter that routine in VTFL transaction at item level instead of standard one 001 (Inv. Split (sample)).
I hope it will help you
Regards,
Murali. -
Billing doc item to Accounting doc item no relation
Hi all
I want to link the billing doc item to Accounting doc item no.
how is the relation available using tables & fields ?
thanksDear SRI,
These are the fields
1.BUZEI --- Number of Line item with in the Accounting
Document.
2.POSNR -- Billing item
These are the Tables,
1.VBRP -
(INV ITEM)
2.BSEG -
(ACC DOC SEGMENT)
I hope it will help you
Regards
Murali. -
Hi All,
We are having an issue with the INV Generate cost of goods sold account. The cost manager is failing while generating the accounting entries for inter-org shipping transactions.
We are getting following error:
Bills of Material: Version : 11.5.0 - Development
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CMCMCW module: Material cost transaction worker
Current system time is 12-APR-2010 19:31:46
Transaction group id is 27341404
Fetched txn 27341395
DS parent_txn_id = 4294967295, parent_txn_ind = -1.
Costing Transaction, ID = 27341395
trans_id is 27341395
CSE Cost Distribution Hook Used: 0
Flow schedule flag = 0
The transfer pricing option = 1
In function get_transfer_price()
The price list ID = 34336
Global: ship_org_id=25, sell_org_id=28, price_list_id=34336, item_id=91245, ato_flag=0, txn_id=27341395, inv_org_id=25, txn_uom=EA, global.internalOrderFlag=1, base_item_id=0, global.baseItemId=0, incrCurr=1, ship_curr=CAD, rec_curr=USD, ordLineId=-9999
Start calling inargtp()
In inliar.lpc, inargtp()
... Establishing Transfer Price txnId is 27341395
invOrgId is 25
itemId is 91245
shipOrgId is 25
sellOrgId is 28
priceListId is 34336
internalOrderFlag is 1
baseItemId is 0
tmpIncrCurr is 2440948
atoFlag is No
ordLineId:- 5475083
returned from External API...
calling QP API...
returned from QP API...
QP is not installed!calling static price...
(1)
After calling inargtp()
The price = 13541.2
The price currency = USD
The price code = 2
The currency conversion rate = 1.000000e+00
The UOM conversion rate = 1.000000e+00
Out of function get_transfer_price()
The transfer price = 1.354120e+04
ele_acct() <<< @ 12-APR-2010 19:31:47
prj_txn() <<< @ 12-APR-2010 19:31:47
prj_txn() >>> @ 12-APR-2010 19:31:47
acct_present() <<< @ 12-APR-2010 19:31:47
acct_present() >>> @ 12-APR-2010 19:31:47
insert_acct() <<< @ 12-APR-2010 19:31:47
insert_acct() >>> @ 12-APR-2010 19:31:47
ele_acct() >>> @ 12-APR-2010 19:31:47
final_acct() <<< @ 12-APR-2010 19:31:47
final_acct() >>> @ 12-APR-2010 19:31:47
insert_acct() <<< @ 12-APR-2010 19:31:47
insert_acct() >>> @ 12-APR-2010 19:31:47
insert_acct() <<< @ 12-APR-2010 19:31:47
insert_acct() >>> @ 12-APR-2010 19:31:47
ovhd_acct() <<< @ 12-APR-2010 19:31:47
ovhd_acct() >>> @ 12-APR-2010 19:31:48
update_variance() <<< @ 12-APR-2010 19:31:48
final_acct() <<< @ 12-APR-2010 19:31:48
final_acct() >>> @ 12-APR-2010 19:31:49
Start calling CST_TPRICE_PVT.Adjust_Acct
CST_TPRICE_INV_ACCT_ERROR Error in obtaining the intercompany account from Inventory Workflow
CST_TPRICE_INV_ACCT_ERROR Error in obtaining the intercompany account from Inventory Workflow
Failed costing at ID = 27341395
DS - exit while loop.
Start of log messages from FND_FILE
get_ZeroCostIssue_Flag
get_ZeroCostIssue_Flag
zero_cost_flag:0
Inserting into MCACD...
get_ZeroCostIssue_Flag
zero_cost_flag:0
Inserting into MCACD...
Inserting into MACS...
IN Rule Package CST_MOHRULES_PUB.apply_moh
l_txn_type:5
l_txn_type_id:62
organization_id:29
item_type:2
earn moh :1
return statusS
In procedure CST_TPRICE_PVT.Adjust_Acct
p_tprice_option = 1
p_txf_price = 13541.2
l_rcv_sum = 18224.46
l_pay_sum = -17851.37
Get_Snd_Rcv_Rate <<<
Get_Snd_Rcv_Rate >>>
l_snd_curr = CAD
l_rcv_curr = USD
l_conv_rate = .9795278675678323048290723871094132628073
l_rcv_coa_id = 101
Get_Snd_Rcv_UOM <<<
Get_Snd_Rcv_UOM >>>
l_snd_uom = EA
l_rcv_uom = EA
l_snd_qty = -3
l_rcv_qty = 3
l_line_id = 5475083
l_header_id = 408030
l_cust_id = 3842
l_order_type = 1020
Entering OE_Flex_Cogs_Pub.Start_process : 5475083
Chart Of accounts Id : 101
Item Key : #SYNCH
Initilizing Workflow Item Attributes
Calling FND_ELEX_WORKFLOW.GENERATE from START_PROCESS
Entering LEITCH_Flex_Cogs_Pub.GET_CCID_LINE_TRX_TYPE
Item Type : OECOGS
Item Key : #SYNCH
Activity Id : 116048
funcmode : RUN
Before Order Line SQL :
Line Order Type Id:
Order Line Id:5475083
After Order Line SQL :
Line Order Type Id:1005
Before Order Type SQL :
Line Order Type Id:1005
After Order Type SQL :
Line Order Type Id:1005
Line Order Type CCID:28059
Input Paramerers :
Line id :5475083
Output :
Generated CCID :28059
Exiting from LEITCH_Flex_COGS_Pub.GET_CCID_LINE_TRX_TYPE
Entering LEITCH_Flex_Cogs_Pub.GET_PROJECT_INFO
Item Type : OECOGS
Item Key : #SYNCH
Activity Id : 116054
funcmode : RUN
Input Paramerers :
Header ID :408030
Project Related :1
Result Out :COMPLETE:Y
Exiting from LEITCH_Flex_COGS_Pub.Get_Project_Info
Entering OE_Flex_Cogs_Pub.GET_SHIPTO_COMPANY
Item Type : OECOGS
Item Key : #SYNCH
Activity Id : 116052
funcmode : RUN
Input Paramerers :
Line id :5475083
Organization id :25
Output :
ShipTo Company :11
Exiting from OE_Flex_COGS_Pub.GET_SHIPTO_COMPANY
Return CCID : 46663
Concat Segments : 11-299-51121-0000-0000-00
Concat Id : 11-299-51121-0000-0000-00
Concat Descriptions : Leitch Technology Interna-Sales \- Intercompany-Standard Cost of Sales \- -Null-Null-Null
Exiting OE_Flex_Cogs_Pub.Start_process : S
l_om_ccid = 46663
******** New Session:93340074****12-APR-10:07.31.51 **********
[12-APR-10 19:31:51] INV_WORKFLOW: $Header: INVFBWFB.pls 115.11.115100.5 2005/09/15 18:10:11 ankulkar ship $
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: FB_FLEX_NUM: 101
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_CUSTOMER_ID: 3842
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_ITEM_ID: 91245
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_ORDER_HEADER_ID: 408030
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_ORDER_LINE_ID: 5475083
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_ORDER_TYPE_ID: 1020
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_SELL_OPER_UNIT: 28
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_TO_INV_ORGANIZATION_ID:
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: V_CCID:
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: FB_FLEX_SEG: 11-299-51121-0000-0000-00
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: FB_ERROR_MSG:
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Calling Workflow Initialize
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Created itemkey :#SYNCH
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: IC_ITEMS_COGS:
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Found v_doc_type_id: 10
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Found v_acrual_acct: 1149
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: V_ORGANIZATION_COGS:
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Initilizing Workflow Item Attributes
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Calling FND_ELEX_WORKFLOW.GENERATE with Parameters:
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: Itemtype: INVFLXWF
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: itemkey: #SYNCH
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: ccid: 1149
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: FND_ELEX_WORKFLOW.GENERATE returned ccid1149
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: FND_ELEX_WORKFLOW.GENERATE returned v_concat_segs
[12-APR-10 19:31:51] INV_WORKFLOW.GENERATE_COGS: FND_FLEX_WORKFLOW.GENERATE returned FALSE with error: ORA-20002: 3135: 'Wf_Item_Activity_Status.Set_Error(error_process)' is not permitted in synchronous processes.
End of log messages from FND_FILE
No completion options were requested.
Output is not being printed because:
The print option has been disabled for this report.
Deleting output file.
Concurrent request completed
Current system time is 12-APR-2010 19:31:52
Thanks
JohnHello,
Look at 809555.1 in metalink.
Regards,
Luko -
Query rewrite problem related to FGAC/RLS/VPD
My problem in related to Fine Grained Access Control / DBMS_RLS.
Let's start with a simple example and elaborate further.
Basic problem:
Let's say we have two tables:
create table LEVEL1( L1NR NUMBER not null, TAG NUMBER);
alter table LEVEL1 add constraint LEVEL1_PK primary key (L1NR);
create table LEVEL2( L1NR NUMBER, L2NR NUMBER not null);
alter table LEVEL2 add constraint LEVEL2_PK primary key (L2NR);
alter table LEVEL2 add constraint LEVEL2_FK foreign key (L1NR) references LEVEL1 (L1NR);
I want to convince the database to rewrite a query that looks like this:
A)
SELECT L1.TAG, L2.L2NR
FROM
LEVEL2 L2
INNER JOIN LEVEL1 L1
ON L2.L1NR = L1.L1NR
WHERE
EXISTS( SELECT 1 FROM LEVEL1 L1B WHERE L1B.L1NR = L2.L1NR)
As L2 will be joined to L1 for my human eye and mind
it is obvious that the where clause is redundant,
and the query is equivalent to:
B)
SELECT L1.TAG, L2.L2NR
FROM
LEVEL2 L2
INNER JOIN LEVEL1 L1
ON L2.L1NR = L1.L1NR
Is there any way to convince the parser/optimizer to remove the redundant join?
Why do I have a query like A) and why I cannot rewrite it myself I will explain below.
For those to ask themselves why do I need such a thing let me elaborate.
We develop an application and we want to enforce security on the data at the row level.
The problem is more complicate than my following example, but the example is good enough.
Let's say that we have an application that makes invoices.
We want to give a user the privilege to make reports on the invoices issued for a category of customers.
I see three main ways to enforce row level security on data:
1) At the application level
2) Using views
3) Using Fine Grained Access Control / DBMS_RLS
Choice 1) is more flexible, but it has a major drawback:
You cannot make the database available for reporting with BI/ad-hoc reporting tools.
And also you have to be careful with every query you write. Or create something that takes care of the security, which can be really tricky.
And it also makes report creation for the application difficult since you need to embed the security system into the reporting module.
If you use Crystal Reports or some other reporting tool to build your application report you've got a problem.
Choices 2) and 3) are somewhat similar, but 3) is more flexible
For those who don't know how FGAC/DBMS_RLS works and don't want to dig deeper here is a short explanation:
DBMS_RLS allows the database developer to attach dynamic where clauses to queries.
It does this by rewriting queries like:
"select blabla from employees"
to "select blabla from (select * from employees where <some expression that filters the data according to the user's policy>)"
The filters are attached on a table by table basis, so queries like:
SELECT dept.NAME, empl.NAME
FROM
DEPARTMENT dept
INNER JOIN employees empl
are rewritten to
SELECT dept.NAME, empl.NAME
FROM
(SELECT * FROM DEPARTMENT WHERE <FILTER_DEPT>) dept
INNER JOIN (SELECT * FROM employees WHERE <FILTER_EMP>) empl
So far so good, nothing looks bad, but the devil is in the detail
Back to our reporting problem.
Let's say we have a scenario simpler than life, and I associate the user directly to a customer category by adding a CUST_CAT_ID column to the APP_USER table.
I want restrict the user to see only the data associated to its category (category, customers, invoices, invoice item)
So when he writes "select NAME, ADDRESS from customer" the query is rewritten to
"select NAME, ADDRESS from (SELECT * FROM CUSTOMER WHERE (EXISTS SELECT 1 FROM category join app_user on ... where customer.CUST_CAT_ID = app_user.CUST_CAT_ID and app_user.login = get_current_user()))"
where get_current_user is some framework function that gives me the current user.
A little complicated, but nothing too scary.
But when I write something like:
SELECT <relevant columns> FROM category cat JOIN customer cust JOIN invoice inv JOIN invoice_item item WHERE <some filters>
...(query totally legitimate for a sales report), this gets expanded to a scary query that looks like this:
SELECT <relevant columns>
FROM
(SELECT * FROM category WHERE (EXISTS SELECT 1 FROM app_user u WHERE u.CUST_CAT_ID = CAT_ID AND u.login = get_current_user())) cat
JOIN (SELECT * FROM customer WHERE(EXITS SELECT 1 FROM category JOIN app_user WHERE ...)) cust
JOIN (SELECT * FROM invoice WHERE(EXITS SELECT 1 FROM customer JOIN category JOIN app_user WHERE ...)) inv
JOIN (SELECT * FROM invoice_item WHERE(EXITS SELECT 1 FROM invoice JOIN customer JOIN category JOIN app_user WHERE ...)) item
WHERE
<some filters>
Oops! A query with 4 tables is expanded to a 14 tables query, when all I really need is:
SELECT <relevant columns>
FROM category cat JOIN customer cust JOIN invoice inv JOIN invoice_item item
WHERE <some filters> AND (EXISTS SELECT 1 FROM app_user u WHERE u.CUST_CAT_ID = CAT_ID AND u.login = get_current_user())
Let me tell you that we don't use here roles and privileges tables that we must use in a real life scenario.
In a real life scenario we will easily transform the original query in a 20-30 table join (grrrrrrr).
Well, I cannot change the way DBMS_RLS/FGAC works, and also if I choose to use views I cannot write a filtered view for every possible join that a user might create.
All I want is to find out if there is any way to instruct the parser/optimizer, using primary and foreign keys, optimizer parameters hints and other methods, to rewrite the query and eliminate redundant joins.
Of course I can create some materialized views or bitmap join indexes to help me in the process and speed up the query, but using this method in a database that has hundreds of tables can be a little problem in terms of management and performance.Hello again,
It appeared that, the problem is present only when I try the query in pl/sql developer.
For some reason, even though I set QUERY_REWRITE_INTEGRITY to STALE_TOLERATED, it behaved as this parameter was set to ENFORCED.
So the case was that:
for session - STALE_TOLERATED
for system - ENFORCED
In v$parameter2 against "QUERY_REWRITE_INTEGRITY" was shown "stale_tolerated", but the query was not rewritten.
When I do the same (altering the session and perform the select query) in SQLPlus, everything works as expected - the query is rewritten.
And I conclude the problem is in PL/SQL Developer (my version is 8.0.1.1498) or something related to this.
Edited by: Verdi on 2010-2-12 14:00 -
How to make relation between gl_je_lines and wip_transaction_accounts
I try to write script to make relation between GL and WIP, wip_transaction_accounts and mtl_material_transactions
1.
SELECT
(SELECT meaning
FROM mfg_lookups
WHERE lookup_type = 'WIP_TRANSACTION_TYPE'
AND lookup_code =
(SELECT TRANSACTION_TYPE
FROM wip_transactions
WHERE transaction_id = wta.transaction_id
) "Transaction Type" ,
gjb.NAME "Journal Batch Name" ,
gjh.NAME "Journal Name" ,
gjh.je_source "JE Source" ,
gjh.je_category "JE Category" ,
glp.period_num "GL Month" ,
glp.period_year "GL Year" ,
gjh.default_effective_date "GL Date" ,
NVL(gje.accounted_dr,0) -NVL( gje.accounted_cr,0) "GL Line Amount" ,
gje.description "GL Line Description" ,
(SELECT organization_code
FROM mtl_parameters
WHERE organization_id = wta.organization_id
) "ORG Name" ,
NULL "Vendor/Customer Name" ,
NULL "SO/PO Number" ,
NULL "Reference Number" ,
NULL "AP/AR Invoice Number" ,
NULL "Doc Sequence Value" ,
NULL "Invoice Type Lookup Code" ,
NULL "Check Number" ,
NULL "Line Type" ,
NULL "Category" ,
NVL (wta.base_transaction_value, 0) "Transaction Amt" ,
NULL "AR/PO Receipt Number" ,
NULL "Applied Invoice Number" ,
(SELECT a.segment1
FROM mtl_system_items_b a ,
wip_discrete_jobs b
WHERE a.inventory_item_id = b.primary_item_id
AND a.organization_id = b.organization_id
AND b.wip_entity_id = wta.wip_entity_id
AND b.organization_id = wta.organization_id
) "Item Name" ,
gcc.segment1 "Company" ,
gcc.segment2 "Department" ,
gcc.segment3 "Account" ,
(SELECT description
FROM fnd_flex_values_vl fnd
WHERE flex_value_set_id = 1009707
AND TO_CHAR (fnd.flex_value) = gcc.segment3
) "Account Description" ,
gcc.segment4 "Intercompany" ,
NULL "JE Category Description" ,
NULL "AP Invoice Line Description"
TRUNC (wta.transaction_date) "JE Creation/Inv Trans Date" ,
NULL "JE Created By" ,
NULL "Reversal Flag" ,
NULL "Reason Code" ,
NULL "Subinventory Name" ,
wta.primary_quantity "Quantity" ,
NVL (wta.base_transaction_value, 0) "Value" ,
gje.context ,
gje.attribute1 ,
gje.attribute2 ,
gje.attribute3 ,
gje.attribute4 ,
gje.attribute5 ,
DECODE(gjh.status,'P','Posted','U','Unposted','Error') "Post Status"
FROM gl_je_lines gje ,
gl_je_headers gjh ,
gl_je_batches gjb ,
wip_transaction_accounts wta ,
gl_code_combinations gcc ,
gl_periods glp
WHERE 1 =1
AND gje.je_header_id = gjh.je_header_id
AND gjh.je_batch_id = gjb.je_batch_id
AND UPPER (gjh.je_source) = 'INVENTORY'
AND gcc.code_combination_id = gje.code_combination_id
AND wta.reference_account = gje.code_combination_id
AND TRUNC(wta.transaction_date) BETWEEN glp.START_DATE AND glp.END_DATE
AND gje.reference_1 = wta.gl_batch_id
AND gje.gl_sl_link_table = 'WTA'
AND glp.period_name = gjh.period_name
AND glp.period_set_name = 'OVT_US_CAL'
==
2.
SELECT mtt.transaction_type_name "Transaction Type" ,to_char(mmt.transaction_date,'mm/dd/yyyy hh:mi:ss') as teas, mta.transaction_id,mta.organization_id, mmt.organization_id,
gjb.NAME "Journal Batch Name" ,
gjh.NAME "Journal Name" ,
gjh.je_source "JE Source" ,
gjh.je_category "JE Category" ,
glp.period_num "GL Month" ,
glp.period_year "GL Year" ,
gjh.default_effective_date "GL Date" ,
NVL(gje.accounted_dr,0) - NVL(gje.accounted_cr,0) "GL Line Amount" ,
gje.description "GL Line Description" ,
(SELECT organization_code
FROM mtl_parameters
WHERE organization_id = mta.organization_id
) "ORG Name" ,
NULL "Vendor/Customer Name" ,
NULL "SO/PO Number" ,
mmt.TRANSACTION_REFERENCE "Reference Number" ,
NULL "AP/AR Invoice Number" ,
NULL "Doc Sequence Value" ,
NULL "Invoice Type Lookup Code" ,
NULL "Check Number" ,
NULL "Line Type" ,
NULL "Category" ,
NVL (mta.base_transaction_value, 0) "Transaction Amt" ,
NULL "AR/PO Receipt Number" ,
NULL "Applied Invoice Number" ,
(SELECT segment1
FROM mtl_system_items_b
WHERE inventory_item_id = mmt.inventory_item_id
AND organization_id = mmt.organization_id
) "Item Name" ,
gcc.segment1 "Company" ,
gcc.segment2 "Department" ,
gcc.segment3 "Account" ,
(SELECT description
FROM fnd_flex_values_vl fnd
WHERE flex_value_set_id = 1009707
AND TO_CHAR (fnd.flex_value) = gcc.segment3
) "Account Description" ,
gcc.segment4 "Intercompany" ,
NULL "JE Category Description" ,
NULL "AP Invoice Line Description"
TRUNC (mta.transaction_date) "JE Creation/Inv Trans Date" ,
NULL "JE Created By" ,
NULL "Reversal Flag" ,
(SELECT MGD.SEGMENT1
FROM MTL_GENERIC_DISPOSITIONS MGD,
MTL_MATERIAL_TRANSACTIONS MMTT
WHERE MGD.DISPOSITION_ID = MMTT.TRANSACTION_SOURCE_ID
AND MMTT.TRANSACTION_SOURCE_TYPE_ID = 6
AND MGD.ORGANIZATION_ID = MMTT.ORGANIZATION_ID
AND MMTT.TRANSACTION_ID = MMT.TRANSACTION_ID
) "Reason Code" ,
mmt.SUBINVENTORY_CODE "Subinventory Name" ,
mta.primary_quantity "Quantity" ,
NVL (mta.base_transaction_value, 0) "Value" ,
gje.context ,
gje.attribute1 ,
gje.attribute2 ,
gje.attribute3 ,
gje.attribute4 ,
gje.attribute5 ,
DECODE(gjh.status,'P','Posted','U','Unposted','Error') "Post Status" -
FROM gl_je_lines gje ,
gl_je_headers gjh ,
gl_je_batches gjb ,
mtl_transaction_accounts mta ,
mtl_material_transactions mmt ,
mtl_transaction_types mtt ,
gl_code_combinations gcc ,
gl_periods glp
WHERE 1 =1
AND mta.transaction_id = mmt.transaction_id
AND gje.je_header_id = gjh.je_header_id
AND gjh.je_batch_id = gjb.je_batch_id
AND UPPER (gjh.je_source) = 'INVENTORY'
AND gcc.code_combination_id = gje.code_combination_id
AND mta.reference_account = gje.code_combination_id
AND TRUNC(mta.transaction_date) BETWEEN glp.START_DATE AND glp.END_DATE
and mta.request_id=mmt.request_id
and mta.inventory_item_id=mmt.inventory_item_id
AND gje.reference_1 = mta.gl_batch_id
AND gje.gl_sl_link_table = 'MTA'
AND mtt.transaction_type_id = mmt.transaction_type_id
AND glp.period_name = gjh.period_name
AND glp.period_set_name = 'OVT_US_CAL'
When gl_je_lines have multiple line this script on the same transaction_id it will get wrong information. By setup all wip_transaction_accounts.GL_SL_Lind_id and mtl_transaction_accounts.GL_SL_Lind_id is null
Anyone can help?Hello.
How are you reaching the inconsistencies ? Are you comparing report's results?
Octavio -
How to create new or check current business event in Oracle INV/PO?
Hi Gurus,
How can i define/create new business event related to items or suppliers?
I know we need to login to WF admin responsibility. But i just wanted to where we can able to create event from frontend and that too from inventory or purchasing responsibilities.
I have collected five from oracle.apps.inv.item realted to items and four related to suppliers.
Could you please help me in how to create Business events from frontend and that to from oracle inventory.. and even i would like to here some thing on trading partners setups also.
I'm new to this Business events, hence required your help on high priority.else send me an document with existed business events.
Awaiting on your response.
Regards,
AjayNo, in this case, I'm using standard JSP with ADF and struts validator.
If I don't use struts validator and there are errors (such as putting a string into a number which produces a jbo-25009), the list value will be retained.
When using the validator, it appears that it is NOT retained.
I've written some code to attempt to set the list element back, which "looks like" it's working right now.
There's still a problem with the second scenario:
1. user clicks checkbox and hits [submit]
2. get's error - you have to enter 5 address items
3. User wants to backout, so he unchecks the box and resubmits
4. The box redisplays as "checked"
SO, at that point, I thought... can't I use YOUR EXAMPLE on how to handle a checkbox.
I place some code in the reset method of the form to perform this:
map.put("AddressChangeFlag", (String) "" );
(that is, I've detected via the request that this flag is null), so I'm trying to make sure it retains it!
I do that and it runs into a problem during the processUpdateModel aT:
BindingContainerValidationForm updateForm= (BindingContainerValidationForm) actionContext.getActionForm();
//Get the binding for our particular column JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get("AddressChangeFlag");
call, with an error:
JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=java.lang.String
java.lang.String
The value for updateForm.get("AddressChangeFlag") is "", which I'm assuming means the form field is no longer in the request object??
I'm lost at this point, and have been working on it for more than 1 day.
Thanks for responding though, and I await feedback ;) -
Billing related to CIN please help
1. This problem is coming after the cin setting when I m creating invoice
Excise modvat accounts not defined for DLFC transaction and E2 excise group
Message no. 8I402
And when I m saving the document accounting document is not created.
When I m going to check vf02 this error is coming which shown below
Billing document 90000022 does not exist
Message no. VF041
Diagnosis
The billing document you specified does not exist.
This document was possibly archived.
how the document is automatically archievd
with regards
subrat
[email protected]HI Subrat,
For the first error you r facing -go to the following path and check the settings that u have made regarding CIN.
1)Logistic general - tax on goods movement - india - Account determination -specify g/l account per Excise transaction (check the settings for DLFC transaction with respect to excise Gp.)
2) Go to LG - tax on goods movement - india - Basic settings - Maintain Excise Gp.(here go to detail view and check wheather "create and post Inv single step" Tab is marked if it is marked ,remove it.and run your complete sales cycle.
why this- because possibly the error is in closing of billing document. when you do this you will get error related to billing. you need to fix it first- then proceed for r Excise gp configuration as per requirement.
hope this will help you.
karnesh -
Transaction unbalance error on making Credit Memo based on AP Inv.
Hi all,
when i am making a credit memo, i am getting a error as transaction unbalance. could you please tell me the reason for this, and what is the solution to solve this error.
TRANSACTION UNBALANCE ON AP INV CREDIT MEMO
sandipHello,
This could be possibly caused by no inventory/stock on hand available or it maybe caused by the tax amount is not recorded properly in such journal entries. The tax amount is either recorded on the wrong side (Debit/Credit) or
without a negative sign. I am afraid it could be caused by application error. Just refer to a related SAP Note 1018541.
Rgds, -
Getting all payment related to a invoice (Similar to the applied transac)
Hi expert,
I'm currently designing a sales report for POS employe. I'm trying to relate all incoming payment related to a invoice and i don't see where the relation is establish (wich table ?). I have make a query to list by the oInv.ReceiptNum relation to oCrt but what if there is two payment for a invoices?
This is my query:
SELECT [IncPay].[DocNum]
,[IncPay].[DocType]
,[IncPay].[Canceled]
,[IncPay].[DocDate]
,[IncPay].[CardCode]
,[IncPay].[CardName]
,[IncPay].[Address]
,[Invoice].[DocTotal] AS [Inv.Total]
,[NoteCredit].DocTotal AS [Cred.Total]
,[IncPay].[CashSum] AS Argent
,[IncPay].[CreditSum] AS Carte
,[IncPay].[CheckSum] AS Cheque
,[IncPay].[DocTotal] AS Total
,[IncPay].[Ref1] AS [IcDocNum]
,[IncPay].[Ref2]
,[IncPay].[Comments]
,[IncPay].[JrnlMemo]
,[IncPay].[TransId]
,[IncPay].[DocTime]
,[IncPay].[NoDocSumSy] AS [ICOrphelin]
,[IncPay].[ObjType]
,[IncPay].[BankCode]
,(SELECT User_Code FROM oUsr Where UserID = [IncPay].[UserSign]) AS [UserOrig]
,[IncPay].[CancelDate]
,[IncPay].[OpenBal]
,(SELECT User_Code FROM oUsr Where UserID = [IncPay].[UserSign]) AS [UserUpdate]
FROM [Antirouille_PROD].[dbo].[ORCT] AS IncPay
LEFT JOIN [Antirouille_PROD].[dbo].[oInv] AS Invoice
ON Invoice.ReceiptNum = [IncPay].[DocNum]
LEFT JOIN [Antirouille_PROD].[dbo].[oRin] AS NoteCredit
ON NoteCredit.ReceiptNum = IncPay.DocNum
WHERE [IncPay].[Canceled] = 'N' AND Invoice.DocNum = 34453
Thanks for your help!
ManuelHi,
After a deep investigation in how sap make that relation. It apears that sap use the reconcile table to link to related transaction.
That query return the Invoice and the outgoing payment of a journal entry number (168693) made by an incoming payment...
SELECT T1.[TransType]
, T0.[ReconNum]
, T1.[BaseRef]
, T1.[TransId]
, T1.[Line_ID]
, T2.[ReconType]
, T2.[ReconRule1]
, T2.[ReconRule2]
, T2.[ReconRule3]
, T1.[RefDate]
, T1.[DueDate]
, T2.[ReconDate]
, T1.[BatchNum]
, T1.[CreatedBy]
, T1.[Ref1]
, T1.[Ref2]
, T1.[Ref3Line]
, T1.[ContraAct]
, T1.[LineMemo]
, T0.[CashDisSum]
, T1.[Debit]
, T1.[Credit]
, T1.[BalDueDeb]
, T1.[BalDueCred]
, T0.[ReconSum]
, T1.[SYSCred]
, T1.[SYSDeb]
, T1.[BalScDeb]
, T1.[BalScCred]
, T0.[ReconSumSC]
, T1.[FCDebit]
, T1.[FCCredit]
, T1.[BalFcDeb]
, T1.[BalFcCred]
, T0.[ReconSumFC]
, T2.[ReconNum]
, T1.[ShortName]
, T1.[Account]
, T1.[FCCurrency]
, T2.[ReconCurr]
, T2.[ReconNum]
, T0.[IsCredit]
, T2.[OldMatNum]
FROM [dbo].[ITR1] T0
INNER JOIN [dbo].[JDT1] T1
ON T0.[TransRowId] = T1.[Line_ID] AND T0.[TransId] = T1.[TransId]
INNER JOIN [dbo].[OITR] T2
ON T0.[ReconNum] = T2.[ReconNum]
WHERE EXISTS (
SELECT U0.[ReconNum]
FROM [dbo].[ITR1] U0
WHERE U0.[TransId] = (168693)
AND U0.[TransRowId] = (1)
AND T2.[ReconNum] = U0.[ReconNum]
AND (T1.[TransId] <> (168693)
OR T1.[Line_ID] <> (1) )
ORDER BY T2.[CreateDate]
Thankls a lot for your help! -
Functional Flow of po-ap-inv-gl
Hi all,
I want functional flow of PO, AP, INV AND GL modules.
Thanks in advance,
--NarendraHello,
I think that this has nothing to do with the standalone Oracle Forms product. If this question is relative to the E-Business Suite, ask it in its dedicated forum.
Francois -
Hi Gurus,
My last thread is going long, so i m starting new one related to same problem..
Problem:--
My report is displaying Document Number, Base Amount & Tax Amount....which has correct values, but other related information is not coming...
*Means Document Number, Base Amount & Tax Amount is coming properly, BUT all the information related to that like Doc. date, Posting Date, Vendor Code, Vendor Name, Purchasing Doc. Number, Tax Code, Vendor Invoice No. IS NOT DISPLAYING with it...there showing *******, ******, ******** only*
Please let me know how can i display all the information related to Document Number...
My Code:---
REPORT zak_form_c4 NO STANDARD PAGE HEADING LINE-SIZE 125 .
TABLES : bsik,bkpf,bseg,j_1imovend,lfa1,t001,t005u,bsak,ekko,bsis, ekkn, anla, anlc.
TYPE-POOLS : slis.
DATA : BEGIN OF itab OCCURS 0,
belnr LIKE bsik-belnr, "Document number
buzei LIKE bseg-buzei, "line item
hkont LIKE bseg-hkont, "Gl account
mwskz LIKE bseg-mwskz, "Tax Code
dmbtr LIKE bseg-dmbtr, "Amount
ebeln LIKE bseg-ebeln, "Purchasing Document
ebelp LIKE bseg-ebelp, "line item nbr
hwbas LIKE bseg-hwbas, "Base amount
shkzg LIKE bseg-shkzg, "Debit/Credit code
gjahr LIKE bsik-gjahr, "Fiscal Year
bldat LIKE bsik-bldat, "Document Date
budat LIKE bsik-budat, "Posting Date
lifnr LIKE bsik-lifnr, "Vendor number
xblnr LIKE mkpf-xblnr, "Ven invoice nbr
name1(25), "name1
ort01 LIKE lfa1-ort01, "City
j_1ilstno LIKE j_1imovend-j_1ilstno, " Vendor tin nbr
regio LIKE lfa1-regio, "Region Code
bezei LIKE t005u-bezei, "Region desc
dmbtr1 LIKE bseg-dmbtr, "Amount
hwbas1 LIKE bseg-hwbas, "Base amount
END OF itab.
DATA:
v_bldat TYPE bldat,
v_dmbtr TYPE dmbtr,
v_hwbas TYPE hwbas.
DATA : BEGIN OF itab1 OCCURS 0.
INCLUDE STRUCTURE itab.
DATA:END OF itab1.
DATA : BEGIN OF itab2 OCCURS 0.
INCLUDE STRUCTURE itab.
DATA : END OF itab2.
DATA : itab3 LIKE STANDARD TABLE OF itab2 WITH HEADER LINE.
***********************************Purchase order history
DATA: BEGIN OF bet OCCURS 50.
INCLUDE STRUCTURE ekbe.
DATA: END OF bet.
DATA: BEGIN OF bzt OCCURS 50.
INCLUDE STRUCTURE ekbz.
DATA: END OF bzt.
DATA: BEGIN OF betz OCCURS 50.
INCLUDE STRUCTURE ekbez.
DATA: END OF betz.
DATA: BEGIN OF bets OCCURS 50.
INCLUDE STRUCTURE ekbes.
DATA: END OF bets.
DATA: BEGIN OF xekbnk OCCURS 10.
INCLUDE STRUCTURE ekbnk.
DATA: END OF xekbnk.
DATA : w_container TYPE scrfname VALUE 'CL_GRID',
w_cprog TYPE lvc_s_layo,
g_repid LIKE sy-repid,
w_save TYPE c,
w_exit TYPE c,
cl_grid TYPE REF TO cl_gui_alv_grid,
cl_custom_container TYPE REF TO cl_gui_custom_container,
it_fld_catalog TYPE slis_t_fieldcat_alv,
wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
layout TYPE slis_layout_alv,
col_pos LIKE sy-cucol ,
alvfc TYPE slis_t_fieldcat_alv.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : hkont LIKE bseg-hkont OBLIGATORY. "GL Code
*SELECT-OPTIONS : hkont FOR bseg-hkont .
SELECT-OPTIONS : belnr FOR bsik-belnr .
SELECT-OPTIONS : gjahr FOR bsik-gjahr .
SELECT-OPTIONS : bldat FOR bsik-bldat.
SELECT-OPTIONS : budat FOR bsik-budat.
SELECTION-SCREEN : END OF BLOCK b1.
PERFORM fill_catalog1 USING:
'HKONT' 'ITAB2' 'G/L Code' ,
'BELNR' 'ITAB2' 'Document Number',
'GJAHR' 'ITAB2' 'Year',
'BLDAT' 'ITAB2' 'Doc. date' ,
'BUDAT' 'ITAB2' 'Posting Date',
'LIFNR' 'ITAB2' 'Vendor',
'NAME1' 'ITAB2' 'Name',
'EBELN' 'ITAB2' 'Purchasing Document',
'MWSKZ' 'ITAB2' 'Tax Code',
'HWBAS' 'ITAB2' 'Base Amount',
'DMBTR' 'ITAB2' 'Tax Amount',
'XBLNR' 'ITAB2' 'Vendor Inv. No.'.
SELECT DISTINCT hkont belnr gjahr bldat budat INTO CORRESPONDING FIELDS OF TABLE itab
FROM bsis
WHERE bukrs = '1000'
AND hkont = hkont
AND belnr IN belnr
AND gjahr IN gjahr
AND bldat IN bldat
AND budat IN budat.
SORT itab BY belnr.
LOOP AT itab.
SELECT * FROM bseg WHERE belnr = itab-belnr AND gjahr = itab-gjahr
AND bukrs = '1000'
AND ( ebeln <> ' ' OR hkont = hkont ).
IF sy-subrc = 0.
itab-buzei = bseg-buzei.
itab-mwskz = bseg-mwskz.
IF bseg-ebeln <> ' '.
itab-ebeln = bseg-ebeln.
itab-ebelp = bseg-ebelp.
MODIFY itab.
ENDIF.
IF bseg-hkont = hkont.
itab-shkzg = bseg-shkzg.
itab-hwbas = bseg-hwbas.
itab-dmbtr = bseg-dmbtr.
IF itab-shkzg = 'H'.
itab-dmbtr = itab-dmbtr * ( -1 ).
ENDIF.
MOVE-CORRESPONDING itab TO itab2.
APPEND itab2.
ENDIF.
ENDIF.
ENDSELECT.
ENDLOOP.
LOOP AT itab2.
SELECT SINGLE * FROM ekko WHERE ebeln = itab2-ebeln.
IF sy-subrc = 0.
itab2-lifnr = ekko-lifnr.
ENDIF.
CALL FUNCTION 'ME_READ_HISTORY'
EXPORTING
ebeln = itab2-ebeln
ebelp = itab2-ebelp
webre = 'X'
TABLES
xekbe = bet
xekbz = bzt
xekbes = bets
xekbez = betz
xekbnk = xekbnk.
itab2-xblnr = bet-xblnr.
SELECT SINGLE * FROM lfa1 WHERE lifnr = itab2-lifnr.
itab2-name1 = lfa1-name1.
itab2-ort01 = lfa1-ort01.
itab2-regio = lfa1-regio.
SELECT SINGLE * FROM t005u WHERE bland = itab2-regio
AND spras = 'EN'
AND land1 = 'IN'.
itab2-bezei = t005u-bezei.
SELECT SINGLE * FROM j_1imovend WHERE lifnr = itab2-lifnr.
IF sy-subrc = 0 .
itab2-j_1ilstno = j_1imovend-j_1ilstno. " Vendor tin nbr
ENDIF.
MODIFY itab2.
ENDLOOP.
SORT itab2 BY belnr.
LOOP AT itab2.
v_dmbtr = v_dmbtr + itab2-dmbtr.
v_hwbas = v_hwbas + itab2-hwbas.
AT END OF belnr.
itab2-dmbtr = v_dmbtr.
itab2-hwbas = v_hwbas.
itab2-bldat = v_bldat.
APPEND itab2 TO itab3.
CLEAR: itab2, v_dmbtr, v_hwbas.
ENDAT.
ENDLOOP.
layout-zebra = 'X' .
layout-colwidth_optimize(1) = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZAK_FORM_C4'
is_layout = layout
it_fieldcat = it_fld_catalog
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = itab3
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*& Form FILL_CATALOG1
text
-->P_FIELDNAME text
-->P_REF_TABLE text
-->P_SCRTEXT text
FORM fill_catalog1 USING p_fieldname TYPE any
p_ref_table TYPE any
p_scrtext TYPE any.
CLEAR : wa_fld_catalog.
wa_fld_catalog-fieldname = p_fieldname.
wa_fld_catalog-tabname = p_ref_table.
wa_fld_catalog-seltext_s = p_scrtext.
wa_fld_catalog-seltext_m = p_scrtext.
wa_fld_catalog-seltext_l = p_scrtext.
wa_fld_catalog-datatype = 'CURR'.
wa_fld_catalog-outputlen = 20.
APPEND wa_fld_catalog TO it_fld_catalog.
ENDFORM. " fill_catalog1.
Plz. check it...always use one temporary work area after using "AT END OF"......like this....
loop at itab into wa.
wa_temp = wa.
at end of <field1>.
endat.
clear: wa,wa_temp.
endloop.
after using "AT END OF <field>".......the fields those are situated at the right side of <field> will be come '*'....
so follow the instructions..
Maybe you are looking for
-
Is there a way to create my own web gallery template for bridge?
Is there a way to create my own web gallery template for bridge? I want to add custom data that is not in any of the templates. Pretty much, I'd like to create one from scratch...
-
Does 10.6.2 Fix the fluctuating mic volume Bug?
Has anybody installed 10.6.2 to see if this fixes the fluctuating mic volume bug in Ichat?
-
I posted this elsewhere, but perhaps this would be the more appropriate forum for this question: Does anybody know where I might be able to find an Illustrator filter that would allow me to convert selected objects from CMYK or RGB to CMY only? Or do
-
I have a preloader on my website that seems to be very temperamental, sometimes it works and sometimes it doesn't. I have posted the script below, please let me know what I can do to fix the main probelm of the load bar freezing at 0%. onClipEvent (e
-
Shop papers for MaintPlans/task lists
Hi Anyone worked on Shop papers for MaintPlans/task lists ? Tcode OID1 What is the use of this configuration for maint plans and task lists ? Thanks