‎2011 Oct 11 2:09 PM
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
‎2011 Oct 11 3:33 PM
Hi
I believe it's an incorrect behavior, you need to implement SAP note 1340352
Max
‎2011 Oct 11 2:34 PM
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
‎2011 Oct 11 2:52 PM
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
‎2011 Oct 11 3:33 PM
Hi
I believe it's an incorrect behavior, you need to implement SAP note 1340352
Max