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
8,357

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,646

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

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 .

8 REPLIES 8
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,646

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,646

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,646

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

Read only

reachdebopriya
Active Participant
4,647

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,646

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,646

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,646

Thank you very much.

Read only

0 Likes
4,646

Welcome

Regards,

Debopriya Ghosh