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: 

FM needed for G/L account

Former Member
0 Kudos

Hi all,

I need an FM wherein if i pass the material no,i get the G/L account for the same..Is there any std Fm available which suits this reqt???

Regards,

Disha.

4 REPLIES 4

Former Member
0 Kudos

table BSEG for that perpose...

hkont-General Ledger Account

matnr-material number.

u find many entries for perticular material. but real gl account is that where cost center (kostl) will change.

select-options: s_matnr for bseg-matnr.

select single hkont into gv_hkont from bseg

where matnr in s_matnr

and kostl <> ''.

Former Member
0 Kudos

HI

GOOD

I DONT THINK THERE IS ANY SUCH FUNCTION MODULE WHICH CAN SOLVE YOUR REQUIREMENT.YOU CAN DO THIS USING THE SELECT STATEMENT BY GIVING THE CONDITION TYPE.

THANKS

MRUTYUN

0 Kudos

Hi All,

i have developed my custom Fm for this and its working fine!

regards,

Disha.

0 Kudos

Disha,

Can you please share the code with me? thanks.