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

Can I change BKPF-TCODE ?

Former Member
0 Likes
2,551

Hi experts,

Have anybody changed the field BKPF-TCODE?

I am working on interface program to posting FI document via BAPI_ACC_DOCUMENT_POST.

Now,the result doc will always has TCODE=BAPI but my requirement want TCODE to have the same value as the interface program name.

Thanks,

Amornpon

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,514

Its getting filled in the subroutine fill_acchd of include LACC9F20

gs_acchd-tcode = sy-tcode.

The only possibility is implicit enhancement in routine fill_acchd.

But how will you differentiate through which transaction the record was created, if its required later.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,515

Its getting filled in the subroutine fill_acchd of include LACC9F20

gs_acchd-tcode = sy-tcode.

The only possibility is implicit enhancement in routine fill_acchd.

But how will you differentiate through which transaction the record was created, if its required later.

Read only

Former Member
0 Likes
1,514

Thanks for the answer.

Actually I try to avoid enhancing but it seems impossible.

About differentiate which TCODE that post the doc is not a problem.

I just want to know which doc is posted by my interface program.

I will fill TCODE with Z-TCODE that runs the interface program.