Skip to Content
author's profile photo Former Member
Former Member

RFFOUS_T, exits ZXFORU2x, and the REGUT table

Our DME overview files are generated by a payment run F110 against open items.

I managed to find exit ZXFORU24 (101) to select from the REGUT table the keys from REGUH and fill the dtamusbh-bh3 field on the ACH with a concatenation of our company name and the reference number (REGUT-RENUM).

The issue we're seeing is that the REGUT table only seems to be updated *after* RFFOUS_T has completed. So, in the first pass, from F110 for a payment run, my new SELECT from REGUT doesn't find the data it needs. Only when RFFOUS_T is reprocessed is the record in REGUT, and therefore successfully selected.

I've read several SCN discussions about this, including one that highlights all the exits available:

<b>EXIT_RFFOEXIT_100</b> - Modification of file header records (DTAMUSFH)

<b>EXIT_RFFOEXIT_101</b> - Modification of batch header records (DTAMUSBH)

<b>EXIT_RFFOEXIT_102</b> - Modification of CCD detail records (DTAMUSCCD)

<b>EXIT_RFFOEXIT_103</b> - Modification of CTX detail records (DTAMUSCTX)

<b>EXIT_RFFOEXIT_104</b> - Modification of addenda records (DTAUMSADD)

<b>EXIT_RFFOEXIT_105</b> - Modification of batch control records (DTAMUSBC)

I'm not sure if my use of 101 / ZXFORU24 is the best place for my code, as it only seems to have access to the new row of the REGUT table when RFFOUS_T is processed for the 2nd time.

Is there a better exit to put the SELECT to REGUT-RENUM into to get the value during the F110 payment run, or is this possible at all in the first pass?


Jeremy H.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2014 at 06:27 PM

    I found a way to debug the FIRST pass of RFFOUS_T in a payment run. I now know that (before REGUT gets populated, toward the end of the program) the HLP_RENUM and HLP_RESULTAT fields in RFFOUS_T is where the reference number is contained. HLP_RENUM is filled from a call to FEBKEY and HLP_RESULTAT is calculated below from HLP_RENUM (basically concatenating it with a check digit) to create the final reference number that REGUT will get updated with.



    i_refno = hlp_renum


    e_result = hlp_resultat.

    My problem remains the same, after all of this. REGUT isn't updated until near the END of the first pass of the payment run F110 in RFFOUS_T. The customer exits DON'T have access to HLP_RESULTAT because is not passed to the exits. It can't be SELECTed from anywhere else that I know of.

    Could I modify RFFOUS_T / include RFFORIU4 through an enhancement implementation to move HLP_RESULTAT to the ACH batch header field in the subrouting START_NEW_BATCH? That seems like a way to accomplish it, but looking for advice here.

    Please help!

    Jeremy H.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Jānis B

      Thanks very much for confirming all of my ramblings as I discovered how this process/program works. I placed an enhancement in one of the implicit enhancement points in RFFOUS_T, and that worked well. It has solved the problem.


      Jeremy H.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 02:10 PM


    I need help determining where to gather the the reference number REGUT-RENUM on the first pass through the payment run (using transaction F110, creating an ACH payment medium.

    My customer exit custom logic in EXIT_RFFOEXIT_101 (inlcude ZXFORU24) is getting hit in that first pass of the payment run, but the REGUT table is not populated until after the initial run, so the reference number is blank.

    I tried system debugging as well, but I can seem to get the payment run F110 to stop in RFFOUS_T in the debugger in that first pass, so I can't tell which might be more appropriate EXITs for my select of REGUT.

    Can anyone help determine if I can select from REGUT anywhere in the first pass of payment run/ACH medium of RFFOUS_T?

    It is selected properly in EXIT_RFFOEXIT_101 (include ZXFORU24), if we **re-run** RFFOUS_T manually for the given payment run.


    Jeremy H.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Just wanted to add that I've also read thread

      ...and while it is referencing RFFOUS_C, and not T, I assume that same debug process will allow me to debug the first pass, if "Print Immediately", and perhaps even "Create Payment Medium" are not checked/selected.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.