Call RFC INSIDE THE SMARTFORM

Hi Experts,
i want to know , is it possible to call the RFC in side the smartform. In my requirement, i need some data from ECC system to display in the smartform of the CRM.
currently i am trying to call outside the smartform and pass to the same, but smartform is triggered from actions and due to other constrints i am not able to to do so..
hence kindly suggest me the other options  or is it possible to fetch the data from the ECC to CRM usinfg the RFC inside the smartform.
Thanks in advance
Pradeep

Hi,
  I hope yes you can write the RFC fm code inside the layout of the smartforms, but the problem is if RFC could not able to fetch the data from R/3 some times, or if it could not able to find the right records then it will return with error / blank records. To avoid all this kind of problems its better to write the same code in your driver program. In case if you dont get the data from R/3 then you can control the layout set from triggering.
Regards,
Satya

Similar Messages

  • Call *.jar inside the trigger (MS SQL)

    Hi!
    I'm just looking around google and can't find any good news.. The problem is: how to call *.jar inside the trigger. Trigger is stored in M$ Server.
    Tnx, if any response! ;)

    What?

  • How to acess a value of variable(calling prg) inside the methods of a class

    Hi SapAll.
    i wrote a program where i need to acess a value of a variable inside the class method.
    for eg:
    CALL METHOD gcl_utl_app_log->display_log
        EXPORTING
          it_edidc = lt_edidc
          it_msg   = lt_msg.
    while debugging under the method 'DISPLAY_LOG' when i want to acess a value of a variable (calling program) i cont get that value but i can acess the value of the variable just before the CALL METHOD statement.
    so can any body help me in finding the solution for this.
    regards.
    Varma

    Hi jhings.
    i have delcared the variable in the main program like below
    main program
    PERFORM populate_z1edrmdseqnr01.
    FORM populate_z1edrmdseqnr01 .
    other code
    CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr             = gv_number_nr
          object                  = lv_obj
        IMPORTING
          number                  = gv_nextno
    move gv_nextno to gv_seqno.
      EXPORT gv_seqno  to memory ID 'MEM1'.
    PERFORM FORM application_log.
    FORM application_log.
      CALL METHOD gcl_utl_app_log->display_log
        EXPORTING
          it_edidc = lt_edidc
          it_msg   = lt_msg.
    ENDFORM
    METHOD display_log.
    IMPORT gv_seqno from MEMORY ID 'MEM1'.
    *********when i save and check the above code iam getting the error as 'FiledGV_SEQNO is unknown,it is neither in one of specified tables not defined by 'DATA ' statement.**********
    regards.
    Varma

  • To call methods inside the same application is possible to use RMI ?

    hello,
    What I should like to know is if RMI can easily be used to implement comunication (calling methods) inside classes that are part of the one same application... This should be a restrict case to use RMI...
    The reason to do it come from the need to use the instance of a class knonwing it only as Object... This can be good to do if some code is used for general pupose in many different contexts.
    In this case you can pass to the "server class" a parameter 'o' of type Object (all the classes extend Object) of the "customer class" to get back informations if some elaboration happen inside the "server class"...
    This purpose is generally implemented with event listeners, but perhaps it could be done easily using RMI too (I dont know it...).
    Using RMI in this simple situation, don't should require anything of complicate (stub, .... mashalling parametres....) to have the reference to method of the "customer class" to call. The "server class" already recives a reference of the "customer class" how parameter of type Object, and the mame of the method too.
    I propose a simple thoeric example to explain really what I said before:
    Class Server {
        String methodName;
        Object obj;
        pubic Server( Oject o , String metName){  // constructor
            obj = o;
            methodName = metName;
            // some thing is done and, at last, the method callbakMethod() is executed
            callbakMethod();
        }// constructor
        public void callbakMethod(){ // this method have the purpose to call customerMethod()
              Class c = owner.getClass();                            
              Method m = null;
                  try {
                          m = c.getMethod("callBackMethod",null);     
                         * // (1)
                          // I think that here we could have the possibility to call
                          // the method  customerMethod() belonging to class Customer..
                          // I don't know if it possible and  ...  (and if it is possible) I am not able to do it*
        }// callbakMethod()
    }  // class Server
    Class Custmer{
        public Customer() { // constructor
              Server s = new Server (this, "customerMethod");
        } // constructor
        customerMethod() {    // I would this method is called from class Server
            // do some thing.....
        }  //customerMethod
    }  // class CustomerMy ask is: it is possible to call customerMethod() from the Server class ?...
    If the aswer is yes, I wold know the sintax to use to do it, please.
    thank you
    regards
    tonyMrsangelo

    RMI doesn't help you in the slightest here. You can just realize it all using local method invocation. All RMI does is to make that remote. If the objects aren't remote there is no point.

  • Can not call RFC inside VC

    Hi everybody,
    i use a RFC in my VC. The local test of the R/3 RFC within NWDS (Test Data Service) runs with success. But if i start the Application and call this RFC i get the following error:
    Error in getting the connection Could not find destination XXX
    Error occurred while executing the service: Could not get connection to the backend XXX
    Error Occurred  while executing the service: Error occurred while executing the service:
    Could not get connection to the backend XXX
    Please help...
    Thanks,
    Sid

    Hi Sid,
    If you are working with NWDS, except for defining the destination in the NWDS you also have to define the same destination in the WAS you deploy to. That is because the runtime environment for your model (the WAS) also has to connect to the destination.
    A system administrator can define the destination from NetWeaver Administrator (/nwa).
    Best regards,
    Tal.

  • Stellent  UCM :: calling javascript inside the custom component

    Hi Experts,
    I am new to the stellent content server (Oracle content server). Currently we are working on the project which needs to be integrated with the content server for the content selection. I did some prototype to pass back the selection value to the parent window using the javascript window.opener.<parent java script> from a dummy page. Now i am customizing the content server custom component. Unfortunately i cannot be able to call back the parent javascript from the custom component. Seems the window.opener is null.
    I have tried with windowUtils.getOpener() method which is available in the content server weblayout. Still i could not be able to call back.
    Guys i am looking forward your idea ? If anyone knows the way to resolve this issue or any other best suitable way to handle this please ping me back.
    Regards Thiva

    Hi Experts,
    I am new to the stellent content server (Oracle content server). Currently we are working on the project which needs to be integrated with the content server for the content selection. I did some prototype to pass back the selection value to the parent window using the javascript window.opener.<parent java script> from a dummy page. Now i am customizing the content server custom component. Unfortunately i cannot be able to call back the parent javascript from the custom component. Seems the window.opener is null.
    I have tried with windowUtils.getOpener() method which is available in the content server weblayout. Still i could not be able to call back.
    Guys i am looking forward your idea ? If anyone knows the way to resolve this issue or any other best suitable way to handle this please ping me back.
    Regards Thiva

  • Call RFC

    hai
         how to call RFC prog.

    Technical Overview
    A remote function call (RFC) is the call of a function module that runs in an external system to the calling program. Although it is also possible to call a function module in the same system as an RFC, normally RFCs are used when the caller and the called function module run in the same system.
    In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between an SAP system and an external system.
    [edit]
    The RFC Interfaces
    The RFC- interface system is made up of the following interfaces:
    Calling interface for ABAP programs
    Each ABAP program can call a remote function module using the command CALL FUNCTION...DESTINATION. The parameter DESTINATION informs the SAP system that the called function module runs in a different system to the calling system. RFC communication with the remote system takes place as a part of the CALL FUNCTION command.
    RFC function modules in an SAP system must be proper function modules and must be registered in the SAP system as remote.
    If the calling program and the called program are both ABAP programs, the RFC interface provides both communication partners. The calling program can be any ABAP program, and the called program must be a function module that is registered as remote.
    For more detailed information on calling function modules that are registered as remote, see Calling RFC Function Modules in ABAP.
    For more information on writing function modules that you want to call remotely, see Writing RFC Function Modules in ABAP.
    Interfaces for calling non-ABAP programs
    If either the calling program or the called partner is not an SAP program, this program must be programmed in such a way that it can play the role of the other partner in RFC communication.
    To support you when implementing RFC partner programs in non-SAP systems, read: Components of the SAP Communication Technology
    RFC-supported and GUI-supported interfaces can be used by external programs to call function modules in SAP systems, and execute them in these systems. Likewise, ABAP programs can also use these interfaces to use functions supplied by external programs.

  • Call procedure inside from another procedure.

    I have Procedure Name stored in tables.
    Based on certain logic i need to call some procedure.
    Procedure will be called from inside the procedure.
    How can i apply this logic.
    Please provide any explain.
    Regards,
    AgrawalV
    Message was edited by:
    AgrawalV

    Example: Re: How to make a dynamic function call from within a package procedure

  • Get the calling system in the remote FM

    Hello,
    how can i get the calling System in a FM, which was called over remote RFC from another System?
    Best regards,
    TomSd

    Hi thomas,
    1. we can refer to the calling system
      using 'BACK'
    2. ie. if we call using
      call function 'abc' destination 'BACK',
      then it will call rfc in the calling system.
    regards,
    amit m.

  • How to debug the smartform

    Hi,
    I want to debug the smartform, the form is not configured in nace.  still i want to test the form.
    How can we test it. please help me.
    thanks,
    Ravi

    hi,
    give me the function module name of the smartform in se37 & execute.
    but remember, you have to pass all the values manually here in the tables.
    to know the function module name of the smartform,
    Inside the smartform go thru this menu
    ENVIRONMENT->FUNCTION MODULE NAME.
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Calling an RFC without the code being present on the destination system

    Hi All,
    Here is my problem.
    I want to execute a piece of code on a system from a program currently running on another system,
    get the data and return back.
    E.G. I am having a subroutine on development system. Let's say there is a select query inside the subroutine to get PARTNER from BUT000 based on certain parameters. The program should call an RFC get the data for the select query from the Production system and return the result back to the development system.
    Please note : Here, I don't want to write the same piece of code on the production system.
    <b>Is there any function module for the same or any idea on how to go about it.</b>
    <b>Helpful answers would be rewarded.</b>
    Regards,
    Amit Mishra

    Hai
    Sending system side(SEND--800)
    Create function module by using Tcode SE37 or SE80
    goto attributes select remote function
    activate
    Receiving system side(RECE--000)
    goto Tcode SM59
    here select the R/3 Connections-->click on Create Button
    give RFC Desstination : TESTRFC
         Connection Type  : 3 for Connecting two systems
         Description      : Some meaningful Description
    Press enter
    give Target system Name : SEND
              Language      : EN
              Client        : 800
              user Name     : sapuser
              Password      : xxxxxx
    save this connections & click on test connections(f8)
                          & Remote logon(f7)---> it will open a session
                            with client 800 that is your sending system
                            then only your RFC is correct
    create a report in SE38 Tcode
    data : c1 type i.
    data : itab like mara occurs 0 with header line.
    call function 'ZRFCFM' destination 'TESTRFC' --->Function Module 'ZRFCFM' your just create at Sending system
         exporting
         importing
         exceptions.
    Thanks & regards
    Sreeni

  • WD Program calls RFC. How to start external ABAP debugger to see the data

    Hi Experts,
    I have created WD program which calls RFC. I want to see the value passed from WD to ABAP. I have to see the values once data reaches ABAP. How I can do so?
    I did following.
    1) se 37 . Open the proram. Inside the fucntion near a select statement I placed the cursor. Then clicked on controlshitfF9 (set/delete  external brakepoint icon).
    2) I clicked on WD screen - Save push button.
    3) The data goes from WD to R/3. Some processing takes place. I can see message from R/3. However debugger never got triggered.
    How to resolve the issue.
    Regards,
    Gary

    go to following link.
    External debugging of ABAP from NWDS in web dynpro java
    I hope it helps.
    Regards,
    Rohit

  • The webdynpro/ABAP (WDA) calling RFC enabled FM of other ECC systems

    The webdynpro/ABAP (WDA) has problem calling RFC enabled FM of other ECC systems.
    WDA expects all the ABAPs, RFC FMs  of remote system(DEV, QA..) to reside inside its own instance.
    It is hard to transport and maintain these ABAPs FMs into a portal ABAP WDA instance.
    Proxy generation at WDA client:
    =======================
    1. If we can make an XI enable  an ABAP or RFC enabled FM of the remote ECC,
    I think the XI proxy classes can be generated at the client WDA system.
    Other options?
    How do I do it?  Can you give some tips.
    2. How do I manually code the RFC Call to BAPI/FM from Webdynpro controller or other interface?
    I am stuck with the above as the webservice option is not available at our ECC server.  It does not have a java engine installed for webservice to be available.
    Can you help on the above 2 options?

    Hi Mike ,
    <b><b> Answer of 2.</b></b>
    How do I manually code the RFC Call to BAPI/FM from Webdynpro controller or other interface?
    I am doing same thing for my current SRM implementation.I am taking data to SRM server from another R/3 server .
    This is solution I have used
    1) First of all I have made ABAP connection in SM59 .
    Go to SM59 .In ABAP Connection creat ABAP connection with system with which u want communicate .
    Eg I am connection with Systems PB1.
    So i developed Connection call PB1CLNT800.
    2) In my requirement I have taken data in my context from another r/3,
    I have give called RFC in my supply function of node.
    Call to RFC is as usual.
    In my case,
    CALL FUNCTION 'RFC_MATNR'
    DESTINATION 'PB1CLNT800'
    TABLES
    IT_MATNR = IT_MATNR.
    Onwards I have read my itab IT_MATNR and populated data to context.
    Hope solution will serve your purpose.
    Give point if it works .If any problem i have other ways.
    Cheers
    Parry B

  • How to Debug the RFC when the call is made from XI

    Hi
    I will give the brief about the problem
    this call is from Webservice >XI-> R/3 BW (RFC)
    Some transaction were failed with error 'Reason Code not valid ..e.t.c " this error returning from the RFC of the BW system, but as per the inputs from the business t,he reason code are valid and some of other transactions went through sucessfully with same reason code.
    My requiremnt is,,
    i had the XML's of the failed transactions , and i need to push them From XI to BW, and Simultaneously  i need to debug the RFC of BW system and trace the reason for that error.
    Is there any possiblity to do this.
    Please help.
    Thanks in Advance
    Mallik

    Hi
    I will give some more details abou my requirement.
    Some transaction passed from B2B bridge >-XI (RFC)>BW, Failed due to the error returned by BW system in Production environment.
    The RFC is standard one and intern it is calling BAPI (I need to debug a method inside the BAPI which is returning the particular error).
    And i have the XML's of the failed transactions.
    If i want to do this Dev. environment.i will fallow the below steps.
    1) I will add the external break-point on my user-ID (BREAK USERID)
    2) And in XI i will change the user in the RFC communicational channle to my USER ID and password.
    3) From XI Runtime workbench i will send the test message with XML's provided.
    Can any one please confirm that i am going in a correct way...?
    Please correct me if i am wrong.
    Thanks for your help
    Mallikharjuna Reddy

  • Importing  Parameter (/1BCDWB/FORMOUTPUT) Not filled  - Inside the RFC

    Dear All,
    I am Calling the Adobe form Inside the RFC Function Module, problem i am facing this Importing Parameter  /1BCDWB/FORMOUTPUT not filled.
    Based on the Importing I need the XSTRING Data
    CALL FUNCTION  <Function Module name>
             EXPORTING
                      /1BCDWB/DOCPARAMS = fp_docparams
                      <> = <>
             IMPORTING
                     /1BCDWB/FORMOUTPUT = fp_formoutput
    Note:Other Tables are filling in the Function Module.
    Please help me on this.
    Thanks,
    Kanagaraja L

    Hi,
    Pls refer :
    Re: how to call the adobe form from se38

Maybe you are looking for

  • 24" Imac core 2 duo if video can be upgraded V2.0 What Apple can be LOL

    As far as I have read it supports MXM Laptop type video card. If it can be changed or not ???? Waiting for http://babelfish.altavista.com/babelfish/trurlpagecontent?lp=ja_en&trurl=http%3a%2f%2fwww.kodawarisan.com%2f2k2006%2farchives% 2f2006%2f09%2faa

  • How to use interactive layout in Photoshop CC for the photomerge function?

    I find it really hard to combine the images together because the end result from photomerge does not have the snap in function like the interactive layout. Does anyone know how can I bring back the interactive layout in Photoshop CC? I downloaded the

  • String Operations which contain the special character '#' in BDC Session

    Hi Iam getting a file from the application server, It is having the field seperator # .So i worked with SPLIT statement. Here i found that SPLIT is not working for # . Also i have tried with REPLACE ,It is also not working for # . But i found that bo

  • SharePoint 2013 - blog upgrade

    Hi, I did an upgrade of SharePoint 2010 to 2013. Most things work fine, but I have some issues with upgrading a blog. I got these scenarios: I upgrade the blog in 2010 design, everything works fine, until I make a visual upgrade to 2013. After visual

  • Cannot open a CS3 file

    Hi, I'm having an unusual problem. I've sent InD CS3 packaged files to various printers, who then have a problem opening in InDesign file. The error message received is: "Cannot open the file "xxx". Adobe InDesign may not support the file format, a p