Idoc ORDERS05 with Custom Message Type

We want to use a Z message type for idoc type ORDERS05 to be able to separate a particular group of partners from other partners using ORDERS/ORDERS05.
The goal with our Z message type is to use the standard function IDOC_OUTPUT_ORDERS. The only problem I see is that this function checks the message type in form READ_SERVICE_PACKAGE. It would ignore this code since my message type is a Z and it's checking for message type ORDERS. 
I was thinking of using a Z wrap-around function to perform the same code in form READ_SERVICE_PACKAGE if the message type is my Z message type.
I want to avoid creating a Z copy of IDOC_OUTPUT_ORDERS and all if the includes!!!
Any suggestions?

Hello Bruce,
The function module is associated with the process code.
Why do you need a new message type?
Regards,
Samir.

Similar Messages

  • IDOC - IDOC scenario with different message types

    Dear Experts
    I will like to have your expert opinion in the following question:
    I have an IDOC -> IDOC scenario. Wherein at the destination system I have a message type which does not exist at the source system.
    Also the IDOC type at destination system does not exist at the source system.
    Let say, I will be creating custom message type at source system (Z****) and will also be creating the custom IDOC type (z****) with the same structure, definition as the destination.
    Now my question is, even if there will be different message types and different IDOC types but with the same structure (the segment level definition
    and field attribute remains the same at both the system). The difference lies with the names. And I have proper mapping though process code.
    Will I be able to receive the IDOC correctly at destination?
    Thanks & Best Regards

    Hi All
    I figured out the answer myself now.
    You got to have same name for message type. All of you said this and this is rite.
    Coming to IDOC type, I did not really got clear idea on this from this discussion.
    But after working on a scenario, I learnt that, you can have different names for IDOCs, but provided that, whichever IDOC type the source system is sending, the same type must exist in your destination as well. Otherwise, system wont process your IDOC. But from mapping point of view, its upto individual how do thay handle mapping inside inbound process code for different idoc types / strucutes.
    Lesson learnt by me, ideally try to keep same name for both logical message and idoc type at both source and destination. If possible try to keep the structure level also the same. This is my view, learnt it the hard way.
    Cheers
    Shane

  • Idoc serialization for custom message types

    Hello,
    We have a scenario where we need to serialize outbound messages where the message types are both custom and SAP standard. Can we serialize custom message types and how?

    Hi,
    you need to create a serialization group (in customizing) and assign all the IDocs (in specific order) to this group incl. your custom IDoc.
    When data is transfered first a SERDAT01 IDoc will be sent, after this your IDocs have to follow in specific order. At last again a SERDAT01 follows and triggers the processing in the destination system.
    Regards,
    Kai

  • ZHRMD_A Custome message type issue with custom segments.

    Hi Experts,
    We have implemented ALE in HR system, we have all other ALE using HRMD_A and we have jobs scheduled for HRMD_A message type. We dont want this job should trigger our model and distribute the data. So we have reduced the HRMD_A messae type to ZHRMD_A for basic type HRMD_A06. Every thing fine. After upgrade of SAP FROM ECC6.O to EHP4, PFAL is not creating IDOC segements for custom segments Z*. for example Z1P0002....ETC, though there is personal data for PERNR.
    Please guid if you have come across such situation and solution.
    Thanks & Regards.
    Venkat.

    Hi Venkat,
    In the same way i too have one situation like...have different model view with same message types( and same extension type) for various countries from one sender system.
    Should i create reduced message type for each model view?
    Or can i use same message type HRMD_A for various model views?
    If i can use same message type and same extension type for various model views is there any restriction we need to write in USER EXIT  EXIT_SAPLRHA0_004?
    Regards,
    Lava.

  • Problem to create change pointer for custom message type - Idoc creation

    Hi,
    We want to create IDOC and send it out when the data of "planning calendar" changes. So we are trying to generate change pointers whenever entries in Table T439I (Planniing calendar) data change.
    We created a message type, activated change pointers generally and maintained change relevant fields for message type (not sure if this step is done correctly). But not getting any change pointer in table BDCP2 when I create a new planning calendar in MD25.
    Can anybody help / guide?

    Thanks once again,
    I had linked idoc type and message type in we82. Now after i activate the change pointers. I try to generate the IDOC type using BD21. It gives me the error message :<b> "Message type ZP2PPROJ_MSG cannot be sent with change pointers"</b>
    whereas in my segments i am using all the master data only (i.e. PRPS, PROJ,PRHI). Please throw some light on this.
    Also please clarify, do i need to make an entry of this custome message type in the partner profile ?
    Rgds
    kewal.

  • Want to add multiple idoc type with single message type.

    Hi Gurus,
    I have a problem. I want to add multiple idoc type with single message type in WE20.
    How we can do this in WE20 or is there any other way to do that?
    Please help me.
    Thanks in advance.
    Srimanta.

    hi,
    basically in partner profile i.e. in we20 , we add details to the receiver / sender port that we have created using we21.
    so what exactly we do in that is that we first use the message type for those idocs that we have created.
    now based on those message type we create a process code. now this is the reason why you cannot apply several message types with the same name in we20... as process code is unque for each message type.
    so thats why you can only assign the same message name to several idocs in we82 and then in we20 define the process code for that message type.
    it will solve your problem.
    hope this will help you!!!
    Thanks & regards,
    punit raval.

  • Change pointer for custom message type

    Hi,
    I have a situation where in, i need to create a custom message type and need to track the changes in the table fields using the Change pointer technique.
    Can anybody guide me as to what are the step to be followed after i create the custom message type and how to register the fields of the message type ?
    Note : Change document (CDPOS) technique is ruled out in my requirement.
    Regards,
    Kewal.

    Thanks once again,
    I had linked idoc type and message type in we82. Now after i activate the change pointers. I try to generate the IDOC type using BD21. It gives me the error message :<b> "Message type ZP2PPROJ_MSG cannot be sent with change pointers"</b>
    whereas in my segments i am using all the master data only (i.e. PRPS, PROJ,PRHI). Please throw some light on this.
    Also please clarify, do i need to make an entry of this custome message type in the partner profile ?
    Rgds
    kewal.

  • ALE - error in custom  message type creation

    HAI friends,
    I am new to ALE IDOC, i am creating custom message type for custom table . i created segment, idoc, message type and executed  outbound program . in outbound client, status is dispatch ok. so problem in outbound.
    my problem is in inbound . i created one function module idoc_input_zmsg. In test tool for idoc processing ie. TCODE WE19, i clicked my segment and then i clicked the inbound function module button . In function module text box my own function module idoc_input_zmsg is available. but when i click ok button, i am getting the following error.
    "INTERFACE FOR FUNCTION IDOC_INPUT_ZMSG IS INCORRECT".
    PLS HELP ME . THANKS IN ADVANCE.
    WITH REGARDS,
    SENTHIL KUMAR.R

    All the IDOC processings FMs should have similar interface like this.
    *"  IMPORTING
    *"     VALUE(INPUT_METHOD) LIKE  BDWFAP_PAR-INPUTMETHD
    *"     VALUE(MASS_PROCESSING) LIKE  BDWFAP_PAR-MASS_PROC
    *"  EXPORTING
    *"     VALUE(WORKFLOW_RESULT) LIKE  BDWFAP_PAR-RESULT
    *"     VALUE(APPLICATION_VARIABLE) LIKE  BDWFAP_PAR-APPL_VAR
    *"     VALUE(IN_UPDATE_TASK) LIKE  BDWFAP_PAR-UPDATETASK
    *"     VALUE(CALL_TRANSACTION_DONE) LIKE  BDWFAP_PAR-CALLTRANS
    *"  TABLES
    *"      IDOC_CONTRL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_STATUS STRUCTURE  BDIDOCSTAT
    *"      RETURN_VARIABLES STRUCTURE  BDWFRETVAR
    *"      SERIALIZATION_INFO STRUCTURE  BDI_SER
    *"  EXCEPTIONS
    *"      WRONG_FUNCTION_CALLED
    Check if you have different one. Even if the name of variables is not as above you may get the error message .
    Cheers

  • Assigning filter criteria for custom message type.

    Hi everyone,
    In our requirement i have created a custom message type ZDEBMAS like debmas. now while creating a distribution model with this message type, i need to create a filter for this.
    only IDOCs of customers with Account group 0001, 0002 and 0012 has to be triggered. I'm able to create the filter with message type DEBMAS, but while i'm using message type ZDEBMAS i'm unable to create any filter. Can any help me in this.
    thanks in advance,
    Rajni

    Hi!
    Do you create filter with BD95 and  allocation with BD59 transactions?

  • Variable initialized with wrong message type

    Hi,
    I have a BPEL process variableA of Message type A as defined in the partnerlink WSDL file. This variable get initialized during operation A from the partnerlink. The WSDL has another message type B defined for another operation B.
    During runtime when operation A is called variable A gets initialized with message type A, however when operation B is invoked with mesage type B variableA gets initialized again with the content of message type B even though it's defined to be of message type A. Below are the snippets from the WSDL and BPEL process file
    WSDL file ..
    <message name="MessageTypeA">
    <part name="payload" element="mpx:MessageARequest"/>
    </message>
    <message name="MessageTypeB">
    <part name="payload" element="mpx:MessageBRequest"/>
    </message>
    <portType name="MutilPort">
    <operation name="A">
    <input message="tns:MessageTypeA"/>
    </operation>
    <operation name="BA">
    <input message="tns:MessageTypeB"/>
    </operation>
    </portType>
    Process BPEL file
    <variable name="VariableA"
    messageType="tns1:MessageTypeA"/>
    <variable name="VariableB"
    messageType="tns1:MessageTypeB"/>
    <pick name="Pick_2" createInstance="yes">
    <onMessage portType="tns1:MutilPort" operation="square"
    variable="VariableA" partnerLink="Multiplex">
    <sequence name="Sequence_1">
    <assign name="Assign_2">
    <copy>
    <from variable="VariableA" part="payload"
    query="/ns1:MessageARequest/ns1:Operand1"/>
    <to variable="ResponseVariable" part="payload"
    query="/ns1:AllOpProcessResponse/ns1:Result1"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    <onMessage portType="tns1:MutilPort" operation="addition"
    variable="VariableB" partnerLink="Multiplex">
    <sequence name="Sequence_2">
    <assign name="Assign_1">
    <copy>
    <from variable="VariableB" part="payload"
    query="/ns1:MessageBRequest/ns1:Operand5"/>
    <to variable="ResponseVariable" part="payload"
    query="/ns1:AllOpProcessResponse/ns1:Result1"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    </pick>
    Please can anyone shed some light on why and how this can happen and where is it going wrong.
    Thanks,
    Shishir

    Looks like the destination which is used by your EG has default settings,
    particulary the RedeliveryLimit param. If it is set to -1 (default setting)
    WL will try to redeliver the message forever in case of any error. Just set
    it to something else. You can also specify an ErrorDestination and hadle
    error messages specifically in it.
    Denis.
    <Gunjan Shukla> wrote in message news:[email protected]..
    Hi,
    We are using WLI 8.1, in one of our applications I have a message broker
    channel configured to listen to rawdata type messages. A jms event
    generator is configured to publish messages, which are sent to a jms
    topic, on this channel.
    We have no control over type of messages sent by client applications, when
    some client application sends an ObjectMessage instead of BytesMessage,
    following error is thrown
    ####<Jun 1, 2006 10:47:14 AM GMT-07:00> <Error> <WLW> <P931467> <cgServer>
    <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>>
    <BEA1-004324CB0C4F26C12C0A> <000000> <Cannot publish non-BytesMessage to
    channel of type RAWDATA>
    ####<Jun 1, 2006 10:47:14 AM GMT-07:00> <Error> <WLI-Core> <P931467>
    <cgServer> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'>
    <<anonymous>> <BEA1-004324CB0C4F26C12C0A> <BEA-489048> <Not a
    BytesMessage>
    server keeps throwing this exception and fills the logs and ultimately
    server needs to be re-started.
    Can somebody point me to whether its possible to catch these exceptions in
    a process?
    Or alternatively is it possible to somehow ignore the messages with
    mismatched message type?
    Any ideas are greatly appreciated.
    Thanks and regards,
    Gunjan

  • Can we modify the standard AOL Message with custom Message in Seeded Page?

    Hi,
    I have a requirement to change AOL Message with custom Message in Seeded Page.
    In a seeded OAF page when a user clicks on a submit button a standard AOL Processing Message is populated.
    I Need to change the Standard Message and call Custom Message.
    Did controller extension and found that both the messages are populating.
    called the code after super and tried to call before super also.
    Did any one face this issue and resolved it. Kindly provide the solution.
    Regards
    Chaitanya

    Hi Gyan,
    I have tried by extending a sample custom controller.
    Below is the code of TestCO calling create message
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
          OAApplicationModule am = pageContext.getApplicationModule(webBean);
          if (pageContext.getParameter("Test") != null)
              OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM",    null,
              OAException.CONFIRMATION, null);
              pageContext.putDialogMessage(confirmMessage);
      }Then I extending the TestCO to XXTestCO and it is calling Update Message
        public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
          super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            if (pageContext.getParameter("Test") != null)
                OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_UPDATE_CONFIRM",    null,
                OAException.CONFIRMATION, null);
                pageContext.putDialogMessage(confirmMessage);
        }got below Confirmation
    Confirmation
    Employee &EMP_NAME with the number &EMP_NUMBER has been created.
    Employee (&EMP_NAME) has been updated.
    Tried below approach also calling the message before super class
        public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            if (pageContext.getParameter("Test") != null)
                OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_UPDATE_CONFIRM",    null,
                OAException.CONFIRMATION, null);
                pageContext.putDialogMessage(confirmMessage);
          super.processFormRequest(pageContext, webBean);
        }got below Confirmation
    Confirmation
    Employee (&EMP_NAME) has been updated.
    Employee &EMP_NAME with the number &EMP_NUMBER has been created.
    My requirement is to print only the message which I have kept in Extended controller i.e. Update message
    Regards,
    chaitanya

  • Tcode to send custom data using custom message type in ALE

    I have ceated custom message type and i want to send data to say system B.I wanted to know Tcode to send custom data using custom message type in ALE.
      for example:
    material data...message type = matmas....tcode = BD10.
    like this.
      i hope you have got my question.
    plz guide me?
       regards
         mallikarjun mangalore

    Hi,
    Sending data through ALE is not a single-step process. Take a look at http://www.sapgenie.com/ale/. The paper at http://www.sapgenie.com/sapgenie/docs/ale_whitepaper.doc is a wonderful resource for the ALE process.
    Regards

  • Decision Pop Up: buttons with custom message

    Hi Experts,
    I have a requirement to display buttons with custom message on it for a decision pop up instead of 'Yes' or 'No'. Please guide me how do I do it?
    Thanks for your help.
    Regards,
    Surekha.

    Hi,
    if you want to do this, you first have to Create a new Context Node e.g. u2018DATASTORAGEu2019 in your Viewwith only a Dummy value attribute to store the custom buttons and catch which button was clicked.
    Then you have to call the popup in the Event Handler. Here is some sample code from a project I used to display a popup with buttons Yes and Cancel, but instead of these Yes and Cancel, you can put any custom name of the button (in lv_s1 and lv_s2).
    Put combination of Buttons (Yes - Cancel) in global table *****
              ls_btn_comb-name  = '99'.
              lv_s1 = cl_bsp_runtime=>if_bsp_runtime~get_otr_text( 'CRM_BSP_WD_TOOLS/BTN_YES' ).
                CONDENSE lv_s1 NO-GAPS.
              lv_s2 = cl_bsp_runtime=>if_bsp_runtime~get_otr_text( 'CRM_BSP_WD_TOOLS/BTN_CANCEL' ).
                CONDENSE lv_s2 NO-GAPS.
                CONCATENATE lv_s1 ',' lv_s2 INTO ls_btn_comb-value.
                APPEND ls_btn_comb TO GT_BTN_COMB.
    Put actual buttons in global table on level of Context Node 'DATASTORAGE' *****
                ls_buttons-id = 'btnYes'.
                ls_buttons-text = 'Yes'.
                ls_buttons-on_click = 'YES'.
                APPEND ls_buttons TO ztyped_context->datastorage->gt_buttons_custom.
                ls_buttons-id = 'btnCancel'.
                ls_buttons-text = 'Cancel'.
                ls_buttons-on_click = 'CANCEL'.
                ls_buttons-icon_src = '/SAP/BC/BSP/SAP/thtmlb_styles/sap_skins/default/images/cancel.gif'.
                APPEND ls_buttons TO ztyped_context->datastorage->gt_buttons_custom.
    Call Confirmation Popup *****
                  IF confirm_popup IS NOT BOUND.
                    lv_title = ls_item_dated_entry-ITEM_NO.
                    lv_text =  'Exam date has already passed. Do you want to override?' .
                      CALL METHOD comp_controller->window_manager->create_popup_2_confirm
                        EXPORTING
                          iv_title = lv_title
                          iv_text = lv_text
                          iv_btncombination = '99'
                          iv_custombuttons = ztyped_context->datastorage->gt_buttons_custom
                        RECEIVING
                          rv_result = confirm_popup.
                      CONFIRM_POPUP->SET_ON_CLOSE_EVENT( iv_event_name = 'CONFIRM_POPUP_CLOSED'
                                                         iv_view = me ).
                      CONFIRM_POPUP->OPEN( ).
                  ENDIF.
    Then the ON_CLOSE event, you can use the "standard" coding in case of decision popup.
    Hope this helps.
    Kind regards,
    Carl

  • Distribution model. Create filters for custom message type.

    Hello,
    I have created a model view, and added a new message type (copy of HRMD_A). I want to add filters, but the system does not allow it. Do you know if I can only add filters to a standard message type, and not to a custom one?
    Thank you,
    Elena.

    Thanks for your answer, but I think I didn't explain my question well.
    I have created a message type ZHRMD_A, and a basic type ZHRMD_A07 (both copies of HRMD_A and HRMD_A07)
    I am creating the distribution model, in transaction BD64.
       I created the model view.
       I inserted my messsage type.
    Now I want to add filters to the message type in the distribution model. When I add a standard message type, I can see under the message type the text 'No filter set'. Then I double click this text, and I can add filters. When I add the custom message type, I don't see this text, and I have no option to add filters. That's why I think I cannot add filters to a custom message type.

  • How to send IDOC with extended message type MATMAS

    Hi Experts,
    I am looking for a solution to send open PR & open PO related data for diffrent materials through as IDCO in XML file.
    Scenario is i have to show a report in a 3rd party system for open PR & open PR that too will come after selection some materials. That means select a materials & it will show all the open PO & related data in a report.
    The rough idea for the solution i got is I can save the data in XML file in the system. For this i have to send IDOC. but the problem is there is no message type for PR. IF i am not wrong i can extend the MATMAS05 for a segment that will have PR related info.
    Now what to do with that how to send the IDOC do i need to create another report to send IDOC or i can send the extended one through BD10. I tried it but it shows error message "0 communication idoc sent" so I dont no y such error is coming i think i am not filling the extended idoc. But again my QUestion is how to do that.
    Can i use BAPI also for such work, if then how it can be helpful.
    If anyone have any other solution Please help me out of this.
    Regards,
    Nik

    Hi Mahesh,
    Thanks for your reply.
    My requirement is bit different. i have to send Open PR data for diffrent materials. In a 3rd party application user will search for few materials which will generate a report that will show the PR related data for those material.
    That means for few selected materials there will be few PR's which may be open, i have to show those in my report.
    Eg: material A, B. are in PR 00001 & material B, C in PR 00002.
    After selecting materials A to C report will show
    Material                 PR No                   Item No                Quantity
    A                           00001                    10                             1
    B                           00001                     20                            3
    B                           00002                     10                            3
    C                           00002                      10                           1
    Same thing i have to do for open PO & open Sales order also.
    Can u please help me to provide the solution how can i proceed for it. U have given the Message type & a bapi how it will help in my issue?
    I got a suggesion from someone that extend message type matmas for PR, PO, SD related data & send the idoc. but i am confused how to pass that much data ina single IDOC.
    Regards,
    Nik

Maybe you are looking for

  • Which ram do you recommend?

    Corsair PC3500(433MHz) 2-3-3-7 or Corsair PC4000(500MHz)(3-8-8-4) Which one is faster?For my board?

  • PM: SAP Standard reports

    Hi guys, I need a list of all PM Standard reports, and their transaction codes. Please help Thanks

  • Regarding Table Control in screen Painter

    hi,   In my table control, one column is aceepting the UV Rate of the Material. But that particular column did not accept the Decimal Value . when i enter the decimal, 'Please enter the Numeric value' error is coming.   I am declared as Curr Data typ

  • Sun Java Application Server, Apache and OS X

    I have a couple questions that I was hoping someone could help me out with. Background info. I'm running OS X 10.4, the default OS X install of apache HTTP server and I've installed NetBeans with Sun Application Server. I'd like to configure the appl

  • Calling Dot Net program From oracle Database

    Hi is there any way to call DOT NET program Like C# from oracle database, i mean is there way to call it from pl-sql stored procedure or trigger ..etc I read that is possible with java , C, C++, but is it possible with C# Best Regards