Skip to Content
author's profile photo Former Member
Former Member

Role upload core modification

Hi,

Currently SAP delivers role upload tool to upload the roles,transactions,miniapps etc... to portal. It works fine. we have a requirement that when the transaction is uploaded, the iview that is created should have the NAME: "transaction description" + "transaction code".

By default the NAME is just transaction description. To do this, I was checking the PAR files associated with role migration. I found a class with name "IROLEMIGRATIONCONSTANTS.class" in com.sap.portal.pcd.rolemigration.par.

IN that I found a code block

-


public static final String CALLING_MAPPER[][] = {

{

"functionName", "functionOutTable", "range"

}, {

"TWPN_GET_AV_ROLES", "ROLES", "ROLE_RANGE"

}, {

"TWPN_GET_AV_TRANSACTIONS", "TRANSACTIONS", "TCODE_RANGE"

}, {

"TWPN_GET_AV_MINIAPPS", "MINIAPPS", "APPNAME_RANGE"

}, {

"TWPN_GET_AV_MINIAPPS_OLD", "MINIAPPS", "ROLENAME_RANGE"

}, {

"TWPN_GET_AV_URLS", "URLS", "URL_RANGE"

}

-


I thougt that I would achieve the desired with the entry "TWPN_GET_AV_TRANSACTIONS". we made a copy of this BAPI and did the changes and executed it, which shows the result as expected ,(I executed in R3).

Now I want this to be executed from portal. so in the IRoleMigrationConstants.class that I was mentioning, I edited just that entry "TWPN_GET_AV_TRANSACTIONS" with my BAPI name "ZWPN_GET_AV_TRANSACTIONS" and uploaded the PAR again.

now when I run the role upload tool, the iveiw name was not as desired. It was just as before (i.e. just transaction description).

So as another test, I put "XYZ" (there is no BAPI with this name in R3) in place of "TWPN_GET_AV_TRANSACTIONS", in the IROleMigrationConstants.class and uploaded it again and expected an error. but the role upload tool was working as before, which means, it didnt call this BAPI.

could you please tell me where am i going wrong.

The reason why we want to do this is, we have 250 transaction iviews and changing the name for all 250 when i run the upload is really hectic.

could you please suggest me, how can i proceed.

is there any other way of achieving my requirement.

Did anyone had this requirement or sort of. If so how did you proceed.

Thank you

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2005 at 05:45 PM

    changed TWPN_GET_TRANSACTION

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.