How to call standard SAP method in the Custom Program ?

Hi,
i need to call sap standard method 'OpenItemRollinout' in my custom program. For the SAP Standard method 'OpenItemRollinoun' the BOR(Business Object) is 'PAYSCHEME'. So how to call the SAP standard method in the custom program ???

Hi,
In the method that you have provided only one function module is being used so better use the FM and copy the remaining code based on ur requirement.
FM is ISU_S_PAYSCHEME_ROLLIN_ROLLOUT.
Regards,
Vijay.

Similar Messages

  • How to call a bean method in the faces-config file?

    Hi,
    I would like in my menu to call the method of a bean (it initialize some properties before opening the page) instead of opening directly the page, by I can't find how to do that.
    I tried :
    <managed-property>
    <property-name>viewId</property-name>
    <value>#{listInformationsController.listInformations}</value>
    </managed-property>
    And :
    <managed-property>
    <property-name>outcome</property-name>
    <value>#{listInformationsController.listInformations}</value>
    </managed-property>
    With no success...
    Can someone help me?
    Thank you and merry christmas !

    Hi,
    a managed property only gives you a anlde to a bean or property, it doesn't execute it. To execute a bean, you can use a custom JSF PhaseListener that calls a bean method. The reference to the bean is achieve through value binding
    ValueBinding vb = FacesContect.getCurrentInstance().getApplication().createValueBinding("Name of Managed Bean);
    TypeOfBean theBean =(TypeOfBean) vb.getValue(FacesContext.getCurrentInstance());
    .... theBean.theMethod() ...
    Frank

  • How to update standard table based on the custom table

    Hi,
    I have requirement , I have custom table whatever changes done to the custom table must be updated in the standard table
    i have tried the table maintenance events but unable to handle delimit , what is the base solution for this.
    1) create
    2) change
    3) delimit
    4) delete
    6)copy

    the table im updating is t710
    the custom table is same as the standard table except for one field . whatever the user maintains the values in custom table except for the one field everything should update back to the standard table. Im able to update when we create delele but the problem is delimition. when im delimiting the record in custom table its just changing the startdate and it is not actually delimiting the record itself .I want both records the latest one and previous one and should be update back into the standard table same as the custom table

  • How to call  a javascript method after the PPR event has finished  ?

    Hi!
    How can we make a javascript method get called after the processing of ADF PPR event?
    My specific use case is,
    I want to call a javascript function after the data in the table is loaded...
    In 10g, that is not a problem, as the data used to get loaded directly during onLoad, and so i would call my js function on load;
    but in 11g , the table data is being loaded through PPR which is initiated onload, and so i needed to call my function after the PPR Response processing has been done; for which I need the name of the event triggered at that instance.
    Is it possible to do this?
    Regards,
    Samba

    Hey, I got it.
    I handled the ADF Controller's PREPARE_RENDER_ID phase of the lifecycle, and then called the
    script to get Executed.
    The code :
        public void afterPhase(PagePhaseEvent pagePhaseEvent) {
            FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)pagePhaseEvent.getLifecycleContext();
                 if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
                    if(AdfFacesContext.getCurrentInstance().isPostback() )
                        afterRender();
        }is written in lifecycle listener , and my backing bean extended this listener ,
    and in the afterRender() method I did this :
       public void  afterRender(){
                System.out.println("AFTER RENDER CALLED");
               FacesContext context = FacesContext.getCurrentInstance();
               ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(context, ExtendedRenderKitService.class);
               service.addScript(context, "translate();");
           }That's it.
    It did work, magnificently.
    Thanks for the idea.
    Regards,
    Samba

  • How to Call Standard PO Form in my Z program

    Hi All,
    Could you please tell me, How to Call the Standard PO form in my Z program for print priview and printing.
    My requirement is :
    Create Z program with PO Number as Selection screen.When we give the PO Number and Press execute it will show the print priview with printer option.
    Thanks & Regards
    Murali

    Plz refer this.
    REPORT  ZPPR_BOM1.
    TABLES
    TABLES : MAST.  " Material to BOM Link
    *& Internal tables         Begin with it_
    DATA : IT_MAST TYPE MAST OCCURS 0  WITH HEADER LINE.
    DATA: fm_name TYPE rs38l_fnam.
    CLEAR   : IT_MAST.
    REFRESH : IT_MAST.
    *& Parameters       Begin with pr_
    *& Select-options   Begin with so_
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  PR_MATNR LIKE MAST-MATNR OBLIGATORY,
                 PR_WERKS LIKE MAST-WERKS OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
      SELECT * FROM MAST  INTO TABLE IT_MAST   " Get BOM number
        WHERE MATNR = PR_MATNR
          AND WERKS = PR_WERKS.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZPPS_BOM1'
        IMPORTING
          fm_name  = fm_name.
    CALL FUNCTION fm_name "'/1BCDWB/SF00000079'
    EXPORTING
       ARCHIVE_INDEX              =
       ARCHIVE_INDEX_TAB          =
       ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         =
       MAIL_APPL_OBJ              =
       MAIL_RECIPIENT             =
       MAIL_SENDER                =
       OUTPUT_OPTIONS             =
       USER_SETTINGS              = 'X'
    IMPORTING
       DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            =
       JOB_OUTPUT_OPTIONS         =
       TABLES
         IT_MAST                    = it_mast
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to invoke updateDisplayList method in the custom layout?

    I've a group of buttons that get placed in a SkinnableDataContainer with the help of a custom layout class as follows:
    <s:SkinnableDataContainer id="buttonsContainer"
        dataProvider="{appModel.myButtons}"
        width="{DIAPLAY_WIDTH}" height="{BUTTON_HEIGHT+4}"
        skinClass="view.skins.ContainerSkin"
        itemRenderer="view.renderer.MyButtonRenderer"
        click="startPointAreaClickHandler(event)"
        mouseMove="areaMouseMoveHandler(event)"
        mouseUp="areaMouseUpHandler(event)"
        rollOut="areaMouseOutHandler(event)"
        >
        <s:layout>
            <layout:ButtonsLayout />
        </s:layout>
    </s:SkinnableDataContainer>
    myButtons is an ArrayCollection of VOs and VO has x and y coordinates as fields. Values of x and y determine the location of the button. When I add an object to myButtons, the application behaves as expected (adds a button in buttonsContainer at specified x and y coordinate). But when I just change values of x and y of an existing button, the buttons don't get repositioned. I have tried calling invalidateDisplayList on buttonsContainer but that doesn't trigger updateDisplayList method in the custom layout ButtonsLayout.
    How do I trigger updateDisplayList method in the custom layout so that the button positions get updated whenever an event changes values of x and y of a button?

    Hi Balus,
    This is helpful but one problem i faced with this is, when i overided the custom message in the property file,
    javax.faces.component.UIInput.REQUIRED =Value is required
    but for every UIInput component the same message is coming, but if i am having more than one component on the page forexample: UserName , Email, Password etc...
    i need to display messages like
    Value is reuired for UserName
    Value is reuired for Password
    Value is reuired for Email
    How this is possible , can u please help me.
    Thank You,
    Subrahmanyam Baratam.

  • How to access a table of SAP standard SAP method from external program

    Hi Friends,
    I have to access a table and modified it defined in a standard SAP method (PROCESS_INPUT_FILTER) of class (CL_HANDLE_MM).
    As we normaly do it in case of Standard program
    for example: ('(SAPLMEPO)ett[]') here we are accessing internal table ett defined in SAPLMEPO.
    so how we can do the same thing if some thing defined in standard SAP method.
    Pl. help.

    Thanks for the info guys, it will come in handy.
    I need to validate that a number is entered with zero or one decimal place, then make sure it is evenly
    divisible by .5 in order to test for whole or half numbers only. If not, I use an alert to
    display a message when the user leaves the field.
    If there is a better way to achieve this, I am all ears!
    Thank you for your time,
    Gary

  • How to handle exception thrown in standard bo method in the workflow design

    Hi Experts
        how to handle exception thrown from standard bo method in the workflow design. For example, bo BUS2032, METHOD confirm. If the user cancel it, it will throw exception. In the workflow, how to catch this exception and add corresponding steps in the workflow.

    @jrockman li
    Try to implement the logic that what ever you are performing in the BO mehtod in a FM and in the FM you have tab with name EXECPTIONS define the execption in that tab.Now in the BO method you call this FM  and if the exception occurs by using RAISE you can raise the exception in the FM and based on the number of exceptions your sy-subrc value will be set
    so when sys-subrc is not eq 0 then pass a value back t the workflow container., I think this will work.
    a sample Snippet for understanding purpose
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename         = <path>
        filetype         = 'ASC'
      IMPORTING
        filelength       = lv_len
      TABLES
        data_tab         = l_txt_tab
      EXCEPTIONS
        file_write_error = 1          " If this Exception occurs
        invalid_type     = 2
        no_authority     = 3
        unknown_error    = 4
        OTHERS           = 10.
    CASE sy-subrc.
      WHEN 1. " SY-SUBRC value will be 1 then,
          " Pass or set the value back to the workflow conatiner element
    ENDCASE.

  • How to perform system copy using standard sap method (sapinst)

    Hi guys
    pls tel how to perform system copy using standard sap method (sapinst) and to perform enterprise portal RESTORSTION.
    thanks
    kamal

    Hi Kamal,
    I have done a system copy of the production portal to a sandpit system before. The system copy export import method works very well, and is easy. For my portal, the whole procedure took me less than 6 hours.
    1. Go to this page: System Copy and Migration
    2. See the videos "Demo: How to Perform a System Copy Export" and "Demo: How to Perform a System Copy Import".
    This should give you the basic idea.
    I did a systemcopy using sapinst. If I remember right, this is the steps I performed:
    1. On target host, Installed a new Central services.
    2. On source host: Ran sapinst system copy export for Central Instance and Database instance. This created two export files (depending on your database size).
    3. Used the export files created in previous step to run the import step in target host.
    4. Some post processing steps, like configuring sso, creating systems in system landscapes, configuring WD JCos etc.
    Let me know if you need more help.
    Cheers
    Rishi

  • How to call a static method in a class if I have just the object?

    Hello. I have an abstract class A where I have a static method blah(). I have 2 classes that extend class A called B and C. In both classes I override method blah(). I have an array with objects of type B and C.
    For every instance object of the array, I'm trying to call the static method in the corresponding class. For objects of type B I want to call blah() method in B class and for objects of type C I want to call blah() method in C class. I know it's possible to call a static method with the name of the object, too, but for some reason (?) it calls blah() method in class A if I try this.
    So my question is: how do I code this? I guess I need to cast to the class name and then call the method with the class name, but I couldn't do it. I tried to use getClass() method to get the class name and it works, but I didn't know what to do from here...
    So any help would be appreciated. Thank you.

    As somebody already said, to get the behavior you
    want, make the methods non-static.You all asked me why I need that method to be
    static... I'm not surprised to hear this question
    because I asked all my friends before posting here,
    and all of them asked me this... It's because some
    complicated reasons, I doubt it.
    the application I'm writing is
    quite big...Irrelevant.
    Umm... So what you're saying is there is no way to do
    this with that method being static? The behavior you describe cannot be obtained with only static methods in Java. You'd have to explicitly determine the class and then explicitly call the correct class' method.

  • How to Call Event Handler Method in Another view

    Hi Experts,
                       Can anybody tell me how to call Event handler Method which is declared in View A ,it Should be Called in
      view B,Thanks in Advance.
    Thanks & Regards
    Santhosh

    hi,
    1)    You can make the method EH_ONSELECT as public and static and call this method in viewGS_CM/ADDDOC  using syntax
        impl class name of view GS_CM/DOCTREE=>EH_ONSELECT "method name.
                 or
    2)The view GS_CM/ADDDOC which contains EH_ONSELECT method has been already enhanced, so I can't execute such kind of operation one more time.
                         or
    3)If both views or viewarea containing that view are under same window , then you can get the instance ofGS_CM/DOCTREE from view GS_CM/ADDDOC  through the main window controller.
    lr_window = me->view_manager->get_window_controller( ).
        lv_viewname = 'GS_CM/DOCTREE '.
      lr_viewctrl ?=  lr_window ->get_subcontroller_by_viewname( lv_viewname ).
    Now you can access the method of view GS_CM/DOCTREE .
    Let me know in case you face any issues.
    Message was edited by: Laure Cetin
    Please do not ask for points, this is against the Rules of Engagement: http://scn.sap.com/docs/DOC-18590

  • How to call standard report with in zprogram?

    Hi Sap experts,
    How to call standard report with in zprogram.
    For example if country is 'US' then call Zprogram(zprog_US).Inside zprogram call standard report(rhecm_change_proc_status).If country is 'CA' then call zprogram.Inside zprogram call standard report.For same othercountres like 'PR','GB','ES'.Actually HR_ECM_READ_FEATURE_CARGP will having the input as employee id and will return the CAREA(County like 'US','PR'......).Kindly help me what is the procedure?
    Regards,
    Sujan

    >
    sujan T wrote:
    > Thanks for your reply.
    >
    >    What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
    >
    > Regards,
    > Sujan
    no special logic is required
    If u want to use
    RPUAUDOO IN THE ZREPORT.
    Put the submit button where ever required
    ex: In zreport after certain process reacedu want to call then use
    submit rpuaudoo and return.
    Regards
    Sas

  • How to call BOR object- method in custom program

    hi all,
    I have the following details:
    BOR object : INSTLN
    Method: createdirect
    I need to call the above method in my custom program.
    I need to call it entirely. Means if it contains fn modules I dont want to call those fn modules seperately.

    Hi Sammy,
    Phil Soady from SAP Australia provided me with this little gem a few years back. The actual documentation for this can be found somewhere in the workflow programming area, but I just looked and couldn't find it for you. Anyway, this is a sample program I built to show how to do this. In this example I call the Display method of the Sales Document BO.
    INCLUDE <cntn02>.
    INCLUDE <cntn03>.
    FUNCTION zcallbomethod.
    *"*"Local interface:
    * Data declaration
      DATA: vbak_ref TYPE swc_object.
    * Declare and initialise container
      swc_container container.
      swc_create_container container.
    * Create object reference to sales document
      swc_create_object vbak_ref 'VBAK' '0000000009'. "Sales Document Number
    * Call Display
      swc_call_method vbak_ref 'Display' container.
    * Error handling
      IF sy-subrc NE 0.
      ENDIF.
    ENDFUNCTION.
    Cheers
    Graham Robbo

  • How to call a bean method from javascript event

    Hi,
    I could not find material on how to call a bean method from javascript, any help would be appreciated.
    Ralph

    Hi,
    Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an external bean, from the javascript events (mouseover, on click, etc...) of a ui jsf component. I.e., I would like to take an action when a user clicks in a column in a datatable.
    Cheers,
    Ralph

  • How to call a AM method with parameters from Managed Bean?

    Hi Everyone,
    I have a situation where I need to call AM method (setDefaultSubInv) from Managed bean, under Value change Listner method. Here is what I am doing, I have added AM method on to the page bindings, then in bean calling this
    Class[] paramTypes = { };
    Object[] params = { } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    This works and able to call this method if there are no parameters. Say I have to pass a parameter to AM method setDefaultSubInv(String a), i tried calling this from the bean but throws an error
    String aVal = "test";
    Class[] paramTypes = {String.class };
    Object[] params = {aVal } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    I am not sure this is the right way to call the method with parameters. Can anyone tell how to call a AM method with parameters from Manage bean
    Thanks,
    San.

    Simply do the following
    1- Make your Method in Client Interface.
    2- Add it to Page Def.
    3- Customize your Script Like the below one to Achieve your goal.
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
    operationBinding.getParamsMap().put("username", "oracle");
    operationBinding.getParamsMap().put("role", "F1211");
    operationBinding.getParamsMap().put("Connection", "JDBC");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    i hope it help you
    thanks

Maybe you are looking for

  • Multiple SAProuters in line to OSS

    Hi all, I have an interesting situation that might work but at the moment doesn't... The connection from the SAP-system to OSS is as follows: 1. SAPserver --> unencrypted to 2. Local SAProuter --> with password to 3. Remote SAProuter --> with SNC to

  • Google App for iChat?

    Hi .. I use google app for education .. [email protected] account and when I log on to gmail, i can see my google chat on the left side and it works fine on my gmail page however, when i try to log onto ichat via jabber or google talk it says that my

  • [svn:fx-trunk] 9314: Merge layout, graphics, and fxg tests into BasicTests.

    Revision: 9314 Author:   [email protected] Date:     2009-08-14 12:00:24 -0700 (Fri, 14 Aug 2009) Log Message: Merge layout, graphics, and fxg tests into BasicTests. Add more tests from spark tests into BasicTests. Modified Paths:     flex/sdk/trunk/f

  • Deploy a war file

    hi, can some one please guide me through deploying a war file to application server8.1 , by suggesting perhaps atutorial or link , thanks inadvance

  • Prevent AE Link DOWN?

    Prevent AE link down? I'm able to login to my imac remotely only when somebody at home is physically at the machine and actively logged in. I notice that after the home user logs out, the system will log "kernel[0]: AirPort: Link DOWN (Client disAsso