Same inbound type idoc to different FM

Hi everybody.
I have the same idoc type that is received from two different logical systems. I want to customize two FM to process these idocs.
In transacion we57 there are two entries to associate the same idoc type to two different function modules.
The problem is that when I go to transaction we42 to create a process code only one of the functions created in transaction we57 is shown and it´s impossible to create two differents process operation associated each of them to the two different FM.
How could I create 2 process code for the 2 FM for the same idoc types???
Thanks

Hi,
I'm guessing these are customer functions.
Ideally, the processing should be done in the same function module, you can always switch to different logic within the function module ( wrapper function ) and call different function modules based on the sender to process the data.
Something like this:
function idoc_input_mestyp  " This is the wrapper function which will process the Idoc
if sender = 'X'.
  "Process for sender X
  call function 'X'.
elseif sender = 'Y'.
  "Process for sender Y
  call function 'Y'.
endif.
endfunction.
You can create a Z table where you can store the sender and function module, this way you can dynamically call the functions.
Hope this helps.
Br,
Advait

Similar Messages

  • Same message type and two different IDOCS need to be triggered

    Hi,
    I have two idocs with same message type,the partner profile is same.
    Please tell if there is any way to handle this situation without changing the message type.
    Please do the needful.
    Thanks,
    Nivedita

    Hi
    We can have same message type for different idoc types.
    ex:MATMAS.MATMAS01
        MATMAS.MATMAS02
        MATMAS.MATMAS03
    In the above example MATMAS is the same message type for different idoc types.
    Thanks

  • Different material- same valuation class-same movement type - but should hi

    dear all,
    Different material- same valuation class-same movement type - but should hit different gl account.
    the requirement is the materials are different but having same valuation class. Now during issue certain gl account are hitting because of val grp code, account modifier and account determination in mov type. Now my question is can i use same movement type and hit different gl account for materials having same val class???
    It is possible??

    Hi,
    In OBYC, we maintain G/L account for the transaction key (for ex: GBB) for the combination of Val. grouping code, Valuation class & account modifier (ex: VBR - determined via mov.type).
    As per your requirement, Materials have the same valuation class and you are using the same mov.type for Goods Issue, so only option is to use different val.grouping code (which is assigned to a valuation area).
    So in short, you can trigger different G/L for the different materials with same val class, mov.type only if the Plant - valuation area is different.
    If the Plant is same then system will always determine the same G/L even though materials are different.
    Hope it is clear.
    Thanks & Regards,

  • Same message type

    Hi,
    is it possible to use the same message types in two different BPEL processes ?
    If yes, could you show me an example ?
    thank you & bye

    Yes of course, just make sure the xsd's match. You can make sure the xsd's are the same in those BPEL processes by:
    a) copy the .xsd's yourselves in each BPEL process (this violates the Edsger W. Dijkstra's design principle 'Avoid duplication of volatile information')
    b) use a seperate BPEL process for storing all the common xsd's (unfortuately this requires that this process is deployed to the server before you can compile the other BPEL projects).
    c) use svn:externals or a custom copy script that will make sure that there is only one source for the XSD's
    The IT-eye article on Generate facade classes for multiple Oracle BPEL usertask payload structures at once might be usefull.
    Regards,
    PieterB

  • Seperate  no range for same doc type in 2 co codes

    Hi,
    I have created two company codes 1000 & 2000.
    Under 1000 I've EOU plant 1111 & under 2000 I've domestic plant 2222.
    Now, I've created PO document types. I've assigned no range to them.
    But I want to use the same document type for both the plants but with different range(say 1100..00 for plant 1111 & 220000..00).
    Is it possible?
    Last option is to create seperate doc type for each plant, but I don't want to do that.
    Guide me on this.
    Thanks & Regards,
    Piyush

    For the same document type for two different company code you can create two different number range.
    IN Spro-mm-Purchasing Purchase order document type -- enter the number range for the document type
    Eg
    Company code   Doctype    number range
         AAA                 NB                 1000-1010
         BBB                 NB                 2000-2010
    G.Ganesh Kumar

  • Posting multiple idocs of different IDOC/message type

    Hi! ALL
    It would be very helpful if you please provide your valuable suggestions...
    I have 4 different file to IDOC mappings and i am trying to post all the 4 using the same interface determination....out of the 4 ....2 IDOC are of the same message type...this is throwing out an error...
    <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface was found more than once (for same sender and receiver) for outbound interface http://ck.com/xi_com/Ship.MI_SHIP</SAP:P1>
      <SAP:P2 />
    I am trying to use 3 File IDOC mappings in the same Interface determination, for example has the following inbound receivers in the interface determination:
    DESADV
    WMMBXY
    DESADV.........I am using DESADV twice as the Message Mapping is different for each of the inbound DESADV idoc
    Please, let me know...if you were able to post similar message type IDOC in the same inteface determination.
    Your help is greatly appreciated....
    Thank you,
    Patrick
    Thank you

    Hi! Bill
    I am using 3 message interface(in 1 interface determination) and i am able to post 3 idocs....the problem only arises when the 4th idoc is of the same message type as any of the first 3.
    I am trying to exclude the 4th mapping.....b'cos the issue with similar message/idoc's type issue.....but incase u have a solution let me know...here is an example
    Eg:
    DESADV
    WMMBXY
    SHIP...is posting fine!!
    But...problem with..posting...
    DESADV
    WMMBXY
    SHIP
    DESADV(4th same as first)
    And again as mentioned...each have there own message mapping(MI) and interface mapping(IM)....and are in the same interface determination...as outbound interface and BS is the same for and in the inbound as u know is IDOC..R3.
    Thank you for your response....
    Patrick

  • IDOC - same message type

    hello,
    I have two idoc types named MATMAS04, MATMAS05.
    (to MATMAS05 i have created an extension)
    they are both in the same message type MATMAS.
    i need to send the two idocs to the same system.
    but, in transaction WE20 when i link the message type to the system i can create only one record of the message type. in all the administration tables for IDOCs i can see that i can send to idoc types under the same essage type but WE20 prevents it.
    I don't want to create a new message type.
    is there a way that i can use the same message type for different idoc types?
    Regards,
    Roi Grosfeld

    Hi Roy,
    This link might help u in idoc programming
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/21758d51ce11d189570000e829fbbd/frameset.htm
    Hope this helps,
    Regards,
    Nagarajan.

  • Sending Message Type from the same Logical System to 2 different ports

    Hi,
    I need to transfer the same message type 'DEBMAS' in the same logical system,
    to 2 differenet port - directly to XI (as an IDOC) and to function (as a PROXY),
    In XI this are 2 different interfaces.
    I see in we21 that when adding message type in outbound I can also write message code or message function so I tried adding an additional row of DEBMAS with message code but it did not work.
    Thanks,
    Naama

    Hey,
    This question should not be posted here, but in the XI forum,
    anyways,you can do it in 2 ways
    1) You can send the message to XI, and in XI it should be configured to send to
    two different places, which can be done in the Receiver Communication Channel, one would be IDoc Receiver and another would be a SOAP Receiver. ( here you send one message to XI and XI will send it to the PROXY )
    2) You can specify the settings in your Partner profile (we21)and while generating the Port (we20).
    Regards,
    Samson Rodrigues.

  • Idoc creation - Different Message types

    Hi All,
    Is there an efficient way of  to create both DEBMAS and ORDERS message type idocs within the same same ABAP program?
    Please advise.
    Regards,
    Meghna

    Thanks for your reply.
    We have lot of custom development and we have to go with an ABAP program to create these Idocs.
    Here's what I am planning to do:
    fill DEBMAS05 idoc type.
    append EDIDD.
    fill ORDERS05 idoc type.
    append EDIDD.
    I'm planning to use INBOUND IDOC Process function module to create these idocs.
    For performance reasons do you want me to call this FM twice or only once for both ( by appending EDIDD both debmas and orders records ).
    Please advise.
    Meghna

  • WM-PP : Backflush a material from different bins in the same storage Type

    Hi Gurus,
    We have a business scenarion where we do manual staging for production , the staging area has different bins within the same storage type for the same material, I am wondering if there is a way to backflush the material from different storage bins upon prod. order confirmation (using a control cycle?)
    Thanks
    Kris T

    Look like it's not possible using the SAP standard.

  • Urgent: Posting to different Symbolic Accounts for the same Wage Type

    Hi Everyone,
    Assuming that I have a Wage Type and 2 sets of Symbolic Accounts tied to their respective Chart of Accounts (belong to 2 different companies).
    When I go to the configuration node "Define posting characteristics of wage types" in SPRO, under Payroll, I have assigned Symbolic Account 1234 (which belongs to Chart of Accounts A) and Symbolic Account 6789 (which belongs to Chart of Account B) to Wage Type 1000.
    When I execute the Transaction for Posting to Accounting (PC00_M99_CIPE), I get an error (Message: Posting Balance is not cleared). After exploring the log, i notice that both Symbolic Accounts appeared.
    How do i ensure that only the specific Symbolic Account is being posted?
    Take for example that the employee belongs to Company A.

    Hi,
    U can post to different accounts for same wage type but NOT symbolic accounts!
    Do as follows:
    1)-Define employee grouping account determination(PPOMD feature)
    2)-Define symbolic accounts
    3)-Assigning Accounts
    When doing 3rd step, click "RULE" button and select "Employee group".
    By doing so you can posting same WT to different Accounts according to different employee grouping , like below:
    SymAcc   Grp             Account
    Z001     GU     5502019900
    Z001     SZ     5502019901
    Z001     YY     5502019902

  • Is it possible to have Different Interval Ranges for the same Doc Type

    Dear All,
    Here is the issue.Is it possible to have different interval ranges for the same document type according to certain condition.Like my client , wants his interval ranges  be divided according to region(which are many)
    Regards,
    Sameer Jalees

    Hello,
    As you know we can only assign one number range for External and one number range group for internal in the sales document type.
    If you want different number ranges based on the regions, then as Jignesh suggested, you need to go for an enhancement.
    Use the exit USEREXIT_NUMBER_RANGE in program MVA45AFZZ, include a Z table with region as a critera and number range group for different numbers based on the regions. Talk to the business and get more details, get the help of ABAP team for technical details.
    Regards,
    SAM

  • Same Document type, Different number ranges

    All SAP Gurus,
    I want to assign  Different number based on movement types, but the problem is that both the number ranges (101 for purchase order and 122 return delivery to vendor) are having the same document type (WE).
    Is it possible to assign different number ranges to them?
    Please give ur valuable suggestions.
    Regards

    In Std SAP , It is Not Possible..

  • IDoc processing for same message type but diff extensions

    Hi
    I want to send idoc when a material is changed. Everything is in place and have also done a test scenario. In partner profile i had the message type linked to basic type and tested which is fine. Now i wanted to have one more idoc created for another extension having the same basic type and linked to the same message type. Have maintained the same in WE20 but when i executed BD10 i could only see one idoc been generated but i need to see two idoc (one for basic type and another for the extended) not sure where i'm missing. any pointers on it pls?

    Hi ,
    if you want to trigger the idoc  two times for basic type& Extension..
    1 ) you need to maintain  WE20 Partner Profiles (This is good already you did)
              --> But the Output type for Bsic type & extension type is same so output type is triggered Once so idoc is created One.
    2) try to create another Output type in T-code NACE for extension then two Idocs is created one for Basic and another for Extension.
    Regards,
    Prabhudas

  • Same Condition type with different G/L Accounts

    Dear All,
    Our customer wants to maintain different set of G/L accounts with the same condition types in case of Service tax.
    We have three different condition types for Service taxes.
    JSV4 - Service tax
    JES4 - ECS on Service tax
    JSE5 - SECS on Service tax
    We have Two different Services
    1. R & D Services
    2. IT Services
    For these two services, service tax condition types are common but we need different G/L Accounts for different Services.
    How to achieve this?
    Regards,
    Mullairaja

    Create two tax codes in FTXP, one for R&D Service and another one for IT Services.
    Now go to OB40, select the required Transaction, say for example MWS and assign these tax codes with the required G/L Account there.
    Finally, in VK11, for tax condition type, assign these tax codes and save.
    Now do one sales cycle for each scenario and update the forum.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • ColdFusion 6.1 restart every few minutes

    Hi, I am running ColdFusion MX 6.1, Win 2003, JVM 1.4.2-b28. The issue is every few minutes the ColdFusion is restarting automatically when checked in the application events. The error description says : The coldfusion mx application server service k

  • How to get the selection version id

    Friends, When we run the standard transaction in background ,selection version id generated...is it any Function Module to get that id...... Thanks & regards Shankar

  • Add new field in External Definition

    Hi, I have a scenario where I have to add just one extra field in in the Outbound DT. In our case we do not have DT, but External Definition say BAPI_XYZ.xsd I export the .xsd file from Tools --> Export Original Document (Category: xsd, Messages:From

  • Reason 3 won't start in Slave mode

    Hello, I've used Reason as slave to Cubase on a PC for a long time so am familiar with how it works. However I have recently switched to Logic and Mac but have failed to get Reason to even start in Slave/Rewire mode with both Logic Express 7 and Logi

  • When I open windows live my hotmail account in mozilla,The right side of the window is blank.I only see half my messages.

    When i open my hotmail or windows live mail.I only get half of my messages.The other side of the screen is blank.The right side is blank for some reason.