CLOSED_CODE IN PO_LINE_LOCATIONS_ALL
Hello
When and how is the changed closed_code PO_LINE_LOCATIONS_ALL in closed or permanently closed field.
If an order is closed or permanently closed at the level of the header, does the closed_code in po_line_locations_all is also updated closed or finally closed respectively?
Thank you
Yes, the header status will apply to the line, distributions, and the locations of the line.
Firm code: once PO is received and invoiced if ICT and the RCT is not 100%. Can be reopened.
Finally closed: manually or applied programmatically and cannot be reopened.
Tags: Oracle Applications
Similar Questions
-
What does closed_code NULL in PO_HEADERS_ALL
Hello
What does closed_code NULL in PO_HEADERS_ALL
We have made a request, and we are surprised that we have many ways to this status.
I thought that the closed-source must be OPEN, CLOSED or FINALLY FARM.
However this closed NULL means code.
Kind regards
Shiva
Hey Shiva,
Closed_code null is identical to OPEN:
For the purchase orders created automatically, the closed_code will be OPEN value.
To entered manually commands, the closed_code will have the value NULL.
Thank you
Clarino
-
Country_of_origin filed in the po_line_locations_all table
Hello friends,
I have a question where is the country_of_origin_code (coulmn in po_line_locations_all) is filled for a single item and does not get filled for another element.
I want to know the logic/configuration on the basis of which it is is filled.
Any idea?
Thanks for all the help.
Kind regards
AmitHi Amit,
Country of origin is the country where an element is produced.Country of origin displayed here by default in the list of approved providers, if it is set to one.
If this isn't the case, it is by default on the provider's site in the supplier Sites window.Otherwise, this field is blank. You can leave the field blank, or select a country.
If you do not know the country of origin, you can enter or change the country of origin then at the reception
Thnks
-Arif. -
For the purchase of query tables
Helloo
What are the names of table for the fields of purchase please
Responsibility-purchase-purchase orders
1. the amount
2. ship - to
3 status
Responsibility-purchase-purchase orders
4 category
Divided into category group and class
5 closure status
Navigation - Summary of purchase PURCHASING order-
What table to find the following for purchase orders?
6 Cancellation Date
7 cancellation reason
In the PO_LINE_LOCATIONS_ALL where I can find the next field?
8. remaining quantity
Thank you
See query below that can help you. I use query on rcv_transactions to see what was received in a first time, but has not yet received in the second stage. You can also consult the lines of distribution to see how much has been ordered and delivered, but know that you can have several distributions for each line...
SELECT P.Segment1 PO_Number , P.Closed_Code , P.Cancel_Flag , LOC. Location_Code , L.Line_Num , L.Quantity * L.Unit_Price amount , Category Cat.Concatenated_Segments , CAT. Category_Group Segment1 , CAT. Category_Class Segment2 , L.Cancel_Flag , L.Cancel_Date , L.Cancel_Reason , (
SELECT Sum (DECODE (T.Transaction_Type, 'RECEIVE', T.Quantity * T.Primary_Quantity, 'RETURN to RECEIVING', T.Quantity * T.Primary_Quantity,-T.Quantity * T.Primary_Quantity))
OF rcv_transactions T
WHERE T.PO_Line_Location_Id = PL. Line_Location_Id
) Qty_To_Be_Delivered
SAY. Quantity_Ordered
SAY. Quantity_Delivered
OF PO_HEADERS_ALL P
, PO_LINES_ALL L , LOC HR_LOCATIONS , mtl_categories_kfv cat , PO_LINE_LOCATIONS_ALL PL , PO_DISTRIBUTIONS_ALL SAID WHERE P.Segment1 '2564686' = AND P.PO_Header_Id = L.PO_header_Id AND L.Category_Id = the cat. Stuff AND P.Ship_To_Location_id = LOC. location_id AND L.PO_Line_Id = PL. PO_Line_Id AND L.PO_Line_Id = TELL. PO_Line_Id ;
-
Join between mtl_material_transactions and po_lines_all pla
Hey there! I hope you can help me.
I do a query to join po_headers_all, po_lines_all, mtl_transaction_accounts and mtl_material_transactios.
But, when I add the table po_lines_all he make me a cross with mtl_material_transactions join.
I have a purchase order (i.e. 12015) with two lines and 2 receptions on the inventory.
the first movement has been Po 12015 had a single line, and we had the reception on the inventory.
later, to a new stage, we add an additional line to 12015 IN. and then we did the respective reception and for that PO, we two receptions, but when I join po_lines_all it to me 2 receptions through 2 and the result is 4 rows.
I don't know what I'm doing wrong, if you can help me, that will be appreciated.
This is my query:
SELECT poh.revision_num, mmt.transaction_id, mmt.transaction_quantity cantidad_recepcion, mmt.organization_id, MSI.PRIMARY_UOM_CODE uom_recepcion, DECODE ( MMT.TRANSACTION_TYPE_ID, 24, NULL, 80, NULL, DECODE ( MTA.PRIMARY_QUANTITY, 0, NULL, NULL, NULL, DECODE (MTA.ACCOUNTING_LINE_TYPE, 1, MTA.BASE_TRANSACTION_VALUE / MTA.PRIMARY_QUANTITY, 14, MTA.BASE_TRANSACTION_VALUE / MTA.PRIMARY_QUANTITY, 3, MTA.BASE_TRANSACTION_VALUE / MTA.PRIMARY_QUANTITY, ABS (MTA.BASE_TRANSACTION_VALUE / MTA.PRIMARY_QUANTITY)))) unit_price_recepcion, mmt.inventory_item_id, mmt.transaction_source_id, poh.po_header_id, poh.segment1, pol.item_id, pol.UNIT_MEAS_LOOKUP_CODE uom_OC, (SELECT uom_code FROM mtl_uom_conversions WHERE 1 = 1 AND inventory_item_id = 0 AND NVL (disable_date, SYSDATE) >= SYSDATE AND unit_of_measure = pol.UNIT_MEAS_LOOKUP_CODE) UOM_CODE_OC, pol.unit_price unit_price_OC, pol.quantity cantidad_OC FROM mtl_transaction_accounts mta, MTL_SYSTEM_ITEMS_VL MSI, mtl_material_transactions mmt, po_headers_all poh, po_lines_all pol WHERE 1 = 1 AND mta.transaction_id = mmt.transaction_id AND MSI.INVENTORY_ITEM_ID = MMT.INVENTORY_ITEM_ID AND MSI.ORGANIZATION_ID = MMT.ORGANIZATION_ID AND poh.po_header_id = pol.po_header_id AND poh.po_header_id = mmt.transaction_source_id AND mmt.INVENTORY_ITEM_ID = pol.ITEM_ID AND mta.inventory_item_id = mmt.inventory_item_id AND mmt.transaction_source_id = 3502169 AND mta.accounting_line_type = 5;
The line 'AND mta.accounting_line_type = 5 " line is because I only want the type"Enter". .
Thank you very much.
It can be related through RCV_TRANSACTIONS, who can be reached at PO_LINES_ALL.
RCV_TRANSACTIONS PO_LINES_ALL RCV_TRANSACTIONS.PO_LINE_ID RCV_TRANSACTIONS PO_LINE_LOCATIONS_ALL RCV_TRANSACTIONS.PO_LINE_LOCATION_ID
-
Script to list the number of PO in a specific range of accounting code
Helloo
I need a script to list all PO numbers within a specific range of accounting code. The script is used for the assessment of the stock.
Grateful if someone can help.
Hello
Please, if this answer is late; just ignore it
The following SQL select statement assumes that you know the costs/inv. natural accounts of valuation and natural account segment is 2:
Select po_num, authorization_status, closed_code
of PO_DISTRIBUTIONS_INQ_V one
where destination_type_code = no ('STOCK', 'FEES')
and a.code_combination_id in
(select b.code_combination_id in the GL_CODE_COMBINATIONS_V b where segment2 = all ('170702110', '720201000'))
"170702110", "720201000" are natural sample accounts
Thank you
-
ANSI join kick off session Oracle
Under query works fine in 11I instance but not in R12. If I remove the text "INNER JOIN" and "LEFT OUTER JOIN" and replace it with the old syntax, then it's job to join. Here join ANSI is used if confused about how convert ANSI join old syntax.
WITH mo_rsrv
AS (SELECT / * + materialize * /)
Mr.organization_id,
Mr.inventory_item_id,
Mr.subinventory_code,
WLP.attribute3 document_type,
Mr.locator_id,
Mr.demand_source_line_id,
Mr.demand_source_name,
Mr.attribute6,
SUM (primary_reservation_quantity)
primary_reservation_quantity
OF mtl_reservations m., wwt_lookups wlp
WHERE mr.demand_source_type_id = wlp.attribute2
AND wlp.lookup_type = 'XXXX '.
AND wlp.attribute1 = 'PO '.
Mr.organization_id GROUP,
Mr.inventory_item_id,
Mr.subinventory_code,
WLP.attribute3,
Mr.locator_id,
Mr.demand_source_line_id,
Mr.demand_source_name,
Mr.attribute6),
po_ship_rec
AS (SELECT polla.ship_to_organization_id,
Polla.po_header_id,
Polla.po_line_id,
SUM (polla.quantity - NVL (polla.quantity_cancelled, 0))
quantity
OF apps.po_line_locations_all polla
-WHERE po_header_id = 191275
Polla.ship_to_organization_id GROUP,
Polla.po_header_id,
Polla.po_line_id)
SELECT "PO" document_type,
poha. Segment1,
Line_number, To_char (pola.line_num),
Ship_set NULL,
Msik.concatenated_segments ordered_item,
Pola.attribute4 config,
Pola.attribute14 material_designator,
Pola.CREATION_DATE needby_date,
po_ship_rec. Quantity,
mo_rsrv.primary_reservation_quantity,
"reservation_status,.
"total_onhand,.
poha.po_header_id,
Pola.po_line_id,
po_ship_rec.ship_to_organization_id,
Pola.item_id,
Ship_set_id TO_NUMBER (NULL),
Top_model_id TO_NUMBER (NULL),
Pola.last_update_date,
Pola.last_updated_by,
Pola.CREATION_DATE,
Pola.created_by
OF po_ship_rec
INNER JOIN apps.po_headers_all poha
WE (poha.po_header_id = po_ship_rec.po_header_id)
INNER JOIN apps.po_lines_all pola
WE (pola.po_line_id = po_ship_rec.po_line_id)
INNER JOIN apps.mtl_system_items_kfv reform
WE (msik.organization_id =
po_ship_rec.ship_to_organization_id
AND msik.inventory_item_id = pola.item_id)
LEFT OUTER JOIN mo_rsrv
WE (mo_rsrv.demand_source_name = poha.segment1
AND mo_rsrv.attribute6 = pola.po_line_id
AND mo_rsrv.organization_id =
po_ship_rec.ship_to_organization_id
AND mo_rsrv.inventory_item_id = pola.item_id)
WHERE 1 = 1;
Suspicion of MATERIALIZATION is undocumented and may cause errors, or bad results. Your query works if you remove the indicator?
SY.
-
ORA-06503: PL/SQL: function returned no value ORA-06512:
Hi all
SQL > set serveroutput on
SQL > CREATE OR replace FUNCTION qty_value (p_item_id number)
2 RETURN NUMBER
3 EAST
4 v_qty_arrival NUMBER;
5 BEGIN
6. SELECT THE CASE SENSITIVE OPTION
7. WHAT (SUM (b.quantity) - SUM (b.quantity_received)) < = 0 THEN 0
8 ELSE (SUM (b.quantity) - SUM (b.quantity_received))
9 END Qty_Arrival
10 INTO v_qty_arrival
Po_lines_all 11 a,
po_line_locations_all 12 b
13 WHERE a.po_line_id = b.po_line_id
14 AND a.item_id = p_item_id;
15 EXCEPTION
16 THEN THAN OTHERS THEN
17 v_qty_arrival: = NULL;
18 RETURN v_qty_arrival;
19 END qty_value;
20.
The function is created.
SQL >
SQL > select xxc_qty_arrivale (214960) double
2.
Select xxc_qty_arrivale (214960) double
*
ERROR on line 1:
ORA-06503: PL/SQL: function returned no value
ORA-06512: at the 'APPS '. XXC_QTY_ARRIVALE', line 19
Back AFTER using the exception block is fine as long as your code actually REACHED the exception block.
When there are no errors, then your code will not enter the exception block, but you still NEED to return a value, since it is what functions a function wants to return a value, that's what the functions are made for.
Spot the differences between the following 3 functions. Understand how they work.
The first function has only a return in the exception block but runs correctly. Result: error, because the back is missing in the code block.
The second function has a return in the exception block and one in the block of code and runs correctly. Result: no error, because the return is not missing in the code block.
The third function has a return in the exception block and one in the block of code and is forced into an error. Result: no error, because the return of the exception handler is used (instead of retriggering of the error, which you would normally do).
SQL > create or replace function myfunc
2 return number
3 as
4 start
5 dbms_output.put_line ('in the section of code');
6 null;
7 exception
8 then than others
9. can
10 dbms_output.put_line (' in the exception handler ' |) SQLERRM);
11 --
12 return 0;
13 --
14 end;
15.
The function is created.
SQL > select double myfunc;
Select double myfunc
*
ERROR on line 1:
ORA-06503: PL/SQL: function returned no value
ORA-06512: at "GHPLUS. MYFUNC", line 14
In the section of code
SQL > create or replace function myfunc
2 return number
3 as
4 start
5 dbms_output.put_line ('in the section of code');
6 null;
7 --
8 return 1;
9 --
10 exceptional
11 so that others
12. can
13 dbms_output.put_line (' in the exception handler ' |) SQLERRM);
14 --
15 return 0;
16 --
end 17;
18.
The function is created.
SQL > select double myfunc;
MYFUNC
----------
1
1 selected line.
In the section of code
SQL > create or replace function myfunc
2 return number
3 as
n number 4;
5. start
6 dbms_output.put_line ('in the section of code');
7 n: = 1/0; -force an error (zero divisor) to join the exception handler
8 --
9 return 1;
10-
exception 11
12 so that others
13. can
14 dbms_output.put_line (' in the exception handler ' |) SQLERRM);
15 --
16 return 0;
17 --
18 end;
19.
The function is created.
SQL > select double myfunc;
MYFUNC
----------
0
1 selected line.
In the section of code
In the handler for exception ORA-01476: divisor is equal to zero
SQL >
-
How to get the details of the item purchased in R12
Hello everyone, use Oracle Application R12.
I need the following information for all purchased object,
How to get the nom_element, $vendor_name, ordered_quantity, rec eived_quantity item_id,
returned_quantity.
Thank you.
Kind regards
Gurujothi.Hi Gurujothi,
PL.try following SQL. It will give you all the details of the purchase.
SELECT PO_NO, B.LINE_NUM, C.SHIPMENT_NUM, A.SEGMENT1
C.QUANTITY, C.QUANTITY_ACCEPTED, C.QUANTITY_BILLED, C.QUANTITY_CANCELLED, C.QUANTITY_RECEIVED, C.QUANTITY_REJECTED, D.QUANTITY QUANTITY_RETURNED,
B.ITEM_ID, E.DESCRIPTION, F.VENDOR_NAME
OF PO_HEADERS_ALL A, PO_LINES_ALL B, PO_LINE_LOCATIONS_ALL C, RCV_TRANSACTIONS D, MTL_SYSTEM_ITEMS_B E, PO_VENDORS F
WHERE A.ORG_ID = & OU_NAME
A.PO_HEADER_ID = & PO_HEADER_ID
AND B.PO_HEADER_ID = A.PO_HEADER_ID
AND C.PO_LINE_ID = B.PO_LINE_ID
AND D.PO_LINE_LOCATION_ID (+) = C.LINE_LOCATION_ID
AND D.TRANSACTION_TYPE (+) = "RETURN TO THE PROVIDER.
AND E.INVENTORY_ITEM_ID = B.ITEM_ID
AND E.ORGANIZATION_ID = C.SHIP_TO_ORGANIZATION_ID
AND F.VENDOR_ID = A.VENDOR_IDconcerning
Sanjay -
I'm working on a procedure that is using the workflow Oracle EBS application for approval.
It has been customized by a contractor in the past, but we need to make some changes to it.
I declared a new variable of number:
The value of the variable l_req_doc_id is set via this SQL:l_req_doc_id NUMBER :=0;
We hit a scenario where some applications are triggered when the value of vendor_site_id on the command line is NULL.SELECT DISTINCT requisition_header_id INTO l_req_doc_id FROM po.po_requisition_lines_all prla , ap.ap_suppliers pv , ap.ap_supplier_sites_all pvsa , po.po_line_locations_all plla , po.po_lines_all pla WHERE prla.vendor_id = pv.vendor_id AND prla.vendor_site_id = pvsa.vendor_site_id AND pv.vendor_id = pvsa.vendor_id AND prla.line_location_id = plla.line_location_id AND plla.po_line_id = pla.po_line_id AND pla.po_header_id = l_document_id;
When this happens, the SQL above will return no rows.
I wanted to check here if, after his return any rows, SQL will change the value of l_req_doc_id from zero to NULL or would remain at zero when the SQL returns no rows?
I know it's a silly question, and I could just write some debug statements in the code that works. Unfortunately the complexity of the code, that debugging statements don't always trigger in the way that I expect.
Any advice much appreciated.
Thank you20100511 wrote:
I know it's a silly question, and I could just write some debug statements in the code that works. Unfortunately the complexity of the code, that debugging statements don't always trigger in the way that I expect.It is pure laziness on your part.
You could easily create a sample test case to understand behaviour like thisSQL> ed Wrote file afiedt.buf 1 declare 2 l_num number := 0; 3 begin 4 dbms_output.Put_line('Before Select '||l_num); 5 select 1 into l_num from dual where 1 = 2; 6 exception 7 when no_data_found then 8 dbms_output.Put_line('After Select '||l_num); 9* end; 10 / Before Select 0 After Select 0 PL/SQL procedure successfully completed.
-
Buyer update on a purchase order
Does anyone know what interface or api I can use to update purchase order? I want to just update the field of the buyer.
I tried the following code and it fails with this error message:
"You must enter a value in all the required fields.
Cause: You tried to leave the area without entering a value in all the required fields.
Action: enter a value in the required fields. »
DECLARE
l_status number: = NULL;
v_error_message VARCHAR2 (2000);
l_api_errors apps.po_api_errors_rec_type;
l_user_id NUMBER;
l_resp_id NUMBER;
l_appl_id NUMBER;
BEGIN
SELECT user_id
IN l_user_id
OF fnd_user
WHERE user_name = "P21734";
SELECT responsibility_id, application_id
IN l_resp_id, l_appl_id
OF fnd_responsibility_vl
WHERE responsibility_name = 'shopping Super User ";
fnd_global.apps_initialize (l_user_id, l_resp_id, l_appl_id);
FOR C IN (select PO.segment1, in. REVISION_NUM
of po_headers_all in.,.
hr_employees em
where po.agent_id = em.employee_id
and em.full_name in ("Judd, Joy", "Guzman, Melissa")
and po.closed_code = 'OPEN')
LOOP
V_ERROR_MESSAGE: = NULL;
l_status: = PO_CHANGE_API1_S.UPDATE_PO (X_PO_NUMBER = > c.segment1,)
X_RELEASE_NUMBER = > null,
X_REVISION_NUMBER = > C.REVISION_NUM,
X_LINE_NUMBER = > null,
X_SHIPMENT_NUMBER = > null,
NEW_QUANTITY = > null,
NEW_PRICE = > null,
NEW_PROMISED_DATE = > null,
LAUNCH_APPROVALS_FLAG = > NULL,
Source_de_la_mise_a_jour = > null,
VERSION = > ' 1.0', '.
X_OVERRIDE_DATE = > null,
X_API_ERRORS = > l_api_errors,
P_BUYER_NAME = > "Budrius, Denise");
dbms_output.put_line ('PO #: ' |) C.SEGMENT1);
IF (l_status = 0)
THEN
BECAUSE me in 1... l_api_errors. MESSAGE_TEXT. COUNTY
LOOP
v_error_message: =.
v_error_message
|| ' '
|| l_api_errors. MESSAGE_TEXT (i);
END LOOP;
dbms_output.put_line (V_ERROR_MESSAGE);
END IF;
END LOOP;
END;
Any help would be appreciated. Thank you!Instead of an API, see if you can run concurrent demand for 'Purchasing Documents mass update'.
Hope this helps,
Sandeep Gandhi -
Archive purchase order details
Hello
We have an obligation as below-
1 purchase orders (number 70) are cancelled by CPSA plan run and the amount of line have become 0 for these lines with closed_reason like "State close wound."
2. now the company wants to restore them.
Need to know:
1 from where we can get the old amount for these purchase orders.
2 is there any place where we can get the data to archive for orders.
Kind regards.You can't UN-cancel a purchase order.
But you can find the amount of old of the column cancelled_quantity in the po_line_locations_all table.
Then create a new purchase order.Depending on your configuration for the archiving of the PO, you will be able to find the old data in the following tables
po_line_locations_Archive_all
po_lines_archive_all
po_headers_archive_allHope this helps,
Sandeep Gandhi -
How to separate the standard consignment POs POs to EDI
EDI allows us to transmit the POs to suppliers. We now allow shipped inventory and would like to know how we could separate shipped POs POs standard if the vendor don't charges us for items shipped until the consumption set is generated.
Thank you
Sanjib(1) for shipments, the consigned_flag in po_line_locations_all is defined.
(2) vendor should not charge shipments. Even if he did, you won't be able to match the invoice for delivery of the shipment. Bill AP screen will display a warning as well. This happens because the shipment of transmission line is created in a State 'closed for invoicing' and closes as soon as it is received.Hope that answers your question,
Sandeep Gandhi -
Total amount of the purchase amount
Hello
In oracle EBS 11.5.9, I need to get the corresponding field in the table of the purchase order request IE
Purchase buyer-> good summary-> order Total amount.
or order form header-> quantity.
What field in the table, I can retrieve this data. ?
Is - this PO_header_all or any summation of the fields of po_lines_all?
Just reply in this regard?The total price to the header is calculated from price_override * amount of po_line_locations_all.
Hope that answers your question,
Sandeep Gandhi -
Table names (for quotes, the quote lines and price breaks)
Hi Experts,
What are the names of tables for the quote, the quote lines and quotes price breaks.
Thank you
MPHQuotes and POs share the same tables.
The type_lookup_code in po_headers_all identifies the type of the document.Quotations > po_headers_all (or you can use PO_HEADERS_RFQQT_V)
lines-online po_lines_all (or you can use PO_LINES_RFQQT_V)
price breaks-online po_line_locations_all (or you can use PO_LINE_LOCATIONS_V)Hope that answers your question,
Sandeep Gandhi
Maybe you are looking for
-
Does not start Equim A60 - system is damaged or missing
Hi, is there anyone who can help me to save my data I had on my laptop Equium A60. The system displays this message when I boot it "WINDOWS\SYSTEM32\CONFIG\SYSTEM" IS DAMAGED or MISSING. I got my disk to RESTORE but it clealy invite, a warning messag
-
Tecra A2 - new drive HARD and have no idea of installing the drivers of Windows XP Home edition
Hi all, have not been here in a while... Where should I start... Have Tecra A2 and the HARD drive died on this issue... was not able to recover whatever it's him so bought a new HARD drive. Rather than taking it to a repair shop, I would like to re -
-
multiplier-accumulator by using fixed representation of pint
Hello I wait with multiplier bulit battery using fixed point representation in labview but I've not found a good guide and the blocks of fixed point in the menu is small and is not enugh anyone can add simple application as in this example x: 8 sign
-
Can I downgrade from Windows Vista to Windows XP
I bought a used computer (bondsman) which has Windows Vista Business installed, and I want to change the operating system to Windows XP. Is this possible? I prefer Windows XP over Vista, Vista is so volatile at the point of being unusable.
-
I have two new computers, and when I go to access the router it ask on connection news. I know that I put in the info just because I can get by using my old computer. I have to give permissions somehwere allowing access to new computers? The router i