on 02-25-2015 12:34 PM
Hi Experts,
At delivery header in partner`s tab we need to restrict manual entry of the partner as the partner`s are carried from sales order to delivery through copy controls.
Now the end user is maualy entering a new parner function with out any restriction. how do we restirct this kind of situation at delivery header partners.
please kindly help me to solve the issue.
Thanks & Regards,
Jani Shaik.
Hi
go to partner determination procedure , delivery header partner determination procedure-partner functions - here you put not modifiable , then user not change the those partner functions manually .
check and revert back
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
Thanks for the Replay, i have tried with the option and i know that partner`s are carried from sale order to delivery throught copy controls, when it comes to delivery we can`t change it as it is in non modifiable state.
But my requrement was if we don`t maintain a partner function at sales order level and i have an option to add at delivery level. Now in such case my client wants to restrict addition of such partner function at delivery level.
So what ever they maintain at sales order should flow to delivery and if the user wants to added any partner function it should not allow.
Please me to resolve it.
Thanks & Regards,
Jani Shaik,
Hi
pl use include LV09CF63 and implement enhancement at line number 162
here write logic like below
if SY-TCODE = 'VL01N' or SY-TCODE = 'VL02N'.
loop at screen.
if screen-name = 'GVS_TC_DATA-REC-PARVW' or
screen-name = 'GVS_TC_DATA-REC-PARTNER'.
screen-input = 0.
endif.
modify screen.
endloop.
ENDIF.
it for all users not enter any partner function ,
you need to allow the enter partner functions for specific user so change the logic like below
DATA: lt_user_list TYPE STANDARD TABLE OF tvarvc,
lw_user_list TYPE tvarvc,
lr_user TYPE RANGE OF syuname,
lw_user LIKE LINE OF lr_user.
if sy-TCODE = 'VL02N'.
SELECT *
FROM tvarvc
INTO TABLE lt_user_list
WHERE name = 'ZSD_PARTNER_ALLOWED'
AND type = 'S'.
IF sy-subrc = 0.
LOOP AT lt_user_list INTO lw_user_list.
lw_user-sign = lw_user_list-sign.
lw_user-option = lw_user_list-opti.
lw_user-low = lw_user_list-low.
lw_user-high = lw_user_list-high.
APPEND lw_user TO lr_user.
CLEAR lw_user.
ENDLOOP.
IF sy-uname NOT IN lr_user.
loop at screen.
if screen-name = 'GVS_TC_DATA-REC-PARVW' or
screen-name = 'GVS_TC_DATA-REC-PARTNER'.
screen-input = 0.
endif.
modify screen.
endloop.
ENDIF.
screen-input = 1.
ENDIF.
ENDIF.
After minting this logic go to t code STVARV
and create Variant Variable like : ZSD_PARTNER_ALLOWED
and maintain the user names for which user allow the edit partner functions.
i think this full fill your requirement .
after maintain this delivery level partner tab it will go to disable mode like below
Hi Siva,
That was really a helpfull answer, but the code was specific to user restriction. If i want to restrict for a particular partner function at delivery, how can i do it.
As the code says to gray out entire partner tab but we have some other partner functions which are added at delivery level only.
Is there any chance that we can restrict only for a particular partner not allowed at the delivery level.
Thanks & Regards,
Jani Shaik.
User | Count |
---|---|
91 | |
8 | |
7 | |
4 | |
4 | |
3 | |
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.