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: 

SECATT:Tcode Deletion in Role?

Former Member
0 Kudos

Hi Experts,

Is there is any way to delete the Tcode in Role using Secatt Tcode.While deleting the tcode,we need to find the Tcode through 'Find Dialog Box'.If the Tcode is present,Curser will be present in the Tcode or the Tcode is not there,then it will point out to some other Tcodes.Then the Script will delete that Tcode.

Whether this problem can be rectified.If yes,How can we rectify this problem?

Regards,

Karthika

18 REPLIES 18

Former Member
0 Kudos

Hi Karthika,

I think you will need to use the grid id property to iterate among the list items listed in the find screen, here for example is the name of the T-code. Use GetGUI and iterate using teh row number untill you get the T-code - SECATT. and then you can delete it.

Regards,

Justin

Former Member
0 Kudos

Hi Karthika,

As I understand, you have done the recording for positive testing where in you find a tcode which you want to delete. You did not include negative testing where in you do not find the tcode which needs to be deleted.

If we use 'Find Dialog Box' and try to search for values not there in the list then the information message would be something like 'Search uncessful - no hits found for: XXXX'.

My suggestion is to include both positive and negative testing in your recording and make the negative part optional ...

This way .... you should be getting what you need.

If you want me to try out, please let me know the exact procedure you are following in order to delete a tcode from a role...

Hope I was of some help!

0 Kudos

Justin & Prasad,Thanks for yor help !

However,If I need to delete the Role from User through SU01,I will click on Find button and provide the role name,If the Role is present,then cursor will point to that Role otherwise It will point out to some other role & it will get deleted.

This was the procedure we are following in SECATT while deleting roles.

May I know how to include negative testing and include it as option?Your help is required.

Regards,

Karthika

0 Kudos

Well Karthika,

I think in this case you will have to combine both approaches that me and prasad gave. Use the find button and then try the getgui on grid of the list of roles. If your value doesnt match exactly after the get gui, fail the test case with a LOGTEXT.

Regards,

Justin

0 Kudos

Dear Karthika,

In the beginning, the problem was the deletion of a tcode from a role and now your scenario describes the deletion of a role from a user profile.

Please clarify with your requirements so that we can be of precise help...

Also, if it is role deletion from the user profile, the message obtained when a role is not found from among the list inside a user profile is of type - S and number 469.

Do the exact steps as below:

1) Insert your recording bn MESSAGE ... ENDMESSAGE block.

2) Insert a new message under MSG_1 with the following values:

MODE - A

EXIT - X

MSGTYP - S

MSGNR - 469

This ensures that if the 'Search term not found' message appears... the subsequent steps would be skipped....

Hope this helps!

Former Member
0 Kudos

Hi Experts,

I created message in SECATT script to aviod deleting the unnecessary role.

But I dont know where to provide 'EXIT' command in the message script.

Kindly help me.

Thanks in Advance,

Karthika

0 Kudos

Dear Karthika,

You must have something like this ...

MESSAGE (MSG_1).

SAPGUI (....).

SAPGUI (....).

SAPGUI (....).

ENDMESSAGE (E_MSG_1).

Double click on MSG_1 and the command interface for the same would come out.

Create a new entry with the values under the proper column headings as mentioned in the previous mail.

0 Kudos

Hi Prasad,

Thnks for your reply!!

But When searched on script ,it is as below:

''

MSG

[1]

TCODE

DYNAME

DYNUMB

MSGTYP

MSGSPRA

MSGID

MSGNR

MSGV1

..

MSGV4

ENV

FLDNAME

''

So I right clicked on 'MSG' & add new message, it as [2].But I am not able to find any thing as Exit.

Kindly correct If I am wrong on the above command.

Thanks in Advance

Karthika

0 Kudos

I m using ECC 5.0 and probably there is a difference with the other versions .. prior or later ...

Anyway ... click this below link and check out the 5th point ...

http://help.sap.com/saphelp_nw04/helpdata/EN/72/b96e3fefa13042e10000000a114084/content.htm

Anwyay ... if u r interested ... I have a test script done for you ... which I can download for you and send via email.

Can I have ur email id if u don't mind ... ?

Br / Prasad TSN

0 Kudos

Hi Prasad,

Thanks for your reply!!

Now I have founded out problem that when I selected Pattern--> command has been given as 'TCD[record]'.But to run script with message we need to give command as 'SAPGUI[record]'.

But when I selected this ,I am getting error messgae as "Scripting Is Not Allowed in Current eCATT System or on Current Server".

No documents also available.

Kindly help me out.

Regards,

Karthika

0 Kudos

In order to allow GUI scripting, you need to follow the prerequisites for the setup as given below in the following link :

http://help.sap.com/saphelp_nw04/helpdata/EN/78/535b736b899f468e2bf0912aa93680/content.htm

Hope this helps!

0 Kudos

Hi Prasad,

Thanks for your reply!!

Still I am not able to get SAPGUI(record) command.Kindly suggest whether any import or any changes(parameter) needs to be done in the system to make command as SAPGUI(record).

Regards,

Karthika

0 Kudos

Which version of SAP do you have ? ... May be the exact words are not present in the older versions ...

0 Kudos

Hi Prasad,

We are currenlty on SAP ECC 6.0...

Regards,

Karthika

0 Kudos

Hi Karthika,

Click the Pattern button ...

Under group - All Commands ... look for command ... SAPGUI REC (SAPGUI (Record)) ...

0 Kudos

Hi Prasad,

Thanks for your reply!!

We are getting the SAPGUI(record) option in the command field but when we move ahead ,we are getting the error message as "Scripting Is Not Allowed in Current eCATT System or on Current Server".

Regards,

Karthika

0 Kudos

Follow this blog written by Sapna modi : /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i

This should help you out!

0 Kudos

Hi Prasad,

Finally I got the answer,I need to set the parameter sapgui/user_scripting as TRUE.

Thanks a lotttttttttttttttttttt for your help.

Regards,

Karthika