2009 Aug 19 5:55 PM
Hi Folks,
How can I pass some delivery charges in some summary segment to a particular GL account on the Invoice??
Thanks,
Matt
2009 Aug 19 6:12 PM
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
a®
2009 Aug 19 8:39 PM
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
2009 Aug 19 9:03 PM
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.
a®
2009 Aug 19 9:22 PM
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.
2009 Aug 20 12:24 AM
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???
2009 Aug 20 12:34 PM
2010 May 26 11:41 PM
Hi , have you found the solution for ur issue. pls let me know.