Rfc wrapper

hi 
i wanna use bapi_po_create in http to bapi scenario.
i need steps to create custom wrapper from bapi with some fields not to be used
The custom BAPI has only a minimal number of import parameters, representing the
mandatory fields. This will simplify the mapping definition process.
thanks and regards
vijender

<i>> This will simplify the mapping definition process.</i>
Normally a Wrapper RFC is written as your current RFC does not meet the required functionality. If you want to write a Z RFC because you just want to simplify maping in XI, it makes no sense. You can always disable the fields you dont want.
Regards
Bhavesh

Similar Messages

  • Mass interfaces: BPM or RFC wrapper

    Hello
    My scenario is HTTP->XI->RFC. Sender interface has collection of objects. SAP side has BAPI that works with one object. For example BAPI like CHANGE, CREATE doesn't take collection.
    What is the best design - to emulate mass interfaces in BPM(forEach block) or to create a RFC wrapper that takes collection and executes BAPI for each object?

    Hi,
    you can also try creating an IDOC
    (which will invoke your bapi inside)
    and post then all in a bundle
    (even from BPM)
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    it many not be very easy to design a BAPI
    for many messages and with IDOC approach
    you just need one - so more or less standard
    and you can post then as in my weblog
    BTW
    your scenario has to be async of course for this
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Problem passing a table in an RFC wrapper in ECC to a FM in SRM?

    I am creating a wrapper around FM 'TEXT_CONVERT_XLS_TO_SAP' in ECC, because I cant find a FM in SRM to convers an excel file into an itab. I pass an excel sheet from SRM to this wrapper to convert the values into an Itab and pass then back to SRM. The problem is the parameter "i_tab_converted_data = i_converted" from 'TEXT_CONVERT_XLS_TO_SAP' is of type STANDARD TABLE. So when I created the Itab = i_itab_converted_data in my program using a type I declared in my program, I can't use the type to create the exporting parameter in the FM to pass the itab back to SRM.

    >
    DEMVIL wrote:
    > What I was saying was tthe I_TAB_CONVERTED_DATA is of type "STANDARD TABLE" therefore if I create type and create a table of that type, in this case table I_CONVERTED, it works, but can't use the type to create an export parameter.
    >
    > CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    >     EXPORTING
    > *   I_FIELD_SEPERATOR      =
    > *      i_line_header       = 'X'
    >       i_tab_raw_data       = i_raw
    >       i_filename           = l_filename
    >     TABLES
    >       i_tab_converted_data = i_converted
    >  EXCEPTIONS
    >    conversion_failed       = 1
    >    OTHERS                  = 2.
    It should work. how have you defined i_converted? Below is what I have used and it works fine for me.
    TYPES: BEGIN OF ty_datatab,
      matnr          TYPE char18,  "Material Number
      short_text     TYPE char40,  "Short Text
      quantity       TYPE char13,  "Purchase Order Quantity
      unit           TYPE char3,   "Purchase Order Unit of Measure
      delivery_date  TYPE eeind,   "Delivery Date
      ekgrp          TYPE char3,   "Purchasing Group
      stge_loc       TYPE char4,   "Storage Location,
      matl_group     TYPE char9,   "Material Group
      agreement      TYPE char10,  "Agreement Number
      ag_item_num    TYPE char5,   "Agreement Item Number
      vendor_mat_no  TYPE char35,  "Vendor Material Number
      gl_account     TYPE char10,  "G/L Account Number
      costcenter     TYPE char10,  "Cost Center
      fund           TYPE char10,  "Fund
      func_area      TYPE char16,  "Functional Area
      item_txt       TYPE char70,  "Item Text
      created_by     TYPE char12,  "Created By
    END OF ty_datatab.
    it_record TYPE STANDARD TABLE OF ty_datatab INITIAL SIZE 0,
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_tab_raw_data       = it_raw
          i_filename           = p_pfile
        TABLES
          i_tab_converted_data = it_record
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.

  • Problem passing a table in an RFC wrapper?

    I am creating a wrapper around FM 'TEXT_CONVERT_XLS_TO_SAP' in ECC, because I cant find a FM in SRM to convers an excel file into an itab. I pass an excel sheet from SRM to this wrapper to convert the values into an Itab and pass then back to SRM. The problem is the parameter "i_tab_converted_data = i_converted" from 'TEXT_CONVERT_XLS_TO_SAP'  is of type STANDARD TABLE. So when I created the Itab = i_itab_converted_data in my program using a type I declared in my program, I can't use the type to create the exporting parameter in the FM to pass the itab back to SRM.

    Hi,
    Well if thats your requirement, then you will have to copy the FM to a Z FM & then tweak it as per your requirement.
    Thanks,
    Best regards,
    Prashant

  • RFC- Bapi - For Role Maintenance (Single and  Composite)

    We are in the process of developing an ASP.NET web application which will be used to raise requests for user and role creations in SAP.
    We will be making use of Sonic ESB to update SAP through IWAY SAP adapter.
    IWAY SAP adapter supports RFC’s, Bapi’s & IDocs.
    We are aware of RFC’s that could be used for user creation, updating and deletion.
    We have NOT come across any RFC’s or Bapi’s for role maintenance
    1) We would need RFC’s for the following requirements:
    1) To create a new role (single or composite role ).Creating a new role would include adding transactions to a role, deriving from an existing role or assigning more than one role to another role.
    2) To update a role
    3) To delete a role.
    4) To get the details of an existing role
    If there are no RFC’s for the above requirement, will we need to create a custom RFC?
    If we need to create a custom RFC, are there any transactions already available for the above requirements so that we could write a RFC wrapper?
    2) Are there any RFC’s that would give us the complete list of roles (single or composite) in an SAP system?
    3) Are there any RFC’s that would give us the complete list of transactions in an SAP system?
    Presently for 2) & 3) , we are making use of RFC_READ_TABLE to read SAP tables to get the list of roles and transactions.
    Thanks for your answers

    Hi,
    check these FM , i dont know it will work for u or not.
    BAPI_USER_ACTGROUPS_ASSIGN     User: Change entire activity group assignment
    BAPI_USER_ACTGROUPS_DELETE     User: Delete entire activity group assignment
    BAPI_USER_CHANGE               Change User
    BAPI_USER_CLONE                Create User with Template in Another System
    BAPI_USER_CREATE
    BAPI_USER_CREATE1              Create a User
    BAPI_USER_DELETE               BAPI to Delete a User
    BAPI_USER_DISPLAY              Display Users
    BAPI_USER_EXISTENCE_CHECK      Check a user exists
    BAPI_USER_GETLIST              Search for Users
    BAPI_USER_GET_DETAIL           Read User Details
    BAPI_USER_INTERNET_CREATE      Create a user in the Internet
    BAPI_USER_LOCACTGROUPS_ASSIGN  Change Activity Group Assignment for Dependent Systems from Central Sy
    BAPI_USER_LOCACTGROUPS_DELETE  Delete Activity Group Assignments in the Dependent Systems
    BAPI_USER_LOCACTGROUPS_READ    Change Activity Group Assignment for Dependent Systems from Central Sy
    BAPI_USER_LOCK                 Lock User
    BAPI_USER_LOCPROFILES_ASSIGN   Change Profile Assignment for Dependent Systems from Central System
    BAPI_USER_LOCPROFILES_DELETE   Delete Profile Assignments for Dependent Systems
    BAPI_USER_LOCPROFILES_READ     Change Activity Group Assignment for Dependent Systems from Central Sy
    BAPI_USER_PROFILES_ASSIGN      User: Assign profiles
    BAPI_USER_PROFILES_DELETE      User: Delete All Profile Assignments
    BAPI_USER_UNLOCK               Unlock user
    Reward points if useful..
    Regards
    Nilesh

  • RFC for role maintenance

    We are in the process of developing an ASP.NET web application which will be used to raise requests for user and role creations in SAP.
    We will be making use of Sonic ESB to update SAP through IWAY SAP adapter.
    IWAY SAP adapter supports RFC’s, Bapi’s & IDocs.
    We are aware of RFC’s that could be used for user creation, updating and deletion.
    We have NOT come across any RFC’s or Bapi’s for role maintenance                   
    1) We would need RFC’s for the following requirements:
    1)       To create a new role (single or composite role ).Creating a new role would include adding transactions to a role, deriving from an existing role or assigning more than one role to another role.
    2)       To update a role
    3)       To delete a role.
    4)       To get the details of an existing role
    If there are no RFC’s for the above requirement, will we need to create a custom RFC?
    If we need to create a custom RFC, are there any transactions already available for the above requirements so that we could write a RFC wrapper?
    2) Are there any RFC’s that would give us the complete list of roles (single or composite) in an SAP system?
    3) Are there any RFC’s that would give us the complete list of transactions in an SAP system?
    Presently for 2) & 3) , we are making use of RFC_READ_TABLE to read SAP tables to get the list of roles and transactions.
    Thanks for your answers

    Hi Nicole,
    I think you are in the wrong forum.... For Guided Procedures, this is only about process roles and not roles used in the ABAP Stack.
    Best regards,
    David

  • DB lookup in XI thru RFC ?

    Hi ,
    Can we do DB look up in XI thru RFC ?
    I would appreciate ,if any body provides any examples.
    Regds,
    Ram.

    Hi,
    have a look at this great RFC wrapper by Morten:
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    easy to use and you can use any RFC inside which you can query the DB
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • RFC adapter for two BAPIs

    Hello,
    I need help to call two BAPIs in RFC Adapter. My scenario is I am getting message from third party system. By default I call a BapiX to create a deal, Then I have to call another BapiZ for commision.The thing is first I have to create it by calling BapiX and BapiZ from one message which I am getting to XI.
    What is best way to do it. In XI is there any way to do this.
    I am not sure do i need to use DB lookup in the mapping.
    Or do i need to use RFC wrapper to put these two BAPIs.
    Thanks,
    Srinivas

    Hello Amit,
    I am just confused. I am using RFC adpter on reciever side.
    You mean You want to use BAPI message type for the interface and create ABAP Server Proxy.
    Now how can i define other RFC message type OR you want me to call other BAPI (Pasting the BAPI code)in the Server Proxy Code.
    By the way i am using synchrnous call.
    Thanks,
    Srinivas

  • Error in table parameter (file to rfc)

    hi,
    i debugged file to rfc(bapi wrapper)  sceneario and i did not find data in table parameter.
    data is perfect in import parameter.
    plz help me.
    vijender

    hi,
    i am configuring file to rfc scenario. i created a rfc wrapper. a wrapper is a comination of a bapi and commit work or
    bapi_transcation_commit.
    i on receiving side in r/3 system i dont find data in table parameter but iam getting data in import paramters
    where is data missing .
    plz help me.
    t & g
    vijender

  • How to use Commit RFC?

    hi all,
              I have a file-rfc-file scenario.After this XI needs to call the commit rfc
    QIRF_SEND_COMMIT_TO_QM.From the forum i came to know that it can be done in RFC receiver  Advanced mode.But my doubt is do we have to call this commit RFC just like any other RFC's?....i mean do i create datatypes,Messagetypes in Design.
    Also i have XI with less than SP14...how to go abt with RFC wrapper?
    can anybody throw some light on this
    thanks,
    Nisheeta

    Nisheetha,
    You need not do anything special in design.
    If u r not using a wrapper BAPI,then
    In Configuration of Receiver RFC Communication channel use Advanced Option and select commit Handling option.This option can be used if ur using XI 3.0 sp14 and above .
    But since u r using wrapper BAPI, this option does not make any difference.
    Regards,
    Sudharshan

  • Client Proxy - RFC scenario - weird

    Scenario : Client Proxy (ECC 6.0) - RFC (Wrapper RFC for the posting BAPI and commit BAPI).
    QOS : Best Effort.
    Here, when the RFC is tested in se37, the bapi return structure is populated. But with in the scenario,
    bapi return structure is not populated in the response message.
    When tried to execute the scenario with the std BAPI it self, the bapi return structure is populated in the response message.
    What could be the issue?
    Can anyone please advise on this?
    reg

    Try to reactivate the RFC adapter after making some dummy changes. Maybe the RFC metadata has changed after the rfc adapter was created. The reactivation of the rfc adapter will reimport the rfc metadata.
    make sure that the rfc request is as per needed.
    Regards,
    Bhavesh

  • Table Required to define RFC destinations

    Hi,
    I am working on SAP PI/XI. I had created an Custom Function Module (RFC Wrapper) in XI or PI which calls Bapi's in SAP R/3.
    So we specify the RFC Destinations in the code to call the Bapis. But these RFC destination Values changes for DEV, QA and PRD systems. when we transport these we need to change as per the Enviromment.
    For that I want to define a Table to maintain the RFC destinations.How do I proceed. what should be the table structure ?
    Kindly provide your valueable Inputs
    Thanks &Regards,
    Varun

    I have defined the code as below, table is not required
    if sy-sysid = 'XXX' .
    sender = 'XXXXXX'.
    endif.
    if sy-sysid = 'YYY' .
    sender = 'YYYYYY'.
    endif.
    if sy-sysid = 'ZZZ' .
    sender = 'ZZZZZ'.
    endif.

  • Custom Table for RFC destinations

    Hi,
    I am working on SAP PI/XI. I had created an Custom Function Module (RFC Wrapper) in XI or PI which calls Bapi's in SAP R/3.
    So we specify the RFC Destinations in the code to call the Bapis. But these RFC destination Values changes for DEV, QA and PRD systems. when we transport, these Values we need to change as per the Enviromment(DEV,QA,PRD).
    I want to Maintain the the RFC destinations Values dynamically.
    For that I want to define a Table to maintain the RFC destinations. There could be "n" of RFC destinations to R/3. I want to differentiate RfC destinations pertained only to my scenario or Interface.
    How do I proceed. what should be the table structure and fields?
    Kindly provide your valueable Inputs
    Thanks &Regards,
    Varun

    Hey
    You should be able to handle this by reading the System Id of the current system
    Just have a If-Else condition in your FM.
    If SY-SYSID ="Dev"
       then call Dev RFC dest
    If SY-SYSID="Qa"
       then call QA RFC dest
    etc etc
    Thanks
    Aamir

  • Employment status rfc required

    Dear All,
    I require a rfc which gets the current employment status of the employee directly.
    Please suggest rfc other than HR_READ_INFOTYPE with infty being '0000'.
    <removed_by_moderator>
    Thanks and Regards.
    Soumyadeep.
    Edited by: Julius Bussche on Sep 8, 2008 1:03 PM

    You can pass the sy-uname & get the pernr & status by calling HR_GET_EE_FROM_USER_WITHSTATUS. You will have to create an Rfc wrapper & call it, as this function module is not remote enabled..
    ~Suresh

  • File to rfc...database tables not updated ??

    Hi XI Friends..
    in my File to BAPI..
    it is successfully executed..and it is showing chequered glag in sxmb_moni..and also in runtime workbench it is showing success..but the database tables are not updating..
    i gone thru the link.. reciver rfc adapter..
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/frameset.htm
    now i am working on SP 17.
    so how can i set the values in ...
    <i>Commit Control for Individual BAPI Calls</i>and
    <i>BAPI Advanced Mode.
    In the Successful RETURN-TYPE Values table, what values i have to enter that should lead to a successful execution</i>
    its Asyncronous call..
    in standard BAPI ther is no commit.
    please tell me ..what values in need to give to update database tables..instead of RFC wrapper..
    regards
    ram

    Hi Friends..
    i created ZRFC and in that rfc i given standard bapi and commit work..
    i tested in sap ..the table is updating..
    thru XI..the table is not updating...
    it showing likw this..in receiver rfc adpater monitering...
    <i>Receiver channel 'CC_IN_SAP_WorkOrderCompletion' for party '', service 'SAP_ERP_DEV' (internal name 'RfcClient[CC_IN_SAP_WorkOrderCompletion]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.249.196.86}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.249.196.86}
    Current pool size: 1, maximum pool size : 1
    Channel History
    - OK: 2006-12-19 11:12:58 CET: Message processed for interface ZBAPI_ALM_CONF_CREATE</i>
    and in messagemonitering audit log..
    <i>2006-12-19 11:12:58 Success Message successfully received by messaging system. Profile: XI URL: http://dcexi0602.alcan.com:50000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSERDGX
    2006-12-19 11:12:58 Success Using connection AFW. Trying to put the message into the receive queue.
    2006-12-19 11:12:58 Success Message successfully put into the queue.
    2006-12-19 11:12:58 Success The message was successfully retrieved from the receive queue.
    2006-12-19 11:12:58 Success The message status set to DLNG.
    2006-12-19 11:12:58 Success Delivering to channel: CC_IN_SAP_WorkOrderCompletion
    2006-12-19 11:12:58 Success RFC adapter received an asynchronous message. Attempting to send tRFC for ZBAPI_ALM_CONF_CREATE with TID XIVqvZy8z94TkgWVR9u01m0m
    2006-12-19 11:12:58 Success The message was successfully delivered to the application using connection AFW.
    2006-12-19 11:12:58 Success The message status set to DLVD.
    </i>
    but the table is not updating...
    please guide me..
    regards
    ram

Maybe you are looking for