Application Development 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: 

Import Role

Former Member
0 Kudos

I'm building a role with more tahn 6000 tcodes, anybody know an easier way to import, other than pasting the cpdes into the transaction windows?

Thanks

Osama

1 ACCEPTED SOLUTION

Former Member
0 Kudos

'Soma pradeep' and 'David Whittle':

my email address is: <b><email removed by moderator></b>

Thanks a lot.

19 REPLIES 19

Former Member
0 Kudos

Hi,

We can Do using <b>PFCG</b>.

Type which role you want to import in the role field.Click on full load truck(ctrlshiftf9).

I hope it will help

any issue post it

kiran kumar.v

former_member912992
Participant
0 Kudos

Hi Khalifa,

According to my experience, the best way is download the role to your local drive and upload it to the destination system or client. Afterwards, you just need to generate the authorization profile.

You can also do a transport and import, but then there will be some adjustment to do afterwards. For me, it is more complicated.

Regards,

Agoes

Former Member
0 Kudos

Important questions i why build such a big single role? It will be a pain to maintain later as well as building it.

Maybe you can give s-tcode ranges instead of entering all 6000, or try to add it via the SAP menu tree (providede you need all TRX in a certain area)

Former Member
0 Kudos

Hi,

You can import the transactions to role menu.

-> call PFCg and enter the role name.

-> goto menu tab and open transaction window.

-> click f4 in the transaction window -> one pop-up window will come with some transactions -> Click "New selection" button in the bottom of the window -> it will open one more pop-up -> there click arrow button opposite to transaction-> system will open one more popup. here you have options to upload text file or simply you can copy all transactions at a time and upload it.

I think it s resolved your issue, but can answer my doubts.

Is these 6000 tcodes related to one job role or mixed?

These days SOX act is playing a kea role. Think about Segregation of duties.

Praveen.

0 Kudos

Praveen,

Thanks for your help. I got to the point where I was able to load the tcodes from my txt file. However I got stuck because there no option to select all. I would like to show you a screen shot however there is no option here to attach a file.

To answer your question this role is for one job, however this is a sandbox only.

Thanks

Osama

0 Kudos

Hi Khalifa,

You can mailme on <b><email removed by moderator></b>

sandbox.....

Praveen.

Former Member
0 Kudos

It seems like there is no way to load roles from a text file.

Thanks for your help

Osama

0 Kudos

Hi

Using SCAT you can add more than 6,000 T-Codes.

If you need more help let me know.

Cheers

Soma

0 Kudos

How?

0 Kudos

Hi,

You can record a transaction. Create a template and use it as and when required.

Do you want step by step how to record using SCAT.

If yes let me know I will explain in detail.

Cheers

Soma

Message was edited by:

soma pradeep

0 Kudos

Soma,

Thanks for your help, please let me have step by step.

Thanks a million, you are a life saver

0 Kudos

Hi,

Enter T-Code SCAT

In the next screen you will be displayed with input field

Test case .....

Enter Test Case name as Z_MASS_ADD_T_CODES

Click on (Ctrl +f1) or in the menu -> record transaction

you will be prompted with a pop-up window Transaction code ...

Enter PFCG in the input field

Click on ->(arrow icon) which is left bottom on the pop-up

in the next screen you will be prompted with pfcg screen

Enter the role name in which you need to add transactions

Click on the Change (pencil icon)

In the next screen you will be prompted with all tabs

Click on Menu

Click on +Transaction button

Enter only one T-Code and click on asssing transaction code.

Click on SAVE (CTRl + S)

Click on Back button

Click on Back button

You will be back to the same screen where you have started recording

Click on stop recording icon (red doted icon)

In the next screen you will be prompted tabs

Generat data, Extras ......

Click on SAVE button (CTRL +S)

You will be prompted with a pop-up with create object Directry Entry

In the pop up click on button (local object )

Click on back button you will be promted for save click on YES

With this recording is completed

Next STEP

You need to click on EDIT (pencil icon)

In the next screen you will prompted with

C Funct. Object Text

TCD PFCG Role Maintenance

Double click on TCD

in the next screen you will be prompted with

screen for transaction .....

Click on the Filed list (Button) or (SHIFT + F5) which is second button

in the next scree you will have field list

Click on next screen button or (SHIFT + F7) for 3 times or until you get the follwoing values displayed. This displays the T-Code (ex SU01) you have added in recording

S_TCODES-TCODE(1) 020 su01

REMOVE SU01 Replace with & (this is to make as variable)

once you replace with &

Click on back button till you get initial screen you will be prompted for save.

Click on save (yes).

next STEP

click on GOTO in the menu

-> Variants -> Export Default

this will be saved as txt file for example Z_MASS_ADD_T_CODE1.TXT

Save it on the desktop and open with excel

once you open with excel you will have the three colums

under the TCODE1 column under SU01 LEAVE ONE ROW EMPTY

add the list of T-Code here and save the file it will prompt with some messages just click on save (yes).

NEXT STEP

in the scat initial screen choose the name of the Z_MASS_ADD_T_CODE1.TXT

Click on execute (clock icon)

in the next sceen you will have

log type process Mode variants

choose errors in process Mode

Choose External from file

click on choose button on the right side of External from file

Choose the text file which you saved with T-Codes (edited in excel)

Click on execute (clock icon)

This will take some time and will add all the transactions into the role.

I hope this helps. If you are struck somewhere let me know

Cheers

Soma

0 Kudos

Soma,

I got this error message :

With Web Application Server Release 6.40, you cannot create new automated CATT test cases. However, you can still create manual CATT test cases.

Editing and executing existing automated CATT test cases is still possible. For more information, see the release notes

thanks

Osama

Former Member
0 Kudos

The easiest way is to use the "Import from file" option on the Menu tab in PFCG. There is a note on the required format, but I don't have the note number. I wrote a macro in Excel to convert a list of transactions (and transaction descriptions) and create a properly formatted input file. Send me your email address and I'll send you the macro. <b><email removed by moderator></b>

0 Kudos

my email address is: <b><email removed by moderator></b>

Thanks

Osama

Former Member
0 Kudos

Hello Khalifa,

1) Enter t-code PFCG

2) Enter the name of the new activity group/role you are creating and <b>"Save"</b>

3) Click the <b>"From activity group"</b> button located on the RH side of the screen below the <b>"Copy Menus"</b> section. A search window will pop-up.

4) Search for the name of the role you wish to copy. I.e., SAP_SDCCN_ALL, Y_<your custom role>_xx, etc...

5) Select the role you wish to copy by either double-clicking on it or single-clicking on the role and click on the green check.

6) Now select either the top level of transactions or drill down into the role to be move selective on what you wish to import.

7) Click on the <b>"Add"</b> button at the bottom of this screen and you have imported everthing in the menu of the selected activity group/role.

Keep in mind that you need to select an activity group/role that contains a "menu" for this feature to work. If the activity group/role does not contain a menu, you must import from within the Maintain Authorization Data area and import via the assigned profile of the activity group/role you wish to emulate.

Former Member
0 Kudos

Still working on this issue with Soma.

Thanks

Osama

Message was edited by:

Khalifa Osama

Former Member
0 Kudos

'Soma pradeep' and 'David Whittle':

my email address is: <b><email removed by moderator></b>

Thanks a lot.

0 Kudos

Hi,

Please check with the following link

http://help.sap.com/saphelp_nw04/helpdata/en/ae/410b37233f7c6fe10000009b38f936/frameset.htm

Hope this would help

Cheers

Soma