Save new workbook in menue role with VBA / ABAP

Hello,
does anybody know of a way to save a workbook which is not stored in SAP BW by then in a menue role folder through VBA or ABAP automatically?
I know that there is the SAPBEXsaveWorkbook function in VBA but that only works if the workbook already has an ID in BW. Maybe there is some workaround to assign name and ID beforehand? Where does the BEx get the ID if the workbook already has one? Is it stored in a temporary mapping table or something? I found that there are NO very hidden sheets as long as there are no queries embedded in the workbook, and I want to save a workbook WITHOUT queries.
Also, I know that there is the saveDialogWorkbook function, but as stated above the saving process should be automatically, i.e. a function like SAPBEXsaveWorkbook(name As String, role As String, node-id As String). By the way, where would I get the node-id for the nodes in the menue role?
Thank you for ANY hints!

Hi Peter,
thanks for your update! Saving in the "root folder" of a role might already be sufficient if we don't figure out how to save in folders.
I've done some research, too, and the strange thing is that the number at the end is obviously not the folder ID. When you choose "Open -> Workbooks", then copy a workbook entry using Ctrl+C and paste it in an editor, you get more information than what is displayed in the dialog even with technical names turned on. The pasted entry includes the role name and the number you referred to. And the thing is that even two workbooks in the same folder have different numbers! When you save a workbook using 0000000000 and then look at the number assigned in the way described above, it also has an ID different from 0000000000. It seems that every workbook has its own number. So to me it's still a mistery where the folder is specified.
Regards,
Jörg

Similar Messages

  • When trying to save a workbook to a role, no role available

    Hello. We have followed the directions of creating a role for saving workbooks from help.sap.com. When going into save the new workbook via Bex Analyzer the role that we created is not available to save a workbook. In fact, no roles show up.
    We are using BW 3.1 with 3.3 content.
    Any help will be appreciated.
    Thanks,
    Pete

    Hi,
    As I understand, the user saving the query will need to have the role assigned to his id. He/she can save the query in any of the roles in which his id is assigned.
    It is likely that userid you are using doesn't have this role assigned (you can assign it in PFCG).
    cheers,
    Ajay

  • Save BI Workbook in a Role as a end user

    Hi guys,
    I have issue with quries in Bex analyzer I have created a role with S_USER_AGR = 2 but as a test user using this role I can't save the query to the workbook role, it gives me this error " RSOBJS   160 No authorization to create role entry".   I ran the st01 and I don't find any RC =4 or 12 so I don't know what is the problem.  Also my analysis authorzation works perfactelly fine I restricted company code and it gives me correct data.
    Please advise
    Thanks
    Faisal

    Saving workbooks require authorizations to modify role.
    Most likely
    S_USER_AGR
      ACT_GROUP=ZROLENAME
      ACTVT=02;
    I recommend a standalone role with a special name for workbooks to be saved in, not use the same name prefix as the "normal" roles. This in order to restrict possibilities for the workbook designer to modify "normal" roles.
    /fredrik
    Edited by: freppe on Sep 29, 2009 10:51 AM

  • Workbooks and Menu Roles

    Hi ,
    There is some transaction or SAP table where I can check all workbooks with its assigned menu roles?
    I mean the whole list of Workbooks - MenuRoles relationship.
    Any idea , suggestion will be appreciated.
    Regards
    FedeX

    Hi,
    Check the tables starting with RSRWB* in BI system.
    For your information, below are the tables:
    Queries
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSRREPDIR Directory of all reports (Query GENUNIID)
    RSZCOMPDIR Directory of reporting components
    Workbooks
    RSRWBINDEX List of binary large objects (Excel workbooks)
    RSRWBINDEXT Titles of binary objects (Excel workbooks)
    RSRWBSTORE Storage for binary large objects (Excel workbooks)
    RSRWBTEMPLATE Assignment of Excel workbooks as personal templates
    RSRWORKBOOK 'Where-used list' for reports in workbooks
    Web templates
    RSZWOBJ Storage of the Web Objects
    RSZWOBJTXT Texts for Templates/Items/Views
    RSZWOBJXREF Structure of the BW Objects in a Template
    RSZWTEMPLATE Header Table for BW HTML Templates
    Rgds,
    Raghu Boddu
    SAP Certified Security Professional

  • New Security Feautres/Privs/Roles with 10g

    Hi,
    I am trying to submit a report to mngt. about all the new roles and privs with 10g and any modifications to existing roles and privs. I think I have read about 4 different online manuals for 10g from the oracle site and I have not been able to find a whole lot of details. I have come accross the change to the CONNECT role and about the new user TSMSYS created by default when you install Oracle. But my understanding is that 10g has some new privs and some new roles and mods to existing ones. Can someone please help me with this. All the 10g new features books only talk about encryption and the removal of all privs except CREATE SESSION for the CONNECT role. Even the Security Admins guide does not really give a whole lot on this topic. I though maybe this forum might be able to help me and I am sure there are many people out there that would also like to understand this information if they are also planning on upgrading to 10g.
    Thanks in advance my fellow DBA's

    There are a lot of good things that I am not sure if 9i covered, but the new EM is quite elegant and has policies validations that make security issues easier to detect.
    If you open the web-based EM in 10g and navigate to Policy Violations in the Administration page. It basically shows all the potential security issues that you may want to look at.
    For example:
    Oracle by default grants execute to UTL_FILE to PUBLIC, Open Ports, Securing the Listener, etc. You will also find that Oracle recommends you strong password the well-known users, and lock and expires these user account if you are not using them as some of these users have DBA privileges. The advantage to this is that no one has access to these account directly until you unlock the user, yet you have access to the packages that are created in these accounts that have been granted access to.
    I also found that all users can see all other users - that is:
    SELECT * FROM ALL_USERS
    Because ALL_USERS is a public synonym and SELECT is granted to public on this synonym. This is the reason why you want to enforce strong passwords. This can be done by creating profiles and writing a function that will enforce passwords, or use the standard password function supplied by Oracle (utlpwdmg.sql).
    I am sure my comments didn't answer your question fully.

  • New role with workbooks not visible

    Dear all,
    I have something strange. I created a role and I saved workbooks in it.
    When I create a new workbook and save, I can see this role and I can save the workbook in my role (this role is assigned to me).
    However, when I reopen the workbook, I go to the Role tab but I have nothing: no role and thus no workbook.
    Do you have any idea?
    Regards
    Eric

    Hi Ric,
    I know that behavior from my own experience. Up to now I just came up with a workaround solution. When you want to open the saved workbook, you can go to "Search" tab where you can search for the workbook description. This search seems to be case sensitive, so be careful with that.
    If someone else found another solution I am interested in that, too.
    Best regards
    Volker

  • Save workbook in a role

    I have created a role "A" that permite save workbook. I have included the authorization objects:
    S_BDS_DS
    Activity *
    Rolename *
    Class type OT
    S_USR_TCS
    Transaction code: RRMX
    S_GUI
    Activity 60
    S_USER_AGR
      Activity *
      Name of function *
    But when I try save new workbook only role "A" appears. I´d like save workbook in another role... for example "B". It´s possible?
    Regards
    Daniel

    Hi,
    The roles are avialable to assign the workbooks or queries to it if and only if it has atleast a worrkbook/Query has been assigned to it already. So I hope, you role B does not has any workbook or query assigned to it. So by PFCG assign a junk workbook to it. And once you complete this assignment in PFCG then you can see Role B in the SAVE option.Once you comlete the saving required work book to it remove the junk workbook by PFCG.
    With rgds,
    Anil Kumar Sharma .P

  • Export / save many workbooks at once on local disk

    Hello Experts,
    we are working with BI 3.5 . My client wishes to save many workbooks of one role at once on his local disk.
    He doesn't want to open every single workbook in the BExAnalyzer and save it on the local disk.
    Is there a report or a transaction or something else to save many workbooks at once?
    Thanks for your help.
    Regards
    Frederike

    Hi,
    There is no other way, you have to save it one by one manually.
    Regards,
    Kams

  • Word with VBA on iPad

    Hi
    we need to open, edit and save or email a Word document with VBA - we can do this through Citrix, but it is possible with an app directly on the iPad?
    I have tried Pages and Quickoffice. I Can open and edit, but the VBA is not working.

    Does anyone know if Pages for iPad will support Cyrillic font, including Ukrainian characters. Most Ukrainian letters are common to Russian, but 2 or 3 are not.
    Pages certainly supports Cyrillic, since Russian is listed as one of the languages in the iPad tech specs. I have not tested the extra Ukrainian letters (Ґ ґ Є є Ї ї), but I would expect them to be supported by Pages, Mail, Safari, etc. Since there is no keyboard yet, you would have to input them by copy/paste from a document or an app like Unicode Table.
    How soon a Ukrainian keyboard will appear in the app store is not possible to predict. The ones which are already there, e.g. Arabic, Hebrew, Thai, are much harder to make than Ukrainian.

  • Validating Input fields in Interactive Adobe Forms with Webdynpro ABAP

    Dear Friends,
    Am new to Interactive Adobe forms with Webdynpro Abap,
    My scenario is, I have few Input fields, i need to handle the Messages when am not entering values in any of the Input Field,
    and raise the message when i click on Save Button.
    I have tried with setting the field as Required in Form itself, but i can't set the Field as Mandatory.
    I don't know how to do, Please give some needed points, as well needed some Script/Formcalc code.
    Thanks,
    Pradeep.

    Hi Pradeep,
    You can validate the fields by using javascript/formcalc logic in onclick event of button.
    Please refer the below links
    Adobe Form -How to make an Input Field Mandatory
    Validate Intercive Adobe Form
    Hope it helps you.
    Regards,
    Rama

  • Authority experts:: Problems with storing workbooks into the role menue

    Hello,
    during upgrade from BW 3.5 to BW 7.0 we got the problem, that workbooks cannot be stored into the role menue.
    Trace ST01 and RSECADMIN hasn't send any authority warnings.
    The workbooks are stored in the role menu (PCFG). We cann't find them by searching with the
    query designer.
    This are the entries we made in the roles:
    S_USER_AGR:
    ACTVT = *,
    ACT_GROUP = Menu-Role
    S_USER_TCD:
    TCD = RRMX
    (We took notice of the new analysis authoritation )
    Thanks in advance.
    Greetings
    Peggy Nosek

    goto the particular role in PFCG and check whether you are able to see the workbook. You can see the workbook in query designer. Open BEx analyzer and use the open workbook option to search for workbooks. The search is case sensitive. If you do not see any roles assigned through BEx anayzser, run a trace in RSECADMIN with your user id.

  • Bex Excel VBA Save Workbook as New Workbook

    Hi All,
    I'm trying to write VBA to save a workbook back to the SAP server with a new name.  Basically the code will have to emulate the "save as new workbook" button on the on the bex toolbar except we would already have the new name defined.  I know there is a vba function sapbexsaveworkbook but I don't believe it can accomplish what I want to do.
    Any help would be greatly appreciated.
    Thanks,
    Jon

    Jon,
    The BEx API Function you are referring to would be called with the following line of code:
    Run "SAPBEX.XLA!saveNewWorkbook"
    I think it will do exactly what you describe that you want.  Try it, and if it does not do exactly what you want, please explain.
    - Pete

  • Copy and open i new workbook - vba

    Hi All
    I have the excel workbook "CENEO Quickview v.05.xlsm" with dozens of worksheets in it.
    What I need is vba to :
    1) Copy all Worksheets to new workbook with name: "CENEO Quickview 2015.02.15.xls"
    Where 2015.02.15 is current date. I do not want to save it as a new workbook but only
    open as a new workbook with the above name and with freezed formulas. After that:
    2) Close the original file without saving "CENEO Quickview v.05.xlsm". Please note that the orignial file name could change in the future to for example: "CENEO Quickview v.022.xlsm".
    Thanks for any suggestions

    Re: "...this code must be placed in original file "CENEO Quickview 2015.02.15.xls"
    In your initial post the original file was "CENEO Quickview v.05.xlsm" ?
    To copy all the sheets in a workbook to a new workbook the following code can be used.
    Note: that a new workbook has the default name of BookX until the file is saved.
             The new workbook can be made to appear as if it had a name applied by entering text in the window caption.
    Sub CreateNewWorkbook()
     Dim WB As Workbook
     Dim sht As Object
     Set WB = Workbooks.Add
     For Each sht In ThisWorkbook.Sheets
        sht.Copy after:=WB.Sheets(WB.Sheets.Count)
     Next
     WB.Windows(1).Caption = ThisWorkbook.Name & Format(Date, "yyddmm") & ".xls"
    End Sub
    To run code when a workbook opens, use the Workbook_Open event  found in the ThisWorkbook module.
    In that module, in the top left dropdown, select "Workbook"
    In the top right dropdown, you can select the appropriate event you need.
    The code would look something like...
    Private Sub Workbook_Open()
     Call CreateNewWorkbook
    End Sub
    Note:  Copying worksheets to a new workbook does not copy any code modules.
    You probably don't want to go there as it can get messy.  Other contributors may offer code to do this, I won't.
    Jim Cone
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Save Workbook in a role in SAP BI

    Hi All,
    I'm facing an issue in SAP BI 7.0 Security . I have created a Workbook role for a user which she is not able to view when she goes to RRMX>Save Workbook>  . The user has all the required authorizations and she can see all the other workbook roles but there is just one role which she can't get in the list when she tries to save workbooks in it.
    She can see the role otheriwse in the tab roles.
    Any help is much appreciated.
    Thanks and Regards
    Manisha Nadir

    Hi,
    If you have no authorizations for update a role, you will not see it when trying to save a workbook(s_user_agr with activity 01,02,06 and the name of the role or * is needed). I made a special role for saving workbooks and also had the name of it in s_user_agr, you will find this when save the workbook in save workbook as and if there is already an other workbook in the role you will also see this in the option add a workbook to a role.
    It is also possible that the workbook is called from history or favorites and if you then will save it you need a role as described before.
    It is advisable to try this out with the trace on in st01. I noticed that depending of queries and workbooks saving, it uses s_rfc, s_cts_admi(tabl), s_rs_tools (themes for workbooks and webpublish is also an option) and the object in previous answers from this thread.
    I noticed that if you start a query from roles, that only the roles with queries are shown, the same for workbooks.
    Have fun
    Bye
    Jan van Roest

  • Migration Issue - Workbook with VBA

    Hello Gurus,
    I have an issue while upgrading the 3.X workbook with VBA to 7.X.The Underlying queries are migarted to 7.X and I migrated the WB and ran it in 7.X. I found out the Macros was not running. When I debugged the VBA macros I found out the Query ID which was getting pased in a function is different(betwen 3.X and 7.X workbook). The WB in 3.X(even query) has Query ID as SAPBEXQ0001 and the query ID in 7.X is something like DP_4.
    In the VBA code which was written in 3.X reference to Query ID is made as SAPBEXQ0001and after migrating the WB to 7.X the underlying query ID is getting getting changed to DP_4 and the VBA macros is not executing(since there is chnage in Query ID).
    I am not sure how could I change the query ID from DP_4 to SAPBEXQ0001, SO the VBA macros will run in 7.X also. I dont want to chnage the VBA macros.
    Plz suggest.
    Regards,
    BR

    Haven't broadcast any wkbks with vba in them, but it should work.  I've even seen posts on SDN that talk about how to add vba code to a workbook so that when Broadcaster generates it, it saves the wkbk to file server.  Broadcaster is goign to launch Excel to geenrate the wkbks and as long as the vba code is setup to run automatically, you should be OK.

Maybe you are looking for

  • Can i get a sepperate icloud for my business?

    Can I get a sepperate I cloud from the one I have registereed on my divice? I want storage for my business that is accessible to people within the business but I dont want to use my own Icloud. Is this possible?

  • Drag and Drop into Photoshop layer without resizing the source image

    Hello, I am using Photoshop CS5, 64bit, in Windows 7. I went through following steps and getting result that I do not want: 1. Open an existing photopshop file. 2. From the explorer window of my folder, select 100 png files and drag into the graphics

  • Phone won't show contact name in recents list

    Phone won't show contact name while somebody call me, the same is in recent list under number is unknown. I already reset my phone and try to make new contact when somebody called me and it isn't work. 

  • MB_DOCUMENT_BADI.

    Hi, Documentation for this BADI says we cannot access global fields defined in class as methods are called at different time,so I am trying to Use EXPORT/IMPORT to pass on internal table to Update Method. I am using this in Before Update Method     s

  • Rounded Corners in SPRY

    Hi there, first Im well aware I can create what im looking for in Photoshop, Flash or Fireworks, however the text looks distorted so here i am to see if I can acive what I am looking for in Spry. You can view my menu bar at the following link http://