Call function module from ITS template

Hi all,
Does anybody know if it is possible to call an ABAP function module (or embed any ABAP command) in an ITS template (HTML B)? If so, can someone post some sample codes?
Thanks!
Jay

hi,
it is not possible to run ABAP code from a ITS template.
Best regards,
Klaus

Similar Messages

  • HOW TO CALL FUNCTION MODULE FROM ABAP4 EDITOR

    HI !
    friends
    I want to call function module from abap 4 editor.
    is there any shortcut key from edit menu through which if give a function module name then  it calls the function automatically?
    points will be awarded.
    Cheers
    troy

    command will be like this
    <b> call function 'YW2_GET_MNW_PERIOD'
            exporting
              w_budat       = v_datum
            importing
              w_period      = i_date-period
              w_period_desc = i_date-p_desc.</b>
    Regards
    prabhu

  • Calling function modules from a BSP page

    Hi all
    How do we call function modules from a BSP page.
    regards,
    Paul

    Ok, You want to construct the URL pointing to a BW report and want to execute the same when a button is clicked right? if yes here is the answer.
    for constructing the BW query URL
    http://<bwserver>:<port>/sap/bw/BEx?sap-language=ENCMD=LDOC&infocube=<cube anme>&query=<query name>&var_name_1=<variable name1>&var_value_ext_1=<variable value 1>&var_name_2=<variable name2>&var_value_ext_2=<variable value 2>
    (for more info on how to pass parameters to BW query URL refer to the BW web designer reference manual which can be found at http://services.sap.com/bw)
    and for executing this from a button use onclientclick property of htmlb:button along with window.open
    <htmlb:button id ="BWQ"
                  onClientClick = "javascript:window.open("<%= BW_URL %>" );"/>
    Hope this is clear.
    Regards
    Raja

  • How to call function module from IP

    Hi
    I need to trigger the process chain from the input ready queries in Bex analyzer. I figured out that I need to call RSPC_API_CHAIN_START.
    How do we go about in calling the above function module in IP.
    Thanks in advance
    I

    Hi Matt
    Thanks for your response, it was very productive at the right time as we saw our process chain running indefinetly. With selecting all chars to be changed, it ran just once with no errors.
    what is TA ? I know rsplan- transaction code for the planning modeler.
    Can you tell me how can we call function module in custom exit planning function.
    Where should I embed the code
    CALL FUNCTION 'RSPC_API_CHAIN_START'
                   EXPORTING
                     I_CHAIN             = 'ZPC_CCATOPCA'.
                   I_T_VARIABLES       =
                   I_SYNCHRONOUS       =
                   I_SIMULATE          =
                   I_NOPLAN            =
                 IMPORTING
                   E_LOGID             =
                 EXCEPTIONS
                   FAILED              = 1
                   OTHERS              = 2
    thanks in advance

  • Can we call Function Module from Process Chain?

    Hello experts,
    I have a small question.
    Can we call Function Module(SE37) from Process Chain?
    If yes can you please provide some example link?
    I m new to BI world.
    regards

    Hi,
    Create one ABAP program and call the function module from that program. Check the link to know how to call a function module from an ABAP program.
    http://help.sap.com/saphelp_wp/helpdata/en/d1/801edb454211d189710000e8322d00/content.htm
    http://help.sap.com/saphelp_wp/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
    Then use process type "ABAP Program" in your process chain and add the program you have created. So then this program will be executed via process chain and this program will call the function module.
    Indrashis

  • Calling Function Modules from BSP

    Hi,
    Can we call Remote Function Modules from a BSP page? If yes, can they be called from both Layout and Events and what's the proper way of calling them?
    Any help will be great.

    HI Aurang
    Calling RFC is similar to calling any other Function Module..Only thing is you need to provide the DESTINATION name  of RFC Destination..
    And you can call it from Event like OnInputprocessing...
    inside your BSP Page..
    For Example
          CALL FUNCTION 'ZFI_FUNC_IM_DISPLAY_ASSE_CA_AS' DESTINATION 'Provide the RFC Destination here'
            EXPORTING
              I_PRCAT    = 'CA'
              I_DOCNO    = VAR_DOCNO
            IMPORTING
              E_ASSE_HDR = WA_HDR
              E_TEXT     = VAR_STATUS
            TABLES
              T_ASSE_LIT = T_T900.
    If you are calling from same server..Write destination as NONE
    Cheers:)
    Mithlesh

  • How to call function module in ITS?

    Hi Gurus,
    I need to build a URL by calling a custom function module. I need to use this URL as a hyperlink in my HTML template. Can you please help.
    Very Urgent.
    Regards.
    Pras

    > Hi Gurus,
    >
    > I need to build a URL by calling a custom function
    > module. I need to use this URL as a hyperlink in my
    > HTML template. Can you please help.
    >
    > Very Urgent.
    >
    > Regards.
    > Pras
    Well, it is very importnat to understand what the template is based on...
    If it is not 'SAP Gui dynpro based' but an independent template that has no corresponding ABAP Screen to it, you can used FLOW LOGIC.
    See http://www.sapgenie.com/its/flowlogic.htm for an example !!
    Cheers,
    Chris

  • Call function module from BSP page

    Hi Experts,
    I am new to ABAP and BSP as well.
    I am creating an BSP page through which I want to call an function module in R/3 which will fetch a file from the application server and place into an internal table.
    I have identified the function module.
    My questions are:
    Since I am going to have an web interface where on a button click the file should be uploaded to the intrernal table.So how do I call the function module.
    Can I use JSP and ABAP together in an BSP page.
    Thanks
    Ankit

    Hello Ankit,
    Please check the following link:
    http://help.sap.com/saphelp_47x200/helpdata/en/bd/ac1e3a0088e042e10000000a11402f/frameset.htm
    I think it will answer all your queries.
    Regards,
    Siddhesh

  • Call function module from BSP0 (Parameter group)

    Hello All,
    I am trying to call a FM by changing the parameter group of a planning profile (BSP0) as shown:
             CALL FUNCTION Z_BW_CLEAR_VAR.
    The name of the function module is already entered in table RSPLF_FDIR.
    In the above FM there is DB deletion statement, which is not getting process.
    When I kept break point at FM Z_BW_CLEAR_VAR and executed the planning function - it did not trigger the FM.
    Please let me know how to call the FM.
    Thanks & Regards,
    Pratik

    hi Alberto,
    have a look at quesiton 5 in sap note 730870
    it explains what you need to restart
    from this note:
    restart from visual admin:
    " the RfcAdapter J2EE Service 'SAP XI Adapter: RFC' is restarted or a dependend J2EE Service is restarted ('SAP XI AF CPA Cache', 'SAP XI AF Messaging')."
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to Call Function Module from XI Mapping

    Hi All,
    I would like to call a function module that resides in ECC through XI mapping.
    Can any one please through some light on how to proceed ?
    Regards

    Hello Shabarish,
    Thanks for the reply, Actually i would like to do date validation using ISHMED_CHECK_DATE_TIME   FM inside Mapping.
    I would like to do this way, please let me know how good is this
    1) Expose the FM as a RFC enabled one
    2) Use the following UDF code inside Mapping
    3) do i need to import the RFC enabled FM into our XI??
    4) Do i required to create any Communication channel for this?
    function RFC_LOOKUP_API
    Imports java.io.;com.sap.aii.mapping.lookup.;
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    // filling the string with our RFC-XML (with values)
    String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:Z_UDF_CREATE_ZTOR_REC xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\">";
    m = m + "<I_MESSAGEID>" + MsgID + "</I_MESSAGEID>";
    m = m + "<I_EBELN>" + PONum + "</I_EBELN>";
    m = m + "<I_ERDAT>" + MsgDate + "</I_ERDAT>";
    m = m + "<I_UZEIT>" + MsgTime + "</I_UZEIT>";
    m = m + "</ns0:Z_UDF_CREATE_ZTOR_REC>";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel("XI","GeneratedReceiverChannel_RFC");
    // 2. Get a RFC accessor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create a xml input stream representing the function module request message.
    InputStream inputStream = new ByteArrayInputStream(m.getBytes());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute Record Create.
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    catch(LookupException e)
    importanttrace.addWarning("Error while writing " + e.getMessage() );
    catch(IOException e)
    importanttrace.addWarning("Error " + e.getMessage() );
    finally
    if (out!=null) {
    try {
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing stream " + e.getMessage() );
    // 7. close the accessor in order to free resources.
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    //returning the result u2013 RFC-XML.response
    return content;
    Thanks & Regards
    Vamsi

  • Calling function module from solman

    Hi Experts,
                    I created one function module in solution manager with remote enabled type,  how to call that rfc into development sysytem.
    Regards,
    Thiru. R

    hi,
    may be this link
    Re: TMS Error In Change Request Management
    can prove useful to u ... in solving ur issue
    regards,
    prashanti

  • How to call Function Module from webdynpro application ,up on click url in

    Hi Experts,
    I need your help for the following scenario.
    In my WebDynpro application , I am displaying the sales orders in a table.
    one of the column in table  i.e. sales order number is displayed with hyper link, up on click the sales order number column, i have to pass the  po number to the a remotefunction with as one parameter and  enjoy = 'x' as another parameter  that should call me23n transaction and the transaction screen should be displayed in the webdynpro application with po details.
    Thanks In Advance.
    your help is rewarded.
    Best Regards.
    Rao.

    Hi Rao,
              1.Create binding to view to Controller.
              2.Create table->Add column->Add table cell Editor(select LinkToAction UI Element in options).
              3. Bind the property <i>text ->sales order number</i> (Output/<model node>)
              4. Create an Event <salesOrder>
                                       // do null check
                                       // set your input parameters
                                       // input sales order number = current output sales order number
                                       // enjoy="x"
                                       // call controller's method() that executes RFC
              5. Bind this event    LinkToAction  property action-> <salesOrder>  
    To execute RFC, the code is available in sample tutorials.
    Hope this helps
    regards,
    Siva

  • How to call a function module from a transformation

    Hi,
    Could somebody please let me know how I can call an abap function module from a transformation (abap xslt program). I know how to call the class methods from transformation, but how do i call a function module..?
    Thanks,
    Shashi.
    Edited by: Shashi Kanth Kasam on Apr 8, 2010 12:45 PM

    Ya. I can do that. But I don't want to use a class and a method to call that function module. Want to directly call function module from transformation. Is that possible..?
    Thanks,
    Shashi

  • Type error while calling function module with in FOX formula

    Hi,
    I am getting following error while calling function module from FOX Formula:
    "Types of parameter DAY_IN () and variable J_CALDAY(D) are inconsistent"
    Following is the code:
    DATA    I_CALDAY       TYPE  0CALDAY.
    DATA    N_CALDAY       TYPE  0CALDAY.
    DATA    KYF              TYPE KEYFIGURE_NAME.
    FOREACH   I_CALDAY, KYF.
       CALL FUNCTION SLS_MISC_GET_LAST_DAY_OF_MONTH
          EXPORTING
             DAY_IN  =  I_CALDAY
          IMPORTING
             LAST_DAY_OF_MONTH = N_CALDAY.
        {KYF, N_CALDAY}  =  {KYF, L_CALDAY}.
    ENDFOR.
    Import parameter DAY_IN is of type sy-datum (that inturn is data element SYDATUM of data type DATS - same as 0CALDAY). Not sure why error is being thrown. Any idea? Thanks.
    Edited by: SAP_BOY on Dec 4, 2009 5:26 PM

    Hi,
    I think It will not identify ,though you have  (data element SYDATUM of data type DATS - same as 0CALDAY).Check it out by assigning it through a variable of type D.
    Data I_CALDAY TYPE D.
    Hope it may work out.
    Regards,
    Indu

  • How to call a function module from the Web Template?

    Hi all,
    how can I call a function module from a BI 7.x web template and then show the result of the FM on the web template?
    Many thanks for your hints.
    Regards, Nils

    Hi!
    I am too working on a similar issue.
    Probably this helps:
    Re: Calling a function module from a Web Template
    Regards,
    Sri

Maybe you are looking for

  • Mavericks Network Printer Issues

    I used Canon iR3225 previously without any issues until to get OS Mavericks. And tried few methods to overcome the printer problem using OS Mavericks. Finally i got my collegue recommends to install this mannner. Follow these steps may be you all can

  • Technical Systems in Managed System Configuration greyed .

    Hi, I upgraded ST-SER to 701_2010_1 SP0 and in the process of upgrading this tool I had to also patch other components like ABAP,BASIS etc as pre-requisites for this. As this involved all the components to be patched, I executed the initial,Basic con

  • Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.

    I am using VS 2012 and BizTalk 2013 and attempting to deploy an application to BizTalk when I get these errors: Error 47 at Microsoft.BizTalk.Deployment.Assembly.BtsMap.Save()    at Microsoft.BizTalk.Deployment.Assembly.BtsArtifactCollection.Save()

  • CAPTURING IN HD

    Hi, I used Canon HV-20 I am trying to capture a complete tape, but the timecode breaks are so frequent. What settings should I use or is this a common occurrence? I am quite new to HD so any help would be appreciated. I cleaned the heads as well, but

  • Redo imovie means redo iDVD project?

    After putting a lot of work into getting my iDVD menus right I discover the movie itself is not working. It is skipping etc as another poster found, so I am a) making sure chapter markers are not within 2 sec of a transition and b) wondering if 7 gb