cancel
Showing results for 
Search instead for 
Did you mean: 

Block users using validation

Former Member
0 Kudos

Hi Guys,

I want to write a validation to block few users from accesing the tcode FB01.

How can i write the validation in GGB0.

I want to know the steps.

Pls suggest.

Thanks,

Srikanth.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In GGB0, choose complete document in financial accounting. Create a validation name Block

choose prerequisites - select abap system fields : double click transaction code it will come in

the top box; now click on =; it will come in the top box; click constant tab and in the pop give the

transaction code fb01. After prerequisite, now go to check and here choose abap system field : double click user name; double click =; double click constant and in the pop up give the username id. and finally choose message and give message type E. You can maintain your own message no. here by click the change button. blocked for user XYZ etc. and save. Finally in ob28 assign to company code with activation level 1.

Regards,

Sadashivan

Former Member
0 Kudos

Hi Sadashivan,

Thanks for the reply.

but this validation is not working.

Please check.

Thanks,

Srikanth.

Former Member
0 Kudos

Hi Srikanth,

Any error message is displayed or system is allowing the user to post through FB01. You can try changing prerequisite as user name and check as t.code. Else basis consultant is the God to

control access to the users.

Regards,

Sadashivan

Keshi1
Active Participant
0 Kudos

Hi

Go to GGB0 and write a validation like follows

n Prerequisite :

Transaction code = 'FB01' AND User Name = 'ABC'

Check :

False

Message :

Message Type : E

Create a Message No and include a message as you wish

Kesh.

Former Member
0 Kudos

Hi,

This validation is working if i include the user name and tcode both in the prerequisite for FB01.

however the previous validation is also working for other transaction codes like F-43 but it is not working for FB01 strangely.

Thanks,

Srikanth.