Restricting modifying the Sales Order
Hi Expert,
Hope you can help on this...
I have to restrict specific user to modify the Sales Order where Series='SO-BOM', they can only modify this Sales Order with authorization from manager or from specific user....
Can i do this on TransactionNotification from StoredProcedure?
Thanks,
Richard
Hi Chard
You can insert this piece of script in Gordon's query by little bit change :
T0.DocEntry = T2.DocEntry inner join OUSR T1 on T0.UserSign = T1.USERID
where T0.DocEntry = @list_of_cols_val_tab_del and T1.USER_CODE != N'manager')
Giridharan V
Similar Messages
-
Maximum Quantity restriction in the sales order?
Hi All
We need to make restriction of maximum order QTY with UOM in sales order key combination of sales organization wise / site wise / distribution Channel wise
While qty is entered for an article in sales order for which maximum sales order qty is maintained in some field (Article master or any other possible field)-, system has to check if the ordered quantity is greater than maximum sales order qty then should display error message and will not allow to process further
Hope the same is clear.
Regards,
C S Javalihi
there is no standard functionality available to set the maximum limit for a material in the sales order.
You can try using user exit userexit_save_document_prepare in include MV45AFZZ.
You may need to use Z-table to enter the maximum value for sales organization / site / distribution Channel / material -
How to modify the Sales Order Header Text
Hi Experts,
I have bulk of sales orders, for each sales order i have to modify the Header Text,( text id : 0005, text object = VBBK,)
for this, is there any standard BAPI or Function Module is available. If so could you let me know what are the input parameteres i have to pass.
Regards,
Nag..hello,
there is BAPI "BAPI_SALESORDER_CHANGE"
there is a ORDER_TEXT in a table parameters in the BAPI.
pass all the relevant inputs & use commit bapi
Thanks,
Manjunath MS -
Modifying the sales order status
Hi,
We would like to check the Customer master is in Restricted Party List or not, So after creation of order we would like to Hold the order until the check. So How to Control this? How to modify the order status?Hi
Please check this for [Work Flow|PR Release Strategy + with Workflow;
Thanks
BVDV -
Userexit to Restrict the VIEW and MODIFY of the Sales Order
Hello Everybody,
I need to do the following task.
I want to restrict to VIEW and MODIFY the sales order for particular sales office or sales group.
I need user exit for that.
Please help me by providing brief information.
Thanks
M RahmanHi Rahman
Instead of changing the DISPLAY and CHANGE status of Sales Order,
i think it would be better if u make a check at the time of SAVE.
When the SO is being saved in VA02,check the sales office or sales group
and then give a error message to the user, saying that he is not authorised to make changes to the
SO for this particular sales office or sales group.
For this you can use the inckude MV45AFZZ,and USER EXIT userexit_save_document.
Sample Code:
IF SALES_OFFICE EQ 'XYZ'.
MESSAGE 'Change not possible for this Sales Office' type 'E'.
ENDIF.
Regards
Hareesh Menon -
Modifying Sales order in ECC does not modify the planned order in APO?
Hello,
I have the next situation, a MTO scenario, LPP material,:
- users create a sales order, quantity 2000M, 2 individual lenghts by 1000M. In automatically, being a MTO scenario, APO generates a planned order to fulfill the requirement with 2000 M qty, individual lenght 1000.
- users modify the sales order, the quantity 2000 M remains, but will change it in 1 individual lenght by 2000M. APO cancels the precendently created planned order and generates another one, with individual lenght 2000.This is OK.
-users modify the sales order, the quantity remains 2000 M, but again 2 individual lenghts by 1000 M. In this case, the planned order is not cancelled, as expected, but remains with individual lenght 2000, which is not ok.
Any idea how to fix this?
Regards,
AlexHello again,
while creating/changing sales order in crm,
the user exit mv45 is called in R3.
Problem solved.
Thanks
Gerd -
Problem binding a matrix in the Sales Order Form
Hi everybody!
I am working in an Add-On. What I do is modify the sales order form in runtime. I catch the event when the form is loading and then I add a new folder with some fields and a matrix.
I've got a matrix in this form with the employees that participate in an order and when I go through all the orders by using the next and previous record buttons I have to rebind it to show the participants in a specific order. The code for the event is the following:
If (pVal.ItemUID = "57") And pVal.Before_Action = False And pVal.EventType = et_ITEM_PRESSED Then
BindParticipantGrid
BubbleEvent = False
End If
After bind the grid, BO shows a System message indicating that the form has been changed and asking me if I want to save the changes to the order. Looks like, whenever the bind function finds rows to add to the matrix it changes the mode of the form by adding rows to the matrix. How can I prevent that when I'm in view mode?
This is the code for the binding function
Sub BindParticipantGrid()
Dim myForm As SAPbouiCOM.Form
Dim oMatrix As SAPbouiCOM.Matrix
Dim rs As sapbobsCOM.Recordset
Dim strSQL, OrdreNr As String
Dim oText As SAPbouiCOM.EditText
Set myForm = SBOApplication.Forms.GetFormByTypeAndCount(139, 1)
Set oText = myForm.Items("8").Specific
If oText.Value <> "" Then
OrdreNr = oText.Value
Else
OrdreNr = "0"
End If
Set oMatrix = myForm.Items("matrix").Specific
oMatrix.Clear
Set rs = myCompany.GetBusinessObject(sapbobsCOM.BoObjectTypes.BoRecordset)
strSQL = "SELECT [@HL_PART].Code as Code, [@HL_PART].U_DocNum as DocNum, [@HL_PART].U_EmpId as EmpId, [@HL_PART].U_EmpName as EmpName, [@HL_PART].U_Message as Message, [@HL_PART].U_MessRead as MessRead, [@HL_PART].U_MainPart as MainPart, [@HL_PART].U_StartDt as StartDt, [@HL_PART].U_StartHr as StartHr, [@HL_PART].U_FinishDt as FinishDt, [@HL_PART].U_FinishHr as FinishHr, [@HL_PART].U_Finished as Finished FROM [@HL_PART] WHERE [@HL_PART].U_DocNum = " & OrdreNr
rs.DoQuery strSQL
While Not rs.EOF
myForm.DataSources.UserDataSources.Item("EmpId").Value = rs.fields("EmpId").Value
myForm.DataSources.UserDataSources.Item("EmpName").Value = rs.fields("EmpName").Value
myForm.DataSources.UserDataSources.Item("Message").Value = rs.fields("Message").Value
myForm.DataSources.UserDataSources.Item("MessRead").Value = rs.fields("MessRead").Value
myForm.DataSources.UserDataSources.Item("MainPart").Value = rs.fields("MainPart").Value
myForm.DataSources.UserDataSources.Item("StartDt").Value = rs.fields("StartDt").Value
myForm.DataSources.UserDataSources.Item("StartHr").Value = rs.fields("StartHr").Value
myForm.DataSources.UserDataSources.Item("FinishDt").Value = rs.fields("FinishDt").Value
myForm.DataSources.UserDataSources.Item("FinishHr").Value = rs.fields("FinishHr").Value
myForm.DataSources.UserDataSources.Item("Finished").Value = rs.fields("Finished").Value
oMatrix.AddRow
rs.MoveNext
Wend
oMatrix.SelectionMode = ms_Auto
End Sub
I will apreciate all king of help
Thanks in advance.You have a property of the form which allows you to change the mode
myForm.Mode = fm_ADD_MODE
myForm.Mode = fm_EDIT_MODE
myForm.Mode = fm_VIEWMODE_MODE
You may change it after you modify you matrix data to fm_VIEWMODE_MODE and I guess you won't have the system question again.
Sebastien -
Error in Modify a sales order, when we add the item in the sales order.
Each time when we try to modify a sales order, adding a new item.We get a dump and the changes are not saved in the Data base. Could you help on this??
Hi,
you need to work with
modify xvbap from xvbap_wa.
in report MV45AFZZ
If you modify VBAP itselve you can problems with db, cause entries with vbeln = blank can be created.
Regards
Nicole -
Free Good Qty as non modifiable field in the Sales Order Level
Dear Friends,
I have successfully done the config change for the Free Goods, But now i want make the free good line item qty as a non modifiable field in the Sales Order Level.
How can i do this.. Please advice.
Thank U,
UwanthiHi
This is a standard behaviour in the system
kindly use the below program and user exitexit
MV45AFZZ and use "Userexit_filed_modification"
Regfards
Damu -
I wish to modify the name of one of the field name in the sales order.
HELLO GURRRUS,
i wish to modify teh name of one of the field name in the sales ordder.
what is the procdure,path and steps involved in that.it would be of great help of me if u take some time and suggest me.
bye take care hav a happy and peaceful lifeHi Sameer,
If you want to change the name or description of the field in the Sales order,
you have to use the userexit MV45AFZZ and use the Form USEREXIT_FIELD_MODIFICATION.
Get the help of the ABAPer and decide where do you want to make the change in the Header or the Line items. Accordingly give the requirements to the ABAPer.
He will do it.
Thanks
Augustine Ponraj -
Restrict the customers in the sales order screen
Hi All,
I have requirement,in the sales order screen based on the order types we have to restrict the customer in the customer LOV of sales order scree.
Could you please in the form personalization,how we will achieve it.
Regards
B.kishanHi,
checkout following metalink note:
How to Use Forms Personalization to Restrict Values in Customer Number LOV in Sales Order Form OEXOEORD [ID 862066.1]
Hope that helps. Kind regards,
David. -
Restricting a user(based on Responsibility) from updating the sales order
Hi,
We have a requirement here, that for a prticular responsibility the user shouldn't be able to update anything in the sales order. He can although perform below operations -
1. Query the order to view the details.
2. Release the OM holds, if any.
Other than these two things.. He shouldn't be able to make/save any changes to the order. We are using R12.
Now, what we tried is -
1. Created a forms personalization, that would check
if fnd_global.resp_id = <desired resp_id>
then raise form trigger failure in when-validate-record.
this is restricting the user to make any change in order. But, issue is he can still book an entered order.
So, requirement drills down to -
1. How to restrict the user from booking an entered order.
2. How to restrict the user to perform any other thing than releasing the hold (from actions).
Any help regarding this will be highly appreciated. Also, please let me know, if it is possible using Processing constraints or any other standard means.
Regards
Bhushani think you are putting this filter on employee table.If you want to apply adat level security then put these filters on groups.create one group and assign al user on which you want to apply data level security.on this group put this filter
upper("Employee"."DEPARTMENT") = upper(VALUEOF(NQ_SESSION."DEPARTMENT")).
And create another group and assign Jeff to that group and dont apply any filter on this group.You can apply these filters on individual users also but its a good parctise to make use of groups.
Regards,
Sandeep -
Restrict the Sales Order Quantity in Integer
Hi All,
our system need to restrict the Sales Order Quantity in having no decimal value.
We have got the OSS reply as:
"Unfortunately I regret to tell you that it is not possible to
restrict the order quantity number to integer in standard system.
The number of allowed decimals is defined in the system via SE12.
In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
Regards,
SimonHello All,
Thanks for the excellent answere.
Please anybody can provide us the SAP OSS Note for the same as the reply received from SAP Support.
We have got the OSS reply as:
"Unfortunately I regret to tell you that it is not possible to
restrict the order quantity number to integer in standard system.
The number of allowed decimals is defined in the system via SE12.
In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
Regards,
Farhan -
How to find the Sales Order Overall Status (VBUK-GBSTK) modified Date?
Hi Experts,
A Sales Order could get automatically closed at the point of Packing or Invoicing, At this point the field GBSTK in table VBUK turns to status 'C' means Closed. This could also happen when Sales Order Line Items Rejection Reason is filled.
I want to find the Date when GBSTK got modified in this way I would know the exact Date of the Sales Order Close. At the moment this is not shown in Sales Order (VA02, VA03) or in the table VBUK. I have searched everywhere to locate the Date. I need you help.
Thanks,
SriAlthough VBUK is mentioned (Tx SCDO, Tab TCDOB) for the ChangeLog Object VERKBELEG, you won't find anything in CDHDR due to the fact that Data element GBSTA's Log-Frag (DD04D-LOGFLAG) is not switched on.
For Workaround you might try Audit Trail
Audit Trail (electronic records) / Tx AUT10, AUT01, XX-PROJ-ELR, OSS 564743,517613,564645
OSS 1058984 - FAQ: Audit Trail (Transaktionen AUT01-AUT10)
http://help.sap.com/erp2005_ehp_03/helpdata/DE/fc/89683c1b5fb712e10000000a114084/frameset.htm
Cheers
carsten -
Pricing, Modifiers in Sales Order Form
Hi Gurus,
Please help me to resolve the issue with Pricing, Modifier to Sales Order:
I have created Master price List for Item A - $40
Modifer 1 - Dealer Discount Price is 20% (Created Modifier as Dealer Discount - 20%)
Modifer 2 - Order Header discount is 10% on total Order Value (Created Modifer with Discount : Level - Order; Modifer Type - Discount; Pricing Phase - Header Level Adjustments, Application Method - Percentage; Value - 10%
Assgined to respective Qualifers (Customers), set as Automatic
Ran Build Attribute mapping values concurrent program in Pricing Module. Status : sucess
After doing All above steps created Sales order for respective Customer, system is applying Modifer 1 Automatically but MODIFIER 2 not able to apply at order header leverl, Not able to see this Modifier list under SO form
Action->View Adjustment.
Can you please check and let me know the problem to achieve this issue.
Highly appreciate your response.
Regards
AKCheck below options in sequence
1) Is your order qualifies for both the modifiers ?
2) If you need to apply both modifiers put them in different incompatibility level.
Maybe you are looking for
-
I had been having the same problem as some of the other posters--Safari was excruciatingly slow, spinning beach ball, and so forth, rendering my computer almost unusable. I repaired permissions, changed the DNS settings as recommended in other posts,
-
How to set up automatic shutdown in 10.2.8 Server
Under OS 9 it was an easy matter to set up an automatic startup and shutdown but I have failed to find a way to do the same thing under OS X 10.2.8 Server. I looked in the Energy Saver but it was only interested in putting it to sleep. Any help appre
-
How to connect database using JDBc?
Hi All, I developed one Microsoft Access Database named "Test.mdb" in my "C" drive, i used Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:C:\Test"; Connection con=DriverManager.getConnection(url); While executing the above cod
-
Work flow book Information please
Please tell me the good book to learn SAP work flow basics thank u in advance
-
Having problem with Sync iphoto library to iphone 4 in iTunes 10.4
i did a clean install of Lion, i copied my itunes media and pasted in new destination to have same everything, today after 4 days i was trying to sync my iphone 4, i always keep my photos organized in iphoto, so i sync my iphoto via itunes to my ipho