Generate Idoc from Remote function call

Hi,
Earlier i have done RFC which is been called with JCO and and sends datastream as well xml.
Now my doubt, is it possiible to generate the idoc for external application through RFC call from JCO?
if so, can anyone send me appropriate links or advice on the subject!
My main concern is i can generate the idoc through RFC call basing on the calling parameters,,, but how to pass the idoc structure for them?
for XML i used Export: E_XML     TYPE     STRING
for data stream: ITAB     LIKE     ZSTR_ITAB.
Any inputs will be of great helpfull...

Assigned resultant idoc structure to the Table parameter of type EDIDD in created BAPI.

Similar Messages

  • An error occurred when executing a REMOTE FUNCTION CALL.

    Dear all,
    We have two syetms called DXD and GRD , we have a remote enabled function module in the DXD system , when i am trying to call this Function module from
    GRD system it is going for the short dump, and giving the follwing error,
    <b>Error analysis
        An error occurred when executing a REMOTE FUNCTION CALL.
        It was logged under the name "RFC_NO_AUTHORITY"
        on the called page.</b>
    But i do have the access for the DXD system also, i am really struggling to solve this problem, if any lights are there to help me , i will be thank full for then,
    some body suggested for me that we need to maintain the Trusted system tables in the target system.
    Thanks & regards
    Satya.

    first u( user id ) have to get the Authorizations to use RFC ?
    object will be  like S_RFC or some thing like this.
    when u get this kind of error just call /NSU53 then u will come to know which Authorization Object is missing from ur User Profile.
    Regards
    Prabhu

  • CATCHABLE EXCEPTIONS in the remote function call (RFC)

    Please tell me what are the CATCHABLE EXCEPTIONS in the remote function call (RFC) and to which exception class do they belong????
    Thanks in advance.
    Dinesh Dhiman

    HI,
    With external function calls, the EXCEPTIONS addition of the CALL FUNCTION command can be used to assign return values to the exceptions defined in the interface of the called function module. Class-based exceptions cannot be propagated to the caller from a remotely-called function module, and have the effect of an exception that cannot be handled.
    As well as the exceptions defined in the interface of the called function module, an external function call can also have the following predefined exceptions:
    The <b>SYSTEM_FAILURE</b> exception is the response to a runtime error that occurs when the remotely-called function module is executed.
    The <b>COMMUNICATION_FA</b>ILURE exception occurs when the connection to the partner system cannot be established or if the connection is lost during communication.
    Note
    We strongly recommend that you assign a return value to both these exceptions for every RFC, and that you handle this return value, as otherwise a runtime error will occur in the exception situations in question.
    Regards,
    Sesh

  • Remote Function Call

    Hi,
    I am very much new to RFC, Can anyone help me to suggest some ideas for the following scenario.
    1. For the created PA30 screen using webdynpro, i have to create RFC.
    2. BAsed on the input from the system and the screen i have to write RFC.
    3. Through the RFC i have to update the Tables.
    Thanks ,
    Vijay
    Moderator message : Spec dumping is not allowed, search for available information.  Thread locked.
    Edited by: Vinod Kumar on Aug 9, 2011 10:28 AM

    Hi..,
    CALL FUNCTION - RFC
    Syntax Forms
    Synchroner RFC
    1. CALL FUNCTION func DESTINATION dest
                         parameter_list.
    Asynchroner RFC
    2. CALL FUNCTION func STARTING NEW TASK task
                    [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                    parameter_list
                    [{PERFORMING subr}|{CALLING meth} ON END OF TASK].
    Transaktionaler RFC
    3. CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    <b>The destination contains the connection parameters for remote function calls. It contains the connection type, the target system and the partner program. Connections that affect SAP systems exclusively can be agreed as trustedsystems. RFC destinations are managed using transaction code SM59. </b>
    regards,
    sai ramesh

  • Generate idoc from Transaction

    Hi,
    What are the settings/configurations need to be done in ECC 5.0 for generating an idoc from a transaction. I am executing a transaction C202 for changing BOM
    Thanks

    Hello,
    BOM is a master data. The technique mostly used to send master data is via Change Pointers wherein for any changes taking place in the master data, change pointers are written in the change pointer table (table BDCP).
    A program (RBDMIDOC) has to be scheduled in background which reads the change pointers and sends the IDOC to the destination system.
    Also for BOM transaction BD30 can be used to send BOMs to destination logical system.
    The technique for generating an idoc from transaction is called mesage control (or output control). It is valid for transaction documents (like sales order, purchase order etc).
    Hope this helps.
    Regards,
    Gajendra.

  • Data error (invalid data type 17) in a Remote Function Call

    Hi,
    I am passing 2 select-option tables to RFC.
    Tables have structures -
       Table1  SIGN(C1)
                   OPTION(C2)
                   HIGH(C6)
                   LOW(C6)
       Table2  SIGN(C1)
                   OPTION(C2)
                   HIGH(C20)
                   LOW(C20)
    At the destination side, I have created two table types which have same structure.
    But when I call the RFC , program terminates with error - "Data error (invalid data type 17) in a Remote Function Call"
      Not able to understand the reason for this error. Please help.
    Thanks,
    Sujeet

    Hi,
    check out this example
    [LINK|http://abap.googlar.eu/viewtopic.php?f=5&t=28]
    You have several ranges that you can use like RANGE_AUF.
    Function example:
    FUNCTION zexemple.
    *"*"Interface local:
    *"  IMPORTING
    *"     REFERENCE(R_HORA) TYPE  FLAG
    *"     REFERENCE(R_DIA_1) TYPE  FLAG
    *"     REFERENCE(P_IDOC) TYPE  FLAG
    *"  EXPORTING
    *"     REFERENCE(MSG) TYPE  CHAR255
    *"  TABLES
    *"      T_OIFSPBL STRUCTURE  OIFSPBL
    *"      SL_PBLNR STRUCTURE  RANGE_PBLNR
    *"      SL_MATNR STRUCTURE  RANGE_MATNR
    *"      SL_HORA STRUCTURE  RANGE_UZEIT
    *"      T_ERROS STRUCTURE  ZARSTRING
    ENDFUNCTION.
    Report:
    SELECT-OPTIONS: sl_pblnr FOR oirbpblb-pblnr,
                                  sl_matnr FOR a361-matnr.
    ~
    Final question:
    You are passing the values using TABLES and not IMPORTING right?

  • Error when generating IDoc from MC document - workitem to all the SAP users

    A workflow item with the subject of “Error when generating IDoc from MC document” is sent to all the SAP users' inbox. Is it possible to stop the generation of this work item? If that is not possible, can we limit sending the work item to a specific user/agent instead of all the users in the system?
    It appears that these work item or error message are generated when one of the developers reopen the POs and add line items. Moreover, during that time the procurement team blocked the IDOCs from going out to the vendors when changing and resaving the POs. Therefore, we need stop the generation of error message/work item when the IDOCs generation blocked.

    Please check Rule 70000141which is the default rule for this task. Inside this rule a FM is attcahed which is reading table EDO13 and EDPP1 where agent is retrieved Probably this table entries are not maintained. This Workflow is getting triggered from Message cOntrol I think.
    Please check this link for
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4aec8453d11d189430000e829fbbd/frameset.htm
    <b>Reward points if useful and close thread if resolved</b>

  • Error when generating IDoc from MC document

    Hi,
    Our Workflow administrator is getting the following error  in his inbox daily for a particular IDOC type.
    Error when generating IDoc from MC document
    Please let me know how to disable this message.
    Regards
    Elini.P

    Hi  experts,
                i got the error msg when generating idoc from mc document
    this error msg goes to all sap users inbox,how to resolve this problem
    pl give me solutions
    regards
    kumar

  • Automatic remote login at remote function call

    Hello,
    we have three systems, development, testing and productiv. I want to do a remote function call on the repective other system. But I always get a login window where you have to insert your password for that system. Is there a possibility to do this automatically? Thanks.
    Cheers, Lars.

    or else in SM59 double click on your destination server and in logon/security tab and give ur username and password and try

  • CALL_FUNCTION_REMOTE_ERROR when calling a remote function call through PI

    Hello.  Thanks in advance for your perspective on this.
    We are developing an interface that runs in an R/3 system and is suppossed to perform a lookup in another R/3 system via a PI 7.0 system.
    Here's what we are trying to do, let's call these systems "A", "B", "C" respectively.
    R/3  ->  PI   -> R/3
    The R/3 system (A) executes code, which calls this function module like this:
          CALL FUNCTION 'Z_CHK_MAT' DESTINATION 'XI_RFCADAPTER'
            EXPORTING
              iv_region           = lv_region
              iv_matnr            = ls_matnr-matnr
            IMPORTING
              ev_flg_is_purchased = e_flg_is_purchased.
    This code, is set via the "DESTINATION" parameter to use the RFC destination 'XI_RFCADAPTER'.  This destination, points to the PI (B) system above.
    Anyhow, we're getting a short dump in the R/3 (A) system, which is like this:
    CALL_FUNCTION_REMOTE_ERROR
    "JCO.Server could not find server function 'Z_CHK_MAT'"
    From my analysis, I believe this is because the remote function module Z_CHK_MAT does not exist, in the PI (B) system.
    Our developer, believes this should just "pass through" the PI (B) system, and call the function module in the R/3 (C) system.
    Any insight on this?  In this scenario, does this Function Module need to exist in the PI abap side?  Can you give perspective / guidance on this?
    Thanks a lot
    Steve

    No need to exist in PI ABAP side.
    Just make sure that:
    1. as Michal said, you import it in Integration Repository (and use it in your configurations);
    2. the RFC Destination type that points to XI is of type T, not 3;
    3. both the RFC Destination & the Sender RFC Adapter (and only them) are using the same Program Id.
    Regards,
    Henrique.

  • Export and Import Strings To/From Remote Function Modules

    Hi,
    I am building a Web Application in which the user can enter very large string (unlimited) and we want to store that value in the backend. So i need to create Remote function module which can take large strings, store it in backend and when queired export the strings to the calling web application.
    The Remote function module is allowing me to create "Import" and "Export" parameter with type String....but it is not allowing the String type "Table" parameter. I am kind of stuck now as i want to import and export multiple records of type String.
    Can anyone suggest an altenative?
    Regards,
    Kumar.

    Hi,
    To have a table parameter with string type fields, Goto SE11 and under data types, create a structure with the required fields of type string.
    Then u can use this structure to refer to the table parameter and declare it as
    p_tab like ZSTRUCTURE in the tables tab.
    Regards,
    Vik

  • Refresh a report list after remote function call

    Hi,
    My customer has a report listing invoices. A non-SAP program calls a remote function creating an invoice with BAPI. My customer wants the list to be refreshed after the invoice is created via RFC or to refresh the list in specified time intervals.
    Is there any way to accomplish that task?
    thanks,

    ... or OO, integrate like this
    DATA:      ok_code LIKE sy-ucomm.
    *       CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_finished.
    * Start Timer again
        gr_gui_timer->interval = pa_autow.
        CALL METHOD gr_gui_timer->run.
    * cause PAI
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = gc_cmd_refresh.
      ENDMETHOD.                    "on_finished
    DATA:
      gr_gui_timer               TYPE REF TO cl_gui_timer,
      gr_event_handler           TYPE REF TO lcl_event_handler,
      gs_vtyp                    like ts_vtyp.
    *======================================================================*
    *= Selection screen                          =*
    *======================================================================*
    PARAMETERS:
      pa_autow TYPE flag DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK date.
    *&      Form  init_autorefresh
    *       Timer starten oder stoppen
    FORM init_autorefresh .
      IF pa_autow IS NOT INITIAL.
        CREATE OBJECT gr_gui_timer.
        SET HANDLER gr_event_handler->on_finished FOR gr_gui_timer.
        gr_gui_timer->interval = pa_autow.
        CALL METHOD gr_gui_timer->run.
      ELSEIF gr_gui_timer IS BOUND.
        gr_gui_timer->cancel( ).
      ENDIF.
    ENDFORM.                    " init_autorefresh
    Regards,
    Clemens

  • GEnerating IDOC from ABAP Program

    Hello all,
    we have a business scenario where we are usng XI.
    We are generating SO IDocs for the scenario. here are my Questions:
    1. the SO may be a create/modify/reject
    2. they have to pass several checlks like ATP, Flag check etc..(Validation) which we are handling it by a user exit, once the checks are passed we have to generate idocs..i am aware that we do output determination to generte the IDOC but we are opting that.we are trung to generate the idoc thru a z-program. can anybody guide me whether we can generate an idoc thru a z-program, if so can someone provide with a  sample code/steps to be followed.
    Also can a BAPI generate an IDOC?

    hi aarthi,
    not only in your below scenario,for anycase we need a program to generate IDOC for eg MASTER_IDOC_DISTRIBUTE..
    the best advice is to copy an existing inbound/outbound programs and  modify it to your need.this what SAP is also suggesting...
    Cheeers,
    Abdul Hakim

  • Unable to generate IDOCS using IDOC_INPUT_ORDERS Function Module

    Hi,
    I have written a program to post IDOCS using function module IDOC_INPUT_ORDERS .
    In the debugging mode,I found that after the call of this function-module,sy-subrc is set to zero which means that this function-module is getting successfully executed.
    But when I go to WE02 transaction code , i do not see any IDOCS being generated for IDOC Type ORDERS05 .
    Please could someone help me out with this .
    Regards,
    Sushanth H.S.

    hi
    check your ALE configuration:
    go thru the links:
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    reward points for useful ans
    Regards
    Aarti

  • Error in generating IDoc from F110

    Hi All,
    Please help me in solving this error, I am strucked in generating I-Doc. from Payment Program (F110).  After running the APP program successfully, I am getting the following message:
    Payment by EDI /  IDoc generation----
    "IDocs were generated for the followings entries.
    Company Code: XXXX, House BankXXXX, Payment Method X.
    IDoc type could not be determined for the IDoc...."
    Though message says IDoc is generated, but not seen anywhere. I have checked in WE02 (I Doc List)
    Here apart from the basic settings for running the APP like, House Banks, bank determinations etc.,
    1. I have maintained----
    EDI Partner Profiles in FI12 and WE20 with partner Type-B.
    2. In OBVCU, Payment Methods/Country: I have done the followings settings to the payment methods---C & T ; Under "C"----Under Payment medium: I have selected Classic Payment Medium Programs: RFFOEDI1  and the same settings in "T" also.
    3. In OBVU, Payment Method in Company code: Under "C": under Form Data: For Form for the Payment Medium: SAP Script and F110_EDI_01 and same for Next form. and the same settings for Payment Method "T".
    4. Maintained the required settings in the Vendor/Customer Master Data.
    5. Also maintained Variant in Printout/Data medium tab in F110
    Pls. let me know what are all the other settings which need to be done apart from the above,  Do we need to do the RFC settings also?
    Can somebody helpme in solving this issue?
    Regards,
    Aman

    Hi,
    The following details i have already maintained in the I Doc type under;
    Outbound parameters of WE20,
    1)Message Type: DRDEB, Receiver port: A000000043, Basic type under IDOC type: PEXR2002
    2)Message Type: EUPEXR, Receiver port: EUPEXPORT,Basic type under IDOC type: IDCREF01
    3)Message Type: PAYEXT, Receiver port: SUBSYSTEM, Basic type under IDOC type: PEXR2001
    4)Message Type: DRDEB, MESSAGE CODE: IHC, MESSAGE FUNCTION: IHC, Receiver port: A000000043, Basic type under IDOC type: PEXR2002
    Inbound parameters:
    Message Type: FINSTA,  PROCESS CODE: FINS
    Plz. let me know if i missed out anything.
    regards,
    Aman

Maybe you are looking for