Accept IDOC function module.

Hi Experts, I am new to IDOCS. I have to update one already written function module to accept IDOC in SAP from external system. In the function module I see some IMPORT parameters like 'input_method' and 'mass_processing' and EXPORT parameters like 'workflow_result' , 'application_variable' , 'in_update_task', 'call_transaction_done' . Can someone tell me what are these parameters for ???.

thanks

Similar Messages

  • IDoc Function Module(Invoices)

    Dear All,
    I want IDoc Function Module(Inbound) for T Codes FB60, FB65, FB70, FB75 for Invoices.
    Actual Scenario is that i want to transfer data from JAVA system to SAP(Vendor Invoice,Customer Invoice,Credit Memo,Debit Memo) using IDoc.
    Please give me the funcion module(IDoc Inbound and Outbound) can be used in above case.
    thanks,
    RP

    Hi
    They are several function modules.
    Pls Go to SE37 and enterr idoc and press f4 then you are able to see
    all the idoc function module.
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.erpgenie.com/abap/functions.htm
    Regards,
    Ram

  • How to debug outbound Idoc function module for invoice

    I have to debug the outbound IDOC function module and UserExit for invoice message type INVOIC, process code SD09, function module is IDOC_OUTPUT_INVOIC and user exit for the function module LVEDF001.
    I tried putting the break point in function module IDOC_OUTPUT_INVOIC and recreate the IDOC using WE19 but it creates the idoc but does not stop at the break point. I have also tried generation of idoc through VF02. It again creates the idoc but does not stop at the function module.
    Please let me know if I am missing any thing and not doing it right.
    Appreciate your help.
    Rohit

    Hi Ali,
        I faced the same problem. Thing is the break point is not getting triggered when i ran tha IDOC through WE19.
    What i have done is i created a project for my exit in CMOD and kept some junk code in the exit and executed it through BD21. Then the Break point got triggered. See if it works.
    Regards,
    Uday S.

  • Changing IDOC function module?

    Hello everyone!
    I would like to make changes to the function module responsible for creating Sales Order Idocs: IDOC_INPUT_ORDERS. How should I go about this procedure? Do I need to copy the existing function module and create a new one? If so, how do I point the IDOC (ORDERS05) to the new function module (for example, ZIDOC_INPUT_ORDERS).
    Thanks in advance!
    Warm regards,
    Glenn

    > I would like to make changes to the function module responsible for creating Sales
    > Order Idocs: IDOC_INPUT_ORDERS. How should I go about this procedure?
    > Do I need to copy the existing function module and create a new one?
    (1)This is one possible solution, another one is to use some (2)customer function exits for inbound Idoc – these enhancements might be useful: MM06E001, VEDA0001or (depending on platform you are) you might go for e.g. (3)“Implicit enhancement”. In last two cases you probably don’t need to create Z-FM and Z-process code.
    > If so, how do I point the IDOC (ORDERS05) to the new function module (for
    > example, ZIDOC_INPUT_ORDERS).
    1) Copy FM to ZFM
    2) Specify characteristic of FM – BD51
    3) Create Z-inbound process code: WE42 and assign a Z-FM to it.
    4) Assign FM to message type – WE57
    >If you have any other information on how to properly edit the IDOC function
    > module (for example, adding ABAP checking codes before populating the IDOC
    > fields) it would be great if you could share them!
    To add some checks at the beginning you might use all three possible solutions:
    (1) in ZFM you might add you code at the very beginning and return some error message
    (2) you might use on of the available customer function exits to do some checks
    (3) you can do the implicit enhancement and also return some error code at the very beginning of standard FM
    In both cases I recommend to go for approach no (2). Useful tcodes: CMOD and SMOD.
    Regards,
    Jakub

  • How to find IDOC Function Module for Basic Type:ORDERS05

    Hi,
    What is the Transaction Code to locate the Function Module linked to the IDOC Basic Type & IDOC Message Type?
    Appreciate Your Help.
    Thanks,
    Kannan.

    Hi Seshu,
    Thanks for your reply. While creating a Custom IDOC, How do I link the IDOC Function Module and Basic Type. Appreciate Your Help.
    Thanks,
    Kannan.

  • Type RAW not accepted in function module for workflow

    Hi,
    this is a crazy thing for me:
    I like to start a workflow from a report.
    Usually will use the function module SWU_START_WORKFLOW".
    Usually this is no problem.
    Here is my current problem:
    One of the elements I have to transfer to workflow is defined with
    ZELEMENT like SXMSMGUID.
    SXMSMGUID is from type RAW.
    This type is not supported in the container element transfer.
    Tried to transfer it as CHAR.
    ZELEMENT type c,
    ZELEMENT = SXMSPEMAS-MSGGUID.
    So put the RAW element into a char element.
    Error in function module:
    Program error: ASSIGN with length 0 in program "SAPLSWA8".
    Error analysis
        An ASSIGN statement in the program "SAPLSWA8" contained a field symbol with
        length 0. This is not possible.
        length 0.
        This is not possible.
    I need that element to be transferred to the workflow.
    But how to solve that problem?
    How to move the RAW element readable into a char element (This type usually is no problem in the FM)
    Any ideas are welcome!
    Best regards
    Dirk

    ya i know that ..But I wanted to create a simple one..moreover the problem is not with bdc....It is with the function module interface..
    Also I want to ask a question that I had to define all the parameters (in the function module ) by data declaration statements in the function group top include..
    If i dont do that say the first error is when i write loop at idoc_contrl ..idoc_contrl is not declared by a data statement..So IO had to write a data statement:
    Idoc_contrl type table of edidc..I have seen that in other function modules (idoc inbound processing)  no such data declaration is done..

  • Idoc/ Function module to create a Licence in GTS

    Dear experts,
      I have a situation where in I need to create Licence in GTS system based on the information from a 3rd party system. So, Is there any inbound idoc in GTS system to automatically create the licence (I'm using middle ware to convert the XML from 3rd party to an IDOC).
    Or is there any function module, to create a licence in GTS system.
    Thanks for the Info.
    Sorry for the duplication of same question that i posted in GTS forum. I couldn't get a single reply from 3 days, so I reposted the same.
    Thanks
    -Amit.

    Hi Amit
    I'm facing the same problem you had.
    May I ask you how you created the function module?
    Thanks in Advance
    Ashwaan

  • How to find the outbound idoc function module?(Urgent)

    Dear All,
    How to identify the outbound function module if there is process code assigned to message type.
    For partner profile the mesasge type is assigned and idoc type .This is the only information maintained .
    Now my question is how to identify the fucntion module which is getting trigger in the system is there any data maintained in the standard table  or any t-code .
    Points will be rewarded for right answers.
    Thank You.
    Regards,
    Ravi Ganji

    Hi,
    If u know the message and basictype then we can know the process code for that message type in transaction code WE64.
    if we know process codes then we can know the function modules in transaction codes WE41(Outbound process code) and WE42(Inbound process code).
    Each process code is attached with a FM...
    Reward if helpful
    Regards,
    Nagaraj

  • Inbound Idoc function module  for Cycle count with msg type WVINVE

    Can any one tell me which is the standard function Module which processes Cycle count for message type WVINVE.
    My requirement is to setup Inbound Idoc for cycle processing with message type WVINVE.

    Hi Mukesh,
             Inbound FM is IDOC_INPUT_STORE_INVENTORY , and Process code is WVIN.
             Yoou can check this in Tcode WE42 for process code WVIN.
    Regards
    Srikanth M

  • Inbound Idoc Function Module

    Hi gurus,
    I am new to IDOC's. My requirement is from some third party systems data come to IDOC.
    For this I created Custom Z segments, Z Idoc and Z message type.
    Now I have to develop one Inbound function module. Based on this function module two Z custom tables need to be updated.
    Please can any one give me a valubale sugestion. Or send to me the step by step Procedure.
         Thanks in Advance.
    Thanks and Regards
    Abinava Siri.

    Hi,
    Refer to the tutorial below. This will solve all your queries.
    Its with all the spanshots available.
    http://www.geocities.com/xplosion78/customised_ALE_IDOC_BY_SACHIN_DABHADE.zip
    Please reward if you find this useful.
    Pranu.

  • Inbound custom IDOC  function module

    I have created a custom idoc and attached a process code to it. The proceesing function module, reads values from the idoc and inserts into a database table.
    My question is will this function module be invoked simultaneously? If so, should I first lock the table before inserting and then unlock it?
    Thanks in advance.

    Hi,
    As soon as the idoc reaches SAP, it will trigger the function module you have connected through process code.
    If the table is used only by your function module no need to lock the same.
    It is always good to lock the table before updating the same.
    Regards,
    Baburaj

  • Idoc function Module

    Hi Experts!!,
    How to find out Function Module which system is using for Inbound Idocs ?
    Thanks in advance.

    Anil,
    If these are existing iDocs being processed in your system, I would recommend you run WE19 for an existing iDoc, click on 'Standard inbound', and make a note of the Function Module determined. That will let you know which FM is used for those specific conditions. You might also want to check transaction WE57, which shows FM assignments to iDoc & Message Types, also WE42 for Process Codes. Process Codes are selected in the WE20 Partner Profile, and point to an FM, therefore in theory you could use different FMs for different Partner Profiles.
    Cheers, Paul.

  • Idoc function module problem

    Hi all,
    I have a idoc. In this Idoc i need to populate a segment which is not populated previously if it satisfies the selection criteria.
    For this i have to write a function module and this function module should check theselction and populate this field in Idoc.
    Can anyone help me in doing this.
    <REMOVED BY MODERATOR>
    Regards,
    Saroja.
    Edited by: Alvaro Tejada Galindo on Jan 31, 2008 11:28 AM

    You can hook into a user exit in the IDOC and directly populate the segments at the time the IDOC is created or processed.
    The process and user exit to use depends on:
    - what IDOC are you using
    - is it inbound or outbound
    - what are the criteria for the population of the segment
    Hope that helps,
    Michael

  • IDOC Function Modules?

    Hi.
    Can anyone please tell me about the FM's "EDI_PARTNER_APPL_READ_OUT" and "EDI_VIEW_READ"
    used in an outbound process to get the active segments.?
    I mean when and why do we use these FM's?
    Thanks

    Hi,
    EDI_PARTNER_APPL_READ_OUT
    Read partner profile for one partner (outbound parameters)
    EDI_VIEW_READ
    just check the FM documentaiton..
    FU EDI_VIEW_READ
    Text
    Read attributes and syntax for view
    Functionality
    This function module can be used to read the attributes and syntax of an IDoc view. The attributes of the IDoc view contain the description of the IDoc view, as well as the assigned basic type, the assigned extension and the assigned logical message. In addition, parameters can be used to control whether the development class is also read and whether authorization checks take place. The syntax table PT_SYNTAX is maintained with the IDoc segments contained in the view (positive logic).
    Example
    Scenario: using IDoc views in outbound processing:
    data: l_ediview      like edview-ediview,
          l_edk13        like edk13,
          l_edp13        like edp13,
          lt_viewsyntax  like viewsyn occurs 0 with header line.
    Fill edk13 structure to read the partner profile
       perform fill_edk13 using l_edk13.
    Read the partner profile
       call function 'EDI_PARTNER_APPL_READ_OUT'
       exporting
              rec_edk13    = l_edk13
       importing
              rec_edp13    = l_edp13
       exceptions
             others        = 1.
    Determine the IDoc view which is used
       l_edview = l_edp13-ediview.
    Fill the IDoc segments with application data
      if l_ediview is initial.
    If no IDoc view is used, fill all segments
      else.
    An IDoc view is used
    Read the syntax of the IDoc view
          call function 'EDI_VIEW_READ'
           exporting
                 pi_view              = l_ediview
                pi_check_authority   = 'X'
                 pi_read_devc         = ' '
          tables
                 pt_syntax           = lt_viewsyntax
          exceptions
                 others              = 1.
    Only fill segments from table lt_viewsyn
      endif.
    Parameters
    PI_VIEW
    PI_CHECK_AUTHORITY
    PI_READ_DEVC
    PE_ATTRIBUTES
    PT_SYNTAX
    Exceptions
    OBJECT_NOT_FOUND
    DB_ERROR
    NO_AUTHORITY
    Function Group
    EDIM
    Regards
    vijay

  • Need help in INBOUND idoc generation function module!

    Can anyone send me the inbound idoc function module !
    i have the outbound code but i need the inbound code

    Might be a constant C_WF_RESULT_OK is assigned to
    variable WORK_RESULT .
    Please check if they are declared in the function module ..

Maybe you are looking for