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

BKPF-TCODE

fabio_passoni
Explorer
0 Likes
3,189

Friends,

I have a Transaction Z, to read a file and created documents in FI, using Call Transactio 'FB01'.

The document is created with the field BKPF-TCODE = 'FB01', Would record the transaction in the field Z ?

Anyone know of any exit or badi for this ?

Thanks,

Fabio

4 REPLIES 4
Read only

Former Member
0 Likes
2,138

Hi

This field is getting filled in the include LACC9F20 , form FILL_ACCHD .

You can create an enhancement there to change the tcode but I think that other transactions looks for this record with TCODE = FB01 if you change, it will not be possible, like a reversal.

Cheers.

Read only

Former Member
0 Likes
2,138

Hi

Try to use the BAPI BAPI_ACC_DOCUMENT_POST instead of the CALL TRANSACTION, that field will be filled with your z-transaction automatically

Max

Read only

0 Likes
2,138

Hi,

When we use the BAPI BAPI_ACC_DOCUMENT_POST, the field BKPF-tcode is filled with the Z-transaction, however, if we run the same program in background this field is not filled. I such a case what is the solution. Is creating an enhancement in the include LACC9F20 , form FILL_ACCHD the only option?

Thanks

Read only

fabio_passoni
Explorer
0 Likes
2,138

Thank's Friend's...