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

FI-MM account modification user exit/badi

Hi ,

In our company we do use mark up cost , for example US to Europe , US std cost + X% mark up will be the EU standard cost and at the time of Inter company Stock Transfer from US to EU, due to the difference in cost at the time of GR the difference is being pushed to PPV account ( OBYC-PRD - Gl account) and our goal is to use a different GL account for the same movement type / Modifier level at the time of GR in order to avoid the I/C STO PPV in to regular PPV. I tried the below BADI and USER EXIT but they are not promising.

The BADIS I looked for MB_DOCUMENT_BADI- This seems like it works at the time of material document but the posting ( PPV happens at the time of GR and accounting document created)

The user Exit LMR1M002 – Not sure if this is useful.

Thank you,

Vamshi KV

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2013 at 04:35 PM

    I created a new " General Modifier" for PRD with a different GL account ( I did not make any changes in OMJJ for 101 Mtype) and trying to use LMR1M002 , but this one speaks about WRX only need to find a way.

    Also can't we change 101 Mtype to have another line that can have new transaction Combination for account grouping? Seems like it is not allowed amd OMJJ is being populated by SAP itself? all I can se only Account Modifier and Check Accnt. Assignment can be changed and rest of the columns are fixed

    I appreciate if any one can show some light or another approach.

    Thanks,

    Vamshi KV

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Folks, so I am answering my own Question thinking it may be useful for any other memebers who may run in to this issue,

      Initially I created a new account modifier and added this to OBYC against PRD transaction key with a new GL account.

      later we used the user exit LMR1M002 and made changes like below and it is calling the function module ( enhancement framework) MR_ACCOUNT_ASSIGNMENT and include Program ZXM08U18. we followed the logic to pull all I/C STO with a unique identifier (ABCD) that sits in LIPS/ table as delivery type , and it worked fine by triggering the New GL account if it is I/C STO PO

      But after speaking to our seniors and changing actual User exit functionlaity is not good idea as it speaksspecifically about the WRX GR/IR account , therefore we made changes to above MR_ACCOUNT_ASSIGNMENT and achived the same functionality and I am happy to give the below logic for reference.

      Function Module ,
      MR_ACCOUNT_ASSIGNMENT


      ENHANCEMENT 1 ZGFI_MODIFY_ACCOUNT. "active version
      ** ECDKxxxxxxxxx - Call customer function for PRD instead of WRX
      IF VORGANGSSCHLUESSEL = 'BSX'.
      KONTO_MODIF = SPACE.
      ELSEIF VORGANGSSCHLUESSEL = 'PRD'. "PRD User Exit "ECDKxxxxx

      CLEAR KONTO_MODIF.
      CALL CUSTOMER-FUNCTION '011'
      EXPORTING
      I_WRXMOD = I_WRXMOD
      IMPORTING
      E_KONTO_MODIF = KONTO_MODIF.
      ENDIF.
      ENDENHANCEMENT.

      FUNCTION EXIT_SAPLKONT_011.
      *"----------------------------------------------------------------------
      *"*"Lokale Schnittstelle:
      *" IMPORTING
      *" VALUE(I_WRXMOD) LIKE WRXMOD STRUCTURE WRXMOD
      *" EXPORTING
      *" VALUE(E_KONTO_MODIF) LIKE T030-KOMOK
      *"----------------------------------------------------------------------


      INCLUDE ZXM08U18 .


      ENDFUNCTION.


      *&---------------------------------------------------------------------*
      *& Include ZXM08U18
      *&---------------------------------------------------------------------*

      DATA: lv_lfart TYPE lfart.

      SELECT SINGLE k~lfart
      INTO lv_lfart
      FROM lips AS p
      INNER JOIN likp AS k
      ON k~vbeln = p~vbeln
      WHERE p~vgbel = I_WRXMOD-ebeln
      AND p~posnr = I_WRXMOD-ebelp.

      IF sy-subrc EQ 0 AND lv_lfart EQ 'ABCD'.
      E_KONTO_MODIF = 'MKP'.
      ENDIF.

      Thanks,

      Vamshi K

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.