Application Development and Automation 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: 
Read only

FI substitutions

Former Member
0 Likes
1,525

I am trying to substitute the cost centee, which isnt available but I ran the OSS note program to make this field availabel by seeting BSEG-KOSTL to available in table GB01. BUt in the substitution exit and I can see the codoe getting swaped, but as soon as it returns to the screen its abck to what it was before. Its like you cant swap this field. Any idea?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,366

I did look at that but the trouble I have is I have a list of 100 GL codes, that have a one ot one mapping with a cost centre. Where as these set don't look like i can do that? What I want is for a GL code to then lookup a table or set and pull back the cost centre. Is this possible?

9 REPLIES 9
Read only

Former Member
0 Likes
1,366

There is a note (can't remember which one - maybe you should look for it) that says essentially "don't substitute fields with financial implications".

Rob

Read only

Former Member
0 Likes
1,366

Do you know of any user exits then where I could through up an error if the cost centre is not in a bespoke table?

Read only

0 Likes
1,366

Yes, use FI validations. If you use so-called sets instead of a bespoke table to hold the cost centers, you don't even need a validation exit but can just work in the formula editor.

Thomas

Read only

Former Member
0 Likes
1,367

I did look at that but the trouble I have is I have a list of 100 GL codes, that have a one ot one mapping with a cost centre. Where as these set don't look like i can do that? What I want is for a GL code to then lookup a table or set and pull back the cost centre. Is this possible?

Read only

0 Likes
1,366

So you want to allow/disallow only specific combinations of g/l accounts and cost centers? Then validation is still the way to go, you need one on line item level calling a user exit that will read your bespoke table and react accordingly.

There is plenty of information on SCN, please have a look around.

Thomas

Read only

Former Member
0 Likes
1,366

Sorry again, I've found the exits - not used valdiations before, but I can't get it to use BSEG. There are exmaples in there loop at BOOL_DATA-BSEG but I can't get it to syntax check...

Read only

0 Likes
1,366

Check out U101 in sample program RGGBR001.


  loop at bool_data-bseg into bseg
                 where hkont  = '0000400000'.
     b_acc_400000_used = b_true.
     exit.
  endloop.

Which syntax error are you getting?

Thomas

Read only

Former Member
0 Likes
1,366

How do I use bseg in the user exit

Read only

Former Member
0 Likes
1,366

I hadnt rmeove the comments from the eblwo declarations

TYPE-POOLS: GB002. " TO BE INCLUDED IN

TABLES: BKPF, " ANY SYSTEM THAT

BSEG, " HAS 'FI' INSTALLED

COBL,

GLU1.