Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding User-Exit

Former Member
0 Likes
511

I want to create an User-Exit for transaction XK01,so that for a particular organization it should not allow to enter schema other than some selected schema group.

Ex - For Purchase Org. 5000

It should not allow schema group other than india

Please help.......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
490

Hi,

If you are on release 2004 or higher you can use the BADIs VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS

user exit

EXIT_SAPMF02K_001

<b>Reward points</b>

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
491

Hi,

If you are on release 2004 or higher you can use the BADIs VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS

user exit

EXIT_SAPMF02K_001

<b>Reward points</b>

Regards

Read only

0 Likes
490

Do you have the idea of how i can disable the other value in schema group.[

Read only

0 Likes
490

Hi,

Somewhere in your PBO module you will have the following statement:

SET PF-STATUS '<name of status>' EXCLUDING lt_excl.

When you are on your "first" screen then lt_excl will be empty, i.e. all functions are active.

Now, when the user execute "Create customer" you could fill the itab somewhere in the PAI module USER_COMMAND_xxxx:

REFRESH: lt_excl.

APPEND '<fcode to be inactive>' TO lt_excl.

In the next screen this function will be disabled.

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
490

thanks