Generic approach to call a method for any business object

My requirement is to call the DISPLAY method of a business object when I have the objectType and objectId.
Say I have BUS2012 and Id 4500001111, now I want to call a method which invoke the DISPLAY method for this object with objectId (say ME_DISPLAY_PURCHASE_DOCUMENT for purchase order). I even have the key fields for the business object.
Is it possible ?
Thanks in advance !
Ruhi Hira

Hi Ruhi,
           Yes you can call the method for display.Before we can do that we need to fix the procedure for the calling of the method.If you want to call it programitically or you want to call it in task builder or you want to use it as a activity in the work item.we can check for the BUSXXXXXX what ever number is there and we can also check for the activity type pre defined by SAP for it.If suppose you dont have the activity we can create the method for the BOR object type using SWO1.May be it helps your query.
Have a best day ahead.

Similar Messages

  • How to call the method of a Business Object?

    Hi,
    Can someone guide me how to call the method of a business object?
    For example, I want to use the method SalesDocument.Copy of the Business Object VBAK. How can I do that? If you are familiar with any similar scenario please help.
    Regards,
    Renjith Michael.

    Hi
    double click on the copy  and
    go to abap tab
    there u can get functionmodule name
    u can call that
    Rewards if helpful

  • Any business object for Organisation Unit Create

    is there any business object for Organisation Unit Creation. BUS0018 is available but there it is not defined. basically on saving the Organisation Unit in PP01 Transaction, a workflow should be triggered to send a mail to the Requestor intimating him that the org unit has been created.
    points will be awarded even to the slightest cues.

    Hi,
    Did you check SWEHR2 to see if there are any clues there? I found object PDOTYPE_O there. But it triggers an event for BOR BUS1221. So depending on your needs you could use one of these maybe. The problem is PDOTYPE_O doesn't have any events, so you would need to create a subtype and delegate it. In the subtype you could create your own events which you could call using SWEHR3.
    Regards,
    Martin

  • Calling a method that returns an object Array

    Hello.
    During a JNICALL , I wish to call a method which returns an object array.
    ie my java class has a method of the form
    public MyObject[] getSomeObjects(String aString){
    MyObject[] theObjects=new MyObject[10];
    return theObjects
    Is there an equivalent to (env)->CallObjectMethod(...
    which returns a jobjectArray instead of a jobject, and if not could somebody suggest a way around this.
    Thanks,
    Neil

    I believe an array oj jobjects is also a jobject. You can then cast it to another class.

  • Calling parent method from within child object

    Hello,
    A quick question! Is it possible to call a method in a parent object from within a child object.By child object I mean an object that was instantiated within the parent object.
    Thanks.

    A quick question! Is it possible to call a method in a
    parent object from within a child object.By child
    object I mean an object that was instantiated within
    the parent object.Since you are using ambiguous terminology, it would be much better if you provided a small sample of your code to avoid confusion. I am guessing that you are actually talking about an inner class when you say child class.
    If that is correct, then you can do something like this:
    class Parent {
      void foo() {}
      void bar() {}
      class Child {
        void foo() {}
        void test() {
          bar(); // No conflicts, just call the Parent method
          Parent.this.foo(); // Use explicit qualification to avoid conflicts.

  • Calling methods from the Business Object BUS2032

    Hi all,
    Is it possible to call methods from the Business Object BUS2032.
    If so, how can it be done??
    Regards,

    Hi Marv,
    you sure can. Here is an extract from the SAP Help. I found it at http://help.sap.com/saphelp_46c/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/frameset.htm
    <b>Programmed Method Call</b>
    Call (fictitious) method Print of object type VBAK (sales document). The method receives the parameters Paperformat and Printertype as input.
    * Call method Print of object type VBAK
    * Data declarations
    DATA: VBAK_REF TYPE SWC_OBJECT.
    SWC_CONTAINER CONTAINER.
    * Create object reference to sales document
    SWC_CREATE_OBJECT VBAK_REF 'VBAK' <KeySalesDoc>
    * Fill input parameters
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'Paperformat' 'A4'.
    SWC_SET_ELEMENT CONTAINER 'Printertype' 'Lineprinter'.
    * Call Print method
    SWC_CALL_METHOD VBAK_REF 'Print' CONTAINER.
    * Error handling
    IF SY-SUBRC NE 0.
    ENDIF.
    Cheers
    Graham

  • Clone a method for my custom object.

    Hi!
    We have a method:
    comp.saveFrameToPng(compTime, fileObj);
    I have my custom object block.
    Is it possible to clone "saveFrameToPng" method for my custom object?
    I've tried:
    Function.prototype.clone = function() {
        var that = this;
        var temp = function temporary() { return that.apply(this, arguments); };
        for(var key in this) {
            if (this.hasOwnProperty(key)) {
                temp[key] = this[key];
        return temp;
    And then in my custom object:
    function block (comp)
    this.saveFrame = comp.saveFrameToPng.clone();
    But thin won't work properly
    Help me please if this possible.
    Thank you in advance!

    Hi
    static public long powerTwo(long number)
         long ret = 2;
         if(number == 0)
              return 1;//2 to the power of 0 is 1
         else
                    //use a for loop to loop as many times as specified by number,
                    //times 2 to ret every time it loops
         return ret;//return the answer
    }Hope this helps

  • Service Interface for the Business Objects

    Hello everyone. I'm developing a Web Service using the service interface that provide JDeveloper for their Business Objects. I have a relationship between two EO as described below:
    EntityA 1 ...... * EntityB and it is a composition relation.
    Each ID in the entities are sequencial. There is no problem for create EntityA and EntityB at the same time. My probelm is that if I want to create only EntityB. I can't use the default method provided by the AppModule, neither make a custom method like:
    public boolean createEntityB(EntityBRowImpl mayEntityB){
    //Sample code.
    }because always a new row is created, and as EntiyB is a child of EntiyA, require the father's id and of curse an error ocurr. Also, can't let someone write the ID in the foreing key of the EntiyB.
    How can I solve this please?
    Thanks in advance. Any suggestions are very wellcome.
    PS: I'm using JDeveloper 11.1.1.5

    The error you're hitting is presumably JBO-25030.
    Look to the "merge" command. In the parent you specify just the key of the preexisting parent record, and then in the child you specify your new child record.
    CM.

  • Hi How do we create Methods inside the Business objects of Z

    Hi Abapers,
                        How do we create Methods inside the Business objects (z objects) and how *** an import parameter or export parameter  to be defined for the new Methods.
    Regards
    Bhaskar Rao.M

    Hi Bhaskar,
    that ´s not difficult.
    Open your Bus.Obj. in SWO1 with CHANGE/EDIT
    Click on the "Methods" header line and then use the button for "Create".
    If you want to add the method on basis of a function module, choose next in the next pop up. Then the system will offer you the ex/import parameter from the function module. So this is a really simple way.
    If you don´t have a FM, it is a little bit more difficult.
    Choose No on the quetion about a FM, fill in the next pop up  methode name (no blanks allowed).
    Dialogue is for user related method (call screen...) synchronous for methods which have to give back a result directly in to the workflow.
    After completing the screen the method will be displayed as new method at the end of method list. Now add parameters (first click on the method name, then choose parameter button, same functionality to add program to the method).
    Programm:
    Code snip:
    BEGIN_METHOD ZWFCHECKMIRO CHANGING CONTAINER.
    DATA:
          ZBELNR TYPE RBKP-BELNR,
          ZGJAHR TYPE RBKP-GJAHR,
          RESULT TYPE HRP1001-ISTAT,
          BELNR TYPE BKPF-BELNR,
          GJAHR TYPE BKPF-GJAHR,
          BUKRS TYPE BKPF-BUKRS.
    to import parameter
      SWC_GET_ELEMENT CONTAINER 'Zbelnr' ZBELNR.
      SWC_GET_ELEMENT CONTAINER 'Zgjahr' ZGJAHR.
    *(or SWC_GET_TABLE)
    here add the functionality of your method!
    to export parameter
    SWC_SET_ELEMENT CONTAINER 'Result' RESULT.
      SWC_SET_ELEMENT CONTAINER 'Belnr' BELNR.
    *(or SWC_SET_TABLE)
    !!! Important: naming convention!!! Use same writing of parameter names in
    PARAM area (button PARAMETER) and here in code.
    To use your method, change it to implemented after adding your code.
    -> Edit -> Change release status -> object type component -> into implemented
    (Sorry , have a german screen here, possibly terms are a little bit different.
    Hope this helps a little bit.!
    regards
    Dirk

  • How to delete the index for the business object BUS0033

    Hi to all experts,
    I'm applying note 1349496 the error here is no records with F4 help for the funds center .
    solution from the note
    Implement the attached program corrections. Then, in the transaction, delete the index for the business object BUS0033, reactivate it, and start the indexing in the indexing mode "Full". The system then displays the data correctly in the F4 search help.
    how to do the second part i have already applied the note .

    any help

  • WAS Inst on the NetWeaver 7.2 platform for the Business Objects XI 4.0 SP1

    Hello to all,
    I have tried to install the WAS on the NetWeaver 7.2 platform for the Business Objects XI 4.0 SP1.
    Ok, more preciselly. I have tried to install SP1 for the Business Objects Enterprise XI 4.0. We have had a distributed installation. An application is under the Windows 2k8 R2 platform and the web server (WAS) is under the Unix, where runs the SAP NewWeaver 7.2 CE.
    Installation of the SP1 on the application side has ran just fine. Installation of SP1 under Unix went fine as well till I tried to undeploy the previouse one WAS. At first it could not start, it could not find the java, even the wdeployGUI.sh should use its own java, while it happens. I have edited a profile of the appropriate user for using this "own" java. The same I had to do for the pearl. It ran, but It took a very long time - more than two hours. (We have experience from the base installation, that it supposed to be very quick.) So, I have killed three apropriate processes and wav, undeploying ended successfully.
    Next, I started to deploy a new WAS. But it has been broken several times with the information (from the <INSTALL PATH>/sap_bobj/enterprise_xi40/wdeploy/logs/wdeploy.log), It could not reach the server with the error message: "Error occurred during the action  deployall", "$". I am sure, the acess datas are correct.
    Any ideas?
    I thing there is some problem with the java and pearl settings. But I can not find relevant webappdeploy_unix document for the SP1, so I do not know, why the deploying could not start automatically as in the case of the base (non SP) installation.

    Hi Randy,
    Universe is an important part of the Semantic Layer, whether it is version 3.x or version 4.x of SAP BusinessObjects. In version 4.0 (officially known as BI 4.0), you will be using the new Information Design Tool to build universe. It is highly recommended for all of your presentation tools (i.e. WebI, Crystal, Xcelsius/Dashboard, etc) to go through the new Information Design Tool for data (including BW data).
    The BI 4.0 Virtual Launch is scheduled on Feb 23. I suggest you to sign up at http://virtualevents.sap.com/business-analytics/login.aspx.
    By the way, the SAP BusinessObjects does not have a version 3.2. The most current one is version 3.1. You might be confused with the FixPack which is now up to 3.4.
    Hope this helps.

  • How to restrict permissions for individual business object fields?

    I know that ACE can restrict permissions (read/write/delete) for entire business objects (Business Partner, Opportunity, Activity...).
    Is it possible to assign security permissions (read/write) to individual attributes of business objects? For example, I want that some users could not view phone number for Business Partner.

    We had similar requirement for transaction but that was more to do edit or non-edit authorization at field level, but i feel this will work for your scenario too.
    First there is no standard tool available to do this, so, you'll have to create your own authorization objects in transaction SU21 (Basis will be able to do that) lets say ZAUTHOBJ, and then assign permitted activities for this object i.e. create/generate, change, display. Then you this authorization object in UI coding to check the permission level and give access at field level. Don't forget to assign this object to your PFCG role.
    I'm not technical so can't tell you where to put the code on UI (may be some prepare output method), your tech team will be able to help you.
    Also, its good idea to have seperate auth object for each field you want to restrict because of scalability in future.
    Hope this gives you some idea...
    Regards,
    Vikas

  • How to find the WhereUsed List for a Business Object Event?

    How to find the WhereUsed List for a Business Object Event?

    Can anybody let me know how to get which
    Whereused  function will get the data from
    different Werks in multi-level?
    Any sample program please!!!

  • BW support level for Installing business object ?

    Appreciate if any body can tell me minimum BW support patch level required for Installing business object ?

    Hi,
    with respect to some fixes and performance i would recommend the following as minimum.
    BW: SAP BW7 with EhP1 and SP5
    BO: SAP BO XI 3.1 SP2
    Regards
    -Seb.

  • Technical infrastructure required for SAP Business Objects

    Hello,
    I want to know where I can find information regarding to the technical infrastructure required for the product SAP BusinessObjects.
    Thanks in advance for your valuable information.

    Hi,
    this should get you started
    Ingo
    BusinessObjects and SAP - Overview
    /people/ingo.hilgefort/blog/2008/02/07/businessobjects-and-sap-part-i
    Crystal Reports and BI Queries
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Crystal Reports and BI Hierarchies
    /people/ingo.hilgefort/blog/2008/02/27/businessobjects-and-sap-part-3
    Crystal Reports and SAP R/3
    /people/ingo.hilgefort/blog/2008/03/23/businessobjects-and-sap-part-4
    Web Intelligence and SAP BI
    /people/ingo.hilgefort/blog/2008/03/24/businessobjects-and-sap-part-5
    Web Intelligence - Delegated Search and Delegated Measures
    /people/ingo.hilgefort/blog/2008/08/27/businessobjects-and-sap-part-6--web-intelligence-and-sap-bi
    OLAP Universe Change Management
    /people/ingo.hilgefort/blog/2008/08/29/businessobjects-and-sap-part-7--olap-universe-change-management
    Xcelsius Overview
    /people/ingo.hilgefort/blog/2008/09/02/teched-las-vegas--are-you-up-for-the-business-objects-community-xcelsius-challenge
    Xcelsius, Crystal Reports and Live Office
    /people/ingo.hilgefort/blog/2008/09/03/businessobjects-and-sap-part-9--xcelsius-with-crystal-reports-and-live-office
    Xcelsius, Universes and Query as a Web Service
    /people/ingo.hilgefort/blog/2008/09/04/businessobjects-and-sap-part-10--xcelsius-with-universe-and-query-as-a-webservice
    Install Part #1
    /people/ingo.hilgefort/blog/2008/09/17/businessobjects-and-sap--installation-and-configuration-part-1-of-4
    Install Part #2
    /people/ingo.hilgefort/blog/2008/09/17/businessobjects-and-sap--installation-and-configuration-part-2-of-4
    Install Part #3
    /people/ingo.hilgefort/blog/2008/09/17/businessobjects-and-sap--installation-and-configuration-part-3-of-4
    Install Part #4
    /people/ingo.hilgefort/blog/2008/09/17/businessobjects-and-sap--installation-and-configuration-part-4-of-4
    SAP Authentication
    /people/ingo.hilgefort/blog/2008/09/19/businessobjects-and-sap--configure-sap-authentication
    Publishing part 1
    /people/ingo.hilgefort/blog/2008/09/23/businessobjects-and-sap--publishing-of-crystal-reports-part-1-of-3
    Publishing part 2
    /people/ingo.hilgefort/blog/2008/09/24/businessobjects-and-sap--publishing-of-crystal-reports-part-2-of-3
    Publishing part 3
    /people/ingo.hilgefort/blog/2008/09/24/businessobjects-and-sap--publishing-of-crystal-reports-part-3-of-3
    XC, CR and LO Part 1 of 4
    /people/ingo.hilgefort/blog/2008/10/03/businessobjects-and-sap-part-1-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 2 of 4
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-2-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 3 of 4
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-3-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 4 of 4
    /people/ingo.hilgefort/blog/2008/10/10/businessobjects-and-sap-part-4-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    Technical Material
    /people/ingo.hilgefort/blog/2008/11/19/businessobjects-integration-with-sap-netweaver-bi--technical-material

Maybe you are looking for

  • Mac Mini to TV display

    I am trying to play 1920x1080 output from FCE via new MacMini (2.0 GHz, 1GB)to TV set. I am not having much luck. Trying to output several different formats, including AIC, but not much luck. Is anyone doing this? If so, what is your setting - Format

  • How to change the email in the link where we can reset passwords.

    I want to reset my security questions but unfortunately I forgot my password. However, I've been clicking the reset link to email but it's not sending. And I realized the email is not my primary email. Not even my alternative email. So what can I do?

  • Standalone Portal PDK - OmniPortlet Wizard - Where is it?

    So, I have the latest revision of the PDK. It is installed and configured properly. I have even registered it as a provider in the portal. However, I do not see where I can invoke the OmniPortlet Builder or the WebClipping Builder wizards like we hav

  • Apex 2.2: Reorder report columns

    The new reorder report columns under Report Attributes in Apex 2.2 is great, much faster than 2.0 where each column up/down needs a page refresh. Small request: If I have 25 columns in a report region and I want to move the 20th column to the 5th pos

  • Rental movie with no image.

    I just rented "Baby Mama" and when trying to view it, all I get is a blank white screen - no image, no sound. The menus, and sound works just fine to select options, movies, etc. Just when I click to "Play" I get the blank screen. When I click the ">