Trigger events from IDoc mass processing

Bormans, Raf [JanBe Extern] RBORMANS at janbe.jnj.com
Mon Jul 18 05:47:56 EDT 2005


Hi,

We have (custom build) IDocs processed in mass processing (release 46C).

I want an event triggered for every correctly posted IDoc / application
object.

I have configured the process code (WE42, table TBD52) to raise
ZDPKYWPOCO.MASSINPUTFINISHED for the IDoc packet, and
ZEWMSSUBOR.YWPOCOPROCESSED for the application object.
I assumed this was enough to have an event ZEWMSSUBOR.YWPOCOPROCESSED raised
for every posted application object.
Nota that I do fill the ALE export parameters in the IDoc processing module
    workflow_result             = c_wf_result_ok.
    return_variables-wf_param   = c_wf_par_processed_idocs.
"(Processed_IDOCs)
    return_variables-doc_number = idoc_contrl-docnum.
    APPEND return_variables.
    return_variables-wf_param   = c_wf_par_appl_objects.    "(Appl_Objects)
    return_variables-doc_number = object_number.
    APPEND return_variables.

However, the only event that is raised seems to be
ZDPKYWPOCO.MASSINPUTFINISHED. 
This is the mail output for the event:
APPL_OBJECT 000000090oSD1CLNT050ZEWMSSUBOR
APPL_OBJECT_LIST 000001090oSD1CLNT050ZEWMSSUBOR
_EVT_CREATION_DATE 000000008D20050715
_EVT_CREATION_TIME 000000006T170438
_EVT_CREATOR 000000014CUSRBORMANS
_EVT_ID 000000020N00000000000000721304
_EVT_LANGUAGE 000000001CN
_EVT_LOG_UPDATE 000000001CX
_EVT_NAME 000000032CMASSINPUTFINISHED
_EVT_OBJECT 000000090oSD1CLNT050ZDPKYWPOCO0000000003536123
_EVT_OBJKEY 000000070C0000000003536123
_EVT_OBJTYPE 000000010CZDPKYWPOCO
_EVT_RECEIVER_ID 000000090C

At least, I would have expected to see the processed IDoc numbers in the
event container. 

If I look at the processing form IDOCS_PROCESS(LBD20F0B) (function module
IDOC_INPUT), and deeper into the form TRIGGER_END_EVENT(LBD20F08), I have
the impression that the return parameters of the individual IDoc processing
is not taken over into the event container (which would explain the output
above).

If somebody of you can confirm that my approach using the application event
(TBD52) to have an event triggered for every application object posted, I
know at least that I am looking into the correct direction.

Regards,
Raf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050718/67be10ac/attachment.htm


More information about the SAP-WUG mailing list