Copy of Message Mapping between SW-Components: Function Module undefined

Hi Gurus,
we want to copy a Message Mapping from one Software Component to an other. We right click on it and say "copy to" and choose the Target Softwarecomponent and Namespace. When we say ok.. we got an error "Function Module Undefined (FUNCMODL_UNDEF)"
Has anybody an idea what can be wrong?
Big Thanks in Advance

Hi Everybody. Thanks for your fast replies.
I have played a bit with the PI System and ihave the following Situation
SW-T (Target SWC)
SW-A (Source A)
SW-B  (Source B)
SW-A Copy to SW-T without Dependencies --> Error Function Model Undefined
SW-A Copy to SW-T with Dependecies --> It works correct
SW-B Copy to SW-T without Dependencies --> It works correct.
The Strange Thing is, if i Copy SW-A to SW-T without Dependencies i get the Error but a Message Mapping with the Correct Name is created, but it is empty. IT has no content. For me this looks like an Program Error?!??!

Similar Messages

  • What is the difference between subroutine and function module?

    What is the difference between subroutine and function module?

    Hi,
    they can both return values.
    FMs are mainly used when a routine is to be performed by many programs.
    Subroutines (forms) are generally only executed within one program.
    You can perform routines from other programs, but it's not often done.
    both forms and FMs are reusable modularization units.
    To distinguish we generally say that forms are used for internal modularization and
    FMs are used for external modularization.
    To decide on which to implement, consider whether you need the content to be used just for a limited program
    or wheteher it can be called from many independent programs.
    For the first purpose it is better to implement a form whereas for the second we implement an FM.
    However, ABAP does not isolate the usage context.
    That is; you can call a form from another program within whose code the form is not actually implemented.
    However, this requires attention since the form may utilize global variables.
    The same issue holds for FMs.
    FMs are encapsulated in function groups and function groups may have global variables that can be globally
    used by all FMs inside it.
    Thanks,
    Reward If Helpful.

  • What is the difference between the normal function module and bapi function

    hi,
    what is the difference between the normal function module and bapi function module.

    Hi
    BAPI stands for Business API(Application Program Interface).
    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    Regards
    Anji

  • Difference between a programe&function module in R/3 & BW

    Hi Gurus
                    i would like to know differenece between programe and function module in R/3
    and BW, so can some one give me  a brief idea about it cheers thanks .....

    Hi,
    Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module.
    it is  a kind of standrad program where u can use it in differnt local programes .
    take an example  standrad function module "REUSE_ALV_CHECKBOX_SET"  suppose u want to create a checkbox in output screen u dont need to write a program for that u can use above mentioned function module in ur programe.
    hope this information helps u
    Regards,
    Gurudatt Bellary

  • Function Module Undefined during message mapping.

    Hi,
    My Scenario is Idoc to Multiple Files without any condition i have to drop 2 files at the 2 differient directories of  FTP,
    So we are using PI 7.1 and in the Message Mapping using Signature Tab we have added 2 Target messages and at the source we have used the IDOC.
    When we see the structure under Definition Tab in Message Mapping, We are facing the below error
    "FUNCTION MODEL UNDEFINED"
    So can anyone suggest what could be the problem, do i need to change any occurence in the signature tab for the message types else what shuld i do to get the structures in the Definiton Tab.
    Please suggest how to approach this..
    Thanks,
    --Kishore

    My Scenario is Idoc to Multiple Files without any condition i have to drop 2 files at the 2 differient directories of FTP,
    1. Use multi mapping - /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    2. use two different inbound interfaces, and do two different interface determination without conditions for the same receiver determination

  • Reg: copying standard message mapping

    Hi,
    Can any one suggest me how to copy the standard message mapping..
    I have copied it in normal way...but its not getting executed...
    when i try to execute the standard map with same payload, then it works fine...
    << Moderator message - Please do not offer points >>
    << Moderator message - Everyone's problem is important >>
    Thanks,
    Madhu
    Edited by: Rob Burbank on Oct 22, 2010 3:51 PM

    Stefan,
    I have copied the SAP delivered standared map. When I run the copied map, it is giving an error "Cannot create target element /ns1:envelope/catalogueRequest/document. Values missing in queue context". But same getting executed in original SAP map.
    here in the map node "document" occurences is 1 to 1000. For mapping logic it has been duplicated 3 times.
    ex : document(1..1000), document[1](1....1000), document[2](1...1000).
    according to payload we can able to create node document(first occurence) once. That should be enough. and standard SAP map is working accordingly.
    But when we ran copied map its giving an error. we desabled the occurence 2 then its working.
    no look ups are used.
    Any suggestion....

  • Difference between bapi and function module

    Can you guys tell me what are the differences in calling bapis and function modules?
    I see we are calling both as the same way we call function modules. May be for bapis, we need to be careful in declaring and passing those exact structures. Can you please make it clear reg. the differences between them?
    I appreciate it.
    Thanks!

    HI,
    See these links on help.sap.com
    <b>For BAPI:</b>
    The data entered in the Internet is transferred to the R/3 System via BAPIs (Business Application Programming Interfaces).
    Data in the R/3 System is accessed via BAPIs as well.
    A Good Site for BAPI's
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://help.sap.com/saphelp_erp2005/helpdata/en/7c/3ce38765ba11d395fe00a0c94260a5/frameset.htm
    <b>For Function Module:</b>
    The important use of functional module is it is used by Enhancements.
    SAP Enhancements are used to expand the standard functionality within SAP.
    Enhancements use function modules and are called from the standard SAP code.
    http://help.sap.com/saphelp_erp2005/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm
    List of functional modules ( Good Site)
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Hope it helps!!!!
    Thanks
    Sudheer

  • Message handling in remote enabled function module .

    Hello experts ,
    I am creating a remote enabled function module which must return a warning message based on certain condition . Inorder to meet the requirement  I have added this line in the Fm's source code :
    " Message Wxx(message class) with a ."
    But when I am trying to use it , the above given message is dispalyed as an error message . Could you please let me know where am I going wrong . TIA.
    Regards,
    Prakrita Kapoor.

    Hi Prakrita,
    Try building below code within the RFC after you have added return structure in your RFC parameters.
      IF sy-subrc NE 0.
        CLEAR message.
        message-msgty = 'E'.
        message-msgid = 'ZMI'.
        message-msgno = '001'.
        message-msgv1 =  ID.
      PERFORM return_message USING message
                                   CHANGING return.
      Endif.
      form return_message USING    VALUE(P_MESSAGE)   LIKE MESSAGE
                                   CHANGING P_RETURN  LIKE BAPIRETURN.
      CHECK NOT MESSAGE IS INITIAL.
      CALL FUNCTION 'BALW_BAPIRETURN_GET'
           EXPORTING
                TYPE       = P_MESSAGE-MSGTY
                CL         = P_MESSAGE-MSGID
                NUMBER     = P_MESSAGE-MSGNO
                PAR1       = P_MESSAGE-MSGV1
                PAR2       = P_MESSAGE-MSGV2
                PAR3       = P_MESSAGE-MSGV3
                PAR4       = P_MESSAGE-MSGV4
           IMPORTING
                BAPIRETURN = P_RETURN
           EXCEPTIONS
                OTHERS     = 1.
    endform.

  • Message mapping: one as many, function node

    hi
    how to use - one as many - function node in mapping. i want to mapping one value from source structure to many fields in target structure. but i dont know the exact functionality of - one as many -
    kindly solve my issue
    regards
    mano

    Hi,
    Check out this example from SAP, which demos the use of the function oneAsMany:
    [http://help.sap.com/saphelp_nw04/helpdata/en/38/85b142fa26c811e10000000a1550b0/frameset.htm]
    Hope this helps,
    Sumant.

  • Context Exception for context mapping between 2 components

    Hi Guys,
    Currently I am working on ess FPM applications,
    I have 2 componets, VcComp1 & FcComp2, the data entered on the VcComp1 view should be passed to FcComp2.
    I defined context attribute in FcComp2 Interface controller, and then I mapped it to the context value attribute of VcCompl1's view controller, then bind the input field with that context value attribute.
    FcComp2 is added to the "used component" of VcComp1, all other mappings are also done.
    but when i run the appl to display the view in VcComp1, always this error comes out:
    com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(VcComp1View.attribute1): does not have a simple type.
    Even I changed the type of FcComp2 into a local dictionary simple type, then do context mapping again, this error is still there.
    Please help , I  have been stuck for 2 days on this small issue.
    Thanks with high rewarding points!
    Regards,
    Guo Feng

    hi,
    If you are trying to access the values in SVS or EVS and  passing it to the  Comp controller this errror will occur.
    Create a context attr and copy that vaue into it and bind it to the comp value attr.
    If not  chk out the following link,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60132577-7801-2b10-c9b1-b13b2f78f23b
    Regards
    Jayapriya

  • Difference between calling a function module in background task and update

    Hi experts,
    Can someone explain me the basic difference between calling a FM in  background and update tasks?
    Also what is the advantage of using backgroud RFCs over the above 2.
    Thanks in advance,
    reddy

    This is essentially a difference of synchronization with the main program calling this FM.
    For Update task, we specify explicitely that we want to update some rows in a database table. But Update task is essentially for waiting that all tasks to do before are done and updating database at the end. The main point is that MF called in Update task wait for a COMMIT WORK to be executed.
    On the other hand FM in background task are executed immediatly and are not specific to updating database table : it can be a function that would return some values or something else like that.
    If you want to see more about difference between background jobs / update jobs, you can also have a look at transaction SM51. Here you will see all the servers composing your SAP instance and what kind of task they can execute :
    - background jobs corresponds to BATCH
    - update tasks corresponds to UPDATE
    Those 2 kinds of tasks stands not necessarily on the same server...
    Best regards,
    Samuel

  • Find Message VL 324 in programs / function modules etc.

    Hi,
    I'm looking for the message 324 Message Class VL
    Have anyone an idea how can I find it. Over SE80 ... search no entries found.
    Thanks
    Holger

    Hi ,
    If its dynamically triggered we cannot navigate thru message no , and i know message class VL for Delivery , so i search in that VL01n Program.
    cheer and njoy SAP.
    Regards
    Prabhu

  • Creation of CDATA with message mapping

    Hello all,
    Is everyone absolutely sure that a cdata string cannot be created in the middle of an xml file using message mapping? 
    I have tried doing the XSL map in other blogs I even tried writing a whole XSL map in xml spy - yet xi complains about not finding this class file and that class file.  I'm having a hard time believing that this is so hard to do in XI - especially when Microsoft web service implementation seem to long for data crammed into a string ( in my experience ).
    Any help is GREATLY appreciated.
    Thank you!!!
    Scott

    Hi Scott,
             Pls follow the following steps to insert XML string into a single element:
    Create a xsl file with the following data:
    <?xml version='1.0' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <i><b>NSpace</b></i>>
    <xsl:template match="/">
    <namespace:name1>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text><xsl:copy-of select="<b>//namespace:name</b>"/><xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text><xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
    </namespace:name1>
    </xsl:template>
    </xsl:stylesheet>
    In the above code I have removed xmlns:p2="http://frik.bcc.com.pl" which is not needed.
    Also you have to put '<b>//</b>' before the target element from where you want to start creating XML string over here it is <b>name</b>. And <b>name1</b> is the element you want to store the XML string in.
    So anything in the element <b>name</b> will be stored in <b>name1</b>
    Regarding the <b>namespace:</b> To find out the namespace test your message mapping between the source and the target without adding XSLT mapping. After testing click on <b>'SCR'</b> tab present on top of the target window. There you will see <b>ns1: or ns2:</b> attached to each element. Replace <b>namespace</b> in the above code with <b>ns1: or ns2:</b>.  And replace <b>NSpace</b> in the above XSL Header with the namespace in the SCR of test map.
    So the final XSL file will look like that:
    <?xml version='1.0' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <i><b>xmlns:ns1="http://sap.com/xi/HR"</b></i>>
    <xsl:template match="/">
    <<b>ns1:</b>name1>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text><xsl:copy-of select="<b>//ns1:name</b>"/><xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text><xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
    </<b>ns1:</b>name1>
    </xsl:template>
    </xsl:stylesheet>
    Dont forget to put '//' before the target element.
    This should work. Or pls put the source and target xml struct and we will assist you further.
    Regards,
    Ashish

  • Message mapping in PI 7

    Dear Experts,
    In XI 3.0, we have created some interfaces that now have to be migrated to PI 7. I know XI but I have no experience with PI 7. Now I have some problems during this migration:
    1) From the IR, I exported a TPZ file from the software component we created, but how can I import this in PI? I used "import design objects" but then I get an error when I try to edit the object: "Original language Dutch for current object collides with permitted display or editing language EN"...
    Then I can only display the object, not edit or even copy it...
    2) in PI, how can I create a message mapping between 2 messagetypes? Basic question but I just can not find it.
    Hope you can help me out. Thanks in advance,
    William.

    >
    > In XI 3.0, we have created some interfaces that now have to be migrated to PI 7. I know XI but I have no experience with PI 7. Now I have some problems during this migration:
    >
    > 1) From the IR, I exported a TPZ file from the software component we created, but how can I import this in PI? I used "import design objects" but then I get an error when I try to edit the object: "Original language Dutch for current object collides with permitted display or editing language EN"...
    > Then I can only display the object, not edit or even copy it...
    >
    The interfaces in XI 3.0 used default language Dutch, but in PI7.1 you have selected it as EN, this may be cause error.
    > 2) in PI, how can I create a message mapping between 2 messagetypes? Basic question but I just can not find it.
    >
    it is simple, right click on name space-->select new-->then select Mapping Objects--> select message mapping new,then add your two message types
    before that you have to create data type and message type.
    Regards,
    Raj.

  • Problem in copying a standard function module!

    Hello there,
                     I need to copy the FM, RS_TABLE_LIST_DISPLAY, to a Y function Module. But I am not able to copy it as a single FM, I have copy all the FMs in that function group i.e. SETB.
                     I, then copied that standard function group SETB. I am getting a strange error message while activating the copied version. The error which I am getting is:
    The parameter "INTTAB" of the global interface has already been defined outside the function.
    INITTAB is some defined internal table.
    Also the include in which this error is getting appeared is LY.....$07 something. I have tried to many times. Not able to resolve the issue.
    Please help!
    Regards,
    Ganesh Khumse

    Hi There,
                  Thanks for your reply. I have not defined anything in the copied function module. I just copied and tried to activate it, error occurred.
    Thanks & Regards,
    Ganesh Khumse

Maybe you are looking for