TADIR over RFC / RFM

Hi,
Does anyone know of a remote-enabled function module (RFM) that would allow me to insert object directory entries into TADIR? I've found TR_TADIR_INTERFACE, which is perfect for what I need, but its not remote enabled.
I could write my own ABAP RFM which wraps around TR_TADIR_INTERFACE, but I'm writing a widget that I want to share with others, so I'd rather use standard SAP RFM if at all possible.
In case anyone is wondering, I'm wriitng an Eclipse plugin for Adobe Flex which allows you to export the compiled Flex applications into SAP as MIME objects. I can export the MIME objects into SAP fine, I just can't create directory entries for them, and therefore can't transport them
Many thanks
Graham

Hi Piers,
all works instead of one coding line
"sprintf(exporting[0].addr, "%s", some_cpp_value.c_str());"
and so it looks by me
exporting[0].name = malloc(8);
memcpy(exporting[0].name,"I_RACKID", 8);
exporting[0].nlen = 8;
exporting[0].type = RFCTYPE_CHAR;
exporting[0].leng = 4;
exporting[0].addr = malloc(5);
memset(exporting[0].addr,0,5);
sprintf(exporting[0].addr, "%d", value->get_racid());
The value i want to export is returned by the method value->get_racid() .. it is an integer value with 4 places..
If i want to compile my programm follwing error message gets out:
error C2664: 'sprintf' : Convert the Parameters 1 from 'void *' into 'char *' not possible.
What is wrong, what have i to do?

Similar Messages

  • Proxy over RFC

    If we have a FM which is not RFC enabled then which is a better option and why:
    whether to create another RFC and internally call this FM in it
    or
    use ABAP proxy to do the job.
    If ABAP proxy is a better choice based on SAP standards the procedure for doing that would be helpful.

    HI
    ABAP proxy will be better way to do it. RFC do have lots of limitation as well that you can avoid like number of connections etc. You can reach customerization of the level you are intrested using Proxy
    Moreover you dont need to touch original RFC FM for making calls.
    ABAP proxy is not the only solution we do work on Wrapper over RFC as well for achieving the desired requirement before implementing proxy
    Thanks
    Gaurav

  • Advantage of Enterprise Service over RFC

    Hi All,
    What benefits does using an SAP Enterprise service provide over an RFC?
    thanks,
    Piyush

    Hi,
    Most important advantage of ES over RFC is harmonization and open standard compliance (SOAP, WSDL, XML etc). While RFC is perfect if used only close connected SAP infrastructure but it is not open for consumption with cross-system usage.
    Harmonization: while fileds in RFC will only make sense if you have worked in ABAP otherwise they are like greek to you (or other application developers), with ES data fields are harmonized and they are more acceptable across s/w vendor base and developers.
    Standards: ES is like any other webservice is based on standards which is open for adoption and supported by almost all modern programming language. So everyone speak the same language.
    Regards,
    Gourav

  • Advantage BAPI over RFC

    Hi,
    I like know the difference between BAPI over RFC. I know this question answered several times thru this forum. But still i have not clear about the advantage BAPI over RFc.
    All RFC-enabled function modules can be accessed from the outside, irrespective of whether it is a standard BAPI, a user-defined BAPI or a "normal" RFC function module.
    I like to know what will be the real advantage to create custom BAPI instead of RFC function module. I know the BAPI will create a BOR. in that case what will be the advantage of an BOR over RFC call. I neither see a technical nor a business advantage having a user-defined BAPI instead of a normal RFC function module.
    Anybody please give some info over BAPI over RFC.
    Thanks for your replies.
    aRs

    Hi,
    BAPI are RFC enabled function modules.
    The difference between RFC and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. In this case u only specify the business object and its method from external system. in BAPI there is no direct system call. While RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    *The advantage of using BAPIs over using RFCs is that using BAPIs requires no ABAP programming knowledge. You use BAPIs from standard programming languages such as C++ and Java. *
    Check these links too..
    http://help.sap.com/saphelp_46c/helpdata/de/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
    Difference between Function Modules, RFCs and BAPIs...
    Hope it is useful.
    Regards,
    Kumar
    Message was edited by:
            kumar kk

  • WEB AS - XI over RFC

    Hello,
    I have a web as partner and he will send data over his WEB AS (JCO) to XI. Can I take the RFC Adapter and where I get the Program ID or is there an other way to registrate the rfc?
    Kind Regards Johann

    Hi,
          in your scenerio, u r using sender RFC adapter. For that you hav to make a RFC Adapter in communication channel and put an arbitary Program ID name. Then Us the program Id name and create a TCP IP connection in R/3 in SM59. There select the REgister Program ID  option and pur the Program Id name. Put the correct Server gateway and host, validating it from SMGW save and go for the test connection. Create your RFC and send data in XI.. it is sure to work..
    Arnab
    Edited by: Arnab Mondal on Sep 17, 2008 8:58 AM

  • In PI 7.1 better performance is reached using RFC or Proxy?

    Hello Experts,
    As with PI 7.1 which one would be better option to have better performance?
    1)Proxy which goes through the Integration Engine by omiting Advance adaptor Engine
    2)RFC which goes through the AAE by omiting Integration Engine
    As we know there are alot of advantages of Proxies over RFC:
    1. Proxy communication always by passes the Adapter Engine and will directly interact with the application system and Integration engine. So it will give us better performance.
    2. Proxies communicate with the XI server by means of native SOAP calls over HTTP.
    3. Easy to handle messages with ABAP programming if it is ABAP Proxy .
    4. Proxy is good for large volumes of data. we can catch and persist the errors ( both system & application fault ) which was generated by Proxy setting.
    Thanks in Advance
    Rajeev

    Hey
    More than the performance,its a question of requirement.
    There are several restrictions which you need to consider before using AAE.To name a few
    IDOC,HHTP adapter wont be available
    No support for ABAP mapping
    No support for BPM
    No support for proxy
    No support for Multimapping,content based routing ( in first release)
    So if you want to use any of the above you cant use AAE in first place.but performance is significantly improved,upto 4 times better that simple AE-IE
    /people/william.li/blog/2008/01/10/advanced-adapter-engine-configuration-in-pi-71
    check the above blog and the article mentioned in it.
    Now coming to proxy,it supports all the above and performance is not that bad either.
    so it all boils down to what your requirements are:)
    Thanks
    Aamir

  • RFC (using AAE) vs IDoc (Using IE) vs ABAP Proxy (using IE) in PI7.1

    Hi All,
    In previous versions of SAP PI, SAP recommends the use of IDoc or Proxy over RFC mainly due to performance reasons, but with PI 7.1, RFCs can use AAE which significantly boost its processing.
    So the question is, with PI 7.1, is the performance of RFC adapter using AAE good enough that is should be considered over IDocs (using IE) & Proxies (using IE)? Please provide elaborate reply.
    Thanks,
    Rahul

    >>>>>So the question is, with PI 7.1, is the performance of RFC adapter using AAE good enough that is should be considered over IDocs (using IE) & Proxies (using IE)? Please provide elaborate reply.
    Answer: If your major objective is only the performance factor then you can go for AAE using RFC. But RFC's individual processing performance is slightly lower than idocs and proxy.
    Though AAE monitoring is just only in RWB,  But due to less persistence steps involved in the entire processing, RFC with AAE supercede other options.
    IDOc using IE vs Abap Proxy using IE --- I would recommend only Abap Proxy using IE. Plus you get all the monitoring features here.

  • Query on using RFC or proxy

    Hi,
    I  have a scenario which is from SAP to PI to Legacy. The legacy system is giving a wsdl file.And from SAP we have a standard BAPI available. I am thinking of going for a RFC-PI- SOAP scenario. But there are discussions going on to use Proxy. Please let me know which would be the feasible option using RFC or proxy at the sender.IT is a synchronus
    Thanks

    is depends upon the requirement- if u have std bapi of RFc available for the same requirement then go for that and if not then u can create ur custom program to send the data through proxy...proxy will have added advantage of performance..over RFC.
    chirag

  • Doubt on FILE to RFC & PROXYS

    Hi everybody,
                        I'm able to solve most of my doubts by this forum, thankz to everybody who assisted me.Here are some simple doubts plz give solutions to them as many as possible
                  1.In my FILE to RFC scenario I'm using BPM & i should send response back to SENDER so what steps should i include in it ? I'm using BAPI_GOODS_MVT_CREATE bapi?
                  2.In my FILE to RFC scenario  I'm maintaining single SLD for DEV,CONS,PROD ,so can i configure my file sender service directly in ID as a BUSSINESS SERVICE?
                  3.Can any one give some information In which case we have to go for
    PROXY &  in which case for IDOC?exluding this reason  " if syst config is >6.20 or else go for IDOC or RFC for an sap system?
                  Plz kindly answer to this questions & valuable answers are rewarded.
                                                                                    Regards,
                                                                                    Vinod.

    <i>1.In my FILE to RFC scenario I'm using BPM & i should send response back to SENDER so what steps should i include in it ? I'm using BAPI_GOODS_MVT_CREATE bapi?</i>
    >>>
    Ref: /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Else in case you have SP19 then ref this abstract from an earlier post !!
    <i>All,
    Just thought I'd add a quick note here.
    From SP 19 on XI 3.0 and SP 10 on PI 7.0, a File - RFC - File ( Asynch - Synch ) scenario can be done without a BPM.
    Steps:
    Integration Repository
    The Integration Repository will be similar to any Synchronous Scenario ( say HTTP - RFC ) . 1 Outbound Synch message Interface and 1 Inbound Synch Message Interface.
    Integration Directory
    This is where a few differences lie, so let me take some time.
    1. The Receiver Determination , Interface Determination will be the same as in HTTP - RFC synch scenario. Create the Sender File Adapter, Receiver RFC Adapter and Receiver File Adapter.
    2. Sender Agreement will be for the Sender File Adapter. Sender Agreement uses the Synch Outbound Message Interface.
    3. Receiver Agreement will be for the Receiver RFC adapter. Receievr Agreement will use the RFC as thge Inbound Message Interface.
    4. We need to add a few modules in the Sender File Adapter.
    Go to the Modules Tab of the Sender File Adater, and add the following modules in the same sequence,
    Number - ModuleName - Type - ModuleKey
    1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
    2- CallSapAdapter-Local Enterprise Bean - 2
    3-AF_Modules/ResponseOnewayBean-3
    Parameters
    ModuleKey - ParameterName - ParameterValue
    1 - passThrough - true
    3-receiverChannel - Receiver File Adapter Name
    3-receiverService - Receiver Business Service/ System
    With this configuration, you can now handle the requirement without a BPM
    This feature been already blogged for JMS Adapters in these blogs ,
    Sync/Async communication in JMS adapter without BPM (SP19)
    Async/Sync Communication using JMS adapter without BPM (SP 19)
    Dynamic Configuration is also possible,and this as well as many other options are discussed in the How To guide - "How To Realize a sync-async and async-sync
    bridge within the Adapter Framework" available on the Service Market Place.</i>
    <i>
    In my FILE to RFC scenario I'm maintaining single SLD for DEV,CONS,PROD ,so can i configure my file sender service directly in ID as a BUSSINESS SERVICE?</i>
    >>
    you can use Business service !!!
    <i>3.Can any one give some information In which case we have to go for
    PROXY & in which case for IDOC?exluding this reason " if syst config is >6.20 or else go for IDOC or RFC for an sap system?</i>
    >>>
    Advantage of Proxy over RFC, IDOC
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

  • Custom Idoc or RFC

    Hello,
    In XI Interface File Adapter pick the data and it needs to sent to SAP R/3 to create Measurement Document.
    Should I create Custom IDOC import into XI and by using IDOC Receiver Adapter  send data to SAP R/3 and through Posting Program create Measurement Document.
    Should I create Rempte Enabled RFC and use RFC receiver Adapter and through Function Module create Measurement Document.
    Pls suggest

    Hi henry,
    there are various ways;
    1. IR or ID Goto Menu -> Help -> INformation
    2. XI start page -> Administration -> Software Build Information
    and regarding RFC and Idoc we have already answered u!!!
    now check ur WAS version...if its >=6.2 use proxy if not use RFC.....
    ok see here...
    Advantage of Proxy over RFC, IDOC
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems
    Regards
    BILL
    Use a Good Subject Line, One Question Per Posting - Award Points
    Message was edited by:
            biplab das

  • RFC and Proxies

    -> When we have Proxies why do we still to go for RFCs?
    -> Could someone tell me the advantages and disadvantages of RFC over Proxies and Proxies over RFC?

    Hi Nalina,
    Advantages of Proxies over RFCs/BAPIu2019s :
    u2022     Proxy communication is better than RFC/BAPI communication when performance is concerned. Stability and performance of ABAP proxies is high when compared to RFC adapter for BAPIs.
    u2022     Proxies are used for both Synchronous and Asynchronous communication. EOIO quality of service can be obtained with Proxies and not with RFC/BAPI.
    u2022     Proxy allows application acknowledgement handling very well which RFC/BAPI does not provide.
    u2022     ABAP proxies support two different protocols i.e. XI and Web Services.
    u2022     Proxies are used when you have large chunks of data coming in and that too if it is unstructured, so if it comes from a SAP system we go for a ABAP proxy.
    Regards,
    Madhu

  • Memory speed only showing 200mhz on post

     
    so heres a strange one.  I just moved the guts of my system into a new case this past weekend.  When I booted up for the first time I noticed in post my memory speed is only showing 200mhz.  I have 3 sticks of memory in my system and should run at 333mhz, which it was befor ethe move.  Even mroe curious, I took out one stick and set the remaining two in slots 1/3 and the system only reads it as 333... not 400.  I am a bit perplexed and have no clue how to fix this.  My specs are below.  I know that it is HIGHLY recommended to run chips that are similar but I've never had a problem until I moved the guts to the new case.
    In bios I have memclock set to AUTO.  I have changed the memclock to LIMIT DDR400 but that doens't change anything.  I've tryed changing the CL/TRCD/TRAS/TRP with both LIMIT DDR400 and AUTO....  no changes.  I have upped the voltage all the way to 2.85 with again both memclock settings.  I have played around with my FSB, I've gotten it all the way to 215 without a problem, but memroy always stays at 200mhz.  The only thing I haven't tryed is resetting the bios witht he jumper and starting over (though I had reset bios defualts, rebooted and then made all teh changes again). 
    I ran Memtest for 24 hours on all three sticks and they all came out clean.  I also ran Sandra 2005 and the numbers are embarrassing for the kind of system I have.  I'm stumped, any suggestions?
    OH, one last thing, I booted the system with just one stick of memroy in each slot, thats 9 boots...  each witht he setting of memclock at AUTO and again at LIMIT400...  it either ran at 200mhz or 333mhz on post....
    So there is my ordeal, system is stable but I'd like to get the memmory back up to where it was before the swap.

    Ok...  I shoulld clarify.
    with 3 sticks of DDR3200 sandra ran a little over 1200
    with 2 sticks of DDR3200 (slots 1 and 3) sandra ran a tad over 2108
    there are a couple of pictures eblow to show the post at 15.gig memroy and 1gig.  I am refferin to what is being displayed on POST in regards to the DRAM clock.
    Link to 1.5gig at DRAM clock speed 200mhz
    http://groups.msn.com/shadowalliance/tempfolder.msnw?action=ShowPhoto&PhotoID=27
    Link to 1gig at DRAM clock speed 333mhz
    http://groups.msn.com/shadowalliance/tempfolder.msnw?action=ShowPhoto&PhotoID=28

  • SEM-BPS how to load additional data for special users at runtime?

    Let´s assume you have a transactional info cube which contains SD Data from the source system.
    If you want to show additional data, let´s say the attributes of the sold materials which can be read in the table MARA of the source system (provided you use R/3, etc.)
    and you only want to show this data for a small amount of users, which need to see it, then i wonder how to do  this.
    am i right, that i can use the exit functions to init key figures, i.e. i could write some code which connects to the source system over RFC, downloads the data at runtime and presents it at the users excel sheet????
    moreover, is it necessary to extend the existing cube, just to achieve this aim?
    Message was edited by: Gideon Lenz

    Hello Gideon,
    there's no need to program anything. You can display any attribute in planning layouts. In your case you would extract the master data from material from SAP R/3 (MARA) into BW. The setup the layout to show the required attribute(s) in the layout in BPS.
    If the attribute is relevant only for a specific user group, just give them access to this "special" layout (create a planning folder or web interface for this group).
    Regards
    Marc
    SAP NetWeaver RIG

  • Create single-roles in satellite-system

    Hello everybody,
    I want to create Single-role´s in a satellite-system over RFC but the Fm´s in the Functiongroup PRGN are not remotable. Is there an alternative way to create these single-roles in a satellite-system? Up-/download and transport function isn't a alternative because my requirement is to create the single-roles an from excel-import. I considered that one way could be to copy the roles in the satellite.
    Regards,
    Christian

    You can create an RFC-able FM that is a wrapper for that FM.
    Neal

  • Automatization is possible or not??

    Hi,
    Please help me in following scenario.....
    Customer is creating and maintaining queries and workbooks in production BWP. They assign them to menu roles.
    If we transport one of these roles from dev to production, it will overwrite the role in production, and all assignments of queries and workbooks to role will be lost.
    To solve this issue and still allow customer to create and assign their own queries & workbooks, we could manually reassign queries & workbooks to roles and transport back periodically from production to dev so that there will be less gaps and reassignments to be done after transport.
    In the meanwhile, customer is asking if it is possible to automatize this process.
    To test whether this automatization is possible or not, we would need to know the table(s) of linking between ( queries, workbooks, views ) and roles.
    Could you please help me looking for this SAP BW database table ? It would be very good if we can automatize this.
    Thanks & Regards
    Rupali Singh

    You will need to write ABAP code for this (and you can put it in a chain or a job - to run periodically).
    SAP stores the data relationships in many tables and so it is hard to be definitive about what tables you need to sync to ensure the roles are in sync. I would suggest you write (or seek help from an ABAPer) ABAP code that
    - reads AGR_HIER table from production (you can do it from DEV itself using say RFC_READ_TABLE FM over RFC)
    - Compares it with AGR_HIER table entries in DEV
    - Add any entries that are in Dev but not in prod to this table (INSERT/MODIFY)
    This will make role folder in Dev appear similar to production. You can run this ABAP code periodically to sync the roles.
    - Disclaimer - you need to try it with one or two entries in roles to see if it actually works.
    - Disclaimer #2 - you will only have these entries in the role folder. The actual query/wb in production wouldn't have come across from production. So, if you try to open any of these workbooks in Dev, even though the link is there in the role folder, it will fail to open and give an error message.

Maybe you are looking for

  • Check condition in Loop step in BPM

    Hi All,   Need urgent help... I have to specify the condition in loop in such away I need to receive and bundle IDOC1 till I get IDOC2.  Please let me know how to specify the condtion in loop. Thank you in advance Regards, Dhill.

  • Do I need 32 bit version of software?

    I'm running CS6 on 64 bit laptop. Do I need the 32 bit version also, or can I unintstall that part?

  • Shows tons of unwanted pop-up ads and get redirected to unknown sites automatically

    When i started my PC lately, it was fine. But now i have a problems With my computer. When I connect my system to Internet and start browsing, I find lots of unwanted ads coming on my desktop. Aside this my browser also get redirected automatically t

  • Melt Variables doesn't work.

    Hi everybody, I have a web template having one query and two query view (from same query). I have a variable to be selected before web template runs. This variable exists in all queries in the web template. I checked the  "melt variables" option, but

  • View all what I have done from a specific start point or time frame ?

    While I am Creating A Controlling Area,  and Defining a Cost Center Standard Hierarchy get a phone call or meeting.   Need to get back to keep going,  is there a way or a T-Code to view all what I have done from a specific start point or time frame ?