Use with RFC

Hi experts,
Please let me know if it is possible to reuse an ABAP based interactive form(not smartforms) in a java webdynpro application.
Eg scenario : A partly filled in interactive form (generated in the SAP system) is passed to a java webdynpro application which renders this form, then the user can enter the remaining details and submit the form.
Please let me know if this is possible at all.
10x
Yossi

I have find another solution to connect on an SAP server using LOGON GROUPS. My java code is
mConnection = JCO.createClient("001",  "UserSAP",  "SAPPASS",  "EN",  "SapServerName","3600", "SAP_LAN");
Where
001 : Client Number
EN : Language
3600 : SAP Port Number
SAP_LAN : Logon Group.
I know that this solution works.
Now, i want to create a connection string which use Server Name, SAP Port Number and Logon groups.
I want to use connection string with this Java Code (see my previous post)
mConnection = JCO.createClient("1", "UserSAP", "SAP", "EN", "SapServerNameORConnexionString", "00");
I have created and tested some connexion string (with help on this on this link :http://www.elec.ucl.ac.be/SAP/Manual-6.4r4/backgrnd/connstr.htm).
I have replaced SapServerNameORConnexionString by :
H/SapServerName/S/3300 : Connection is opened OK.
H/SapServerName/S/3600 : KO.
M/SapServerName/S/3300/G/SAP_LAN : KO
M/SapServerName/S/3600/G/SAP_LAN : KO
Do you know how can i create a accepted connexion string with my parameters (SapServerName , Port Number : 3600, SAP_LAN) ?
Thank's a lot.

Similar Messages

  • Problem with RFC and empty table

    Hi,
    I have a problem using and RFC function module. The problem is that the RFC returns a table type, but even though the table is emtpy the tag is returned. I have this target structure who has a required subsstructure:
    Input:
    <RFC_function_module>
    <customers>
      <customer1>   
        <table1>  (0..1)
          <item>  (0..Unbounded)
           <salesorder>
      <customer2>   
        <table1>
          <item>
             <salesorder>
        <table2>     
           <item>        
              <accountdoc>
    result:
    <customers>
      <list1> (0..1)
        <table1> (1..Unbounded)
      <list2> (0..1)
        <table2> (1..Unbounded)
    The problem is that if i just do at simpel mapping the mapping returns error because the missing table2 in the result. Then i have tried with an Exists function but it seems like the mapping program searches the hole file for just one occurences. Not record by record.
    Do anyone understand my problem an has a solution?
    /Jakob

    OK - what do you mean by to level of mapping? Mapping to an "internal" structure first and then for the final output?
    The reason i do not whant to change the External defintions is because of changes. If the ones who have designet the external defintions ie.  adds a field or something like that, we should remember to change this kind of thing before updating.
    Jakob

  • Connection between SAP R/3 and SAP XI with RFC

    Hi Experts,
    I am beginner in SAP XI.
    We are using SAP XI 3.0 SP 9 and SAP R/3 4.6 C
    I am trying to validate a connection between SAP R/3 and SAP XI with RFC.
    I followed all the weblogs ,and i did exactly the same way, but I am unsucessful...
    Schema not available Exception
    com.sap.aii.af.service.cpa.CPAException: Schema not available for RFC|3b787a8035c111d6bbe0efe50a1145a5|http://sap.com/xi/XI/System.
    at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataSAXHandler.endElement(DirectoryDataSAXHandler.java:262)
    at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.endElement(SAXDocHandler.java:154)
    at com.sap.engine.lib.xml.parser.XMLParser.scanEndTag(XMLParser.java:1826)
    at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1722)
    at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2298)
    at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1719)
    at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2701)
    at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:162)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:126)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:136)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:209)
    at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:270)
    at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:331)
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataParser.updateCentralCache(DirectoryDataParser.java:54)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager.updateCacheWithDirectoryData(CacheManager.java:713)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:595)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:440)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:145)
    Please help me out on this
    Thanks in advance
    Raju

    hi,
    try refreshing you CAP cache:
    741214 (check this note)
    and check if the refresh was successful
    (CPA history)
    Regards,
    michal

  • PROBLEM WITH RFC DESTINATION

    Hi GURU,
    I have a problem with the record of RFC destination.
    When i created RFC destination TCP/IP when i made the tests, it`s ok.
    But when i used this rfc destination in a  function of ABAP. I have an error. The error is:
    RfcExecProgram'#Win32 error 2: The system cannot find the file speci
    Can you help me??
    What should I do to run properly?
    Thank for all.
    regards,
    RAFA

    Hi,
    Even I am also new to SAP , but I have little knowledge about RFC, try to create your RFC of type 3 (ABAP type ), then if you use this RFC , I hope no problem will come if the authorization details and IP /Host name of the destination system are perfect.
    also Please suggest me why ( when ) we use TCP /IP type of RFCs

  • RFC Lookup with RFC - not BAPI

    Hi all,
    Is it possible to make an RFC lookup to a Function Module remote enabled that not is properly a BAPI? I'm trying using Michael RFC lookup sample, but in the sample he uses BAPI_PO_GETDETAIL (it's working fine to me). When I call a Function Module (import it to XI, make all the steps as in the sample), it returns an error "parameter with name RETURN not found".
    I have tried to put this parameter exactly as it is on BAPI_PO_GETDETAIL, but still didn't work. Some tip?
    thanks!!!
    roberti

    roberti,
    Is it possible to make an RFC lookup to a Function Module remote enabled that not is properly a BAPI?
    >> yes you can do it .
    in rfc function module do you have import and export parameters right. check whether Retrun is passed or not. if you dont structure to accept RETURN as input then dont passit RFC function module
    Regards
    sreeram.g.reddy

  • RFC Function Module - Message Reference parameters are not allowed with RFC

    Hi,
    I’ve checked the Remote-Enabled Module radio button, declared Import and Export parameters using ‘Type’ typing and checked the ‘Pass Value’ in export and import parameters but I still receive message ‘Reference parameters are not allowed with RFC’ and not able to activate the function module.
    Am I missing something?
    Regards,
    ...Naddy

    Hi all,
                   I faced the same problem and solved it ,
    You have defined a reference parameter for a remotely called
      function module. However, only value parameters are allowed
      for this type of module.
      Procedure
      Change the reference parameter to a value parameter.
    Guys  pls .don't leave the thread un-asnwered when you solved problem , post the solution it might be useful for others also.
    Regards
    Krishna Acharya

  • How to do with  rfc module which one is changed without effect the applicat

    Hi Masters,
                     i have developed one  webdynpro java application with calling some rfc from r3 side. Now i add extra functionality in rfc . now i have to import that rfc without effecting  the already developed application. How can i do. i came to know that some option is there to do this. please give reply.

    Hello,
    If there is change in business logic without adding any additional parameter in RFC, you can directly use the RFC without importing it. There will not be any adverse impact on existing application.
    However, if there is any addtional parameter or structure change, then you have to re-import he model. It is recommended to restart the J2EE engine after model re-import to clear the metadata cache.
    You may need to do context binding based on your business logic and hence some amount of change is required in existing application.
    Let me know if it clears your doubt
    Abhinav

  • Problem in displaying a field in webdynpro using Adaptive RFC model

    HI,
    I created a webdynpro application using adaptive RFC model and i have a problem in displaying one of the output fields.
    When i execute the function module it is giving the exact value for my output field in this case telephone number (of type STEXT which is char with length 40).But when i am trying to display that telephone number in webdynpro application it is taking only first 4 digits.
    i deleted the model and recreated it still it doesnot work.
    please let me know how to resolve it.
    points will be awarded for sure
    Bala

    Hi Bala,
    Whenever you reimport the model server restart is necessary otherwise the changes will not get reflected. You will get an error when you deploy the application.There is no go around except restarting the server as the meta data gets cached in the server as long as the server is runnig.So, Once you restart the server the cache will be cleared.
    Check once again whether you are fetching data from correct BAPI field. Still problem persist try debugging.
    Regards, Suresh KB

  • Attachments with RFC adapter ?

    Dear Experts,
               I have a SOAP 2 RFC Synchronous Interface in my project, from sender side i.e from SOAP i am receiving data of 20 fields and also the attachment(the format of the file can be JPEG, EXCEL, WORD DOC or VIDEO Files) and these needs to be transferred to SAP R/3 System using RFC Adapter.
    1. can RFC adapter able receive and send these format of attachments to r/3 server ? can you please suggest me on this...

    Hi Raj,
    Thanks..
             The attachment will not go to the file system in ECC, as i stated that sender is sending the Data & attachments, at the ECC system a INCIDENT(SAP HSE) will be created by using the RFC, when you open the Incident in ECC system you should able to see the data in the Incident along with the attachment attached.
    Regards,
    Ravi

  • How to set the tables parameter to a BAPI using adaptive RFC model

    Hi,
    I have a BAPI ZBAPI that has a tables parameter ZPernr of type ZTable with two elements pernr and name.
    I used adaptive RFC model and created model classes for the BAPI.
    My question how do i set list of pernr and name to the tables parameter in the webdynpro for java.
    I have the following methods available
    ZBAPI input = new ZBAPI();
    1.ZTable table = new ZTable();
    table.setPernr(pernr);
    table.setname(name);
    input.addZPernr(table);
    how do i set the table parameter for multiple pernr and name
    2.
    add all the pernr and name to list and set that list to input in the following way
    input.setZPernr(list) and list of typecom.sap.aii.proxy.framework.core. AbstractList
    out of two methods mentioned which one is correct.
    Please let me know the solution
    Thanks
    Bala Duvvuri

    Hi Bala,
                In your code:
    List pernrList = new ArrayList();
    pernrList  should be declared as the  type of class HROBJECT   ( The structure name in the model  e.g. the node PERFWARN type is Zhrecmfm_002_Perfrat_Warning_Input )
    Try this:
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr);
    input.setPernr_List(pernrList);
    // call BAPI execute method
    If you want to pass list of pernrs, you can pass in alternate way
    IPrivate<viewname>.I<nodeame>Node prNode = wdContext.node<node>();
    IPrivate<viewname>.I<nodeame>Element prEle;
    for (int i = 0; i < table.size(); i++) {
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr); // Set the pernr from current record
    prEle = prNode.create<nodeame>Element(pernrList);
    prNode.addElement(prEle);     
    // call BAPI execute method
    Once I execute the BAPI how do i iterate thru second table parameter PERNR_PERFRAT to get pernr and performance rating text
    Say your node name is  PERNR_PERFRAT
    for (int i = 0; i < wdContext.nodePERNR_PERFRAT().size(); i++) {
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPernr();
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPerfrat();
    Regards,
    Siva

  • How to Use synchronous RFC calls during test run for remote accesses

    there is a Setting for the usage of RFC accesses from a tested system
    using eCATT.
    'X' - Use asynchronous RFC calls during test run for remote accesses
    ' ' - Use synchronous RFC calls during test run for remote accesses
    I developed an eCATT as following :
      SAPGUI ( SAPGUI_1 , Target_system_1 ).
      SAPGUI ( SAPGUI_2 , Target_system_2 ).
    My question is how to run the eCATT in a synchronous RFC calls
    PS: I do not want to change the Target_system to the same one in the
    above script of ecatt.Because I need to run it in 2 different Target
    systems sometime.
    for example, I give a Target_system_3 when run this eCATT
    I want the SAPGUI_1 and SAPGUI_2 run the Target_system_3 but not the
    Target_system_1 or Target_system_2 .
    Could you please tell me how to make it without the changes in script?
    Edited by: Weitong Liu on Mar 24, 2011 9:44 AM

    Hi Liu,
    Weitong Liu wrote:
    > ' ' - Use synchronous RFC calls during test run for remote accesses
    This is the standard option value. Asynchronous are not the standard way and used only for very special purposes.
    Weitong Liu wrote:
    > I developed an eCATT as following :
    >   SAPGUI ( SAPGUI_1 , Target_system_1 ).
    >   SAPGUI ( SAPGUI_2 , Target_system_2 ).
    > My question is how to run the eCATT in a synchronous RFC calls
    The commands will be executed in sequence. So each call will be synchronously replayed against TS1 and TS2.
    What is you issue with this standard procedure?
    Kind regards,
    Christoph

  • SAP PI Issue with RFC Receiver Adapter

    Hello,
    Iam using File-RFC scenario, where every thing executed fine, but in ECC iam unable to get the DATA coming from PI, Iam using Z RFC to insert data to a Z table.
    I did'nt any errors in PI, is there any option to find the output data at receiver adapter where iam using RFC adapter.
    Kindly Help,
    Thanks in Advance,
    Ravi.

    Yes. If you enable the logging you should be able to see the post mapping xml.
    Message Staging and Logging Options in Advanced Adapter Engine of PI 7.3x
    Scenario specific message staging and logging in PI 7.31 AAE
    Did you debug the RFC with test data? were you able to insert something?

  • V.02 use different RFC connection

    Hello all,
    We have a situation that when a user executes V.02 in R3 and then clicks on an incomplete Sales Document it jumps to the SCM system to do an APO Availability Check.  The problem is that it uses a RFC connection with a system user and when you are in the SCM system you've got full access.  Is there a way to force V.02 to use a specific RFC connection to jump to SCM so I can set that RFC connection to use current user and log into SCM as the same user that's logged into R3?
    Thanks,
    Tom

    > 2.2  Yes, I would like to setup a new RFC connection to SCM and set as a trusted RFC connection with current user but how do I force V.02 to use that specific RFC connection and not one that used for job...extractions..etc that has the system user in it?
    There must be config which is calling the RFC function using a destination to the SCM system. Normally I just debug the call and look to see where the rfcdes value is coming from. I have also seen it hardcoded on a few occations using sy-sysid - also a form of config, even if a rather hollow one...
    Personally I would try to group them into usage cases, and not necessarily "modules" or anything like that.
    > 1. Dont want to restrict the RFC user as it's used for jobs, extractions...etc.
    This is a nice example.
    Cheers,
    Julius

  • AUTO PO print out creates spool with RFC user.

    We have classic scenario where AUTO SRM PO print out spool is create with RFC user. While PO data is passing to R/3 is correct with correct user (created_by). Out put is created on the name with RFC user not with user who create SRM SC& PO. BADI BBP_CREATE_PO_BACK will help?

    Hi Vishal,
    Welcome to SDN.
    Do they use custom PO SAPScript/Smartform?
    If they do, you may want to check the print program (custom one) and the custom PO form. Perhaps there is some logic to set/display with the european decimal notation.
    If they don't, you can also check the print program setting and do debugging (if necessary) to find out the logic to assign european decimal notation. 
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • Use of RFC destination "DEST" of type SNA/CPI-C connections

    Hi ,
    Please tell me the use of RFC destination "DEST" of type SNA/CPI-C connections in PI system .
    Connection test for this RFC is failing with message "Error when opening RFC connection" . whether it is normal ?
    Regards ,
    Hanumant

    Dear Hanumant Anarase,
    Have you find any solution for your problem,
    Because i am facing the same issue, as you mentioned above.
    Regards,
    Furqan

Maybe you are looking for