Skip to Content
author's profile photo
Former Member

Triggering new outbound IDOC via message control.

HI All,

I have a new outbound function module which is a copy of ALE_GOODSMVT_CREATE (ZALE_GOODSMVT_CREATE) for goods movements. I have created a new process code and linked the message type to the code. This function was created by copying the standard bsuiness object for goods movement BUS2017 and registering as a new interface in BDBG.

I have created a new output type in nace for ME, but was unsure how to correctly setup the processing routine. What medium (A, 6 or 8), program and routine do I use, or do I need to create a new program to call my function module? If I use RSNASTED and ALE_PROCESSING (medium A), I get a short dump as the parameters of the function do not match the parameters of my new function ZALE_GOODSMVT_CREATE.

Has anyone ran into a similar problem or can help with this?

Bets regards,

James.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Oct 06, 2005 at 10:42 AM

    You should use medium "A" for ALE.

    If your process code point to your custom FM then no need to craete a program.

    In outbound partner profile( We20 ) , in the message control tab you will have to add your output type / Process Code .

    This should be sufficient .

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi James,

      In the distribution Model have you added <b>message type</b>

      ZSUBCON/ sender / receiver . It seems you have added <b>BAPI</b>.

      After adding message type , save distribution model and then generate partner profile ( seems you created partner profile manually ).

      Then goto WE20 for outbound message type ZSUBCON add the message control parameters i.e. your output type and process code.

      Cheers

  • author's profile photo
    Former Member
    Oct 06, 2005 at 12:34 PM

    Hi Sanjay,

    The BAPI is linked to the message type, therefore when I generate dmy partner profile it added the messagetype to the partner profile. I'll also add the messagetype on it's own to the distribution model and see if this works, but I wouldn't have thought that I need to this. I'll let you know how I go

    Thanks,

    james.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 12:40 PM

    Hi Sanjay,

    I actually cannot add the message type to the distribution model, because it belongs to the BAPI. The only way of adding the message type, as I thought, was to add the BAPI. The message type was recognised and added to the partner profile when I generated the model. Seems like I may have another problem somewhere. ANy thoughts?

    Rgds,

    James.

    Add comment
    10|10000 characters needed characters exceeded