Scrren Value through RFC

Hi All,
I have designed a customized screen in which a value is been fetched through a RFC program from a third-party software(Legacy system).
The value in the legacy system changes in every 2 seconds. So in order to match with the legacy system value I have to call the RFC for every 2 second and populate the same in deleloped SAP-screen.
But I donot know how to call the RFC( which is a function module) in every 2 seconds interval in-order to refresh the SAP-screen value.
It will be great help if somebody has the solution  for the above mentioned problem. The person with right answer will be awarded with points as per forum rules.
Thanks in advance.
Regards,
Satya

this is something very hard to do in ABAP
here is a nice workaround :
you display value at a certain time and also this time (so user knows the value was correct at this time) and you provide a button "refresh" on screen so that user can refresh the value
now if you really want to have an automatically updated display, you will have to deal with some very special functionnalities of calling functions in asynchronous mode
let's look at an example at address http://richard-harper.me.uk/Kb/showtext.aspx?id=0014

Similar Messages

  • Passing values through RFC

    Hi All,
    I have a requirement where we need to connect to a different system using RFC and pass data.
    I have data in the table . The requirement is using RFC, i have to write a code, so that i can send all the possible values of a field in the table to the remote system. I have 5 fields in my table in SAP. First i need to pass all the possible values of field1 to the remote system and based on the input in their system, i need to pass all possible values for field2 to remote system and again based on field1 and field2 i need to pass all possible values for field3 to remote system.
    Pls let me know how to do coding for this.
    Thanks,
    Raju

    Raj,
    We need to pass the possible values from our custom table to the remote system, so that the user can see all the possible values for the fields. Similar to the F4 option.
    And based on field1 input in the form by the user, we need to get corresponding values for field2 of all possible values and pass it to the remote system.
    If your user is filling the forms in the non-SAP system itself, means you are just providing the data to that system for the actual user action there. So, either you can send the whole data everytime and let non-sap system handle the logic which you need for the possible values for each selection. Better if you are able to store all data in the remote system itself to avoid large data communication everytime and just sync the 2 systems whenever something changes in SAP.
    Otherwise, if you want to control it from SAP itself, then you need 2 way communication.....once user fills 1st field in FORM, remote system sends that to SAP and then you send the 2nd field valid values to remote system again using same/different RFC and so on. But, I doubt that will be efficient for the user filling the form.
    Regards,
    Diwakar

  • Passing values to RFC holding structure.

    Hi Experts,
    I have DC which needs to update backend table through RFC.  In this RFC i have a structure in import tab which holds 2 fields.
    From webDynpro Java code , i have to pass the those 2 fields as input before when i execute the model.
    How can i write code for inputing the values for this structure fields ?
    thanks in advance.
    Regards,
    suresh

    Hi Suresh,
    Steps to execute you Adaptive RFC Model:
    1. Create an instance of the BAPI's input structure-
    <Your BAPI Name>_Input input = new  <Your BAPI Name>_Input();
    2. Set the two input parameters to this input structure with desired parameter values-
    input.set<Your Para 1>(<Desired Parameter Value>);
    input.set<Your Para 2>(<Desired Parameter Value>);
    3. Create and Bind a model node in context to the input structural node of Your BAPI using model binding. Now using code bind the instance of the input structute to the model nodel in conext as stated below-
    wdConext.node<Your Custom created Model Node in Context>().bind(input);
    4. Execute the model and invalidate the output node-
    try{
                   wdContext.current<Your Model Node in Conext>().modelObject().execute();
                    wdConext.node<Output Node in the conext>().invalidate();
    }catch(Exception){
    5. Pick all the output parameters from the Output Node in the context.
    Hope it helps!!
    Regards,
    Tushar S

  • Table parameter does not contain values in RFC call

    Hello Experts,
    I created RFC in R/3 with table parameter I_CUSTOMER. This RFC will be called by the CRM to pass all the customers data to R/3. The RFC was triggered by CRM passing 20 entries in I_CUSTOMER. However, when the debugger jumps in R/3 the table I_CUSTOMER in R/3 is empty. Can anyone help me to resolve the issue? any idea? thanks in advance!
    Best Regards,
    Alezandro

    Hi Alezandro ..
    what is the type of table parameter I_CUSTOMER u have declared??
    if CRM is passing 20 values through  I_CUSTOMER, u must take
      type <b>TABLE TYPE</b> which is to be created in dictionary.
    if it doesn't helps u ...can u be more clear??
    Ram

  • How to passing lowercase values to RFC/BAPI using webdynpro for JAVA

    Hi Exerts,
    When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
    So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
    Thanks in advance,
    Joeri

    Hi,
    There could be two possibility if you are storing this value in ABAP table.
    1. You are entering value in UPPERCASE in your webdynpro application.
    2. The data stored in ABAP table, converts value in small to upper case.
    1.  Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
    Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
    e.g String name = wdContext().currentContextelement().getName().toLowercase();
    Now pass this name to RFC/BAPI is should go as lowercase only..
    This is from webdynpro java side..
    2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
    There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
    Hope this information helps guy ..!!!!
    Regards,
    Jigar

  • Using Webservice through RFC Func Mod Can I able to fill dropdown field

    Hi,
    I am going to develop offline interactive form using Webservice through RFC Function module.
    There are dropdown list fields in my adobe form. Then how can I able to fill these dropdown fields in my form, I mean how to bind the values to dropdown fields.
    Thanks & Regards,
    nspkumar.

    Hi,
    Option 1:
    If the form is designed in transaction SFP, which has a form interface (transaction SFI), then below solution will work:
    For example consider the data node name as 'COUNTRY' . Select drop down UI element and go to 'Object' properties tab. Select 'Binding' tab, on the top right hand side of this tab there is small icon, select the icon and enable the option 'Show Dynamic Properties'. Once this option is enabled in the 'Binding' tab you can click on the link 'Specify Item Values'. A popup will open, here specify the binding value as 
    $record.sap-vhlist.COUNTRY.item[*]
    Refer to link:
    [Drop down list binding|http://help.sap.com/erp2005_ehp_06/helpdata/en/43/7a667df4ad6fc9e10000000a1553f6/frameset.htm]
    Option 2:
    If the data connection is directly to the webservice then binding needs to be done similar to option 1 except one change. While binding the value in dynamic properties based on XML schema binding needs to be changed.
    As you can see in option 1, for dynamic property binding 
    $record.sap-vhlist.COUNTRY.item[*]
    , there is a value called sap-vhlist. This 'sap-vhlist' gets generated when form is designed in transaction SFP with form interface. So in your case if data connection is from webservice value sap-vhlist needs to changed to the value as per XML schema definition.
    Regards
    Srikanth KV

  • SO Creation through RFC

    Dear all,
        Greetings from my side..
    I'm facing little bit tricky issue, the issue is while creating the SO through Program it is working fine and the same thing if we are using through RFC it is through dump if it is more than 200 line items. it is throwing time out error.
    Here i'm attaching the which FM i'm using ..
    BAPI_SALESDOCU_CREATEFROMDATA1
    Please suggest your valuable suggestions..
    Regards,
    Krishna

    Hi,
    please check profile parameter rdisp/max_wprun_time.
    It is set to value 7200 on our systems (default value is 600), but maybe you need another value.
    You can use report RSPARAM to do that.
    Regards,
    Klaus

  • Null Error in Displaying a value through view attribute

    I just want to display a value through message styled text bean from view attribute .
    For that i use the code in PR:
    But it gives null error: Please any one help me.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("StaffInfoVO1");
    if(vo!=null)
    OARow row = (OARow)vo.getCurrentRow();
    System.out.println("vo is not null");
    String str1 = row.getAttribute("FullName").toString();
    OAMessageStyledTextBean stext1 = (OAMessageStyledTextBean)webBean.findChildRecursive("RFStaffName");
    stext1.setText(str1);
    While getattribute("FullName") executed it gives null error. Why?
    how to rectify?

    Hai,
    I can execute the query in toad which returns 1 row of data. It is not null rows.
    But my vo object, why it is not executed. Returning null. I dont know.. Too many hours i spent.
    VO query:
    select distinct papf.person_id,papf.FULL_NAME,
    papf.EMPLOYEE_NUMBER,
    papf.EMAIL_ADDRESS,
    papf.WORK_TELEPHONE,
    hla.COUNTRY,
    sysdate,
    pap.NAME,
    haou.NAMe department,
    ood.ORGANIZATION_NAME
    from
    per_all_people_f papf,
    per_all_assignments_f paaf,
    per_all_positions pap,
    per_jobs pj,
    per_grades pg,
    per_person_types ppt,
    hr_all_organization_units haou,
    hr_locations_all hla,
    org_organization_definitions ood
    where
    papf.PERSON_TYPE_ID=ppt.PERSON_TYPE_ID and
    papf.PERSON_ID=paaf.PERSON_ID and
    paaf.POSITION_ID=pap.POSITION_ID and
    paaf.JOB_ID=pj.JOB_ID and
    paaf.BUSINESS_GROUP_ID=haou.BUSINESS_GROUP_ID and
    papf.person_type_id=13 and
    haou.business_group_id=202 and
    haou.NAME like '%Global%Sales%' and
    papf.FULL_NAME like '%Stand%' and
    paaf.LOCATION_ID=hla.LOCATION_ID and
    paaf.ORGANIZATION_ID=ood.ORGANIZATION_ID and
    sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE and
    sysdate between paaf.EFFECTIVE_START_DATE and paaf.EFFECTIVE_END_DATE
    Help Me.
    Thanks & Regards

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

  • Third party system call function module/BAPI through RFC to update Z table

    Dear Friends,
    We have a third party system which directly inserts a Z table in SAP through its programming, which is an auditing issue.
    We want the third party system should call function module/BAPI through RFC so that the Z table gets updated.
    waiting for inputs..
    Thanks,
    Kumar

    if third party system is capable of making Remote Function call, then writing a Function module & making it remote enable is not difficult task in ABAP.
    You may have to prepare specifications first to decide if third party system is going to Read, insert, update, delete records from Zee table.

  • Call Transaction Through RFC

    Hi ,
    I am trying to do a call transaction through RFC call from a Middleware which is a CPIC user (only communication Non dialog User ) . 
    Call  transaction does gets executed without any error but it does not update any data.But when I run it through my user id it works absolutely fine .
    I am not sure what is causing the issue
    Security authorization?
    RFC through Non Dialog user ?
    Paramters missing in RFC  ?
    Paramatertes missing in call transaction option?
    If anyone of you has faced a similiar issue then please let me know the path forward.
    Thanks
    Vikas

    Hi Vikas,
        The problem is in Authorization? And check the mode of Process Synchoronus or asynchoronous? Both the RFC and CALL transaction should be Same /
    Thanks
    MAnju

  • Retreving Values from RFC in Adapter Module

    Hi All
    I have a scenario where I have to retreive a value from database table using RFC and import those values in adapter module for comparing it with some other Values. Can some one guide me how to retreive values in RFC using Adapter module. Some standard methods would be really helpful.
    Regards
    Abhishek Mahajan

    hi
    check this
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231
    bvr

  • Upload and Download file through RFC called by java

    We are trying to download/upload file through rfc function called by java(JCO),In the rfc function,we use WS_DOWNLOAD,but it does not work.
    Any one know about this,Please help ,thanks very much.
    Message was edited by: gw gw

    Hi gw,
    This question looks a little confusing to me.
    WS_DOWNLOAD is used to download files from SAP to the presentation server (your PC).  It will not work through RFC.
    BUT, also if you want to access a function module via RFC is must be RFC enabled (as Anand pointed out).
    AND WS_DOWNLOAD uses a PUSH approach.  It pushes a file to the PC from ABAP.  So even if the two points above weren't a problem it still would not be suitable for what you are doing.
    Perhaps you could explain a little what you are trying to achieve.
    Cheers,
    Brad

  • How can i transfer the system variable value through DTW in SBO

    Hi,
    I want to transfer the system variable("Excisable" in the Item master data in the SBO 'India' database) value through the template by the DTW.
    But i don't have any template consisting of this system variable.
    So please suggest me that how can i transfer the value of this system variable(Excisable) and by which template.Please tell me any constraint if it is on the value of this variable.
    I will be very thankful to you.
    Thanks & Regard,
    Sandeep
    Message was edited by:
            Marc Riar

    Sandeep,
    This question has come up several times on this Forum.
    Please read this read.
    Importing excisable item
    Suda

  • BDC is not working in through RFC call

    HI,
    i have created BDC for MM41 to create article with variants, its working fine in fore ground, when i am trying to call this through RFC it is failing. please help me on this.
    i have passed ctu_params also.

    Hi,
           I dont know your complete scenario but you if you want to use your BDC in some other program you can use statement
    export your itab or wa to memory id 'ZID'.
    AND THEN
    IN YOUR BDC PROGRAM YOU CAN
    IMPORT ITAB INTO ITAB FROM MEMORY ID 'ZID'.
    Submit <your bdc program> and Return.
    Regards,
    Edited by: ZAHID HAMEED on Nov 3, 2011 10:38 AM

Maybe you are looking for

  • Defining Hostname to be used in Helo command

    Hi, First of all I would like to say that I am not a Java developer or am too familar with JRE's, JDK's etc so please can all responses be in plain english! We use an application supplied by HP called Quality Center. It is a Test Management/Repositor

  • Blank CDR and DVD not shown in finder - impossible to burn from Burn Folder

    Since I have installed Snow Leopard on my Imac, Blank CD's and DVD's are not seen in the finder. No matter what I select in: Systempreferences > CD's and DVD's (ask task / show finder etc...) the discs do not appear (I tried with all sorts). Yet the

  • Pulling images out of an iDVD slideshow

    Stemming from another question I posted on the Powerbook G4 board, I have a question regarding an iDVD slideshow. My Powerbook's hard drive, I have a sinking feeling, is dead. My iDisk was full and I was getting ready to buy more storage space when t

  • Audio input (microphon​e) missing, pavilion dv6 1230us

    Internal microhone not working.   Is not found in control panel, sounds or device manager. 

  • Is there a shortcut key command for 'export'?

    Hello all, I'm just wondering if there is a shortcut command for the 'export' dialogue box? The only information I seem to be bringing up in searches is 'exporting your shortcuts' to create custom shortcut keys. Thanks in advance! Zoe