Skip to Content
author's profile photo Former Member
Former Member

IDOC for Goods receipt

hi All,

I am unable to create an IDOC for Goods receipt .i am not sending it to any external system.I want to create an idoc for GR and write it to a file and have used the following settings

msg.type:MBGMCR

basic.type:MBGMCR01

output type We02,program:RSNASTED ,Form routine:ALE_PROCESSING

process code:Created a process code with Function module ALE_GOODSMVT_CREATE

mesage control:Appl:ME, Msg type:We02 and process code

and also created the file port to write the IDOC and distribution model with BAPI.

Could any one help me by saying where i am doing the mistake.

Regards

Santoo555

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2008 at 11:11 AM

    Try message type WMMBXY

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 04:24 AM

    hi,

    I have tried this..it's not working

    Regards

    Santoo555

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 17, 2008 at 08:46 AM

    I think you're using the wrong idoc.

    Use:

    Message type WMMBXY

    Process code WMMB

    Idoc WMMBID01

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 02:48 PM

    hi Roger,

    Will it work as outbound IDOC type???because i tried this one as outbound idoc type but couldn't succceed..

    Regards

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 03:39 AM

    hi Roger,

    yes i know that a GR is an inbound..but you might have seen my reqmt..i just want to generate the idoc when the GR happens and write it to a file on the application server..so in that sense i asked the above clarification..

    Regards

    Santoo555

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      A long while back since I tried this but I think you need to do the following:

      set up a logical system (BD54)

      define rfc destination (SM59)

      define a port (we21) - Port type should be File - crucial bit

      create partner profile (we20).

      Send yout idoc to this destination and it should write it to the file.

      Regards

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 02:28 PM

    hi Roger,

    I have already done the things what you have mentioned..I have defined the following including the said things by you..

    msg.type: WMMBXY..defined as outbound

    basic.type: WMMBID01

    process code: WMMB

    output type We02,program:RSNASTED ,Form routine:ALE_PROCESSING

    mesage control:Appl:ME, Msg type:We02 and process code

    and also created the file port to write the IDOC and distribution model with BAPI

    but still unable to generate the IDOC..let me know is anything missing..

    Regards

    Santoo555

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 02:38 PM

    hi Roger,

    That's what is missing when i see the material document...i have even configured the output type with WE02 (also checked with We03) and have maintained the necessary conditions,procedure,etc for ME i.e for inventory management..but still unable to generate the IDOC..

    Regards

    Santoo555

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      Use MB02 to change the material document and force the WE02 output type in onto ther messages screen and see what happens.

      to configure the output types:

      OMBR - determines which radi button is set

      OMB5 - document type (OMB4 for issues/transfers)

      MN23 becomes type event WE, print version 1 (radio button), print item (from OMB5), set medium and time. Communication - leave blank except for print immediatley and release.

      M706 set to user or print paramter 7 (plant/Sloc - configure this with OMJ3)

      I wouldn't use WE02 for what you are trying I would always copy it out to ZE01 and leave SAP stanadrd alone.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 10:59 AM

    hi,

    I have already done this also..whenevr i tried to force the out put type in MB02(as it's not getting pouplated when you do a GR) i am getting the error 'partner profile not defined'..which i have already defined...i am not sure where i am doing the mistake and also the IDOC which we have used works for GR..please let me know your comments..

    Regards

    Santoo555

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.