Application Development 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: 

RunDate-RunID in Document Header Text of BKPF.

former_member217316
Contributor
0 Kudos

Hi All

We are creating a transfer payment 'ZP' document through automatic payment run cycle in F110. The table BKPF gets updated with the field BKTXT with Run Date and Run ID separated by a '-'. I want to prevent this from happening as i want run date and id in continuation.

What shall i do? i tried debugging it but couldn't find the location where they are getting concatenated.

Please Help.

Harsh

3 REPLIES 3

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

It's done in subroutine BELEGKOPF_MERKEN in SAPF110S.

Perhaps you could create a substitution that updates this field the way you want, and override the standard setting? Call to header substitution is part of that subroutine.

0 Kudos

Thanks for your response Tamas.

i just checked that the enhancement points are at the beginning and end of that subroutine. Ideally i would have liked to comment that BKPF-BKTXT+8 = '-'. for my document type but seems like its not possible.

How to create that substitution and implement the same.

Please advise.

Harsh

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Implicit enhancement points are always at the beginning and end of subroutines

Search the IMG for 'substitution'; what you'll need is 'Substitution in accounting documents'. You'll want to use the callup point for the document header of course.

An excerpt from the documentation for transaction OBBH in the IMG:

"For more information on creating and maintaining substitutions, see Financial Accounting -> Special Purpose Ledger -> Validations and Substitutions -> Substitutions in the SAP Library."