Using infotypes in RFC

Hi, i need to create a rfc to get data from the infotypes 0001, 0050 and 9005, how do i use the PNP in the RFC? or i'll have to use some FM's to get the data from the infotypes??
Sergio.

Hello Sergio,
Create your own RFC FM on tcode SE37, and iside use a FM for readin Infotypes.
Use this FM ...
RP_01C_HR_READ_INFOTYPE
Hope this helps
Gabriel P.

Similar Messages

  • How to call RFC in Async Mode using TCP/IP RFC Destination ?

    Hi experts,
         Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
    Regards,
    Umesh

    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
    It says
    <b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
    Regards,
    Abhishek

  • Implemanting Rosettanet PIP 3A4 using BAPI's / RFC's

    Has anyone implemented RosettaNet 3A4 scenario in a productive environment with XI using BAPI's / RFC's?
    We are looking to build B2B using Rosettanet 3A4 but having a hard time finding success stories. Any help would be greatly appreciated!
    Alon

    Hi Alon
    where do u work in israel?

  • How to use IDOC and RFC adapter in 1 scenario?

    We have AAA field and BBB field and we want to send AAA field to receiver sap system using IDOC adapter and BBB field to receiver sap system using RFC adapter. But how to use IDOC and RFC adapter in 1 scenario and how to map and  what are the design and configuration objects we require to create?

    To achieve this you have to use
    Two Interface Determinations
    Two Communication Channels (IDOC & RFC)
    & Two Receiver Aggrements.
    Use the Enhanced Interface determination and give your conditions there. Based on you condition your interface mapping will be triggered and data will be sent to IDOC & RFC respectively.

  • Use of Adaptive RFC and locking

    Hello,
    I am using an adaptive RFC model inside a Web Dynpro Application to maintain data residing on a SAP Enterprise system.
    This RFC also sets a lock in order to make sure nobody else tries to change the same data.
    I use pessimistic locking which means:
    1. Web Dynpro calls a RFC
    2. The RFC first locks the data then reads the data and returns the result back to Web Dynpro
    3. The user changes the data and presses a save button
    4. Web Dynpro calls the RFC to write and unlock the data
    The problem i have is the fact that after locking and reading of the data the RFC is ended and the data is received by the Web Dynpro App. But at the same moment the lock is automatically unlocked because the RFC has ended succesfully.
    How can i achieve that the lock is still there at the moment i want to change the data or is this procedure of pessimistic locking not possible?
    Bertil

    Hi,
    Whether possible or not : Don't know. Probably not with RFCs.
    More importantly, shall you do it? If it is transactional data you are updating , you may wish to consider concurrency issues (what if you locked and came to web dynpro, and user is thinking whether he shall take a coffee break first before pressing the 'Save'. Would you like to keep this record(s) locked and unavailable for the entire duration?)
    Normally, you would read the data in the first call, let the user update it on the second screen, and then, when the user presses save, execute in sequence :-
    - try locking the record,
    - if locking is successful, Verify whether the record you read has changed in the meanwhile or not (verify what you have in your workarea(before changes done by user) is the same as in DB, by reading again from the DB)
    - If above check is successful, go ahead with the update else throw an error message to the user to redo the txn
    - unlock, exit
    hope this helps,
    cheers,
    Ajay

  • Use of statefull RFCs in WebDynpro

    Hello,
    i want to create a WebDynpro application which uses RFCs. Every RFC call will relay on the fact, that ABAP-Memory updated in previous call can be accessed. What do you think, will it work? is it a correct strategie?
    Will it work if i use web service created from RFC and if not-sap application use our rfcs/web services?
    thanks
    Paul

    Hi again.
    I've never used RFC this way and I am not aware of how the context for the
    connection is kept in backend after the call returns, especially when thinking about many
    different user of you WD4A application which all use the same RFC Connection.
    But as I said I do not know it.
    Anyway it seems to be strange for me to handle the R/3 backend like a statefull
    application server. 
    Maybe someone else can help you here.
    Cheers,
    Sascha

  • What is the use of t-rfc in ALE? compared to t-rfc, Qrfc is better and effi

    what is the use of t-rfc in ALE? compared to t-rfc, Qrfc is better and efficient?

    Hi Sunil,
    These are the types of RFC
    Asynchronous RFC (aRFC)
    Synchronous RFC (sRFC)
    Transactional RFC (tRFC)
    Queued RFC (qRFC)
    Parallel RFC (pRFC)
    Asynchronous RFC :
    This is used when you need to increase the performance of ABAP program by having system call more than one function module in parallel than forcing the program to wait for results .
    Transactional RFC
    This let you group one or more function module call together o tRFC LUW and ensure that fucnction module within LUW is called once . In contrast to aRFC and sRFC the tRFC belonging to tRFC LUW are executed in order .
    tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls are
    1.Executed in the order in which they are called
    2.Executed in the same program context in the target system
    3.Run as a single transaction: they are either committed or rolled back as a unit.
    Implementation of tRFC is recommended if you want to guarantee that the transactional order of the calls is preserved
    Asynchronous remote function calls (aRFCs) are similar to transactional RFCs, in that the user does not have to wait for their completion before continuing the calling dialog. There are three characteristics, however, that distinguish asynchronous RFCs from transactional RFCs:
    • When the caller starts an asynchronous RFC, the called server must be available to accept the request.
    The parameters of asynchronous RFCs are not logged to the database, but sent directly to the server.
    • Asynchronous RFCs allow the user to carry on an interactive dialog with the remote system.
    • The calling program can receive results from the asynchronous RFC.
    You can use asynchronous remote function calls whenever you need to establish communication with a remote system, but do not want to wait for the function’s result before continuing processing. Asynchronous RFCs can also be sent to the same system. In this case, the system opens a new session (or window). You can then switch back and for between the calling dialog and the called session
    RECEIVE RESULTS FROM FUNCTION Remotefunction is used within a FORM routine to receive the results of an asynchronous remote function call. The following receiving parameters are available:
    IMPORTING
    TABLES
    EXCEPTIONS
    The addition KEEPING TASK prevents an asynchronous connection from being closed after receiving the results of the processing. The relevant remote context (roll area) is kept for re-use until the caller terminates the connection.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Change Field desription in report using Infotype

    Hi,
    I create a HR Report, using infotype's. When we execute the report, it fields description comes in unknown format...means user can't understand that.
    Please let me know From where we can change the field description of any column.
    Plz. help...

    U are Welcome!!
    If u are using alv then manually fill the field catalog and give the field names as u desire as i have done in below code...
    * Column 1 in ALV
      ls_fcat-no_out = '' .
      ls_fcat-col_pos = 1.
      ls_fcat-tabname = 'oitab'.
      ls_fcat-fieldname = 'Field 1'.
      Is_fcat-outputlen = '10'.
      ls_fcat-edit(1) = ''.
      ls_fcat-no_sum = 'X'.              "Only Output, if input then 'X'
      ls_fcat-key = 'X'.
      append ls_fcat to fieldcat.
    * Column 2 in ALV
      clear : ls_fcat.
      ls_fcat-col_pos = 2.
      ls_fcat-tabname = 'oitab'.
      ls_fcat-fieldname = 'Field 2'.
      ls_fcat-edit(1) = ''.
      ls_fcat-do_sum = 'X'.
      ls_fcat-key = ''.
      append ls_fcat to fieldcat.
    * Column 3 in ALV
    clear : ls_fcat.
    ls_fcat-col_pos = 3.
      ls_fcat-tabname = 'oitab'.
      ls_fcat-fieldname = 'Field 3'.
      ls_fcat-edit(1) = ''.
      ls_fcat-do_sum = 'X'.
      append ls_fcat to fieldcat.

  • Best Scenarios when to use IDOC Adapter, RFC Adapter and Proxy

    Please provide me links/weblogs which demonstrate the full scenario that when to use IDOC Adapter, RFC Adapter and Proxy when working with sender R/3 system.
    Regards
    Rachit

    Hi abhinash,
    Check these links for java proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    for ABAP Proxy ...
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    for RFC .....
    RFC-xi-SOAP Scenario
    How to send RFC response message back to XI File/FTP adapter?
    https://weblogs.sdn.sap.com/pub/wlg/3865//Troubleshooting [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    Hope you will find them useful ..
    Regards
    Abhi

  • Using an Adaptive RFC Model from JSP

    I'm trying to use an Adaptive RFC Model I created for use in our Web Dynpros from a Portal Application project. I've created 2 DCs:
    1. A Web Dynpro DC, only containing the imported Adaptive RFC Model. The model has been added to the public parts.
    2. A Portal Application DC, with the model DC added as a DC usage (along with the other required DCs)
    Now, everything appears to work from inside NWDS. The dot operator works while editing my JSPDynPage class, and everything builds fine, but when I deploy and test in the portal, I get "package not found" errors on the actual JSP. I assume this is because the JSP is compiled at run-time. How do I expose these classes to the JSP compiler?
    It's seems like using the same method to call BAPIs in Web Dynpros and Java iViews would be a good practice following SAP's "reusable code" policy, so there must be a way to do it...

    Jonathan,
    Adaptive RFC Model works correctly only when running inside WebDynpro container. JSP runs outside container (in regular J2EE WebApplication container).
    The error you receive is due to missing run-time references to container classes.
    Actually, what you are trying to do is dead end, sorry.
    Use SAP Enterprise Connector instead of Adaptive RFC model. Generated connector classes works from any environment. Also they are sooo similar to Adaptive RFC that you'll even not mention a difference.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Cost assignement using infotype 2003

    Hello,
    How can I change cost assignement using Infotype 2003.
    I have created the infotype 2003 with the ney cost center, and table  C1 is generated in the time evaluation, but in payroll the cost center is still the master cost center of IT0001.
    How can I change the cost center using infotype 2003 and transfered to the payroll?
    thx.
    Enrique

    Thanks Santhosh for the answer.
    So I can understand that the cost center will not be changed from IT2003 for the payroll, it only be changed if change in IT0001 or IT0027. true?
    Why IT2003 have the option to change cost assignment?
    I was doing some tests and could see that if a time wage type (for example an attendance) is generated in the same period of the IT2003 these wage type is transfered to the payroll with the new cost assignment . Is it the standard behavoir of the IT2003?
    The only way to change the cost assignment for all the payroll (instead of IT0001) for a period is using IT0001 or IT0027?
    thanks,
    Enrique

  • Help - using table as RFC input

    Dear all,
      I'm new to web dynpro.I've just created a program to create PI doc. I had already import the module as well as configure the JCO.
    Bapi_Matphysinv_Create_Input input = new Bapi_Matphysinv_Create_Input();
    wdContext.nodeBapi_Matphysinv_Create_Input().bind(input);
    input.setHead(new Bapi_Physinv_Create_Head());
    how should i declare the table as input for RFC? any example for using table as RFC input? i had already look into the TutWD_Flighlist...but it seems doesnt do me any good.. pls help and advice. Thank you.

    Hi Joan,
    1. Create a value node in your context.
    2. Add value attributes to this all those required for your input to BAPI(Keep its  
        type same).
    3. Bind this node to table UI element and keep all the column type as input field
        so that you can enter value in that at runtime.
    4. Now in you action where you execute BAPI just before that set all these values from node to model node.
    eg.
    Bapi_Matphysinv_Create_Input input = new Bapi_Matphysinv_Create_Input();
    Bapi_Physinv_Create_Head() head =new Bapi_Physinv_Create_Head();
    for(int i=0; i<wdContext.node<valueNode>().size();i++)
    head.set<Attribute>(wdContext.<valueNode>().get<ValueNode>ElementAt(<index>).get<attributeName>);...
    input.addHead(head);
    wdContext.nodeBapi_Matphysinv_Create_Input().bind(input);
        try
        wdContext.currentBapi_Matphysinv_Create_InputElement().modelObject().execute();
        wdContext.nodeOutput().invalidate();
        catch(Exception e)
    Regards,
    Murtuza

  • Using Infotype 2050

    Hi All,
            I have a requirement to use infotype 2050 in a program. Now when I checked in the database there are no assosciated table. Some one suggested PA2050, but that table is not present. I could get only one structure named P2050.
    I have also tried to use FM HR_READ_INFOTYPE but the same error comes.
    Is there any config settings etc need to be done.
    My requirement is the Employee Leave records - which is infotype 2050. Is there any other way in which I can fetch the relevant info for this.
    Please reply ASAP.
    Thanks
    Baradakanta.

    or u can use this function module which perfoms operationson infotype:
    p0002-begda = p_date.
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            INFTY                  = '0002'
            NUMBER                 = pernr-pernr
      SUBTYPE                =
           OBJECTID               = p0002-objps
           LOCKINDICATOR          = p0002-sprps
           VALIDITYEND            = p0002-begda
           VALIDITYBEGIN          = p0002-endda
           RECORDNUMBER           = p0002-seqnr
            RECORD                 = p0002
            OPERATION              = 'INS'
           TCLAS                  = 'A'
           DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
         IMPORTING
           RETURN                 = return
      KEY                    =
    try giving ur infotype numbet inthe infty argument and fill the required parameters in the func module.......
    any help furhter ask, i ll try tosolve but cant guarantee as am also not wel versed inHR

  • ABAP program using infotypes and FM

    Hi all,
    I have to work on  abap -HR module,  which is using infotypes, BDC, FM, internal tables.. As  I am new in this  and no more idea. So can you please share some document  and some  simple program, so that I can understand the HR modules with respective to ABAP and can work.
    Your help  will be appreciated.
    Thanks

    hi ram,
    check these links...
    http://www.sap-basis-abap.com/saphr.htm
    http://www.sap-basis-abap.com/books.htm
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://planetsap.com/index.htm
    http://www.atomhr.com/library_full.htm
    http://www.sap-basis-abap.com/saphr.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
    http://www.sapfriends.com/sapstuff.html
    http://www.sap-basis-abap.com/saphr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
    http://www.saptips.com/Previews/SAPtipsAugust-September2004TableOfContents.pdf
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d528be575e11d189270000e8322f96/frameset.htm.
    http://www.sap-basis-abap.com/saphr.htm.
    http://www.sapgenie.com/faq/hr.htm
    http://www.sapgenie.com/workflow/scenarios.htm
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.sapgenie.com/mysap/mysap_hr.htm
    Re: remunaration statement

  • Limitation using infotype 0302

    hi experts,
    I have one question. I want to change current report instead of using infotype 0000 to use infotype 0302. This is because infotype 0000 not store 2 action in same days. my question is, if I change to infotype 0302, what impact wil happened. Is it same infotype except it allow  multiple action in same days or there is limitation in infotype 0302
    Thanks in advance

    Hi MJ,
    I believe you have a custom report which right now fetches from PA 0000 and now you want to fetch from PA 0302.
    The basic differences is as told by other experts in their comments but I would like to highlight some specific points.
    1. IT 0302 will only have action type and action reason for a key date i.e. start date of action
    2. It doesn't have employment status fields.
    So, in case your reports needs data related to various statuses then you will have to read both IT 0000 and IT 0302 in the date range.
    cheers
    Ajay

Maybe you are looking for