How to assign function module with process code in IDOC ?

how to assign function module with process code in IDOC ? and what code i have to write in that function module for custom IDOC ?
helpful answer will be rewarded?

Hi,
First goto transaction we42 -->editing mode --> new entries -->give name of your process code and description --> processing with alv service and function module -->then press enter -->after that enter the name of the function module you want to associate from the drop down and save it.
Thats the way to assign function module with process code.
In that process code we will have the Function modules and Bapi's which will take the data which we are sending through IDOC and then process it.
for example: i am triggering the IDOC for every purchase order created then this process code in the receiver system will take the data which i have enetered in the sender system to create the purchase order and process it and creates the same purchase order in the receiver's system.
Reward if helpful.
with regards,
Syed

Similar Messages

  • How to assign Function Module in CT04

    Hi all,
    In CT04 we assign a function Module in the Values Tab. I read from SAP help on the interface to be used. But not clear on how to assign this correctly. If anybody  who worked on this can give me an example. How we do declare the function when we write dependency?
    Thanks,
    Manjula.S

    Hi
    Created F4 function module with prefix _f4 but its not triggering my break point.
    only assigned fm and _dc is triggering my fm...
    what is the problem in my f4 fm?
    FUNCTION zxxxx_f4.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(CHARACT_NO) LIKE  CABN-ATINN
    *"     REFERENCE(CHARACT) LIKE  CABN-ATNAM
    *"     REFERENCE(DISPLAY) TYPE  CHKBOX
    *"     REFERENCE(ADDITIONAL_VALUES) LIKE  CABN-ATSON
    *"     REFERENCE(MULTIPLE_VALUES) TYPE  RCTMV-ATLIS
    *"     REFERENCE(LANGUAGE) TYPE  SY-LANGU
    *"     REFERENCE(DISPLAY_WITH_LANGUAGE) TYPE  CHKBOX
    *"  TABLES
    *"      VALUES STRUCTURE  RCTVALUES

  • How to create Function Module with TABLE parameter (for internal table)

    Hi Guys,
    I am trying to create a function module by using TABLE parameter. I have to pass an internal table to this function module for processing.
    But it saying : TABLES parameters are obsolete!
    And I am not going further.
    Please suggest any work arround.
    Thanks

    Hi,
    create a table type in SE11..
    Then use that in your function module importing/exporting/changing parameter for passing internal tables..
    Thanks,
    Naren

  • How to find Function Module & Program Name Used by IDOC

    hii Experts,
    i want to find program name & function modules used in IDOC. I have Idoc type, Message type & extension type.
    Help me

    Hi Vinod,
    Go to transaction WE64, click on the <b>search for message type</b> or press <b>shift+F6</b>. A popup will be displayed and here enter the message type for example 'QUOTES', u will be taken to the process codes available for the message type u have entered. click on the process code and data related to that process code will be displayed in the right hand side. Now double click on the process code, a pop up with function module name will be displayed. copy that and search for where used list in SE37.
    Hope it helps.
    Regards,
    Phani.

  • Inbound Function module to process ORDERS05 IDOC

    Hi,
    My requirement is to create pre-booked Purchase order.
    I have to extend the ORDERS05 IDoc for this requirement. It is an inbound IDoc.
    I found the function module IDOC_INPUT_ORDERS. But I have a doubt will it work for Purchase orders because i found most of the data inside the function module are relevant for Sales order creation.
    Can you please suggest me a suitable function module to process this Inbound Idoc and create purchase order.
    Regards,
    Balaji. R

    Hi,
    The message type and basic idoc type for the processing of purchase orders:
    PORDCH                 PORDCH01                -- For change
    PORDCR1               PORDCR101              -- For Create
    Regards,
    Ginu Litta Raj

  • Function module for Process order status

    Hi techies,
    I want to know the function module for process order status , idoc type is liopro01 and message type is liopro, my requirement is that based on the different status received in IDoc SAP should update the process order status, separate user status will be defined as "MO START" and "MO end" using status profile.also it has change the process order status to "TECO" also it should check the user status for "MO Abort".
    Thanks in Advance

    Hi ross,
    Try this function module.
    STATUS_CHECK_MULTI
    May be helpful.
    Lincon

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • How to assign Function key in Module Pool Program

    Dear all,
             I have created the program in MPP.  I have to assign function key for this program.  How to assign it?
    With Regards,
    Baskaran

    HI
    Double Click on your Screen and then Elements Tab, give OK_CODE of OK_CODE.
    Now in Click on Flow Logic Tab , uncomment MODULE STATUS_YOUR_SCREEN_NUMBER. Create this.
    Here you find SET PF_STATUS Just Double click on this this will enable you to Assign Function Keys.
    If you want to Assign Function Key to the Push Buttons that you created Double Click on the Push Button then on the Attributes Screen you can enter the Funciton Code for this Push Button,
    Hope this is Very Clear to you.
    Cheers
    Ram

  • How to check for a function module with its description and functionality

    Hi all,
    How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .

    Hi,
    You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
    Say for example you need to search something regarding converstion.
    Search for * CONVERT * and press F4.
    If there is something specfic like converting date to something you can give
    DATE * CONVERT *
    OR
    CONVERT * DATE *  and press F4.
    Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
    Regards,
    Pramod

  • RFC Function module-With Only Request message

    Hi
    i need a RFC with only Request message and Response message is not required.
    please help me, how to create a RFC function module with out Response message, and it should contain only Request message.
    i have created RFC in this way:
    RFC doesn't contain neither import nor export parameters. and i have defined one table in TABLE tab which refers to a ztable created already.
    when i imported RFC into XI i came to know that RFC has both Request and Response messages, but i don't need Response message.
    Thanks in advance..help would be appreciated
    Regards,
    Rajesh

    Thankx Michal,
    I have written ZRFC this way:
    insert ZMM_AUTO_GR from INPUT_TABLE .
      if sy-subrc = 0.
        commit work.
      else.
       rollback work.
    im not using neither import nor export parameters..but using only tables parameters. but when imported in XI im getting same table  structure in both request an response.
    please suggest what changes required in above code to invoke my ZRFC in async way.
    you will not get any response in XI- what chages required in my code to dnt get .reponse in XI.
    appreciate your help.
    Regards,
    Rajesh.

  • How to Use Function Module READ_TEXT

    Hi
    Anyone give me code or link or example for how to use function module READ_TEXT
    and what are the parameters which we have to pass in module.
    Regards.
    Mohsin

    Hi,
    refer the given below code.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        id                            = 'KOPF'uF0E0 these details we will get thru transaction , where we enter these details.
        language                      = 'EN'uF0E0 these details we will get thru transaction , where we enter these details.
        name                          = TNAME  "table name
        object                        = 'AUFK'    " these details we will get thru transaction , where we enter these details.
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        = HTEXT
      tables
        lines                          = LTEXT
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Arun

  • How to Add function modules to retrieve current month

    how to Add function modules to retrieve current month from TVARV variables (currently we have functions to do close month).

    Hi
    Double click on the CODE for the line..
    SET PF-STATUS 'XYZ'.
    It will open the Menu Painter (SE41). Click on the Function Keys Tree Node and And assign the
    Function Keys and Function codes for the Menu Items.
    Hope this would help you.
    Murthy

  • Log on into the function module with different user name.

    hi,
            i log on into the system with my user id suppose 'mukka' and i have to check the authorization of another user say 'you' using the function module "authority_check_tcode". but here i am getting the problem that when i assigned sy-uname to 'you' and execute the function module it is entering into the function module with 'mukka' user name only.
    sample code:-
                                sy-uname  = p_uname.
        CALL FUNCTION 'AUTHORITY_CHECK_TCODE'  "#EC"
          EXPORTING
            tcode  = v_tcode
          EXCEPTIONS
            ok     = 1
            not_ok = 2.
    when i am changing the sy-uname with p_uname the sy-uname is changed but when i entered into the function module authority_check_tcode in the debugging mode at the below the sy-uname variable is showing  as 'mukka' only. but i need to check the authorizations of user 'you' pls give me solution to my problem.

    Hi,
    Why would you want to check the authorisation of another user and not the one currently logged in?  The idea of authorisations is to check the current user is able to perform a certain activity.  The majority of fields on SYST are constantly updated to have the correct values (partly so you can't fiddel authorisation checks like this
    Maybe if you explain to us what you are trying to do we can offer some other help.
    Gareth.

  • Does R3 have a report or function module to process payments requests?

    HI All,
    I want R3 report or function module which will receive payment requests from vendor or customer and then procees it depending on the data.
    Does R3 have such a report or function module to process payments requests?
    Please help me.
    Thanks.

    yes SAP as got a function for this
    you can you use trannsaction code /nF111
    for these purposes

  • How to create function module for getting customer name

    Hi Experts,
                   How to create function module?  when in import parameter kunnr values to be passed it must give name1 details according to the customer number...
    how to write the logic in source code....
    Regards,
    Thiru. R

    1. First of all create function group.
    2. Create function module using this function group.
    3. If only one kunnr is needed at a time, create import parameter for it. But if many kunnr to be entered at a time,use table.
    4. Fetch name1 for each kunnr from KNA1 table.
    "->> if many kunnr
    if not t_kunnr[] is initial.
    select kunnr as kunnr name1 as name1
    into table t_kunnr_name1
    from kna1
    for all entried in table t_kunnr
    where kunnr = t_kunnr-kunnr.
    endif.       
    sort t_kunnr_name1 by kunnr name1.
    delete adjacent duplicates from t_kunnr_name1 comparing kunnr name1.
    table t_kunnr_name1 will contain kunnr and its name1.
    I hope logic is clear for you now.
    Regards,
    Aparna

Maybe you are looking for

  • Start UP problems, blue screen, Imac (intel) 1.83  17"

    I posted this Saturday in a different area. So forgive me if I did this incorrectly. Imac DuoCore 1.83 (originall with 10.4 Tiger) Upgraded to Leopard several months ago without problems. Have the lastest updates. Two days ago the following started:

  • How to replace the end of a file name

    I have a seriously dumb question... I have a row of thousands of file names (top-down, row a), these names are, for example, "photo-1.jpg" and I need to change the .jpg to .nef. How can I accomplish this? thanks!!

  • I am able to play rental movie on iPad but when I switch to tv it is frozen and I can't get play to engage

    I am able to view rental movie on iPad but when I switch to Apple tv the picture is frozen along with the play button

  • PL/SQL functions

    Hi Everyone Is it possible to print a webpage out from a function? I have a form on a webpage which takes cutsomerID in via a text box. The forms action is the name of the procedure. This procedure calls the function. I want the function to return a

  • Internal Error: INTEGRATION_DIRECTORY_HMI

    Hi, In XI Server, T.Code SM59, HTTP Connections to ABAP System-> INTEGRATION_DIRECTORY_HMI if i do the Connection test, it is showing one popup box: Response from Web Server Contains Cookies Accept? if i click yes or no, in the test result tab, it is