How to Hide VPRS Condition Record in SAP

I came across a requirement once in my company . I thought I should share some points which we need to consider achieving this requirement. Although some points have already been discussed in many threads for different requirements . There is an SAP note 105621. All process has been described step by step in this note.

Just I am sharing the piece of code that i have hided VPRS condition at header & Item level .

Create two authorization fields with following inputs

Create Authorization Object

Run Tcode SU21 and Click on this icon and select Authorization Object

Enter object name, text, class and field names. Field ACTVT is not necessary. I have added in screenshot but you can create without this field too. It works fine without this field. Only add two fields ZKALSM and ZSTUNR.

Transactions Included VF01, VF02, and VF03.

The sameUSER EXIT we can use for VA01, VA02, and VA03 also steps are same.

Using ABAP Code we have achieve this functionality.

USER EXIT: LV69AFZZ.

Go to SE38 à Provide program name LV69AFZZ & Click on change.

Now you can find here

FORM userexit_field_modific_kopf. “These Subroutine is for Header Level hiding VPRS or Any Condition type