Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC_INPUT_INVOIC_MRM - EXIT_SAPLMRMH_015 : Delivery Charges to G/L

Former Member
0 Kudos

Hi Folks,

How can I pass some delivery charges in some summary segment to a particular GL account on the Invoice??

Thanks,

Matt

7 REPLIES 7

former_member194669
Active Contributor
0 Kudos

Documentation say you can change

To do this, you can make use of the document header data and the generated document items, G/L account items

and material account lines

But my suggestion will be


  call customer-function '011'
      exporting
          i_lifnr              = e_lifnr
          i_bukrs              = e_bukrs
          i_idoc_contrl        = i_idoc_contrl
      importing
          e_lifnr              = f_lifnr
          e_bukrs              = f_bukrs
          e_change             = f_change
      tables
          t_idoc_data          = t_idoc_data

loop thru t_idoc_data and find the segment you wanted to change , retrieve using segnam and change the content

0 Kudos

Suppose I have an amount in E1EDSO1 segment with Qualifier '015' Amount some $100.00 in it. I want to post this amount to an account (should be hardcoded).

How can i do that.

I don't have accounts here

0 Kudos

Whether this will do ?


types : begin of t_e1eds01.
        include structure e1eds01.
types : end of i_e1eds01.
data ; wa_e1eds01 type t_e1eds01.

  loop at idoc_data where docnum = i_idoc_contrl-docnum.
    if idoc_data-segnam eq 'E1EDS01'.
      move idoc_data-sdata to wa_e1eds01.
      if wa_e1eds01-SUMID eq '015'.
      " Change here value you want in field SUMME
      " Then move the changed value to SDATA
      move wa_e1eds01 to idoc_data-sdata.
      " Update idoc_data
      modify idoc_data index sy-tabix.
      endif.
    endif.
  endloop.

0 Kudos

Thanks aRs

I am not trying to modify the amount in e1edso1-Summe segment.

i want to post this amount to a G/L account while posting the MIRO.

That was the idea.

Where am i supposed to be using the hkont (G/L Accounts).

So that it posts the invoice with zero balance.

0 Kudos

SAP online help says, I quote "You can post directly to G/L or material accounts by using enhancement MRMH0002 and the customer exit EXIT_SAPLMRMH_015."

You can refer to the link here.

http://help.sap.com/saphelp_sm32/helpdata/en/44/f50abcea3b11d194dc0000e83dd751/content.htm

I have no Idea how to post the amounts to G/L accounts directly.

I have amounts available in different user exit, G/L accounts should be posted in this exit.

Any suggestion???

0 Kudos

Any clues?? most welcome

0 Kudos

Hi , have you found the solution for ur issue. pls let me know.