Restrict Adding Goos Issue
Hi Experts,
I would like to restrict the user to add Goods Issue if the quantity is higher than the instock as per selected warehouse in goods issue. below is the query i created that only compare with the instock (overall).. i need to restrict per selected warehouse...
==========================================================================================
IF @transaction_type IN ('A', 'U') AND @Object_type = '60'
BEGIN
IF EXISTS
(SELECT 1
FROM IGE1 t0 INNER JOIN OITM t1 on t1.ItemCode=t0.ItemCode
Where (t1.OnHand+t0.Quantity)<t0.Quantity AND t0.Docentry = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'Please check the On-Hand Stock of this Item! by: IT Dept.'
END
END
==========================================================================================
Thanks for the support...
Richard
Hi,
Try this
IF @transaction_type IN ('A') AND @Object_type = '60'
BEGIN
IF EXISTS
(SELECT 1
FROM IGE1 t0 INNER JOIN OITW t1 on t1.ItemCode=t0.ItemCode AND t1.WhsCode = t0.WhsCode
Where t1.OnHand < t0.Quantity AND t0.Docentry = @list_of_cols_val_tab_del and to.basetype != '202')
BEGIN
SELECT @Error = 60, @error_message = 'Please check the On-Hand Stock of this Item! by: IT Dept.'
END
END
Regards,
Bala
Similar Messages
-
How to Restrict adding AR-Delivery connecting to Sales Order
Good Day Experts,
I am newbie in SAP Business One, Please me help on this scenario:
I have created an Series Numbering in Sales Order (SO-BOM) No.17 and a User Define Field (ORDR_DwnPayment) with option w/DP and w/out DP (DP means DownPayment).
Now i need to restrict adding AR-Delivery that is copied from Sales Order with Series#17 (SO-BOM) if the UDF is "w/out DP".
I hope you can understand my english.
Thank You.
RichardHi Richard........
Welcome to SAP Business One Forum.......
@your Query......
Please try....
If @object_type='15' and @transaction_type IN ('A','U')
BEGIN
If Exists (Select T0.DocNum from ODLN T0
Where T0.U_ORDR_DwnPayment = 'w/out DP'
And T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
Select @error = -1,
@error_message = 'You can not add Delivery with 'w/out DP' '
End
End
Above is the Validation which you need to run in PostTransnotification......
This will restrict users to add the delievry if UDF value is equal to 'w/out DP'
Regards,
Rahul
Edited by: RAHUL MOUNDEKAR on Mar 28, 2011 12:21 PM -
Is there any way to restrict adding himself as a approver in scenarios?
Is there any way to restrict adding himself as a approver in scenarios?
No. Few users use scenario with self approval to load some basic data.
-
Authorization restriction for Goods issue against an Order
Hello All,
We have a situation wherein the user is able to issue goods using tcode MIGO by choosing Goods issue --> Others and mentioning an order number that belongs to another plant in the account assignment tab and issues a material which belongs another plant.
For eg we have material A that has been created for plant 1. The user issues the material (movement type 261)and the account is assigned to an order which has been created for plant 2.
I could not find any authorization object that restricts this.
I checked the objects M_MSEG_BWA and M_MSEG_WWA and he has authorizations only for plant 1 and all movement types.
Any pointers to restrict this access will be appreciated.
Thanks & Regards,
Subramaniam IyerHi,
MIGO transaction by default restricted with Plant. If you say that the user A is having access to only Plant 1 & 3, but not for 2, please check the below authorization objects does not have any manual objects inserted into the Role and restricted with the value only in organization field.
M_MSEG_LGO
M_MSEG_WMB
M_MSEG_WWA
M_MSEG_WWE
This issue may occur because if the objects are maintained manually in the role. If so, when you check in the organization field, it may not be showing the value which are manually added into the manual object.
Also, please check the other roles are assigned to the user. If any of the other roles assigned to the user having any of the above objects with * value, this may provide the user to do the Goods movement for any plant.
To check the issue, please go to SUIM and check the user under "Roles by Complex Selection Criteria" and make sure that you are checking the objects for the particular user. This should be able to identify whether the user is getting access from any other roles assigned to the user.
Regards
Anandm -
Authorization restriction for Goods issue . others radio button in migo tcode
Hello All,
We have a situation wherein the user is able to issue goods using tcode MIGO by choosing Goods issue --> Others and the movement type 201
the above mentioning details i need to block the others tab only for specific user ids i have checked the MIGO objects But its not worked
please give me solution for block the others button on the drop down box
please find the attachment of screen shot its helpful to sort out the issue
Best Regards
sureshDear Anandan,
Please use trace t.code ST01 to fix the issue.
You can restrict the movement type using the authorization object M_MSEG_BWA.
If you can provide the step by step screens where you want to exactly restrict we can fix it.
Regards,
Venkatesh -
How to restrict adding Item Sales Order without itemcost
Hi Experts,
Can i restrict sap user on adding "Sales Order" (Items) if they are adding items without itemcost on item master?Insert this in your SBO_SP_TransactionNotification stored procedure after the line
-- ADD YOUR CODE HERE
IF @transaction_type IN (N'A', N'U') AND @object_type = '17'
BEGIN
If exists
(Select 1
From RDR1 O INNER JOIN OITM I ON O.ItemCode = I.ItemCode
Where I.AvgPrice = 0
and O.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 1
SET @error_message = N'Item without cost ! '
end
END
This code is applicable if you do not set the Manage Item Cost per Warehouse. If you set it, use the modified code of Rahul.
Edited by: István K#rös on Oct 12, 2010 1:59 PM -
Restrict Adding Sales Order with ProjectCode
Hi Experts,
i try restrict Sales ORder from Adding without ProjectCode (from itemlevel - RDR1.Project). Below is my script on TransactionNotification, but still it doesnt work..please help my with my script...
IF @transaction_type IN ('A', 'U') AND @object_type = '17'
BEGIN
IF EXISTS (SELECT t0.DocNum FROM ORDR t0 inner join RDR1 t1 on t0.docentry
= t1.docentry WHERE t1.Project ='' AND t0.Docentry = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'Please enter the field "Project Code" first ! by: IT Dept.'
END
END
Thanks,
jonathanTry with this modification:
IF @transaction_type IN ('A', 'U') AND @object_type = '17'
BEGIN
IF EXISTS (SELECT t0.DocNum FROM ORDR t0 inner join RDR1 t1 on t0.docentry
= t1.docentry WHERE isnull( t1.Project,'') ='' AND t0.Docentry = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'Please enter the field "Project Code" first ! by: IT Dept.'
END
END -
Error while adding the issue for production (item cost not found)
Hi all,
The scenario is,
when the user is trying to add the issue for production system is showing error item cost not
found.The item which is issued is Inventory + purchase item with manual issue method.The valuation
method for that item is FIFO.since the valuation method is FIFO,error related to item cost should
not occur.
Since the valuation method is FIFO.Item cost error should not occur.
The error related to item cost must not occur at the time of issue for production.
Regards-
Mona.Hi!
Please check these threads
Sales Delivery Document
Item Cost Error
No item cost was found -
Goos issue through MIGO based on work order problems
Hi All,
Can any one guide me how to overcome the error"Purchasinh Info record not found in purchasing organisation 2434" while doing Goods(consignment materials) Issue through MIGO transaction based on work order. How to create the Purchase Info record??
Any pointer from any side will be highly appreciable...thanks in Advance
Regards
AzizurDear Azis,
Double Click on the serial no of the Component you will get the inforecord fieldin the Purchasing tab. But this is only for Stock Materials.
Please recheck again your components.
Regards,
Shareeq
Edited by: K M AHAMED SHAREEQ HUSSAIN on Oct 13, 2009 2:42 PM -
In previous period posting system is allowing less qty for goos issue
Dear All,
I am doing goods issue in previous period.Though in material master previous period system is showing 0.125 MT of material ,in MB5B same quantity of material in previous period is available also I checked in MB51 for all material document and transactions ,still system is allowing me to issue only 0.046 MT not
0.125MT. What may be the reason--but it is allowing 0.125 MT for current period.
Thanking you in advance
Mrinmoy ChakrabortyHi,
Please check your stock detail for your material with MB5B in back date.
And check in back date the stock is available for your requirement.
Regards,
Mahesh Wagh -
Very Urgent: Deleting Batch from STO and Goos Issue reversal Using BAPI
Hi,
I want to delete outbound delivery for particular shipment number and this should be done using BAPI or a FM not using the tcode VL02N.
I wld be very grateful
Please List out the BAPI 's or FM that can be used for to perform these listed , with using Tcodes:
1) REVERSE BILLING DOCUMENT(VF11)
2) GOODS ISSUe REVERSAL (VL09N)
3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
4) DELETING DELIVERY(VL02N)
5) REMOVE BATCH FROM STO (ME22N)
Its very urgent..
Thank you in advance....1) REVERSE BILLING DOCUMENT(VF11)
BAPI_BILLINGDOC_CANCEL
2) GOODS ISSUe REVERSAL (VL09N)
BAPI_GOODSMVT_CANCEL
3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
BAPI_SHIPMENT_CHANGE
4) DELETING DELIVERY(VL02N)
5) REMOVE BATCH FROM STO (ME22N)
BAPI_PO_CHANGE -
Error M7044 posting goos issue (VL02N) - valuation type
Hello!
We have a delivery (for a consignment fill-up) which we want to post goods issue.
But when i try to post goods issue i get the error "choose a valuation type" - M0744
But the item line has a valuation type "EIGEN"
Checking the material data - Accounting 1 for valuation type "EIGEN" all seems OK too...
I don't know what i shall do, to solve the problem.
Thanks in advance
MarkusHello Jürgen,
i checked and i have batch number and valuation type for material 215778 / batch 0. -
Cost Center restriction while goods issue
Hello Gurus,
While posting the goods issue, we need to enter the cost center in the account assignment tab.
for that Cost Center, user should be enter his cost center which is allocated to him. system should give error if he enter worng cost center.
How can i achieve this requirement?
Thanks in advance,
Laxmi.Hi,
It is not really as easy as it sounds, especially if you want to have the default depend on the movement type etc.
If the user always uses the same cost centre then try the parameter ID in the user master (doesn't always work). I have just tried this and the program doesn't appear to use the KOS parameter so this does not help.
If the default cost centre is the same for everyone for the GL account then within FICO there is a transaction to have a default cost centre for each GL / Element.
Steve B
Message was edited by:
Stephen Birchall -
Adding analytics issue with OrgModeler
Hello Experts,
Could you please help with OrgModeler issue. When creating scenario I try to add analytics but it doesn’t appear in the list of analytics so when clicking “next” it says: Error: To set KPIs/Structure requires at least one analytic (screenshots are below the message). I did initial load, extraction and so on. Connection strings to SAP and DB are alright. What can it be? It's OrgModeler Version 4.0 SP1 Build 0910042200. DB is Oracle. CDS enclosed. Thank you in advance.I can't see anything obviously wrong.
At best the error message is mis-leading as you are clearly trying to add an analytic!
I would be tempted to raise an OSS message assuming you haven't done any customising.
For information 4.1 SP1 was recently released but I haven't deployed OrgModeler on any 4.x version so can't comment on whether this is a known issue or not.
Stephen -
Adding time issue using Date's getTime method
The following code is incorrectly adding 5 hours to the resultant time.
I need to be able to add dates, and this just isn't working right.
Is this a bug or am I missing something?
long msecSum = 0 ;
DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS") ;
try
Date date1 = dateFormat.parse("01:02:05.101") ;
Date date2 = dateFormat.parse("02:03:10.102") ;
System.out.println("Date1: " + dateFormat.format(date1));
System.out.println("Date2: " + dateFormat.format(date2));
msecSum = date1.getTime() + date2.getTime() ; // adds 5 hours !!!
System.out.println("Sum: " + dateFormat.format(msecSum)) ;
catch (Exception e)
System.out.println("Unable to process time values");
Results:
Date1: 01:02:05.101
Date2: 02:03:10.102
Sum: 08:05:15.203 // should be 3 hours, not 8Dates shouldn't be added, but if you promise not to tell anyone:
long msecSum = 0 ;
DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS") ;
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
try
Date date1 = dateFormat.parse("01:02:05.101") ;
Date date2 = dateFormat.parse("02:03:10.102") ;
System.out.println("Date1: " + dateFormat.format(date1));
System.out.println("Date2: " + dateFormat.format(date2));
msecSum = date1.getTime() + date2.getTime() ; // adds 5 hours !!!
System.out.println("Sum: " + dateFormat.format(msecSum)) ;
catch (Exception e)
System.out.println("Unable to process time values");Me? I would just parse the String "01:02:05.101" to extract hours,
minutes, seconds and milliseconds and do the math.
Maybe you are looking for
-
Problem in the isNumeric rule in AlphaNumericRules Library
The rule isNumeric present in AlphaNumericLibrary is an out of box rule. I have found that this rule returns '0' for all types of inputs (numeric/alphanumeric/alphabetic). On further investigation I found that the "append" does not work and is just r
-
Publishing BW 3.5 to EP 7.0 (2004s) as iView
Hello all, We are looking into integrating BW 3.5 into our Enterprise Portal as iViews (no Information Broadcasting). I have the following questions: 1) Do we need to perform the same integration steps (portal and BW certificate exchanges? SSO? etc.)
-
I ensured that no tasks are running, then click Desktop icon for Firefox with no result. I go into programs and tell the program to "run" with no result. I then launch Explorer to get to Firefox, hit download, go through the process. When I hit finis
-
SAP MDM 5.5 Print Publishing link
Hi, I need SAP MDM 5.5 Print Publishing link and GDS Link. Regards Kaushik Banerjee
-
Modification in default profile
Hi! I have a simple question regardung Start/Stop-approach by SAP system. I would like to integrate Online Help in SAP System and have change 2 parameters in DEFAULT-Profile (eu/iwb/installed/languages=DE and eu/iwb/help_type = 5). I have restarted m