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

G/L Account in MIRO :BADI

Hi Experts,

My requirement is to update the G/L a/c number according the material Group enterd in the PO.

While running MIRO, I need to give the G/L a/c to which the amount is going to be posted. This G/L has to be validated based on the Material group in the PO.

Based on Matgroup, G/L number should be picked up. if the user selects the diffrerent G/L, system should throw an error , that, this is not the G/L and so and so si the correct G/L.

I am trying to do it in INVOICE_UPDATE , BADI, but, when I tried, No Matgroup field in the interface parameters. If I could find the Matgroup there, I can determine the G/L.

Pls suggest me regarding.

Regards,

Sujatha.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 07, 2007 at 01:25 PM

    Hi

    In the method CHANGE_AT_SAVE

    parameter TI_RSEG_NEW uses

    <b>MRM</b> Type Group is used which consists of

    TYPES: BEGIN OF mrm_idoc_data_ers,

    s_rbkp LIKE rbkp,

    t_rseg_x LIKE rseg OCCURS 0,

    t_ekbe1 LIKE ekbe OCCURS 0,

    t_ekko LIKE ekko OCCURS 0,

    t_ekpo LIKE ekpo OCCURS 0,

    t_bset LIKE bset OCCURS 0,

    t_t001w LIKE t001w OCCURS 0,

    t_mara LIKE mara OCCURS 0,

    t_makt LIKE makt OCCURS 0,

    t_marm LIKE marm OCCURS 0,

    t_eina LIKE eina OCCURS 0,

    t_essr LIKE essr OCCURS 0,

    s_addr1_val LIKE addr1_val,

    s_lfa1 LIKE lfa1,

    it consists of

    t_mara LIKE mara OCCURS 0,

    t_makt LIKE makt OCCURS 0,

    so from these tables you get MATKL (material group) use it along with GL account as the MRM type group consists hell lot of info.

    Reward points if useful

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Anji,

      But those tables

      TYPES: BEGIN OF mrm_idoc_data_ers,

      s_rbkp LIKE rbkp,

      t_rseg_x LIKE rseg OCCURS 0,

      t_ekbe1 LIKE ekbe OCCURS 0,

      t_ekko LIKE ekko OCCURS 0,

      t_ekpo LIKE ekpo OCCURS 0,

      t_bset LIKE bset OCCURS 0,

      t_t001w LIKE t001w OCCURS 0,

      t_mara LIKE mara OCCURS 0,

      t_makt LIKE makt OCCURS 0,

      t_marm LIKE marm OCCURS 0,

      t_eina LIKE eina OCCURS 0,

      t_essr LIKE essr OCCURS 0,

      s_addr1_val LIKE addr1_val,

      s_lfa1 LIKE lfa1,

      are not visible in the method CHANGE_AT_SAVE.

      while I tried looking into these tables, its giving like ' Specified table name not recognised'.

      Suggest me regarding.

      Regards,

      Sujatha.

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2007 at 05:29 AM

    you can get the matnr from the parameters then why dont you select the data from mara i.e. matl grp with the reference of that matnr...

    regards

    shiba dutta

    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.