Purchase Order Document limit to user
Hi All,
My requirement is to limit a user such that user should not raise any purchase orders whose document total exceeding Rs. 5000.
I need a functionality without using Approval procedures.
Thankyou.
To prevent entering PO for more the 5000 for specific users (in the code with id=2,3) you can use this code in SBO_SP_TransactionNotification stored procedure:
IF @transaction_type IN ('A','U') AND @object_type = '22'
BEGIN
if exists (Select DocTotal from [dbo].[OPOR] T0 where T0.DocTotal > 5000
AND T0.Usersign in (2,3)
AND T0.DocEntry=@list_of_cols_val_tab_del)
begin
SELECT @error = 1, @error_message = 'You should not make more then 5000 !'
end
END
Similar Messages
-
Purchase Order Document Type and Account Assignment
Hi ,
We have a requirement to control Account Assignment in Purchase Order Item line based on the Document type selected on the Purchase Order header.
Like if user selects Purchase Order document type "ZNB" (Customized created) , then he will only able to select "K" or Blank or "P" as account assignment and similary we want to limit other Account assignments based on the Purchase Document type.
How can we make this Control settings?
Regards
ShreyHi,
You can't really limit the account assignment categories per document type, at least not directly.
You can limit the item categories that can be used for a document type via configuration:
Materials Management > Purchasing > Purchase Order > Define Document Types
Within this transaction you can define which item categories are valid for a specific document type.
You can then define which account assignment categories are valid for each item category
Materials Management > Purchasing > Account Assignment > Define Combination of Item Categories/Account Assignment Categories
BUT
limiting the account assignment categories that are valid for an item category will affect ALL purchase order document types that this item category is valid for. And you can't create your own item categories as this is a SAP standard table that can NOT be altered.
Regards,
Monika -
Authorization based on plant and Purchase order document type
Hi
My client has a requirement wherein a user will have authorization for transactions only in his plant. But only for Purchase order document type UB (Stock Transport Order) the user should be allowed to create for all plants.
In short, if Purchase order document type is UB, should be allowed for all plants
if Purchase order document type is NB, should be allowed to only one particular plant.
My Basis person says that such a restriction is not possible.
Kindly suggest me on how to provide a solution to this.
Thank U.Hi,
This is possible.In this case you need to create two seperate roles.
1)Create purchase order for all plants (This can be used in long text)
2)Create purchase order for <plant no> plants.
For case 1:--
i)Populate field BSART of M_BEST_BSA with UB.
ii)Populate field WERKS of M_BEST_WRK with '*'. SAP reccomends to fill up organizational data through organizational level tab only.So while doing this step you need to put * from organizational level tab only.
For case 2:--
i)Populate field BSART of M_BEST_BSA with NB.
ii)Populate field WERKS of M_BEST_WRK with 'plant no'.
Dont worry about the objects i mentioned those are maintained through SU24 and will be automatically pulled once you insert ME21 transaction code.
Let me know if it helps.
Thanks,
Aveek -
Purchase order Document date in AP Downpayment invoice PLD
Dear All,
Is it possible to capture purchase order Document Date in AP Down payment invoice PLD.My client want like this.I have tried,but i am not able to capture this field in AP Down payment invoice PLD.please give me the solution for this,If it is possible.
Thanks,
Silpa.Nhi silpa,
Create a user defined field in row level of marketing documents.
Apply formatted search using query
Select $[OPOR.TaxDate]
select auto refresh
when changing field Document Date in header level.
On copying purchase order to ap downpayment invoice Document date will copy to it.
U can also bring it to PLD by creating database field with table DPO1,column U_XXX
Hope it will solve problem.
Jeyakanthan -
Purchase Order Document type FO?
Hi,
Why we need to use in Purchase Order Document type FO?
With Document type NB also we can make Services ,Right?
ThanksHi
FO - Frame work order Document type is a standard document type , which is used for Blanket Purchases, Purchase of services.
The FO document type has a Validity Start & End date feature whcih is not in the NB document type(You can get the same in NB also after cusotmization)
Services & limits are also presnet. The FO document type is limited to usage for Iterm categories
Standard
B Limit
D Service
All these can be made for NB also, but only after customizing.
Thanks & Regards
Kishore -
Restrict purchase order document type at plant level
Dear,
I would like to restrict the purchase order document type at plant level,
Plz help me.Hi Dear,
at the Plant level you have to use the below given Authorization Objects for the Users in different Plant
M_BEST_BSA Document Type in Purchase Order
M_BEST_WRK Plant in Purchase Order
Give the values of the respective Plant and Order Type for the Respective Users.
For more help you can contact your Security Team.
but before that please check out in the T-Code SU24, if both the Objects are active, if not then ask the ABAP person to activate them.
Hope it helps you.
regards,
yawar Khan -
Pulling all Purchase Order documents that where changed in last hour.
What is the best method for pulling all purchase order documents that have changed in the last hour? We want to create this program and schedule it as a job that runs every hour.
In the backend our server stores all documents in GMT Time while our users have several time zones. What function or module should we call to get the current time.
Should we be using: sy-uzeit - 3600.
Or will this not produce the required results.
RegardsTry prog :<b>RM07MIGO_PO_HISTORY</b>
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
PS.
<b>Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!</b> -
Purchase order document row is not change (document stutas is OPEN)
Hi all,
I am created one purchase order that are not any base or targeted document ,not any approval procedure and purchase order document status is steel open . Then how I a cannot change the document row.
thanks
arabinda palHi Deepa,
I think if you want to restrict the further editing of a particular row, then you just need to follow the simple procedure.
1. create the purchase order with your desired items & vendor & add this document
2. Now reopen it & goto that row which you want to restrict. Right click on that row & select "Close Row".
3. Select yes to confirmation message.
4.Now update the document.
Now you an check it out, in that document you will not be able to edit that row contents.
I hope this solves your issue.
Regards.
ShriX. -
WBS Element and Service No Link Table for Purchase Order document
Hi Experts,
We are Facing 1 Problem for finding link between
WBS Element and Service No for corresponding Purchase Order document . Please Suggest me to find Related tables for Project system Module .
Thanks and Regards
BalaNarasimman.MHi,
The link will be in MM table, not PS table. Try EKKN.
Regards -
Standard Purchase Order document printing
Hi All,
I need to modify the standard purchase order document and need to print a custom note in that based on the organization criteria.
i have downloaded the .xsl file and as i am not very familiar with that i cant understand the code.
1)could you please let me know, where to open that xsl file either in jdeveloper or some thing like notepad, textpad etc..
2)If possible please share the tags to print the custom message based on organization criteria
3) where to find the xml tags related to that to modify the xsl
Please help!!
Thanks!!We need to investigate this XSL tags and need to do R&D. I finally did it.
-
BAPI_GOODSMVT_CREATE giving error purchase order is locked by user
I am calling multiple times BAPI_GOODSMVT_CREATE for same Purchase order to post goods receipt.
first goods receipt created successfully but second one has given the error the Purchase order is lockecd by USER 'XXXX' .
i am calling 'BAPI_TRANSACTION_COMMIT after each BAPI BAPI_GOODSMVT_CREATE.
i tried with passing parameter WAIT = 'X' in 'BAPI_TRANSACTION_COMMIT. then also getting same error message.
please any one tell me the solutionHi
1. Check all the call is handled the release function(JCO.releaseClient(client)) for each call.
2. And check in finally
finally {
try {
if (client != null) {
JCO.removeClientPool(SID);
JCO.releaseClient(client);
if(client.isAlive()){
client.disconnect();
JCO.releaseClient(client); }
} catch (JCO.Exception ex) { }
Kind Regards
Mukesh -
How to split Frieght Amount in Purchase Order Document.
Dear Expert,
I want to print Frieght cost one by one in purchase order document.
For Example : list Frieght set up below
1. Packing & forward.--500 (Frieght cod is 5)
2. Transport -
300 (Frieght code 1)
Please help me how to Design in PLD (end report).
Thanks
Arunraj.Hi
Use POR2 Table in your PLD. Use this in repetative area field and hide the fields visible. use formula to display in other non-repetative field.
Regards,
Sudhir B. -
How to configure Item Category in Purchase Order document
Hi
Can someone tell me how to configure the Item Category in Purchase ORder document? This field is displayed next to Account Assignment in PO screen.
Thanks,
Lin-LinI think your issue is screen layout of the PO
please go to
SPRO-MM-Purchasing-Purchase order-Define Screen Layout at Document Level
here you can select the ME21N and double click on it
on field selection of basic data you can make item category is optional than it will be avialable
if still you find the problesm than check your field selection of your document type and change that field selection as above mentioned. -
Change Purchase Order : Document Date
Hi Gurus,
I would like to change Purchase Order: Document Date due to wrong input but I found out this field has been grayed out from change (ME22/ME22N) after save.
Can anyone tell me how to solve this problem?
Thanks & regards,
LoiDear Gurus,
Is there is any effect of changing the PO's Document date? What is the usage of PO's Document date, in which area?
If no effect, can I customize the PO: Document Date field through Application transaction variant function?
Pls adivse.
Thanks & regards,
Loi -
Tolerance Key LD: Blanket purchase order time limit exceeded
Hi All,
Can anybody tell me how the Invoice Block Tolerance Key <b>LD: Blanket purchase order time limit exceeded</b> works.
As per my understanding, we need to maintain no days in the Tolreance Key LD , so that it checks for the Contract Validity & the Invoice Date with the tolerance limit days & block the invoice if it exceeds.
But, it's asking for the value in the LD tolerance limit setting !!! Hope it should be no of days !!! Kindly let me know.
Also let me know if you can explain me the settings & steps to run this scenario.
Thanks!
NandaSteve,
Can you answer Nanda's question? I haven't really used this LD tolerance previously. I tried this on my sandbox system and can see the cause for his confusion although I am unable to explain it.
Thanks,
H Narayan
Maybe you are looking for
-
How do I use an external monitor with 21.5 inch iMac?
I have a brand new 21.5 inch iMac and am trying to hook it up with an older 20 inch Mac cinema via Thunderport. Do I need a special cable. I saw none at my local Apple store. or will it work at all?
-
My iPhone 5 won't turn on. Blinking apple logo.
My iPhone 5 won't open. When charging it using a wall charger, the Apple logo shows up every 4 seconds. But when charging it using a pc, nothing happens. I've already tried the solution pressing and holding the Home and Sleep/Wake button at the same
-
Hi, We have both the APS and OPM applications on the same instance. We have run data pull program. The required data such as organizations, items & formulas are coming into APS. But, item forecasts entered in Forecasting form of OPM Process Planning
-
Hi Guys I am looking at adding an image rollover to some links on my HTML email, i have read alot on using css but am sure its not supported unless it's inline. my coding knowlege limited so i may not be fully understanding the expliantions given. ba
-
Fast XML parser for java 1.1.8
Hello! I have to following problem. I am using at the moment kxml2 to parse XML data and it could be faster. The data is parsed in a application running on different digiboxes, which use java version 1.1.8(IIRC). Anybody here who knows of a smallish