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

For BAPI_ACC_DOCUMENT_POST and BKPF-TCODE

YONG_YONG
Explorer
0 Likes
7,918

HI,ALL

    When I use BAPI BAPI_ACC_DOCUMENT_POST in my program then posting OK and getting a accounting document. Then I check table BKPF and find the field TCODE that record is 'ZFI1029'. I don't know why it isn't a standard TCODE ?

    Whether your SAP system is also in the same situation ?  pls give directions ,thanks a lot .

1 ACCEPTED SOLUTION
Read only

reachdebopriya
Active Participant
4,207

Hi Yong,

Either you can do what Raymond has said or if it is for FI posting using transaction FB01, then you can write sy-tcode as below.

gs_acchd-tcode = 'FB01'.

Regards,

Debopriya Ghosh

8 REPLIES 8
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,207

AFAIK, field TCODE is the actual TCODE, So many Z-code and some standard in which BAdI use the ACC BAPI available on my systems. (This is not a BDC )

gs_acchd-tcode = sy-tcode. " Include LACC9F20

Regards,

Raymond


Read only

0 Likes
4,207

HI Raymond,

    Could we use some may make the field BKPF-TCODE is a standard tcode when we use BAPI_ACC_DOCUMENT_POST in program ?

Read only

0 Likes
4,207

Hello,whether we have been necessary change it turn into standard tcode through enhance?

Read only

reachdebopriya
Active Participant
4,208

Hi Yong,

Either you can do what Raymond has said or if it is for FI posting using transaction FB01, then you can write sy-tcode as below.

gs_acchd-tcode = 'FB01'.

Regards,

Debopriya Ghosh

Read only

0 Likes
4,207

Hi Debopriya,

   

    Thanks your reply, if I keep the field value is Z+tcode in table field BKPF-TCODE, whether it will have some bad affection for system?

Read only

0 Likes
4,207

Hi Yong,

I dont think it will be a problem.

I have created a Custom Transaction where I have done a FI posting by BAPI 'BAPI_ACC_DOCUMENT_POST' using a Z-Transaction. Where I have checked in the Table of BKPF-TCODE contains the Z-Transaction.

Regards,

Debopriya Ghosh

Read only

0 Likes
4,207

Thank you very much.

Read only

0 Likes
4,207

Welcome

Regards,

Debopriya Ghosh