on 05-16-2019 10:50 PM
Our pricelist for customers and vendors alike is based on Last Purchase Price, but in our business scenario the last purchase price isn't always the most current one. In the sales order form, the Cost field is defined by SAP as "real time cost" of the item. If the user updates the value of this field -- it gets carried over to Delivery which is perfect. When we use the procurement document wizard, I understand that the PO price is based on the pricelist of the selected vendor. As a work around, is it possible to copy the Cost field to the PO unit price? Hoping to eliminate double data entry...
Hi,
Try this query,
SELECT T1.[Price] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] left join POR1 T2 on T2.[BaseEntry] = T1.Docentry and T2.[BaseLine] = T1.[LineNum] INNER JOIN OPOR T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T3.[DocNum] = T1.[PoTrgNum] and T1.[DocEntry] = $[$38.45.11] and $[$38.46.11] = T1.[LineNum] and $[$38.1.11] = T1.[ItemCode]
Note:
In my query, i am taking unit price from SO to PO. Please change T1.Price to your required field.
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The field is $[$38.37.56]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagarajan! I tried doing that but getting a syntax error.. returns blank. My apologies -- fairly new to sql and fms!
SELECT $[$38.37.56] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] left join POR1 T2 on T2.[BaseEntry] = T1.Docentry and T2.[BaseLine] = T1.[LineNum] INNER JOIN OPOR T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T3.[DocNum] = T1.[PoTrgNum] and T1.[DocEntry] = $[$38.45.11] and $[$38.46.11] = T1.[LineNum] and $[$38.1.11] = T1.[ItemCode]<br>
In this case, its possible to fetch cost from SO to add into PO field. Can you share screen for cost field or table name to create FMS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Its not possible to create FMS in wizards.
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagarajan, sorry I didn't mean FMS in the wizard itself but in the PO form (after it had created a PO from the wizard). What I imagine happening is for the user to manually click on the hourglass icon to refresh/update the fields (Unit Price field) which has the fms query to copy the Cost field in the SO form. Does that make sense?
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.