FMS Query for Purchase Order
Hi,
I want to FMS Query for Purchase Order.
I want to display the weight * price in one user define field.
Please suggest me
Hi Tushar.......
Try this.......
declare @var1_wt as varchar(255)
declare @var2_Pr as varchar(255)
declare @var3 as float
declare @var4 as float
set @var1_wt=$[$38.58.0]
set @var2_Pr=$[$38.14.0]
set @var3=cast( substring(replace(@var1_wt,',',''),0,len(replace(@var1_wt,',',''))-1) as float)
set @var4=cast(substring(replace(@var2_Pr,',',''),0,len(replace(@var2_Pr,',',''))-3) as float)
select @var3 * @var4
Regards,
Rahul
Similar Messages
-
Creating a Query for Purchase Order Approval
I need to develop a query to check if any of the line totals in a new purchase order exceeds $500. I have to attach this query to the approval procedure (under 'Terms' in 'Define Approval templates'). When the 'Add' button on the purchase order is clicked, the values on the form are still not available in the database. This means, my query has to pick the data from the new purchase order form. Is there any way to build such a query? Thanks.
Satish, Alerts just notify the appropriate parties. They do not stop a document from being posted. This means, it is not capable to recognize the situation unless it's already stored in the DB.
Alexey. what about creating a Development Request about this topic?
Regards,
Felipe -
Hi Experts,
The user has requested to prepare current datewise report of all purchase order. Please guide me regarding this.Hi Shailesh.....
Try this.....
Select T0.DocNum, T0.CardName, T0.DocStatus, T1.Dscription, T1.Quantity, T1.Price, T1.LineTotal
from OPOR T0 Inner Join POR1 T1 On T0.DocEntry=T1.DocEntry
Where DateDiff (dd, T0.DocDate, GetDate())=0
Regards,
Rahul -
Table name for purchase order delivery fields
Hi Gurus,
Can you please tell me the name of the tables and the joining condition for purchase order delivery details like Name, street , city, postal code, address detail and the joining condition?
Regards
MD. SAMYHi MD. SAMY,
1. Table EKPO has details lat line item level.
2. You must make a simple ABAP program in the infosets (or functional area) that contain a line "addrnumber = ekpo-adrnr" while addrnumber is ADRC table field.
3. Choose fields that you want in ADRC and put it into new fields (e.g. : DELI_NAME2 = adrc-name2., etc)
4. The new field attribute must be maintained in the infosets (in EXSTRA).
5. Now in the query you have those fields.
Regards,
Sameer -
Need a field for purchase order quantity
We need a field that is fixed once the PO is created and is never updated even if the qty is changed later on.
Hi Chandra
Not clear with your query...
Are you looking for a field to act as a constant where you can store the PO Item Quantity which was initially created???
If so, not really sure on the reason but you can get the orginal qty value from Change Documents.
OBJECTID for Purchase Orders is <b>EINKBELEG</b>.
Kind Regards
Eswar -
Customized Query for purchase register
Hi All,
I need a query for purchase register which gives excise information with biferication.
OPCH, PCH1, ORPC, RPC1 and IEI4
In excel reporter we get the purchase register report But excise amount does not come in that report.
So, I need Customised report for that.
Regards
Shashihi shashi,
SELECT M.DocNum AS 'AP Inv. #', M.DocDate as 'Date', M.CardName as 'Vendor Name',M.NumAtCard as 'Bill No. & Dt.',
(Select Sum(LineTotal) FROM PCH1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=-90 and DocEntry=M.DocEntry) as 'ED (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=7 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=10 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=8 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
(Select Sum(LineTotal) From PCH3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
M.WTSum AS 'TDS (Rs.)',
M.DocTotal as 'Total (Rs.)'
FROM OPCH M LEFT OUTER JOIN PCH1 L on L.DocEntry=M.DocEntry
LEFT OUTER JOIN PCH4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
LEFT OUTER JOIN PCH5 J ON M.DocEntry = J.AbsEntry
LEFT OUTER JOIN PCH3 Q ON M.DocEntry = Q.DocEntry
WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND (T.TrgetEntry = ' ')
GROUP BY
M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
ORDER BY
M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
Jeyakanthan -
Condition Type for Purchase order
Dear All,
I have one query about condition type at item detail level in purchase order.
Please let me know how to disable any condition type for purchase order.
I have already tried it in, SPRO->Materials Management->Purchasing->Purchase Order->Define Screen Layout at Document Level.
But not found it there.
Regards,
Mahesh WaghDear Ganti,
>OMF4 - Materials Management >Purchasing > Purchase Order Processing >Define screen layout at document level
1. No such T Code OMF4 found (I ma using ECC 6.0)
2. NO Such Customizing Menu path sound in SPRO.
Pls elaborate......
Regards,
Mahesh Wagh -
GR for Purchase Order for Trading Goods
Hi,
I have a query on configuration for accounting entry for purchase orders for Trading goods.
When i do the GR for Purchase order for a trading good, the accounting entries are,
Inventory Dr
GR/IR Cr
and
Purchase Expenses Dr
Purchase Setoff Cr
I understand that i can configure for the first set of posting in BSX and WRX. How do i configure for the Purchase Expenses and Purchase Setoff.
Please advise and correct my understanding.
Thanks in Advance,
SafiHi,
The possiblity for this scenario is
First create the Production order in CO01
Create of Account assinged PO in ME21N with Account assigned category as "F" with Production order
Do the MIGO with respect to PO, then system will directly post the Stock to that Production order.
So in the system GR is done for PO & Goods issue is done for Production order.In this way you can acheive this.
rgds
GSC -
FMS Query for Document Header UDF
Hi,
I have created an UDF in the header level of Marketing Document. I want to add FMS on it. UDF Value will be 4% of DocTotal Value and auto Refresh on DocTotal.
What will be the query for Sales Order.I am saving this query
Select ($[$29.0.number]) * 0.04
and setting this query in the udf by.
now when i am creating an order and pressing shift+f2 on it it's giving an error msg : internal error(3006) occured.
Edited by: Sibasish Sengupta on Dec 8, 2008 1:11 PM -
PO 'No goods receipt possible for purchase order'
Hi gurus!
While trying to make Confirmation of a PO in the SRM Portal the user is getting the error 'No goods receipt possible for purchase order'
The scenario used is Classic, so PO is replicated directly to the R/3 system.
Any idea why this is happening?
Thanks a lot!Hi, thanks for the quick reply!
Where i can check the Item category?
I found a field called 'subitem category' but it's blank
with this possible values:
1 Variant
2 Discount in kind: inclusive bonus qty.
3 Empties
4 Discount in kind: exclusive bonus qty.
5 Prepack item
6 Display item
7 Set item
8 Interchangeable items (IBU: A&D)
9 Pre-packing (SLS items)
H GT Bill of Material, Header Relevant
I GT Bill of Material, Item Relevant
About PO type i think it's EC (doc_type?), in R/3 is shown as EBP PO
I checked in backend system, in the item details > Delivery and the 'Goods Receipt' is checked. -
Goods-Receipt Block for Purchase Order depending on Goods-Receipt Date
Hi,
I want to set up the system so it can block the Goods-Receipt for Purchase Order respectively Scheduling Agreement if the Goods Receipt is about to take place 30 days or more before the Desired Delivery Date.
For Example: If I have a Purchase Order with the desired delivery date 30.09.2008. I want to set up the system so, that it bans (forbids) the Goods Receipt before the 01.09.2008.
If possible I would want to do that without additional programming. Is it possible to set up the system using only customising settings?
Thanks for your help
BogdanHello Marius-Bodgan,
as this question is marked answered I assume you have received an solution for your requirement. Could you please share the solution with me by posting it here? I have the same requirement and did not find any possibility to do this in customizing.
Thanks in advance,
Emanuel
Found the solution in thread Re: Goods Receipt
Edited by: Emanuel Penalver on Jul 15, 2008 11:48 AM -
Query for Sales Order Analysis
Dear Experts
I have written a Query for Sales Order Analysis and would like to have help on this.
The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
where U_Total_GP is a UDF for storing the GP of each order.
After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
Thank you
Regards
EltonHi Elton,
Try this:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0]
ORDER BY T0.[DocNum]
Thanks,
Gordon -
Table for purchase order status
Hello friends,
There's a tab STATUS in purchase order (tcoe ME21N).
I can't find a table which contains theses statuses.
Anybody knows what's the table for purchase orders status ??
Regards,
BahiaHi
PO status is stored in Structure not in the table.
Please use the List displays to get the information like ME2N,ME2L, ME2M, ME2K etc
You can also get the information from the table EKKO, EKPO, EKET,EKBE
Hope it helps
thanks/karthik -
Missing Parts report for Purchase Orders
Hey Gurus,
We are running the availability check for Purchase orders and the user group is wondering if there is a standard Missing Parts report in SAP similiar to transaction CO24 for Purchase Orders so that they can view all of the Purchase orders with missing parts.
As a side note, we are using subcontracting purchase orders.didn't get a response.
-
Require Standard DataSources for Purchase Orders
Hi,
Please provide me the standard datasources for purchase orders to get the data updated automatically in a BI System.
I have to display report containing the purchase orders details of each day.
Regards
Sunil KumarHi,
Following link will give you complete details of purchase order deports and data sources.
http://help.sap.com/saphelp_nw70/helpdata/en/df/cfb839f6a7a307e10000000a11402f/frameset.htm
Regards,
Vishnu
Maybe you are looking for
-
Q190 Motherboard - where can I buy one?
Hi folks, Our ThinkCentre Q190 died - one month after warranty ended. No video out, seems like the motherboard is gone. I'd like to replace it; where can I purchase a replacement motherboard for this animal? Thanks for any help.
-
Hi, I am trying to run PL/SQL function in the Formula Column. This PL/SQL function will run a query and return the records into the report. Here is the PL/SQL function (called Test). function TestFormula return varChar2 is stuName varchar2(40); curso
-
Unable to load sequence!!
I have a sequence which was previously loading properly but now it refuses to load due to an apparant "Incorrect File Format" error (see attached image). It's very important I get this sequence to load other I will have lost a lot of work. Does anyon
-
Hi, I would like to set up Apache FOP for basic pdf generation in Apex reports. Does anyone know how much it cost for standalone OC4J - per CPU? Also, has anyone tried to use OC4J/FOP for basic PDF in Apex reports? Is the result stable? Finally, is t
-
Save As "File Not Found" error?
I have been working on archiving some shows from our studio. I have done this a LOT over the course of the last year and everything has been fine. I needed to delete one of the buttons from the menu for a certain amount of shows but I didn't want to