on 07-15-2009 11:32 AM
I am writing an ABAP report that needs the GL Account and its name output but I cannot find where to get the name in SRM tables. As a workaround I have extracted the GL codes and descriptions from R/3 table SKA1 into a spreadsheet and am reading the spreadsheet to output the GL code name. I know the GL code comes from BBP_PDACC-G_L_ACCT but where does the text come from?
Hello,
The same question I was for printing GL Account Name , from last 15 days(part time) started learning SAP. Before/Currently working on VB/SQL Server.
Finally I am successful in ABAP select query
tables
SKA1 - GL Master record for Chart Account
SKAT - GL Account Name Master for Language specific info
Try following code
Report : zSRM_1
Tables : SKA1 , SKAT .
Types : BEGIN OF AccMaster ,
AcNo type ska1-saknr,
AcName type skat-Txt50,
END OF AccMaster.
data : mAccMaster type table of AccMaster INITIAL SIZE 0,
wa_mAccMaster type AccMaster.
PARAMETERS: mChrtAc Type SKA1-ktopl.
Select asaknr bTXT50 from ska1 as a join skat as b on asaknr = bsaknr into wa_mAccMaster where aktopl = mchrtAc and aktopl = b~ktopl and spras eq 'EN'.
write : / wa_mAccMaster-AcNo, wa_mAccMaster-AcName .
ENDSELECT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used META_GL_ACCOUNT_GETDETAIL with the following parameters: Company code: 1000, GLACCT: 0000099999, Language: EN, Logical_system: EBDCLNT220 but I kept getting this error message 'No driver function maintained BUS3006 GetDetail'. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Conor
Pass the following details and you should be OK..
Company Code - 1000
GL Account - nnnnn
Language - EN
Logical_System - ERDCLNT220 (or similar).
All should then be ok...
Regards
Keith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Pradeep,
I put the META_GLACCOUNT_GETDETAIL into my code but got out the following message: ERROR No logical system found.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The Function Module META_GLACCOUNT_GETDETAIL should help you.
Thanks,
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.