Report listing requisitions without orders
I am trying to create a report from Oracle R12 that lists requisitions that do not have a purchase order created against them yet. The following is my SQL for getting the requisition data:
select GL_CODE_COMBINATIONS.SEGMENT2,
GL_CODE_COMBINATIONS.SEGMENT3,
PO_REQUISITION_HEADERS_ALL.REQUISITION_HEADER_ID,
PO_REQUISITION_LINES_ALL.REQUISITION_HEADER_ID,
PO_REQUISITION_HEADERS_ALL.SEGMENT1,
PO_REQUISITION_HEADERS_ALL.AUTHORIZATION_STATUS,
PO_REQUISITION_LINES_ALL.LINE_NUM,
PO_REQUISITION_LINES_ALL.REQUESTER_EMAIL,
PO_REQUISITION_LINES_ALL.ITEM_DESCRIPTION,
PO_REQUISITION_LINES_ALL.NEED_BY_DATE,
PO_REQ_DISTRIBUTIONS_ALL.REQ_LINE_QUANTITY,
PO_REQUISITION_LINES_ALL.QUANTITY,
PO_REQUISITION_LINES_ALL.UNIT_PRICE,
PO_REQ_DISTRIBUTIONS_ALL.REQ_LINE_QUANTITY*PO_REQUISITION_LINES_ALL.UNIT_PRICE as EXTENDED_COST,
PO_REQUISITION_LINES_ALL.MODIFIED_BY_AGENT_FLAG,
PO_REQUISITION_LINES_ALL.CANCEL_FLAG,
PO_REQUISITION_LINES_ALL.ENCUMBERED_FLAG,
PO_REQUISITION_LINES_ALL.LINE_LOCATION_ID
from PO.PO_REQUISITION_HEADERS_ALL, PO.PO_REQUISITION_LINES_ALL, PO.PO_REQ_DISTRIBUTIONS_ALL, GL.GL_CODE_COMBINATIONS
where PO_REQUISITION_HEADERS_ALL.REQUISITION_HEADER_ID = PO_REQUISITION_LINES_ALL.REQUISITION_HEADER_ID
and PO_REQUISITION_LINES_ALL.REQUISITION_LINE_ID = PO_REQ_DISTRIBUTIONS_ALL.REQUISITION_LINE_ID
and PO_REQ_DISTRIBUTIONS_ALL.CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
How would I link this to a table containing PO data such as PO_HEADERS_ALL and/or PO_LINES_ALL to compare and exclude those not listed?
I have solved it:
First, I found the table that links requisitions to orders -- PO_LINE_LOCATIONS_ALL
Second,, instead of using Where clauses to combine the data, I used joins. When it came time to join the PO_REQUISITION_LINES_ALL table to the PO_LINE_LOCATIONS_ALL table, I used a Left Outer Join. Here is my code:
select GL_CODE_COMBINATIONS.SEGMENT2,
GL_CODE_COMBINATIONS.SEGMENT3,
PO_REQUISITION_HEADERS_ALL.REQUISITION_HEADER_ID,
PO_REQUISITION_LINES_ALL.REQUISITION_HEADER_ID,
PO_REQUISITION_HEADERS_ALL.SEGMENT1,
PO_REQUISITION_HEADERS_ALL.AUTHORIZATION_STATUS,
PO_REQUISITION_LINES_ALL.LINE_NUM,
PO_REQUISITION_LINES_ALL.REQUESTER_EMAIL,
PO_REQUISITION_LINES_ALL.ITEM_DESCRIPTION,
PO_REQUISITION_LINES_ALL.NEED_BY_DATE,
PO_REQ_DISTRIBUTIONS_ALL.REQ_LINE_QUANTITY,
PO_REQUISITION_LINES_ALL.QUANTITY,
PO_REQUISITION_LINES_ALL.UNIT_PRICE,
PO_REQ_DISTRIBUTIONS_ALL.REQ_LINE_QUANTITY*PO_REQUISITION_LINES_ALL.UNIT_PRICE as EXTENDED_COST,
PO_REQUISITION_LINES_ALL.MODIFIED_BY_AGENT_FLAG,
PO_REQUISITION_LINES_ALL.CANCEL_FLAG,
PO_REQUISITION_LINES_ALL.ENCUMBERED_FLAG,
PO_REQUISITION_LINES_ALL.LINE_LOCATION_ID,
PO_LINES_ALL.PO_HEADER_ID,
PO_LINES_ALL.LINE_NUM,
PO_LINES_ALL.ITEM_DESCRIPTION,
PO_LINES_ALL.CREATION_DATE,
PO_LINES_ALL.CLOSED_FLAG,
PO_LINES_ALL.CANCEL_FLAG
from PO.PO_REQUISITION_HEADERS_ALL
join PO.PO_REQUISITION_LINES_ALL
on PO_REQUISITION_LINES_ALL.REQUISITION_HEADER_ID = PO_REQUISITION_HEADERS_ALL.REQUISITION_HEADER_ID
join PO.PO_REQ_DISTRIBUTIONS_ALL
on PO_REQ_DISTRIBUTIONS_ALL.REQUISITION_LINE_ID = PO_REQUISITION_LINES_ALL.REQUISITION_LINE_ID
join GL.GL_CODE_COMBINATIONS
on GL_CODE_COMBINATIONS.CODE_COMBINATION_ID = PO_REQ_DISTRIBUTIONS_ALL.CODE_COMBINATION_ID
left outer join PO.PO_LINE_LOCATIONS_ALL
on PO_LINE_LOCATIONS_ALL.LINE_LOCATION_ID = PO_REQUISITION_LINES_ALL.LINE_LOCATION_ID
left outer join PO.PO_LINES_ALL
on PO_LINES_ALL.PO_LINE_ID = PO_LINE_LOCATIONS_ALL.PO_LINE_ID
where PO_REQUISITION_HEADERS_ALL.AUTHORIZATION_STATUS = 'APPROVED'
and PO_LINES_ALL.PO_HEADER_ID is null
Similar Messages
-
Report - List of sales orders for a specific region in Ship-to Party
Hello,
I have a requirement to find all sales orders that were shipped to a specific US state within a specified date range. For example, it would be a report to find all sales orders from 2009-2010 where the region of the ship-to party is CA. The issue is that there is a generic "SHIPTO" partner set up where Customer Service manually enters the address and I cannot pull this information from customer master records. Is there a standard report that I can find this information? I cannot find in VA05, also tried looking on the delivery side in VL06o but I cannot find in there.After doing additional digging on this, I developed a query in SQ01 using the following table join:
LIKP --> VBPA --> ADRC
|____> VBFA --> VBRK
The address code provided in table VBPA can be accessed via table ADRC. Therefore, when doing the link in SQ01, link together VBPA-ADRNR to ADRC-ADDRNUMBER. When doing this it brings in the address information, then you can further develop the query to filter by region code.
For my report, I used the following fields:
Delivery - LIKP-VBELN
Delivery Date - LIKP-LFDAT
Preceding Sales document - VBFA-VBELV
Preceding Item # - VBFA-POSNV (at my company every delivery document item starts with 10, later filter in the report to only show 10 in this field)
Follow-on document - VBFA-VBELN (I'm using the billing document as the follow-on to pull the net value of the invoice)
Follow-on document category - VBFA-VBTYP_N (set the document category to only look for M - Invoice; otherwise you'll pull in PGI document and WM documents if applicable)
Net Value - VBRK-NETWR
Ship-To Party - LIKP-KUNNR
Partner Function - VBPA-PARVW
Name 1 - ADRC-NAME1
Name 2 - ADRC-NAME2
Street - ADRC-STREET
City - ADRC-CITY1
Region - ADRC-REGION
Postal Code - ADRC-POST-CODE1 -
List of purchase order without confirmation
Dear guru ,
I search a list of purchase order without confirmation of the vendor.
Does exist this list in standard sap ?
Thanks in advance.No Std report exist to pull the informaiton where confiramtion control key is populated but confiramtion is not created.
please use table EKPO and EKES and write the Query
you will get what you need from this query -
Report for List of Transfer orders in warehouse management
hi,
i want generate a report for list of transfer order orders in warehouse management
is there any report with you guys kindly help me,
or any standard report is there to display list of transfer orders in warehouse management
Thanks,
Rajesh
Edited by: rajesh kumar kandagatla on Feb 11, 2009 9:27 PMHi,
If it is one time requirement, you can run the report LT23 and download the data to excel sheet and donwload material details in another sheet and you can match the temperature column in excel file.
If it is permanent requirement, create a query and attach transaction code to that or write a seperate report for this requirement.
Please let me know.
Thanks
Nagarajan -
Report for purchase requisition, purchase order and schedulling agreement.
Hi, thanks for your help.
I need a report or query just to view in one screen the related docs. as purchase requisition, purchase order and schedulling agreement.
I don´t know if there is a table or trx. with that information.
Is it possible to get that information via query ?
Thanks for your help.
Regards.For PR and PO you can use ME5A
For PR and Scheduling agreements also you can use ME5A. -
Hi All,
Greetings.
I have two queries namely,
1.Query for cancelled requisitions and
2.Query for Internal Requisitions without Internal Sales Orders.
I was on a task to combine those two queries..
Can we do that? if so, please help me do that..
Thanks in Advance,
Bhaskar.Hi All,
Greetings.
I have two queries namely,
1.Query for cancelled requisitions and
2.Query for Internal Requisitions without Internal Sales Orders.
I was on a task to combine those two queries..
Can we do that? if so, please help me do that..
Thanks in Advance,
Bhaskar. -
I Need interactive report to list the purchase orders details for a vendor
I Need interactive report to list the purchase orders details for a vendor that has interactive drill down options to give the detail of vendor from vendor master.
Hi
see this sample report
this is Customer wise sales orders
just make similar report just using LFA1, EKKO and EKPO tables instead of KNA1,VBAK,VBAP
REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
LOOP AT SCREEN.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
REPORT demo_list_at_pf.
START-OF-SELECTION.
WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
AT pf5.
PERFORM out.
AT pf6.
PERFORM out.
AT pf7.
PERFORM out.
AT pf8.
PERFORM out.
FORM out.
WRITE: 'Secondary List by PF-Key Selection',
/ 'SY-LSIND =', sy-lsind,
/ 'SY-UCOMM =', sy-ucomm.
ENDFORM.
After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
Secondary List by PF-Key Selection
SY-LSIND = 14
SY-UCOMM = PF06
Example for AT USER-COMMAND.
REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'SY-LSIND:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'SY-LSIND:', sy-lsind,
/ 'SY-PFKEY:', sy-pfkey.
ENDFORM.
When you run the program, the system displays the following basic list with a the page header defined in the program:
You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
Regards
Anji -
Standard Report to see list of purchase orders with Payment terms
Hi ,
I want to see list of purchase orders with corresponding Payment terms.
Is there any standard report available ?
I checked ME2L, ME2M , ME80FN and ME81N ...
But there is no option to add payment term field ZTERM in layout option.
kindly let me know if there is any way..
Thanks & Regards,
Hari priyaHi krishna ,
Thanks for your prompt reply..
I know we can use dynamic selection for payment term as input seelction...
but in i want to display payment terms for list of purchase order in output.
Is there any way to add zterm- payment term field in output layout of reports.
Thanks &Regards,
Hari priya -
EHS - Report Entry Document - Purchase Requisition - Purchase Order
Hi experts,
I would like to have in a report the following sequence:
- Entry Document
- Purchase Requisition
- Purchase Order
Is there any function or BAPI that gets this information? I can't find it.
For entry documents, i found this database table: "ehswat_enfod". Is this correct?
To purchase data, i make "selects" of EKKO and EKPO tables.
Lots of thanks,
JavierOK Sridhar,
Thanks for the answer, but this still don't solved my problem. This table EKBE with this value EKBE-VGABE = 9, returns 0 rows.
I would like to get the Entry document, passing the Purchase Requisition.
I only find a function (EHSWA_149_FIND) that makes the opposite, from a Entry Document (EAPRED) get the Purchase Requisition (EASUCC).
Do you know a function that gets what i want? Or a database table like EHSWAT_ENFOD, but with clue values?
Thanks,
Javier -
List of sales order without order bom fix
dear sir
we are using variant configuration with result oriented order bom fix in cu51/cu52
we want the list of sales orders for which order bom is not created using cu51/cu52 fixing
can any body tell me where this information is available?
thanking you
srinivas paiDear Nau,
VA05 for list of sales orders and put Document date in Sales Order Data
COIO Process order information System
Regards,
Rakesh
Pls award points if you find the solution -
Hi,
Can user view all the attachemens attached to all the orders of his own?
I mean attachement list for multiple orders without going inside an order.
your help will be highly appreciated.
Regards,
KedarThere doesn't appear to be any standard reports...
However, go to table SRGBTBREL with AUFNR=INSTID_A and TYPEID_A = BUS2007 (PM) or BUS2088 (CS).
Then take the SRGBTBREL-INSTID_B field and extract the last half of the data e.g. FOL30000000000004EXT33000000000123
This then maps into table SOOD as OBJTP = EXT, OBJYR = 33, OBJNO = 000000000123. From this table you can determine who created the attachement (CRONAM)
PeteA -
Exception Messages Report / List
I have been unable to locate an exception messages report, either for production orders, requisitions, or purchase orders. I am looking for a report that will contain all of the exception mesages.
Ideally, the output would be something like:
1. WBS element (project)
2. Material number
3. Material Description
4. Make or buy code
5. Recd. / Reqd. Quantity (This would be the qty affected by the exception message)
6. Date (e.g. date on which the material is currently expected to be received)
7. Purchase order or work order #
8. Purchase order line #
9. Purchasing group
10. MRP Controller
11. Exception message Number
12. Exception message Description
13. Re-Scheduling date
14. Various additional MM fields
I have requested the report, but I am told by my IT group that the exception messages do not reside in any table, so they cannot be retrieved, much less exported to excel, so a list of teh applicable tables/fields would also help.
I assume that this issue has been raised and solved many times, since SAP is not new and my request not unique.
I welcome any suggestions.
Thank you.HI,
Why dont you try to list the messages in SE91 and by giving the application area.
Thanks & Regards,
Kiran -
How to find out the list of Production orders created for sales orders
Dear All,
Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
How to identify the production orders which are created based on Sales orders.
Kindly suggest.
Regards,
MullairajaCheck these threads
[Sale Order & Production Order|Sale Order & Production Order;
[Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
thanks
G. Lakshmipathi -
Report to show open orders and valuation type
Hi,
Is there a report in SAP that shows the open orders and the valuation type of the materials in those orders?
thanksHi jay,
What is the definition of Open orders according to your company?
Is it Sales orders created but not delivered? or
Is it Delivery created for the Sales order but not done PGI? or
Is it Sales orders but not billed?
Accordingly you must decide. Just VA05 will give list of orders where you can take from the Status updation whether it is delivered or not. But apart from that, if you need any report relating to Open orders, you need to develop a Z report which will help your company. Just ask your business user how he wants. Based on that you can decide.
Thanks and regards.
Augustine Ponraj -
Standard report(for open PO order items) with estimated Delivery dates
hi friends
i would like to know if there is any standard report(for open PO order items) with estimated Delivery dates on it.
thanks
alahariME2M (by material)
ME2L (by vendor)
ME2N (by number)
Use selection parameter WE101 for open GR
and scope of list EINT (scheduling lines)
Maybe you are looking for
-
Resetting a form to default state
I have a form with lots of swing components(JtextFields,JRadioButtons,JComboBoxes), and I want to be able to "reset" the form back to its' original state(i.e. blank textfields,no selected radiobutttons,comboboxes with defaults showing). Is there a si
-
Error message when trying to call a sub vi
Iam trying to call a sub vi into my main program when I run the main program labview gives me following error "Error-2147417848 occured at the object invoked has disconnected from its clients". Do any one know how to get rid of this error. Thank you,
-
TS1368 iPod touch does not have software update feature
Ipod could not be restored unknown error (-1). Any ideas?
-
Powerbook powers on, but doesn't boot
I posted this at the end of another thread with the same title and got no response. Someone please help me! Okay, this same exact thing has just happened to my Power Book G4. I have some important stuff on there and I haven't had the chance to back u
-
From where can we give the details of change layout in alv
Hi, I am executing an ALV Grid report, and output is coming fine , if i see the print preview for some particular fields some digits or missing so i used the button change layout there i can see that length is not sufficient i have changed that and i