on 10-22-2007 12:57 PM
Hi there.
SRM 4.0, server 5.0, backend ECC 6.0, standalone ITS.
I have the need to be able to map company code to the GL Account determination. In the standard SRM systemit is only possible to determine 1 GL Account per 1 material group, so if I also want to take the company code into consideration, I would need to use the BAdI BBP_DETERMINE_ACCT. Can anybody give me a sample code for this? Something like "when BUK = 1000 then GL Account = 1111".
Thanks.
I got another piece of code to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Either using BBP_DETERMINE_ACCT BADI this can be done
Or use BBP_DOC_CHANGE_BADI.
Also if this BADI doesnt work then you can put a check in the BADI "BBP_DOC_CHECK_BADI" if any one changes the G/L a/c value because when you are using the BADi "BBP_DETERMINE_ACCT",the correct values will be populated in SC.
<b>Related links -></b>
<b>Sample code-></b>
method IF_EX_BBP_DETERMINE_ACCT~DETERMINE_ACCOUNT.
data: w_item_data type BBP_DET_ACC_ITEM.
data: w_acct_data type BBP_OCI_ENRACCT.
w_item_data = item_data.
**** access account assignment details to default correct g/l account
loop at acct_data into w_acct_data where line = item_data-line and bukrs = item_data-bukrs.
select single g_l_acct
into w_acct_data-g_l_acct
from bbp_det_account
where category_id = w_item_data-category_id
and acc_cat = w_acct_data-acc_cat.
modify acct_data from w_acct_data.
clear: w_acct_data.
endloop.
endmethod.
Hope this will help. Do let me know.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.