on 2019 Apr 23 11:36 PM
I have done a search on this topic and been referred to SAP Note 1313075 which suggests using event module 41. The note refers to example sample code but there is no sample code in this note. I would appreciate any assistance from somebody who has implemented this functionality and sample code would be really useful. Thanks!
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I have found the following correction instructions in the note:
*$*$----------------------------------------------------------------$*$*
*$ KORREKTURANLEITUNG 0020751259 0000147965 $*
*$--------------------------------------------------------------------$*
*$ GÜLTIG FÜR : $*
*$ Softwarekomponente S4CORE $*
*$ Release 100 Alle Support Package Stände $*
*$ Release 101 Alle Support Package Stände $*
*$ Release 102 Alle Support Package Stände $*
*$ Release 103 Alle Support Package Stände $*
*$ Release 104 Alle Support Package Stände $*
*$--------------------------------------------------------------------$*
*$ Änderungen/Objekte nicht im SAP Standard enthalten $*
*$*$----------------------------------------------------------------$*$*
*&--------------------------------------------------------------------*
*& Objekt FUNC Z_FI_PAYMEDIUM_MT101_41
*& Objekt Header FUGR Z_FI_PAYMEDIUM_MT101_41
*&--------------------------------------------------------------------*
*& FUNCTION Z_FI_PAYMEDIUM_MT101_41
*&--------------------------------------------------------------------*
*>>>> START OF INSERTION <<<<
data : LC_JOBNAME LIKE TBTCJOB-JOBNAME,
LC_JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
LC_JOBRELEASED LIKE BTCH0000-CHAR1.
CONCATENATE 'PAYM_ADVICES:' I_FPAYH-LAUFD '/' I_FPAYH-LAUFI
INTO LC_JOBNAME.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = LC_JOBNAME
IMPORTING
JOBCOUNT = LC_JOBCOUNT
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC NE 0.
CALL FUNCTION 'FI_PAYM_MESSAGE_COLLECT'
EXPORTING
i_msgid = sy-msgid
i_msgty = 'E'
i_msgno = sy-msgno
i_msgv1 = sy-msgv1
i_msgv2 = sy-msgv2
i_msgv3 = sy-msgv3
i_msgv4 = sy-msgv3
i_probclass = 'E'.
EXIT.
ENDIF.
SUBMIT rffoavis_fpaym
USING SELECTION-SET '<VARIANT>'
USER SY-UNAME VIA JOB LC_JOBNAME NUMBER LC_JOBCOUNT
WITH zw_laufd = I_FPAYH-LAUFD
WITH zw_laufi = I_FPAYH-LAUFI
WITH zw_xvorl = I_FPAYH-XVORL
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = LC_JOBCOUNT
JOBNAME = LC_JOBNAME
STRTIMMED = 'X'
IMPORTING
JOB_WAS_RELEASED = LC_JOBRELEASED
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC NE 0.
CALL FUNCTION 'FI_PAYM_MESSAGE_COLLECT'
EXPORTING
i_msgid = sy-msgid
i_msgty = 'E'
i_msgno = sy-msgno
i_msgv1 = sy-msgv1
i_msgv2 = sy-msgv2
i_msgv3 = sy-msgv3
i_msgv4 = sy-msgv3
i_probclass = 'E'.
ENDIF.
ENDFUNCTION.
*>>>> END OF INSERTION <<<<<<
...
*&--------------------------------------------------------------------*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.