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 Substitution exit

Former Member
0 Likes
1,116

Hi Friends ,

Is it possible to substitute a BKPF field in line item level of substitution ? I want to update BKPF-XBLNR_ALT based BSEG-MWSKZ at line item level.When I tried using an exit , I can see that BKPF field value is changing in debugging but finally when the docuemtn is posted it is not getting updated. Can anybody help me ?

Thanks ,

Joby

Hi Friends ,

Is it possible to substitute a BKPF field in line item level of substitution ? I want to update BKPF-XBLNR_ALT based BSEG-MWSKZ at line item level.When I tried using an exit , I can see that BKPF field value is changing in debugging but finally when the docuemtn is posted it is not getting updated. Can anybody help me ?

Thanks ,

Joby

4 REPLIES 4
Read only

Former Member
0 Likes
874

I had this problem before, so what I did was:

Take all values from this table, place it inside an internal table, and then make the changes you need to make. After wards, clear the imported table and make it equal the internal table.

a quick example:


itab[] = imported_table[].

logic to make changes....

clear imported_table[].

imported_table[] = itab[].

Tell me if that works for you.

Edited by: jotorres1 on Dec 22, 2010 9:14 PM

Read only

brad_bohn
Active Contributor
0 Likes
874

No, because if you continue to step through the code past the generated code for the exit back to the substitution calls, you'll see that SAP does a restore to eliminate any improperly changed values. Your best bet is to trace your transaction and determine which BTE's are being called, look them up in FIBF, then implement the appropriate one.

Read only

Former Member
0 Likes
874

Well, just a heads-up: It worked for me.

Read only

Former Member
0 Likes
874

Hi Joby,

I am also facing same problem exactly like yours but mine is with header field BKPF-BUDAT, if your problem is solved , please let me know the solution.

thanks in advance for your valuable replies.

Regards,

Sateesh