Authorization check for posting a specified movement type on certain plant
<h5>Iu2019m posting goods movements using BAPI_GOODSMVT_CREATE, I have to check If the user has authorities for posting for a specified movement type on certain plant.
How do I implement it, do I need to create a authorization object with ACTVT, WERKS and BWART, what will be value of ACTVT in this case?
Or is there any other way through which the BAPI can automatically check for authorization.</h5>
Just to bring to your notice that authorization check is done by the BAPI. Please check the function module.
AUTHORITY-CHECK OBJECT 'M_MSEG_WMB'
ID 'ACTVT' FIELD '03'
ID 'WERKS' FIELD I_MSEG-WERKS.
AUTHORITY-CHECK OBJECT 'M_MSEG_BMB'
ID 'ACTVT' FIELD '03'
ID 'BWART' FIELD I_MSEG-BWART.
Regards,
Lalit MOhan Gupta
Similar Messages
-
No authorization for this transaction with movement type 601
Dear All,
This is chandra i am getting this error in delivery level " No authorization for this transaction with movement type 601. If give the authorization for SAP ALL its working fine. If give the authorization for SAP SD T.Codes i am getting this error. Plz help me.
Thanks and regards
ChandraDear Chandra,
Check with -
T. Code: OMJJ
Select Movement Type: 601 and Double-Click: "Allowed Transaction" (From Left-hand side) .
Check whether the Transaction is allowed for Movement Type 601 or not
Note: if Transaction is not listed (i.e. not allowed) and you wanna allow this Transaction with Movement type 601, then -
Up-there, Tab: New Entry. Click on it.
Maintain entry as:
MovTy: 601
TCode: As reqd.
and Save.
Best Regards,
Amit -
Posting of Goods Issue for a Delivery (Different movement types)
Hello SD Experts,
We have this process wherein we use Deliveries w/o reference. There's a customization in place for this process, the movement type is determined through the item category of the material.
Given this scenario, my question is if it is possible to process the goods issue of a delivery with multiple item which require different movement types (diffrent items and item categories thus it have different movement types)?
Thank you for your kind consideration.Hello,
Yes, you can.
As you know LO is std delv doc for delv w/o reference.
And I cat determination for that LO delv doc are
Delv Type __ I Cat Group __ Usage __ High I Cat __ Def I Cat __ Man I Cat __ Man I Cat
LO _____________________TEXT ______________ DLTX
LO ________DIEN____________________________ DLX _______DLX
LO ________LEER___________________________ DLN
LO ________LEER________________DLNG_______DLNZ
LO ________LEIS_____________________________DLX_______DLX
LO________ NLAG____________________________ DLX
LO________NORM____________________________DLN
LO________NORM________CHSP_______________DLN
LO________NORM________CHSP____KLN________KLN
LO________NORM________CHSP____TANN______TANN
LO________NORM________PACK_______________DLN________DLX________DLP
LO________VERP____________________________DLN
LO________VERP_________PACK_______________HUPM______DLN
LO ________VOLL____________________________ DLNG
LO ________ WERT____________________________ DLW
Corresponding maintain movement type in Schedule line cat (Tcode VOV6) & determination that in TCode VOV5.
If you want diff movement type then create your own 'Z' Sch line cat with you desired Movement type (Tcode VOV6) and determine the Sch line Cat accordingly in TCoDe VOV5.
Thanks & Regards
JP -
Posting with MM Movement Type 309 material to material: Error in WM
Hello,
i post an MM-Movement type (Bewegungsart) 309 (material to material).
The MM-goods movement works, but then in warehouse mangagement there is a problem:
The creation of the transfer order (Transportauftrag) stops in many cases.
The aim is to post Material A to the same storage bin in Warehouse Management where Material B was before.
I programmed this in user-exit (ZXLToU03) that by movement type 309, always taking same storage bin. But then I often get the error: transfer order could not be created. Then I have to do the creation of tranfer order in foreground and then I get an error like this:
capacity of the bin location is not enough.
The Problem is that I do a posting for example:
001 010101 to 922 Umbuchungzone --> Transfer order Pos 1
922 Umbuchungszone to 001 010101 --> Transfer order Pos 2.
And so the first transfer order position is not confirmed when I do the transfer order Pos 2.
How can I confirm Pos 1 by batch-input? The Programm to do 309 should posting 1000 materials in one step. But in Warehouse management I get those problems?
Is it possible to increase the capacitiy of the storage bin and then decrease it after creation of transfer order(where can I do this and when)???
I hope anybody can help me.
Thanks.Hello Kevin,
I donu2019t think it is necessary to use a user exit to keep the Material B (that is transferred from Material A) in the same bin.
This can be controlled in the customizing: indicator Post to same bin, that can be set in the WM Movement type (V_T333-KZUAP) and in the Storage type (V_T3010-KZUAP).
Now I donu2019t know your business process but I am surprised that Material B requires more space than Material A since it is u2018bornu2019 by means of a transfer posting and not a production or packing step that makes it bigger in terms of capacity required.
A workaround for this could be to transfer (LT10) Material A first to a separate Storage type (with the Post to same bin-flag set) that has no Capacity check and after the 309 posting transfer it back into the warehouse with LT10.
Success and thanks beforehand for any credits!
Kind regards,
Bart -
BORGR 649 error message while posting with 105 mov type
Hi Gurus,
I faced a problem when I try to post with 105 mov type, when material doc is related to Inbound delivery.
Explained better:
I did a purchase order with inbound delivery confirmation.
I carried out Good Receipt (related to Inb delievery) with mov type 103 (blocked stock from PO)
When I try to post stock with 105 mov type, the following error appear:
"Movement type 105 not allowed as it is not assigned to item category"
Msg ID: BORGR
Msg no: 649
I already checked delivery item category configuration, movement types involved and transactions allowed for each mov types.
Take care that the error mentioned doesn't occur if posting is related directly to purchase order, instead of inbound delivery..
Thanks in advance
Regards
AleHi Sandra_PF
in the inbound delivery the mov type is not 105, but 101 (correct, it's the default value for Inb delivery)
With transaction MIGO I do 2 different operations (in 2 different moments):
1°) Good Receipt referred to Inbound delivery (103 mov type - Blocked stock from PO)
2°) Stock posting with 105 mov type, to transfer stock from Blocked to Unrestricted
Here the system notice me that is not possible, because the mov type 105 is not assigned to the delivery inboud category.
Please note that we did the same thing in another system with the same configuration, without any problems..
Cheers,
Ale -
Authorization Check for Storage Location
Hi Experts,
I have the following requirement :-
I have Plant : P081 created under Company Code : P110.
I have got various Storage Locations under this Plant for example
KT01 - Main Stores
KT24 - Remote Store.
The KT24 store is basically a remote location store. I have activated the Authorization for the Storage Location KT24 in the SPRO Settings
Material Management --> Inventory Management and Physical Inventory --> Authorization Management --> Authorization check for storage location.
I have maintain the following authorizations for the Object M_MSEG_LGO as follows :-
1. OBJECT : M_MSEG_LGO.
>> 2. USER ID : 081Store
>> 3. PLANT : P081
>> 4. STORAGE LOCATION : Kt24
>> 5. ACTIVITY : 01-03
>> 6. MOVEMENT : 101, 102, 201, 221, 261
and authorization for T_code MIGO_GR and MIGO_GI . I want to restrict the user for transaction only for this storage location but the system is allowing the user to post GR document for KT01 stores also.
Can any one suggest a solution or settings that need to be done for the user to be restricted to prepared GR for Storage Location KT24 only.
Thanks in advance.
AJHi,
You set the authorizations to users with tcode PFCG. To know the reason of deny some access run tcode SU53 after SAP denies the access to some documents / objects.
Regards,
Eduardo -
Authorization check For T code
Hi everyone,
Can anybody guide to set a authorization check for a particular Tcode.
I have ztable where users are assigned particular numbers.
I want the users who are assigned some numbers should be able to use this particular t code
Thanks in advancehi
chk this out
AUTHORITY-CHECK
Basic form
AUTHORITY-CHECK OBJECT object
ID name1 FIELD f1
ID name2 FIELD f2
ID name10 FIELD f10.
Effect
Explanation of IDs:
object
Field which contains the name of the object for which the authorization is to be checked.
name1 ...
Fields which contain the names of the
name10
authorization fields defined in the object.
f1 ...
Fields which contain the values for which the
f10
authorization is to be checked.
AUTHORITY-CHECK checks for one object whether the user has an authorization that contains all values of f (see SAP authorization concept).
You must specify all authorizations for an object and a also a value for each ID (or DUMMY).
The system checks the values for the IDs by AND-ing them together, i.e. all values must be part of an authorization assigned to the user.
If a user has several authorizations for an object, the values are OR-ed together. This means that if the CHECK finds all the specified values in one authorization, the user can proceed. Only if none of the authorizations for a user contains all the required values is the user rejected.
If the return code value in SY-SUBRC is 0, the user has the required authorization and may continue.
The return code value changes according to the different error scenarios. The return code values have the following meaning:
4
User has no authorization in the SAP System for such an action. If necessary, change the user master record.
8
Too many parameters (fields, values). Maximum allowed is 10.
12
Specified object not maintained in the user master record.
16
No profile entered in the user master record.
24
The field names of the check call do not match those of an authorization. Either the authorization or the call is incorrect.
28
Incorrect structure for user master record.
32
Incorrect structure for user master record.
36
Incorrect structure for user master record.
If the return code value is 8 or 24, inform the person responsible for the program. If the return code value is 4, 12, 16 or 24, consult your system administrator if you think you should have the relevant authorization. In the case of errors 28 to 36, contact SAP because authorizations have probably been destroyed.
Individual authorizations are assigned to users in their respective user profiles, i.e. they are grouped together in profiles which are stored in the user master record.
Note
Instead of ID name FIELD f, you can also write ID name DUMMY. This means that no check is performed for the field concerned.
The check can only be performed on CHAR fields. All other field types result in 'unauthorized'.
Example
Check whether the user is authorized for a particular plant. In this case, the following authorization object applies:
Table OBJ: Definition of authorization object
M_EINF_WRK
ACTVT
WERKS
Here, M_EINF_WRK is the object name, whilst ACTVT and WERKS are authorization fields. For example, a user with the authorizations
M_EINF_WRK_BERECH1
ACTVT 01-03
WERKS 0001-0003 .
can display and change plants within the Purchasing and Materials Management areas.
Such a user would thus pass the checks
AUTHORITY-CHECK OBJECT 'M_EINF_WRK'
ID 'WERKS' FIELD '0002'
ID 'ACTVT' FIELD '02'.
AUTHORITY-CHECK OBJECT 'M_EINF_WRK'
ID 'WERKS' DUMMY
ID 'ACTVT' FIELD '01':
but would fail the check
AUTHORITY-CHECK OBJECT 'M_EINF_WRK'
ID 'WERKS' FIELD '0005'
ID 'ACTVT' FIELD '04'.
To suppress unnecessary authorization checks or to carry out checks before the user has entered all the values, use DUMMY - as in this example. You can confirm the authorization later with another AUTHORITY-CHECK -
Where to configure which stock type to post in a movement type?
Hi,
As we know , when we carry out a posting with a movement type, e.g. mvt. typ. 261, system will automatically post to unrestricted-use stock. And if mvt.typ. 331, system will post to QI stock.
I'd like to ask where to configure movement type to let it know which kind of stock type(not special stock, like E,K,etc.) to post.
i.e. if I create a new mvt. typ. , where can i set it to post to unrestricted-use , QI or Blocked stock?
I can find T156M-BUSTM and T156M-ZUSTD are relevant to stock type posting, but i don't know where to connect these fields to movement types.
Thanks in advance!
WesleyHi,
Normally there will be two types of moments available broadly.Material inflow and material outflow moments.During outflows we tell the system to take the stocks from which stock type and storage location and during inflows we tell to post to which stock type and sorage location.
The moment type 261 is a issue against an order and which has always to be from unrestricted .
and 331 is to issue towards stock to Quality inspection.
During inflows we can tell to the system through material master,vendor,or purchasing document to get posted to which stock.
For outflows system always takes from unrestricted and issues and if there is no stock in the storage location unrestricted , system provides a error message.
But however you can create a moment type at SPROMMIMMoment typescreate (OMJJ).
Regards, -
Period is closed for posting or correct document type is not being used
Hi All,
I am trying to post transaction in AB01. But i am getting below error.
I have checked OB52 and the periods for "+" & "A" are open for 2012.
Error:
Period is closed for posting or correct document type is not being used.
Please assistdocument type i am using is AA.check it other side entery documenttype period open or not
-
Post with 561 movement type without affecting MAP
Hi all,
I have a scenario for Raw Material with Moving Average Price.
When posting inventory with movement type 561 we are able to enter the Amount in LC. I have set the value here as 0.01 but once I post the document the Moving Average Price in MM03 changes with respect to this value.
I would like to ask is there any way to book stock into inventory without affecting the Moving Average Price.
Thanks.>
jamison2004 jordan2004 wrote:
> Hi,
>
> Sorry, let me elaborate my requirement.
>
> For example :
> Current Moving Average Price is 1.5
> Current Inventory Quantity is 1000
> Current Inventory Value = 1.5 x 1000 = 1500
>
> Requirement :
> Posting excess stock using 561
> Receipt Quantity : 500
>
> After posting, I want the Moving Average Price to remain as 1.5
>
> Can you please tell me the solution for this?
>
> Thanks
Do not enter any external value, just post the quantity, and SAP will not change the MAP.
But of course your stock value will increase by 500 x 1,5
there is NO WAY to post a quantity of 500 with no value for a valuated stock managed material and keeping the MAP uneffected.
if you post with value, then the MAP keeps constant but your total stock value goes up.
if you post with zero value, then the MAP goes down.
OF course you can then change the MAP again with MR21, this will create the next accounting document then. -
How add Authorization check for user with assigened role for t.code-MIR4
Hi All,
Regarding authorization how to check authorizations check for user whith assigned roles for the t.code MIR4 using ABAP.
In Detail:2) All users are allowed to go to MIR4(invoice number), But ONLY for users with role: MM_RELEASE_INVOICE can proceed to do the posting.
suggest me...
Thanks,
srii..Hi Sri ,
first u need to find out in which user rules u are using this object , after that if u want to restrict users then remove create/change values from that object values .
make use of Tcode SUIM to find out all roles which are using this Object.
or
ask ur basis guy to remove authorizations to create/change....
regards
Prabhu -
Authorization check for select-options field - Company code.
Hi experts,
i have company code field on the report selection screen and i have to validate the authorization check for BUKRS.
How to do authorization check for a select-options field?
Any function modules used to write the authorization check for a SELECT-OPTIONS FIELD?
Thanks.>
RNB wrote:
> Any function modules used to write the authorization check for a SELECT-OPTIONS FIELD?
Does it hurt to type a few lines of code? Why do you need an FM for this my friend?
Anyways can you please tell which SAP application area (viz. FI, SD etc.) do you want to run the report?
Suhas -
Authorization check for production order settlement
Hi All,
Production order settlement currently can be done by any user of any company code. there is a high risk involved in the same since unauthorized postings may happen. Hence we need to add authorization check for production order settlement. Can we maintain the same at the plant or the company code level?
Waiting for your replies. Thanks in advance!
Regards,
Aman Goelhi
What venki has told abt the exit, its absolutely correct.Even i have used the same exit
From table CAUFV pick Material(PLNBEZ),Basic Start Date(GLTRP),Plant(WERKS) .
Pass parameter Material(PLNBEZ) and Plant(Werks) in table MBEW in respective fields i.e. Material(MATNR) and Plant(WERKS).
Pick the latest record for the current period(LFMON) and year(LFGJA).
Pick Product Cost Estimate number(KALN1) from the record and pass it to table KEKO.
Check if Production Order Basic Start Date(GLTRP)<= BIDAT, if NO post Error Message.
This is the FS for EXit PPco0007
Reward if useful
Amit -
How can i check for posted but not yet commited changes in a form
Dears
I make changes programmatically in a form then i post it using (Post built in).
If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status
Unfortunately the value of this system variable is 'Query' not 'Changed' because of using the post built in.
Is ther another system variable ( or any another way ) that check for posted but not yet commited changes in the form ?
Thanks a lot
Mostafa AbolaynainI had faced similar situation. Using of package variable which identifies, what is the user's latest action.
This is just a workaround.
Capture what the user has performed into a variable say, PKG_VAR.ACTION,
This will be assigned values like List L, and Create C, Update U and Saved S.
If commit is executed,assing the status S to the variable.
So while closing,
IF :system.form_status = 'CHANGED' or PKG_VAR.ACTION in ('C','U') THEN
-- validate the data, n perform commit.
else
-- just close the form.
end if;
Regards
Deepz : ) -
Authorization checks for PNP LDB
question : how to validate authorization checks for pnp logical database?
2 nd question: hr report
this report is basically for salary survey. in this i had so many fields can any body let me know how
can i form the internal tables. and i have to display overall 150 fields in csv file for that
how can i take in to the final internal table.
what is the logic behind this:
T71JPR09-JOBCODE
PA0000-PERNR
HRP1000-STEXT
P0006-PSTLZ
PA0008-ANSAL * 100 / PA0008-BSGRD
PA0015-BETRG
PA0761-LTEXT WHERE PA0761-CPLAN = LTI PLAN PSU YEAR 1
PA0761-GRADT WHERE PA0761-CPLAN = LTI PLAN PSU YEAR 1
PA0761-ZZGRANT WHERE PA0761-CPLAN = LTI PLAN PSU YEAR 1
PA0761-LTEXT WHERE PA0761-CPLAN = LTI PLAN esu YEAR 1
like that i had.
please give me the steps how can i proceed.Hi,
The PNP database will take care of authorization check. It will not execute if used does not have authorizations.
Hope this helps.
Maybe you are looking for
-
How to enable servers and services?
Currently when i go to the personalization screen of my publications i get the following msg: Unable to find servers in CMS and cluster with kind and service . All such servers could be down or disabled by the administrator. (FWM 01014) Kindly let me
-
Please Help - "page error" / a system error occurred
I am very basic with Coldfusion Developed websites and pretty awesome on HTML and PHP. While working on a website I made an HTML change and added a line to a page. All works well on the test website/server but after uploading the changed page the pag
-
A system just like stock quota has many client(100 000+). we choose JMS to resolve the project. we have many choice in the field of Client. 1st:Client is a stand-alone application,which directly connect to JMS server and receive those message. 2nd:us
-
I am running the 2.0.1 build 53 and would like to know how to fine tune the software to get rid of some of the alerts in the dashboard. For Example: Events From Engine Per Minute: There is a large number of events coming from the sync engine Event Ra
-
I have been with Bt for many years and I asked for a free up grade I am on Unltd b/band package and have had the router hub 3 for the last 4 years + and not sure why the will not upgrade me for free I have stared to look round for asimmlar pacage an