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

BAPI_ACC_DOCUMENT_POST and BKPF-TCODE

Former Member
0 Likes
3,959

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.

I saw that the TCODE is filling in the subroutine fill_acchd of includes LACC9F20:

 
gs_acchd-tcode = sy-tcode.
if gs_acchd-glvor = 'RFBU'.
   gs_acchd-tcode = 'BAPI'.
endif.

I do not want to make a custom BAPI to change the parameter gs_acchd-tcode = 'BAPI'.

My requirement is to know which document is posted from my Z-program interface. I think the solution is to write the name of my Z-program interface into another field, adding to the existing content of the field. This would allow you to select from the table BKPF all the documents published with my Z-program interface. In which field do you advise me to write it? Maybe there 'a better solution?

Ciao, Serena

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,104

Hi

I believe it's an incorrect behavior, you need to implement SAP note 1340352

Max

3 REPLIES 3
Read only

Former Member
0 Likes
2,104

Hello,

You can another selection criteria from BKPF instead of this custom transaction code or you can check in transaction GGB1.

Best Regards,

Senthil

Edited by: Senthilraj Selvaraj on Oct 11, 2011 3:43 PM

Edited by: Senthilraj Selvaraj on Oct 11, 2011 3:48 PM

Read only

Former Member
0 Likes
2,104

Hi,

I think the best option is mark a field with special signature and think USERNAME field can help you. if in your system no user's username contain 12 character, you can concatanate _ char to username and pass to BAPI.

Sorry I can t post a complete solution.

Take care,

Çağatay

Read only

Former Member
0 Likes
2,105

Hi

I believe it's an incorrect behavior, you need to implement SAP note 1340352

Max