Query base approval for PO Unit Price
Dear All,
I want a Query Base approval
Scenario: If Purchase Order Unit Price Exceed form 10000/- INR then Purchase Order Goes to the Approval
Do any one have a Query base approval for above Scenario?
In an approval query you can not access all the row level data. (Only the first line.) So you can not connect your approval on row level conditions.
I can suggest one (but a little uncomfortable and complicated) workaround for approval on line level:
1. Create a header level UDF e.g. named ForApproval with possible values Y and N, with default value N.
2. Write code in the SBO_SP_TransactionNotification stored procedure, that signals an error message u2018You should set ForApproval to Y!u2019 if U_ForApproval=u2019Nu2019 and there is any line with fulfilling your criteria.
3. Set an approval procedure according to the header level ForApproval field.
Similar Messages
-
Referencing annual prices for monthly units * price calculations
Hello,
We have a PLANNING application that has the following dimensions.
Z_Account,Z_Time,Z_Company,Z_Version,Z_Driver,Z_DataSrc,Z_Driver,Z_Produ
ct,Z_Customer. We have plan sales quantities by product and customer for
every month in the year against an account called 'SalesUnits'
(combination is Z_Account = SalesUnits, Z_Time = 2009.JAN to 2009.DEC,
Z_Driver = None,Z_Customers = various customers, Z_Product = various
products, Z_Version = Forecast, Z_DataSrc = Manual, Z_Company = various
companies). However, sales prices are planned for and entered on an
annual level.
For this we store the sales prices for the combination
Z_Account = "DriverAccount", Z_Time = 2009.INP, Z_Driver= "SalesPrice",
Z_Customer = NoCustomer, Z_Product= various products,Z_Company = various
companies,Z_Version = Forecast, Z_DataSrc= Manual. The requirement is to
write script logic that multiplies sales quantities of each
product/customer/ month by the price of the product/year and write the
values to another account (SalesRevenue) for each product/customer/month
combination.
How would one go about writing the script logic for above?
We tried the following ways. However, we get errors either during
validation or during execution of the script.
Try 1: In this case we created a property called 'Input_Year' in the
time dimension and stored the value 2009.INP as property for all the
months 2009.JAN to 2009.DEC
*XDIM_MEMBERSET Z_Account = SalesUnits,DriverAccount,SalesRevenue
*XDIM_MEMBERSET Z_Product = AllProducts
*XDIM_MEMBERSET Z_Customer = AllCustomers
*XDIM_MEMBERSET Z_DataSrc = Manual
*XDIM_MEMBERSET Z_Drivers =ALL_ACT
*XDIM_MEMBERSET Z_RptCurrency = LC
*XDIM_MEMBERSET MEASURES = PERIODIC
*function PRO(%DIMENSIONNAME%,%PROPERTYNAME%)
%DIMENSIONNAME%.Properties("%PROPERTYNAME%")
*endfunction
#INPUTYEAR=PRO(Z_Time,INPUT_YEAR)
*WHEN Z_ACCOUNT
*IS "SalesUnits"
*REC(Expression = %Value% *
([Z_Account].[DriverAccount],[Z_Drivers].[SalesPrice],[Z_Time].[#INPUTYE
AR],[Z_Customer].[NoCustomer]),Z_Account = "SalesRevenue")
*ENDWHEN
*COMMIT
The above code could not be validated. Is there any way to include a
variable as dimension member in a tuple in a REC statement? NB: The code
works if we hard code [Z_Time].[2009.INP] in the tuple. However, we want
to avoid hard coding of years, months and dimension items that would
change frequently.
-->continued in reply due to characters limitHi Halomoan,
Thanks for pointing me in the right direction. I had to tweak the code to get the quantity * price to come out with the right numbers.
One issue still remains in that I cannot get the input year populated as a variable. The following code works if the year 2009.INP is hardcoded in the statement
*DIM Z_TIME WHAT=2009.INP; WHERE=>>>; USING=BAS(%Z_TIME_SET%);
, but does not work if I use a *SELECT statement to populate the variable %INPUT_YEAR%.
I used the script logic tester in the BI system to test the following logic and specified 2009.TOTAL for Z_TIME and 1000 for Z_COMPANY.
*SELECT(%INPUT_YEAR%, INPUT_PERIOD, Z_TIME, [ID] =%Z_TIME_SET%)
*XDIM_ADDMEMBERSET Z_Time=%INPUT_YEAR%
*RUNALLOCATION
*FACTOR=USING
*DIM Z_ACCOUNT WHAT=DriverAccount ; WHERE=SalesRevenue; USING=SalesUnits;
*DIM Z_DRIVERS WHAT=SalesPrice; WHERE=>>>; USING=NONE;
*DIM Z_CUSTOMER WHAT=NoCustomer; WHERE=>>>; USING=BAS(AllCustomers);
*DIM Z_PRODUCT WHAT=BAS(AllProducts); WHERE=<<<; USING=<<<;
*DIM Z_VERSION WHAT=ACTUAL; WHERE=<<<; USING=<<<;
*DIM Z_DATASRC WHAT=HISTORY; WHERE =<<<; USING=<<<;
*DIM Z_COMPANY WHAT=%Z_COMPANY_SET%; WHERE =<<<; USING=<<<;
*DIM Z_PLANT WHAT=NoPlant; WHERE=<<<; USING=<<<;
*DIM Z_PRODUCTGROUP WHAT=NoProductGroup; WHERE=<<<; USING=<<<;
*DIM Z_CHANNELPARTNER WHAT=NoChannel; WHERE=<<<; USING=<<<;
*DIM Z_TIME WHAT=%INPUT_YEAR%; WHERE=>>>; USING=BAS(%Z_TIME_SET%);
*ENDALLOCATION
Any idea on how to get a variable populated from the property value of a member as defined by a %{Dimension member
}_SET%? -
Approval Templates On Query Base Not working..
hi.
Plz have a look on uploaded image.
here i had highlighted that no of approvals are required at approval stages form
what is the meaning of 2 ,
->i think the 2 people approval we need compulsorily. Am i currect.
->In approval Stages i added two persons but i given no of approval need 1
what will happen . If any body one person will approve , will it approve the document am i currect.
And one more thing In Approval template under terms i am using query based on this one
the document should be approve if i give Doctotal total Greater than amount working fine
but i need query base approve..
what i need while adding the sales quotation if project code is not empty
it will take the approval
select t0.docentry from oqut t0 inner join qut1 t1 on t0.docentry=t1.docentry where t1.Project <>''
the above scenarios i will check it..
but i need your valuable suggestions...Thank u working fine..
last Question plz reply to me.
1)Is Approval Stages are unique means
in approval template if i use one approval stage in another approval template can i use same approval stage will it work...
2) in approval stage
Total authorization persons are 2
The below scenarios i am able to add the document i can able to update it.
no of approval 1
no of reject 1
what is the meaning
if out of 2 persons if any body approve the document document will add
if out of 2 if any one person reject then the document will reject
no of approval 2
no of reject 2
Two users should approve the document otherwise document should not be add
Two users should reject the document otherwise document should not be reject
no of approval 2
no of reject 1
two users should approve the document otherwise document should not be add
out of 2, one user should reject the document no need second users reject
no of approval 1
no of reject 2
one user is enough
two users need to approve the document
Plz clarify my doubt.
I am waiting for your reply.. -
GL account for Unit Price changes A/R Invoice
Hi,
I need to know where the GL accounts are determined for Item unit price changes. My problem is as below:
I have a delivery created for 2 material items. After creating the delivery, we want to reduce the unit price from 2600 (default) to 2500 per unit. ( this is without going into the discount column) as we wnat to reflect the same in the deliver note printout.
When this is copied to an A/R invoice and then and we try to add this, an error is generated saying "GL accout missing".
Can any one help to tell me which account this is exactly and where this is entered. we are using SAP B1 2005 PL50.
Thanks in Advance !Hi Nirushad.......
Its in Administration> Setup> Financials> GL Account Determination> Inventory Tab--> Price Difference account.
First check the Set GL Method of what
For checking this go to Administration--> System Initialization > General Setting> Inventory Tab and Set GL Method
If its Warehouse wise then go to warehouse where transaction is happening and put the Price Diff. Acct in accounting Tab
If its ItemGroup wise then go to ItemGroup where transaction is happening and put the Price Diff. Acct in accounting Tab
If its Item Level wise then go to Item Master Data where transaction is happening and put the Price Diff. Acct in Inventory Tab
Regards,
Rahul -
How do I change unit price to 4 decimal for CUST_PO of Standard PO Styleshe
Hi:
We are currently using the standard "PO Output for Communication POXPOPDF" to print our PO. We like the output except for the unit price. We have the need to display the unit price with 4 decimal places instead of 2.
I am new to XML publisher.
Is there a easy way to do this without having to build the templates from scratch?
Thanks,
LSHi LS
I think the template for this is not an RTF template where things would have been relatively simple. But its an XSLFO template which is going to be a bit tougher. First you need to open the template and locate the UNIT price field entry. Looking at the version I have its just:
<fo:table-cell xsl:use-attribute-sets="table.cell5">
<fo:block xsl:use-attribute-sets="form_data1">
<xsl:value-of select="UNIT_PRICE" />
</fo:block>
</fo:table-cell>
You can wrap the UNIT_PRICE entry with the format-number function.
format-number(UNIT_PRICE, '#,###,###.####')
You can more info by sraching for format-number on your favorite search engine.
The only issue I can see is that the PO extract may not be extracting data to 4 dps or more.
Regards, Tim -
SetBackColor for Unit Price !?
I'm asking because I'm not sure what is wrong.
See the 2 lines below, the 3 is the ItemCode and the 17 is the Unit Price
The back color works for the ItemCode but not for the Unit Price.
I don't know if it's me doing something wrong !
oMatrix.CommonSetting.SetCellBackColor(iDetailRow, 3, GetColor(Color.Orange));
oMatrix.CommonSetting.SetCellBackColor(iDetailRow, 17, GetColor(Color.Orange));"3" isn't accepted by SetCellBackColor as it's a int colNum
SAP gave me 20 for Unit Price and it works but it doesn't make sence and I don't know where they took 20 from SAP
when I go in the Form Settings the order is 17 for UNIT PRICE
They even gave me a code to find the column by the title and yet it works and it finds 20 for UNIT PRICE but
how and where if you're a user and not a machine to now that 20 is UNIT PRICE ?
VERY CONFUSING ! -
Creating a Formatted Search in Item Master based on Unit Price
Hi Experts,
I have to create a Formatted Search for assigning the Standard Cost of Items as Selling Price-Selling Price*.05 i.e the Standard cost of the item should be set upon automatically equal to 5% less of Selling Price .
I have created the following Formatted Search Query :
SELECT ((SELECT $[$34.68.NUMBER])-(SELECT $[$34.68.NUMBER] *.05))
and have assigned this FS to Standard Cost Field . I am not able to base it upon Unit Price field . This FS is correct but it is not automatically refreshing upon change of Unit Price and I have to manually update it(ALT+F2) . I guess the filed upon which it should be based upon is not correct .
please guide me how to resolve this issue . How to base this FS upon Unit Price.
Thanks and Regards,
Pooja Singh.Hi,
Actually I dont want to set upon the last No for the Series. What about the Sequence ? Administration->setup->financials->Tax->Sequence. Here also the same thing can be done but Location Specific. When I created 2 Series for the two different locations , I found that two different fields appeared on the screen Sequence Name Where I found the two sequences I defined for the two locations. If you have any idea about what this sequence is for and how far is it different from Document Series , please let me know.
Thanks and Regards,
Pooja Singh -
How to find the unit price of a Material
Hi Friends,
Please help me in finding the field for Material unit price or How do I calculate the Unit price of a Material.
because in webdynpro screen user will entering only Material number,quantity. for that material I need to find the Unit price and calulate the to total amount like ( quanity * unit price) and put it in total amount column.
For that I require unit price of a material,I have plant,sales org.storage location.
is there any function modules for that?
Please help me in finding the unit price.
Regards,
Xavier.PHi
See table MBEW. The value or price is in terms of UoM that you have in MARA-MEINS (base unit measure). You have 2 diff. prices: variable and standard in function of type (field VPRSV).
Regards
Eduardo
Edited by: E_Hinojosa on Aug 12, 2011 10:49 AM -
Creating order form and need Java Script to calculate unit price and quantity in Acrobat Pro.
Hi,
I am creating order form in Acrobat Pro , and I have
code
Order Quantity
Unit price $
201
500
$ 0.52
201
1000
$ 0.36
202
300
$ 0.26
202
500
$ 0.2
How make Subtotal and Total price with Java script.
I do not know how to write java script.
Anyone can help me?
Thanks,Thanks for your response. I have 2 quantities and 2 Unit price for each code, I know a simple sum in calculation it works for 1 unit price and quantity. Can you please let me know how to do it? One of the expert sent m this:
//change field names as needed
var qt1 = this.getField("qt1").value;
var up1 = this.getField("up1").value;
var qt2 = this.getField("qt2").value;
var up2 = this.getField("up2").value;
event.value = (qt1 * up1) + (qt2 * up2);
I put this in total text field (calculation tab , Custom script) , but it did not worked.
I appreciate it if anyone can help or give me suggestion. -
Unit price in Invoice form(Rounding up issues)
Hi Gurus!
In my smartform I have used a formula to get the unit price of an item line which is giving me rounding up issues as it is calulating upto the 3 decimal places that I require in my output. Is it possible to grab the unit price field (KEBTR) directly into my form for the unit price so that I get the actual amount as in SAP into my invoice output rather than caluclting it in my code so that there is no discripancies.
Like it shows on my form sometimes 98.999 or sometime 99.001 instaed of 99.00 as is in under the condition tab of the invoice, I would like it to show straght as is in SAP 99.000 rather tahn doing caluction and coming to a smallest decimal value.
CLEAR: g_unit_price, g_min_charge_flag, g_item_tot, g_skto_kwert.
* get skto amount (Cash discount)
LOOP AT gt_konv INTO gs_konv WHERE kposn = gs_gen_del-itm_number AND
kschl = 'SKTO'. "Cash discount
g_skto_kwert = gs_konv-kwert.
EXIT.
ENDLOOP.
* For rental contracts there is no delivery so surcharges must be removed from net.
IF is_bil_invoice-hd_gen-bil_type = 'ZFV'.
CLEAR gs_gen_del-kzwi3.
LOOP AT gt_konv INTO gs_konv WHERE
kposn = gs_gen_del-itm_number AND
stunr BETWEEN 230 AND 289.
gs_gen_del-kzwi3 = gs_gen_del-kzwi3 + gs_konv-kwert.
ENDLOOP.
ENDIF.
g_item_tot = gs_gen_del-netwr - gs_gen_del-kzwi3.
IF gs_gen_del-fkimg <> 0.
g_unit_price = g_item_tot / gs_gen_del-fkimg.
ENDIF.
Thanks
Edited by: Aarav Agnihotri on Jun 11, 2009 6:58 PMHi Aarav,
Check this links
[Rounding|Rounding]
[Rounding off value|Re: Rounding off value]
Read Above for a clear idea about Rounding values.
[Rounding of the Values|Rounding of the Values]
[Quantity & Rounding condition values|Re: Quantity & Rounding condition values]
[Rounding down values|Re: Rounding down values]
For More results Search In SDN...
Thanks & regards,
Dileep .C -
Hi,
I need an approval whenever the unit price changes in sales order document... is that possible,,
regards,
VigneshHi Vignesh,
Approvals in B1 does not work on line level... Only on header level...
regards -
4th Gen Extreme vs. New Express for the same price?
Hi all -- looking for some expert advice. From a friend I can get an as-new 4th Gen (A1354) Airport Extreme base station for the same price as one of the new Airport Expresses. Any reason I should choose the new Express over the 4th Gen Extreme, aside from its smaller form factor?
Think as it this way, i just got my AirPort Extreme 5th Generation (yesterday free shipping and did it on Sunday noon) getting rid of our Linksys 310N which had 4ports running 100MPBS wireless 144MBPS on my laptop.
we have a xbox 360 (2006), DirectTV HD Demand, and my dads pc, thats 3 ports and thats all we need. my lptp with this new Extreme gave me a wireless speed of 300MBPS
and boosted our intenet 10x..speed roaming around 10-15mbps, now getting 21MBPS with the Extreme.
magining the same with Express. but to remind you, Express has 1 port, Extreme has 3 ports
plus what bob said above
i have a question but click here if ya want
AirPort Extreme 5G and a DD-WRT Router ----Safe? -
Query for Difference in LPP of SO and Unit Price of PO
Dear Experts,
I have the following query which gives me the link between SO and PO.
I have the Last purchase price from SO also. Below is the query
SELECT T0.[DocEntry],T0.[DocNum] as 'SONumber',T1.[GrossBuyPr] as 'Last Purchase Price',T1.[PoTrgNum] as 'PO Number',
T2.[firstName] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OHEM T2 ON T0.OwnerCode =
T2.empID WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]
What I want is the Unit price of the PO to appear and also difference in value of LPP of SO and Unit Price of PO should come in separate column.
Is it possible to get Please let me know about it
Thanks&Regards
Darshan DesaiHi,
Try this:
SELECT T0.[DocEntry], T0.[DocNum], T1.[GrossBuyPr], T2.[DocNum], T3.[Price],T1.[GrossBuyPr] - T3.[Price] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry left join OPOR T2 on T2.[DocNum] = T1.[PoTrgNum] INNER JOIN POR1 T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[ItemCode] = T3.[ItemCode] and T0.[DocDate] between [%0] and [%1]
Thanks & Regards,
Nagarajan -
Approval template for line item price variation
Any recommendation on how to managed price variations at a line item level with using approval templates? The approval templates currently only allow for TOTAL document differences.
A senario as follows
1. Purchase order with line item price created
2. GRNI created (and unit price changed)
3. AP invoice created - AP approval template kicks in advising that there is a price discrepancy at a line item level between the Base and target documents.Hi!
You can achive this via Stored Procedure.
Approval Procedure will not work for Row Level. -
Wrong unit price for sourced item in iProcurement.
Hi all,
We have a BPA for a category, which has been revised and approved. Now when the user is going for shopping and searching the Item Description it is showing the correct/revised unit price for the item. But when the item is added to the cart and cart is viewed the Unit Price showing is different from the first search.
Please guys help me out on this. Also if any one can guide me to the procedure/OAF VO query which fetches the details at the shopping cart level then also it will be helpful.
Awaiting is your response.
Regards
Prakash KumarHi Guys,
One of the reason I found out from metalink(136674.1) is the 3 listed profile options for iProc should have 3 distinct line types. I am testing it now. Once done will update the results here.
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=136674.1
Thanks & Regards
Prakash Kumar
Edited by: prakashjnvb on Jul 25, 2011 2:30 PM
Maybe you are looking for
-
BRF+ in NW 701: Adding an expression in a ruleset-specific rule
Hi, I'm running BRFPlus in NW 701 (FDT_WORKBENCH) and I'm aware that, this version has several limitations For example, in a ruleset-specific rule, I'm not able to add a ruleset variable nor to add a new expression operation as rule operation. Is the
-
I have hit some real frustrations in working with Premiere to meet broadcast Rec709 standards for DVD & Blu-Ray. Avid Symphony works in a Rec709 space and clearly operates with its video signal from 16-235 (which matches IRE 7.5 to 100), but Premiere
-
/sbin/init does not exist
I followed steps on arch frontpage (I guess), but now my system can't boot. So i booted to newest arch cd and wanted to chroot to this installation and I can't. # arch-chroot /mnt chroot: failed to run command /bin/sh: No such file or directory Yea,
-
How to get the system info in a network
Hi to all. can any one tell me how to get the system related,like system name and logged user ,info in a network using java... thnx in advance, ashok
-
I need HELP! I have been receiving absolutly no help from my local SPRINT representatives and I am about ready to throw my blackberry out the window! I received a replacement phone for my blackberry that has a missing part and I was able to sycronize