Skip to Content

Commit work and wait after ISU_S_FICA_DOC_CREATE

Dear experts,

I have a question regarding the FM ISU_S_FICA_DOC_CREATE.

I'm using this FM to create a tax document, the problem is that after running this FM successufuly I check DFKKOP table to see if my document was added, I don't find it,

Why am I looking for it in DFKKOP? well, after creating this document I need to create a payement for this doc so I am using FKK_CD_PAYMENT_CREATE , and while this FM tries to update DFKKOP I get a short dump (SOMETIMES, not everytime because when I re-run the same test I don't get any dump), so I supposed that maybe I need a very brief delay until the document is added to dfkkop.

Do I need to add a COMMIT WORK AND WAIT statement after each one of the FMs?

Regards,

Houriya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 10, 2017 at 12:50 PM

    Non-liability clause: Many unreleased FM?

    you can try the COMMIT WORK AND WAIT statement, but insure pass an initial value to paraleter I_COMMIT of the FM, else the FM execute a COMMIT WORK without the WAIT option, and your statement won't have any effect.

    Nevertheless there are potential delays in the database update and buffer management, so you could try to read from database the generated document before calling next FM, in some DO/SELECT/if found EXIT/else WAIT UP TO 0 SECONDS/ENDDO.

    Add comment
    10|10000 characters needed characters exceeded