VBA in BPS layout

Hi all,
I must create a new module in a macro copied from template, for do it I need a microsoft certificate?
Thanks
Gianmarco

Gianmarco,
No, the macro is created for the BPS Excel layout on wich you created it in BPS0.
In case you would like to "mass" implement it, check FM UPP_MODULE_CHECKIN.
Have a look at <a href="url=http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=428092">Note 428092 - Additional function in Manual Planning</a>
Rgds,
Jeoffrey

Similar Messages

  • Calculating Key Figure on Fly in BPS Layout ??

    Hello there,
    Here is my requirement. I need to create a BPS Layout (Read Only) which Displays, Sales Quantity, Cost of Sales and Unit Cost. I have Key Figures for Sales Quantity and Cost of Sales. I want to Calculate Unit Cost on BPS Layout.
    Unit Cost = Cost of Sales / Sales Quantity.
    Can some body tell me ho to calculate Unit Cost on BPS Layout?
    Ps: I don’t have Unit Cost Key Figure because I ma not using it anywhere else, It is just to display in the layout.
    Thanks in Advance.
    Edited by: BPSNEW on Feb 15, 2008 3:49 AM

    Hi,
    In the third screen of your layout, goto Tools -> macro -> SAPAfterDataPut -> Edit.
    This will take you to VB editor where you can write the below macro.
    Dim Data_row As Integer, UnitCost As Integer, CostOfSales As Integer, SalesQty As Integer
    Data_row = 3 (say your data starts from 3rd row.)
    UnitCost = 6 (Unit Cost Column number)
    CostOfSales = 4(CostOfSales Column Number)
    SalesQty = 5 (Sales quantity column number)
    DoWhile IsEmpty(Cells(Data_Row,1).Value) = False
    Cells(data_row,UnitCost).value = Cells(data_row,CostOfSales).Value / Cells(data_row,SalesQty).value
    Data_row = Data_row + 1
    Loop
    After writing this macro, in the excel sheet, you can see one icon which says MS Excel Settings. There tick the VBA macro SAPAfterDatePut so that this macro runs automatically whenever you execute the layout.
    Hope this is clear.
    Regards,
    Bindu

  • Reverse Signs in BPS Layouts

    Dear all,
    I'm looking for a way to reverse the signs in BPS Layout.
    Storage in Cube:
    Costs +
    Revenues -
    Display and input in BPS-Layout
    Costs -
    Revenues +
    That is it should work somehow like the sign reversal in queries.
    I checked the standard function Automatic Sign Assigment
    http://help.sap.com/saphelp_sem40bw/helpdata/en/41/0e28c474eb11d4b2fb0050dadfb23f/frameset.htm
    but this seems to be diffent.
    Any ideas?
    Best regards
    Gregor

    Hi Gregor,
    you want to have a 'static' sign reversal (all values multiplied by -1); this does not exist as a planning layout feature. In BPS sign reversal was designed to display both costs and revenue with +.
    Also in BW queries there exists a 'static' sign reversal as a property of a structure element and in addition one can use master data attrbute lookups (replacement path variables) and formulas to get a master data value specific sign.
    In BPS one can use a planning function to revert the sign before data input and after data input. Depending on the UI you can also use VBA makros to do the sign reversal (Excel-Inplace). In a WebIntefaces you can implement your own exit class; there you can control the data. Maybe the latter solution is not self-explaining.
    Regards,
    Gregor

  • Refresh current SEM-BPS layout

    Hi,
    I have a need to refresh the current SEM-BPS layout after executing a planning sequence.
    How do i do that?
    the problem is,
    A planning sequence reposts current layout data & the data disappers from the layout but the document icons still appear in the layout. (these are just virtual icons meaning it doesn't let me to delete/edit the document. If i click on these icons, nothing happens but the icons just appears)
    I switched the layout (another button in the folder) after executing this planning sequence & again came back to the 1st layout & the icons are gone.
    So, I'm anticipating that refreshing the current layout should solve this problem.
    Appreciate any kind of help.

    Hi,
    I guess the problem lies in the way the Excel macros transmit the data from the BPS sheet to your sheet. The best way to handle the problem is to insert a delete operation in you VBA coding before the new data is transferred to the second sheet. What I mean is in the macro SAPAfterDataPut you first delete all data in the second sheet (including the icons) and then transfer everything to the second sheet.
    You cannot trigger a "restart" of the Excel layout via a planning function. If you are in a layout and trigger a planning function the system notices that the same layout should be shown and thus does not restart the Excel (for performance reasons). If you switch to another layout then the Excel application is stopped and a new Excel is started. There is no way to influence this behavior without doing a system modification.
    Best regards,
    Gerd Schoeffl
    SAPNetWeaver BI RIG EMEA

  • CRM fields not populating in BPS layout for opportunity Planning 0crm_order

    Hello Support,                                                                               
    We are using SAP CRM 5.0 SP09 with BW 7.0 SP 09.                                                                               
    When creating an opportunity in CRM, the product data ( quantity ,
    values) are not appearing in Planning tab( SEM-BPS Layout) .                                                                               
    Kindly let us know what needs to be done to resolve this issue.    
    Thanks and regards,                                                
    Rajiv Jain

    In your CRM system, check your mapping from CRM to BW are correct.
    You can do this in transaction SPRO. Menu path 'SAP Implementation Guide --> Integration with other mySAP components --> SEM --> Change mapping between CRM fields and InfoObjects'. Select planning application 'OPP' and click on 'Mapping table - system entries' on the left.
    In here you should see the mapping from the InfoObject to the CRM field (eg. Infoobject 0CRM_EXPREV uses structure CRM_BW_OPPT_H and field name EXP_REVENUE).
    In order for the value to be passed to planning you must tick the 'Empty' checkbox on.
    Regards,
    Adrian

  • Navigate from WebDynpro Application to BPS Layout and vice versa

    Hi,
    Please see the following Problem Statement:
    We have WebDynpro applications and BPS applications in our project. All the applications are published via SAP Portal. Both areas (WebDynpro and BPS) have same selection screen (Selection fields are common). Is it possible to call
    WebDynpro application from BPS layout (on click of button)and also passing the selection parameters to the WebDynpro application and vice-versa.
    - Sujal Shah

    Hi,
    You can you free tool from Oracle called OMWB (Oracle Migration Workbench) for SQL Server to Oracle.
    For more details, visit http://www.oracle.com/technology//tech/migration/workbench/index.html
    From Oracle to SQL Server, there are third party tools available.
    Cheers,
    Harshw
    Message was edited by:
    [email protected]

  • Variable Range not working in BPS-Layout.

    Hi BI Guru's,
    I am facing Problem in BPS - Layout.
    My requirement is to get YTD Budget Quantity in Single Coulumn. For Example, I need Quantiy for the Period 001.2009 to 12.2009 in single Column as Budget YTD 2009.
    For this I defined a variable on the Planning area, with the characteristics "fiscper" and in the selection condition i entered the range 001.2009 to 012.2009, but when i executed the layout it is showing the quantity for the perios 001.2009 only and not for the entire range.
    I tried with the User Exit also, where i copied the standard function module "UPF_VARIABLE_USER_EXIT"  to 'Z' function and modified to my requirement.
    Following is my Code for the Function Module
    clear eto_charsel.
    data ls_charsel type upc_ys_charsel.
    clear ls_charsel.
      i_area = 'ZUCOPA'.
      I_CHANM = 'FISCPER'.
      i_variable = 'ZACTDYTD1'.
      ls_charsel-chanm = i_chanm.
      ls_charsel-seqno = '1'.
      ls_charsel-sign  = 'I'.
      ls_charsel-opt   = 'BT'.
      ls_charsel-low   =  '2009001'.
      ls_charsel-HIGH   = '2009012'.
      insert ls_charsel into table eto_charsel.
    But the after using the Function Module in the User Exit area of Variable also, I am getting the Quantity for the Period 001.2009 only and not for the entire range ( 001.2009 to 012.2009 ).
    Please suggest some solution ASAP.
    Thanks in advance.
    Regards,
    VD.

    Hi Marc,
    Thanks For your Reply,
    I changed the Layout as suggested by you, where i have now 12 columns for Budget Quantity and a Total column( C1C2....C12).
    I do not want to show this 12 column and instead want to show only the total column, so I hide this columnn's in the change layout but after saving the layout these columns again appear in the layout.
    How do i hide these columns in the layout????
    Thanks
    VD

  • BW authorizations in BPS layout

    Dear all,
    My question may seem basic, but I don't have any experience with authorizations.
    I need to use already existing BW authorizations in my BPS layouts, so well, I created auth. variables on the needed characteristics and assigned it to my layout.
    ==> nothing changes when I'm launching the layout.
    I wonder if I need to ask the modification of the already existing BW roles in order to add field ACTVT? Will this have an impact on already existing BW reports for the users?
    Also, does something need to be done in RSSM (or other T-code) in order to activate the auth. for my planning cubes?
    Thank you in advance for your help!!

    Ravi,
    The objects you mentionned talk about area, planning, etc,... so they are usefull when a user wants to launch a layout in order to let him launch/plan it or not, etc... . That's the first step, and that doesn't interest me.
    Second step is that when launching, the user will get his layout. This layout will be generated regarding the design I made in BPS0 and then also the variables I've used.
    If I've restricted my planning level by using variables of type authorization on an char. that is in the lead column of my planning layout, it should restrict the diplayed/available rows regarding that authorization (ex : only company code 1000 for user A; company code 2000 for user B ; company code 1000 and 2000 for user C ==> coming from reporting authorizations in BW)
    So I really think we don't speak about the same thing... or it's me that doesn't understand! (that's also possible )

  • Printing Document and Comments of a BPS layout

    Do you know how i can take print out of all the comments that i have in a BPS layout. Where does all these comments and documents are stored and how can i retrieve them. If it is same a Documents tab under BW, how can i get those documents for a particular layout, as i do not see the options of a Layout except to go with Queries and Info Cube.
    What is the alternative solution  to achieve this. All my Users want to see the comments of other users and then plan on it..
    Thanks and appreciate your ideas.
    Veeru

    Hi Marc,
    I have a requirement to print the comments entered in the planning layout to be printed in a Bex Web report.
    I implemented your 'How To' paper but I still have to produce a web report to show all the comments from the planning layout.
    I found on the forum about reading the DMS through a FM and writing into a table and uploading into a cube as a charcteristic.
    Are there any better alternatives?
    Thanks,
    Jay

  • Loading data from excel to BPS layout

    Hi,
    I have BPS layouts in place and also excel sheets which are exact replica of those layouts.
    I know 2 options to load excel data into the BPS. These are:
    1) Copy and paste the data from excel to BPS layout.
    2) Create a flat file in line format from excel and then use method explained in document "How to Load a Flat File into BW-BPS Using SAPGUI.pdf".
    Is there any other way I can upload the same?
    Any help in this regard will be highly appreciated.
    thanks in advance.
    regards,
    Pankaj

    Thanks to Vlad, Laurent & Srini for prompt replies.
    But here the user needs to load data directly to the transactional cube.
    So it is a case of "instead of keying in values" on to the BPS planning layout, user wants to upload the data from excel into the BPS layout.
    Planning is done on SAP GUI and not web browser.
    I am able to do the same using the document "How to Load a Flat File into BW-BPS Using SAPGUI".
    But in this case the data needs to be converted into a simple csv file in line item format before it can be uploaded.
    Is there any way, where we can upload from excel file without having it to change to csv format as required in "How to Load a Flat File into BW-BPS Using SAPGUI"?
    thanks in advance.
    regards,
    Pankaj

  • Change Data in BPS Layout: Exit Function

    Hello everyone,
    We are using BW-BPS and we need to make a sort of a certain characteristic in a Planning Folder. In the specific Planning Folder it was defined an exit function and it was assigned a function module.
    We implement the following code:
    FUNCTION Z_ORDENAR_CLASSIFICACAO_PLANO.
    ""Interface local:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
      DATA:
        lr_area TYPE REF TO cl_sem_planarea_attributes,
        wa_hash_table type ref to data,
        l_sortfield type STRING,
        lr_t_data TYPE REF TO data.
      FIELD-SYMBOLS:
        <lt_data> TYPE STANDARD TABLE,
        <ht_head> TYPE ANY TABLE,
        <xth_data> TYPE HASHED TABLE,
        <ls_data> TYPE ANY,
        <wa_data> TYPE ANY,
        <fundo> TYPE ANY,
        <eco> TYPE ANY.
      CALL METHOD cl_sem_planarea_attributes=>get_instance
        EXPORTING
          i_area = i_area
        RECEIVING
          er_instance = lr_area.
      CREATE DATA wa_hash_table LIKE LINE OF xth_data.
      ASSIGN wa_hash_table->* TO <ht_head>.
      <ht_head> = xth_data.
      LOOP AT <ht_head> ASSIGNING <ls_data>.
    This is the characteristic that we pretend to sort
        l_sortfield = 'S_CHAS-0CMMT_ITEM'.
        SORT <ht_head>
          BY (l_sortfield) DESCENDING.
      ENDLOOP.
      <xth_data> = <ht_head>.
      UNASSIGN: <ls_data>, <ht_head>.
    ENDFUNCTION.
    When execute this function, we get a DUMP (ASSIGN_TYPE_CONFLICT). Does anybody have any suggestion how to change a hash table or somehow make a sort in this hash table?
    Thanks in advance.
    Ilda

    Hi,
    After some changes in the code, it seems that xth_data table is assuming the “new content”. In debugging, we could see that the assignment was made and xth_data records are now in a different order. But when executing the BPS Layout assigned to this planning function, all the lines (records) still in the same place. The Layout doesn’t change.
    This is the code:
    FUNCTION Z_ORDENAR_CLASSIFICACAO_PLANO.
    ""Interface local:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
      DATA:
      lr_area TYPE REF TO cl_sem_planarea_attributes,
      l_sortfield type STRING,
      data_ref TYPE REF TO data,
      lr_t_data TYPE REF TO data.
      FIELD-SYMBOLS:
      <lt_data> TYPE ANY TABLE,
      <ls_data> TYPE ANY,
      <ls_data_copy> TYPE ANY.
      CALL METHOD cl_sem_planarea_attributes=>get_instance
        EXPORTING
          i_area      = i_area
        RECEIVING
          er_instance = lr_area.
      CREATE DATA lr_t_data TYPE (lr_area->typename_t_data).
      ASSIGN lr_t_data->* TO <lt_data>.
      <lt_data> = xth_data.
      CLEAR xth_data.
      l_sortfield = 'S_CHAS-0CMMT_ITEM'.
      SORT <lt_data> BY (l_sortfield) DESCENDING.
      MOVE <lt_data> TO xth_data.
    ENDFUNCTION.
    Does anybody understand this behavior, why the changes in the user-exit are not assumed in the BPS Layout?
    Thanks,
    Ilda

  • Data columns in BPS layout

    Hi,
      My current BPS layout has three columns, they are cost,price and margin respectively. The user now ask to add another column call "alert" after the margin column.
    The logic is that if the margin is less than 10%, then the alert column should marked with "X", otherwise leave it blank.
      In order to add a column after margin column, the added column have to be key figure which will not allowed characteristics,while all the other key figure type such as amount, quantity, date ect will not take
    "X".
      Any idea or suggestion.

    JW,
    If Margin is the last column on your layout, what you do is in the last layout definition screen, add the locl excel formula to the column after where the margin would appear.  Then you just use simple excel formula to do it.
    For things to appear only if there is data in the row, I typically use an IF in the excel formula and check for values in cost, price, margin.  Actually it would be 2 nested IFs.  One to check for value and the other to determine the 10% and mark it with a X...  In purely excel formula, there is no distinction between key figures and characteristics since it is only Excel.
    Hope this helps.

  • Check user manual input in excel BPS layouts

    I have some problems for manual input characteristics checks on an excel bps layout.
    I need to assign the value of an header characteristic to a detaild characteristic. How can I do ? I have already tried with characteristic rels. (exit, attributes, etc.) but without results.
    Thanks in advance.

    Hi Mario,
    I am quite sure, that if a char is in an P.Level, and there is a char relationship for it, the char relationship will not be called (somebody correct me if am wrong).
    So, in your case, you want to derive SALES ORG from Company code using char rel. The sales org is in the p.level, since it is in your layout. Threfore the char rel will be not called.
    If you want to have it works, do not select sales org in your level. I assume that you filter your comp code in level with a bps variable. Get this variable value (using API_SEMBPS_VARIABLE_GETDETAIL function) and assign it to char SAles org in your char rel exit. Everytimes when you save your plan data, the char rel exit will be call and sales org will be derived.
    If you want to show and derive the sales org in your layout based on selected company code, create a bps variable type exit for it, and read and derive the value from comp code variable.
    Best Regards,
    Suan Liono

  • Is it possible  Hide a column in BPS layout "WEB" ?

    Hi,
    Is it possible to hide a column in a "WEB" BPS layout  ?
    Have you an example to hide a column in web thanks to Java and where insert it ?

    Alessandro,
    I create in BPS0 all the customizing I need (functions, layout...). After that, I create a web interface with these components (variables, functions, layout).
    That 's why I wonder what could be the java code to hide a column in web interface.
    regards

  • Hide a column in BPS layout ?

    Hi,
    Is it possible to hide a column in a BPS layout (Web Excel) ?
    When I hide a column in the layout definition, saving it resets the hidden column.
    Any idea if it will be included in a future release ?
    Thanks

    Alessandro,
    I create in BPS0 all the customizing I need (functions, layout...). After that, I create a web interface with these components (variables, functions, layout).
    That 's why I wonder what could be the java code to hide a column in web interface.
    regards

Maybe you are looking for

  • JDK1.5.0_12 crash when I try to startup a tomcat app server with it.

    Hi, I am support a Blackboard application running on a PrimePower box. Recently I installed JDK1.5.0_12 on the box. When I re-configured Blackboard to use the new JDK and tried to restart the server, the tomcat portion will keep getting the JVM Hotsp

  • Office Web Apps farm - how to make it high available

    Hi there, I have deployed OWAs for Lync 2013 with two servers in one farm. When I was testing, e.g. the case when other server is down I found out the following error: Log Name:      Microsoft Office Web Apps Source:        Office Web Apps Date:     

  • Sound on the 4s as Opposed to the 4

    Is anyone noticing a HUGE volume diff. in the 4s, as opposed to the 4? When I had my 4, I would place her on speaker and she was SO LOUD, crisp and clear...Everyone could hear me just fine and boy could I hear them....Than stupid me takes her back, b

  • 'Easy Set-up' Option - Problem with edit canvas/windows - really need help!

    Hello Everyone. . . Have a problem that i really need help with, i have tried so many different things to sort this - but with no sucess. I usually work in High Definition and i have recently done a small project for someone in DV. When changing to w

  • ADF Forms Issue

    Hi All, I am fairly new to JDeveloper so please bear with me. Based on the ADF Tutorial for Forms/4GL developers I have developed a simple ADF form that edits data on a database table. The table is built from a data control, has bound managed session