on 03-30-2015 1:41 PM
Hi,
How can i fix a default storage location for a specific delivery type? maybe also specific for user. I've found DLVLGORT (SU01) but doesn't work with (DELTSTOR).
Thanks and regards.
Antonio
1) Assign a storage location determination rule to your delivery type. This can be done at the following customising:
> SPRO
> Logistics Execution
> Shipping
> Picking
> Determine Picking Location
> Define Rules for Picking Location Determination
In here, choose a value = "YY" for the delivery type.
2) By choosing "YY" in step 1, this means that the system will use user exit EXIT_SAPLV02V_002 to determine the storage location. In this user exit, you can specify the storage location to be used.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Antonio,
This is an interesting requirement, can you give the reason / business justification?
TW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi MoazzaM,
Just for my knowledge am asking this. You say that, you like it because its different from std SL determination rule.
Is deviating from a std rule better than using the std function..? I have heard from many that, if possible we have to follow std configurations. Will be great to hear from your experience.
Thanks
Jobi
Hi
If we have to create new shipping point just for determining a storage location for one user only on other side we can do this with some customization and a Z table, I'd prefer Z table. Creating shipping point only for one user doesn't sound good to me. Everyone has his own views and this thing varies from company to company too.
Thank$
Antonio's requirement is:
"How can i fix a default storage location for a specific delivery type? maybe also specific for user. I've found DLVLGORT (SU01) but doesn't work with (DELTSTOR)."
So this is actually 2 requirements:
Requirement 1: Specific Delivery Type
Requirement 2: User specific
Requirement 1: The storage location rule is already assigned to the delivery type in the customising I specified above. So you would just need to out the following code in user exit EXIT_SAPLV02V_002:
ELGORT = '<StorageLocationValue>'.
Alternatively, you could also use:
IF IF_LAGOF-LFART = '<DeliveryTypeValue>'.
ELGORT = '<StorageLocationValue>'.
ENDIF.
Requirement 2: This requirement is not as easily met. In requirement 1, we have the delivery type readily available to use (in 2 places). However, we do not have authorisation objects readily available to us in the user exits. I can think of the following options.
a) Hard code the user names into the user exit. For example:
IF SY-UNAME = <'UserNameValue>'.
ELGORT = '<StorageLocationValue>'.
ENDIF.
Clearly, there is a disadvantage to this as if a new user comes onto the system, the code needs to be updated.
b) Create a Z authorisation object and put code akin to this in the user exit:
AUTHORITY-CHECK OBJECT '<ZAuthorisationObjectValue>'
IF SUBRC = 0.
ELGORT = '<StorageLocationValue>'.
ELSE.
[Whatever the else logic is]
ENDIF.
I would be reluctant to use a standard authorisation object here because it may have impacts on other areas of the system. For example, user may suddenly not be authorised to do something elsewhere in the system that they should be able to so.
If the 2 requirements is actually 1 requirement and you want to determine the storage location based on the delivery type AND the user authorisation, then you combine the above code.
Have a different Shipping Point for that delivery type so that you can default the storage location in configuration. Else, you have to try with user exit.
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.