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

BAPI_GOODSMVT_CREATE for movement type 161, issues in PO creation

Hello Gurus,

I am using movement type 161 with BAPI_GOODSMVT_CREATE in order creating a vendor PO based on the goods receipt posted with the BAPI.

It works fine, nevertheless due to business requirements, I need to apply the following changes:

- in SAP standard the order type is NB by default but in our case I would like to force another order type using the same range that NB. I guess this could be done by activating exit ZXM06U17 (MM06E003). Does someone could confirm it?

- in our process, the purchasing group is not maintained at vendor level (LFM1-EKGRP) but as this field is mandatory in the PO creation and as this data can not be maintained in BAPI_GOODSMVT_CREATE, does someone know if it would be possible to force this value during the PO creation (EKKO-EKGRP) based on a maintenance table? If yes in which user-exit? Exit ZM06U43 could be used?

- furthermore, our specific PO type should have a specific account assignement EKPO-KNTTP instead of the default value U, does someone know if it would be possible to force this value during the PO creation (EKKO-EKGRP) based on a maintenance table? If yes in which user-exit? Exit ZM06U43 could be used?

Kind regards

Chris

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2009 at 01:00 PM

    Hi

    You can use the BAdI - ME_PROCESS_PO_CUST - Enhancements for Processing Enjoy Purchase Order: Customer

    For the document type use initialize method, whcih can evoked only once

    Use different methods based on header and item level details.

    This can be used for all the requiremnts you specified.

    Thanks & Regards

    Kishore

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Kishore,

      I appreciate your suggestion but BADI ME_PROCESS_PO_CUST is only called during PO creation in ME21N and then it can not be used in my case because the PO is created in background based on BAPI_GOODSMVT_CREATE and on the article document.

      Another BADI perhaps? Could you help me?

      Kind regards

      Chris

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2009 at 03:33 PM

    Hi Experts,

    I am facing the same pbm,

    for movement type 161 , am getting the error message " Enter the Purchase group" after coming out from the BAPI_GOODSMVT_CREATE.

    Anything i have to do changes in code or its functional side (they have to maintain ).

    Please help me.

    Thanks a lot in Advance.

    Regards,

    Priya.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Priya,

      Just want to share with your guys how to fit this error in BAPI_GOODSMVT_CREATE.

      For movement type 161 of PO return you have to pass movement type 101 instead of 161

      goodsmvt_item-bwart = 101. After that standard function will determine 101 to 161 automatically and

      post that material doc.

      NOTE:

      In my case

      It just heppen only the FIRST time that you do movement with PO Return wich is needed to pass

      101 in stead of 161 but after that you can pass 161 the system will continue process correctly.

      Hope it help.

      Sayan.

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.