cancel
Showing results for 
Search instead for 
Did you mean: 

Dezactivate header condtions

milascon_daniel
Participant
0 Kudos

Hi experts,

I have defined a header percentage condition(discount or surcharge) which can be entered manually.

How can i disable it?

Or it's possible to restrict acces to this condition only to some users?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

you can deactivate the indicator header condition in V/06 straitaway

OR

restriction to some users can be done through authorization management.

regards,

sadanandam kasarla

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

u can restrict some users through tcode:PFCG..role creation, here u give the authorizations to the particular users whom u want to restrict. and assign this role to USER in Tcode- SU01. go to change mode and assign in Roles tab.

Actually this is the work of BASIS.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

One idea. Perhaps you can try to create a VOFM subroutine (Reqt) and use it in your pricing procedure. In this VOFM you can use authoritation objects (V_KOND_VEA or / and V_KONH_VKS ) and if the user have not auth, then in VOFM coding sy-subrc = 4.

I hope this helps you

Regards,

Eduardo

PD: Forget my suggestion, Sadanandam is right, his solution is easier and it works. Try the auth objects in PFGC for the user and it must works.

Edited by: Eduardo Hinojosa on Mar 6, 2009 9:43 AM

milascon_daniel
Participant
0 Kudos

I have uncheck header Condition from V/06. It works.

If conditions is active, how can i restrict access to this condition through role maintenance (PFCG) ?

I have maintain authorization V_KONH_VKS in a role - only display.

Even with this, users can add or change that header condition.

What should i do?

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

First, because it's easier try to manage auth.object V_KONH_VKO in PFCG. If it doesn't work, then try my suggestion to manage it in VOFM subroutine (then you need ABAP coding).

Regards,

Eduardo

milascon_daniel
Participant
0 Kudos

Eduard, cam you give an example with VOFM?

With PFCG it didn't work.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

An example:

For VOFM xxx (ie: report RV61AXXX), an example for XXX is 900

form kobed_XXX.

sy-subrc = 4.

break-point. "check it !!!!!!!!!!!

authority-check object 'V_KONH_VKS'

id 'KSCHL' field konh-kschl "check if this value is populated in VOFM

id 'ACTVT' field '01'. "Default: create it in PFCG

IF sy-subrc = 0. "the user can do it

sy-subrc = 0.

ELSE.

sy-subrc = 4. "the user can't do it, so the condition isn't viewed

ENDIF.

endform.

  • Prestep

form kobev_XXX.

sy-subrc = 0.

endform.

Create VOFM (check the link: http://saptechsolutions.com/pdf/InsideVOFM.pdf) and try it.

I hope this helps you,

Regards,

Eduardo