Function Module to message type

Hi All,
How can i convert a function module to message type?
Thanks,
Nidhi Kothiyal

there's nothing like converting function module into message type
you can attach a message type to a process code
and in partner profile(we20)
in the i/b message type
you can call this process code by which that FM will be called
let me know if you have any doubt
Regards
Manu

Similar Messages

  • Inbound function module for IDoc type INFRECMASS01

    Hello everybody,
    What is the inbound function module for IDoc type INFRECMASS01?
    I tried IDOC_INPUT_INFREC (as for IDoc INFREC01), but I got the following message (B1 044): Incorrect function module IDOC_INPUT_INFREC called up
    Thanks in advance
    Roland

    The only difference between INFRECMASS01 and INFREC01 is that repitition of the same segments. However, the standard function module is hardcoded with IDOC type INFREC01, so if you want to use the MASS IDOC copy the standard one and put in the logic to loop around and process the info records one by one.
    There is no standard funtion that can process mass idoc of the info record.
    Regards,
    Ravi
    Note:  Please mark the helpful answers

  • 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.

  • Out Bound Function Module For IDoc Types CODCMT01

    Hi Experts,
        Can you please tell me the Out Bound Function Module For IDoc Types CODCMT01,CODCAGN01,PRCDOC01.
    Thanks..
    Debi.

    Hi Debi,
    You can use FM MASTER_IDOC_DISTRIBUTE to distribute outbound IDoc CODCMT01, CODCAGN01 and PRCDOC01.
    Regards,
    Ferry Lianto

  • What is outbound function module for IDoc type INFRECMASS01

    Hi,
    What is outbound function module for IDoc type INFRECMASS01? This is for purchasing info record.
    Thanks
    Kamal

    Hi Kamal,
    Have you looked standard program <b>RBDSEINF</b> or transaction code <b>ME18</b>?
    This program will call function module <b>MASTERIDOC_CREATE_REQ_INFREC</b> to generate purchasing info record IDoc.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Function module error message.

    Call Function ‘Z_function’.
    Imports
    Exports
    EXCEPTIONS
      no_entry_found       = 1
      OTHERS               = 2
    IF sy-subrc = 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Suppose
    if sy-subrc =  1.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    Giving me popup and is troubling.
    Could you please tell me if I comment below
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4....
    and proceed will it effect me in case of sy-subrc <> 0.
    Thank you

    Hi Sam,
    Yes you can. But some times the programs emphasises specific program errors.
    For e.g.
    Use the following code for function module for GENEREIC case.
    In this case you can remove total piece of code suggested by you. and replace the following  code.
    If sy-subrc ne 0.
    Messae 'Error in function module' Type 'E'.
    Endif.
    Use the following code for function module for SPECIFIC case.
    case sy-subrc.
    when '1'.
       Message 'No_entry found' type 'E'.
    when '2'.
       Message 'Undetermined error in Function module. Please contact system administrator' Type 'E".
    Endcase.
    Regards
    Bhupal Reddy

  • Function module for wage type permissibility

    There are is a function module for get the wage type permissibility in the module of HR?
    Kind Regards

    Hi,
    Try with HRGPBS_MSA_GET_WAGE_TYPES.
    Regards
    Abhii..

  • Call function SXMB_SELECT_MESSAGES - determine message type

    After calling function SXMB_SELECT_MESSAGES, you get the
    following information in the return structure. How do you determine the
    message type based upon this information? Programatically (table name or
    functions)?
    outbound system,outbound namespace,outbound interface name
    inbound system,inbound namespace, and inbound interface name

    Hey,
    I forgot to mentation,
    if you are using swith proceudure than,
    need to use the table SXMSPEMAS2,
    in order to find the current table,
    pleae do the following:
    I hope I don't have minor syntax error
    (I didn't compile this before...)
    Report mizi.
    Data:
       lv_emast_table type tabname,
       lv_guid             like sxmsemast-msgguid,
       lv_pid               like sxmsemast-pid,
       ls_emast          type sxmsemast.
    Get values into lv_guid and lv_pid
    lv_guid = ...
    lv_pid   = ...
    call method
       cl_xms_persist=>get_current_table_contrainer
       importing
          ex_emast = lv_emast_table.
    select *
    from (lv_emast_table)
    into ls_emast         
    where
    msgguid = lv_guid and
    pid         = lv_pid.
    write: / ls_emast.

  • Function Module  Error Message to appear in  Monitor-Detail TAB

    Hello ABAP / BW Gurus,
    how and can I write an error message in a function module
    that it appears in the detail tab of the monitor ?
    Thank You
    Martin Sautter

    OK

  • Function Module for message "MBGMCR" in outbound process

    Hi all,
    I want to create an IDoc via EDI when I post a material document. I use messgae type MBGMCR and IDoc type MBGMCR02 and I already configured in partner profile and all about output determination in SAP-IM.
    And now I need a function module to process outbound IDoc of posting material document but I couldn't find a function module for processing.
    Pls let me know about that.
    Thanks for your time.

    Hi,
    You need to Code your own Z Function Module for this. Copy any standard outbound FM to create your own Z FM, so as to ensure that Interfaces are correct.  
    Refer to given below threads:
    Re: Standard IDOC for Goods Receipt
    Re: Idoc type for Goods Receipt
    Goods Receipt MIGO IDOC

  • ABAP function module TH_POP_UP message

    Hi experts,
    I created a report that call function module TH_POPUP to users from a role. It works perfectly fine BUT the pop-up present a red cross, that might be confusing for users because a pop-up is sent if the job involved is successful or not.
    So, my question is: is it possible to change the red cross for something else (green button...) ?
    Thanks in advance.
    Jacques

    You will still use the same function.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = 'Title Line'
        text_question               = 'Quetion to Ask?'
       TEXT_BUTTON_1               = 'Yes'
    *   ICON_BUTTON_1               = ' '
       TEXT_BUTTON_2               = 'Cancel'   "<== Name the 2nd one Cancel
    *   ICON_BUTTON_2               = ' '
       DEFAULT_BUTTON              = '1'
       DISPLAY_CANCEL_BUTTON       = ' '  "<== as space you will not get the default Cancel button
    *   USERDEFINED_F1_HELP         = ' '
    *   START_COLUMN                = 25
    *   START_ROW                   = 6
    *   POPUP_TYPE                  =
    * IMPORTING
    *   ANSWER                      =
    * TABLES
    *   PARAMETER                   =
    * EXCEPTIONS
    *   TEXT_NOT_FOUND              = 1
    *   OTHERS                      = 2
    Edited by: Paul Chapman on Jun 3, 2008 7:26 AM

  • What is the use and functionality of a message type

    Hi,
    I am new to abap. Can anybody tell me what is the use of the message type? What is it used for?
    There is an interface which is using an extended idoc type ZFIDCCP02 (Basic Type FIDCCP02). This extended idoc type is used for other interfaces and the interface in question. However the other interfaces are using the standard message type FIDCC2, but the interface in question is using a customized message type.
    Any idea what could be the reason?
    Thanks in advance.
    Mick

    Hi Mick,
    Message type tells the about the actual meaning of Idoc..
    later if you want to send data to external system the idoc type or extension type is not used..
    the message type is used for rest of the process..
    Idoc type is know as structure..
    << Cut and paste without attribution from http://www.*******************/2009_01_01_archive.html removed >>
    << Cut and paste without attribution from http://searchsap.techtarget.com/sDefinition/0,,sid21_gci852485,00.html removed >>
    << Points unassigned >>. 
    Regards,
    Prabhudas
    Edited by: Prabhu Das on May 14, 2009 8:38 PM
    Edited by: Rob Burbank on May 25, 2009 4:30 PM

  • Outbound IDOC for sales order: message type, function module ?

    Hi all,
    is there a possibility to send out sales order data with an outbound IDOC (like sending an purchase order out with ORDERS.ORDERS05)
    I've looked in WE20, for application V1 there are process codes like SD01, SD04, ... but the function modules behind are no existing on our system (release 500)
    can anybody give me an little hint?
    Thank you very much
    best regards Hans

    Hi George,
    for every process code there is a function module attached you can see in WE41(t-code)..
    double click on the Process code you will able to see the Function Module attached to Process code..
    and also you can check it out in WE57 (t-code) link between the Function module and Message type and Idoc type..
    Process code      SD01                                               
    Description       ORDRSP: Order acknowledgment, ORD_ID01 (SD_ORDRSP) 
    Function module   SD_EDI_ORDRSP_ORD_ID01                             
    Process code      SD04                                               
    Description       DESADV: Shipping notif. with DES_ID01 (SD_DESADV)  
    Function module   SD_EDI_DESADV_DES_ID01    
    regards,
    Prabhudas

  • Error while Testing the Inbound Function Module

    Hi,
           I have created a Z Function Module (Posting Program) for Testing the EDI Shipment Tender Status. When I try to process the IDoc with the Transaction WE19 and when I enter the name of the Z function Module , it gives me an error saying that "Interface for Function Zxxxx is incorrect". Can somebody give me a solution for this? Answer would attract reward points.
    Thanks,
    Venkat.

    Hi,
    You need to register this Function Module against Message Type.
    Transaction code is : WE57.
    Nilesh

  • IDOC: Incorrect function module problem

    Hi,
    I am working on inbound IDOC processing. I created an extension for an IDOC. I created custom segment & included it in the extension that I created. The Message type was also custom. (I merely copied an existing standard Message Type for some other purpose). I also assigned Function Module to Message Type & IDOC type. I have other necessary settings configured as required. The problem that I am encountering is as follows:
    Incorrect function module IDOC_INPUT_SHPCPR called up
    Message no. B1044
    Diagnosis
    The function module IDOC_INPUT_SHPCPR, which was called for the application input, was not able to process the IDoc. A possible cause is that the IDoc has wrong message type or IDoc type.
    Procedure
    Please check the message type assignment for the application function module in the ALE customizing.
    Now to troubleshoot the above error, I made sure that I have an entry with FM. IDOC_INPUT_SHPCPR,  IDOC Basic Type ,custom  IDOC extension & custom Message Type. But even then I see the above error. This error appears as Status 51 for the test IDOC that I processed.
    Can anyone please tell me how to solve this? Thanks in advance.

    On line 49 of the function module :
    * Loop through the IDocs' control records
      LOOP AT idoc_contrl.
    *   Check the IDOCs message type
        current_mestyp = idoc_contrl-mestyp.
        PERFORM idoc_message_type_check
                     TABLES   idoc_status
                     USING    idoc_contrl
                              mestyp-shpcpr
                     CHANGING subrc.
    Perform looks like this ( in Include LV56IF0C...)
    FORM idoc_message_type_check
              TABLES   t_idoc_status  STRUCTURE bdidocstat
              USING    f_idoc_contrl  STRUCTURE edidc
                       default_mestyp LIKE edidc-mestyp
              CHANGING subrc          LIKE sy-subrc.
      IF current_mestyp <> default_mestyp.   " Here the variable default_mestyp has the value SHPCPR
        MESSAGE ID      msg-id             "Global variable
                TYPE    'E'
                NUMBER  msg-nr_wrong_function    "Global variable
                WITH    current_mestyp     "message type
                        'IDOC_INPUT_SHIPPL'"Your function module
                        f_idoc_contrl-sndprt     "Sender partner type
                        f_idoc_contrl-sndprn     "Sender number
                RAISING wrong_function_called.
    Again let me warn you that you will have to copy the entire function group V56I. Copying the function module alone will not help because there are many reusable subroutines in different includes of the function-pool.
    regards,
    Advait

Maybe you are looking for