cancel
Showing results for 
Search instead for 
Did you mean: 

Process exception from S_PCO_RFC_EXECUTE_RECEIVE_EVNT when using SAP PCo

michael_schmalfeldt2
Participant
0 Kudos

Hi,

we have just started experimenting with SAP PCo in combination with a PCS system sending XML files to print labels through SAP GLM. We managed to monitor a directory for incoming XML files from the PCS system and pick up and send the file to SAP ECC (GLM) and update the print request in GLM. What is still missing is the feedback back from SAP GLM to PCo in case of errors. PCO should then put the XML file into an error folder on the server running PCo so that PCS does not find the file (as PCS itself is also monitoring an output folder and waiting for the process XML file).

Is it possible to process the errors/exceptions that function module S_PCO_RFC_EXECUTE_RECEIVE_EVNT is returning to PCo and trigger any follow up actions? E.g. to move a file into a certain folder?


Thanks and kind regards, Michael

Accepted Solutions (0)

Answers (2)

Answers (2)

michael_schmalfeldt2
Participant
0 Kudos

Hi,

well actually S_PCO_RFC_EXECUTE_RECEIVE_EVNT is RFC-enabled as it is also mentionned in the documentation behind your first link (see page 10).

Yes, these are the exceptions I am referrend to but I did not find any hint on how PCo can react to these exceptions. I do see error messages in the log tab in PCo but I did not find a folder in PCo where these errors message are stored. Otherwise I might setup another agent to monitor the folder for error messages.

Kind regards, Michael


christoph_bergemann
Active Contributor
0 Kudos

Dear Michael

as I have no knowledge on "PCo" I can only provide some "high level hints"

Depending on the "design" of "PCo" there might by some BAID or use exit in place. Therefore: based on your feedback "I do see error messages in the log tab in PCo" => the PCO landsacpe seems to generate a standard SAP applicaiton log (e.g. like transaction CBRc10 ?). If so (and in reference to the function module discussed here) it is now the question: is there an "user exit" or "badi" (or similar option available) to extend the SAP standard framework so that error handlng is possible (with out using 100% custom coding approach).

So if we talk about a standard SAP "log": then based on system set up (and other stuff): normally the messages stored in the log are deleted after "x days". The link i provided shows a custom specific call of the function module taking care of "error handling" (very "basic" implementation !) .

This option would be a "worst case" scenario.

If we really talk about a standard SAP application Log. You should check SAP standard function modules for reading the data in the log (any log has a "log info" (based on calling application)). As a hinthow you could "reuse" the error lor: check e.g. https://wiki.scn.sap.com/wiki/display/Snippets/Using+Application+Log

E.g. check as well https://archive.sap.com/discussions/thread/512206

and this link: https://help.sap.com/doc/saphelp_nwpi71/7.1/en-US/bb/6811f980ae11d3966f00a0c930660b/content.htm?no_c...

Therefore: using function module BAL_DSP_LOG_DISPLAY you can read the "log" (as long as you know the "application part" (for GLm, SVT and many other stuff. you have one "error" log info to use to find the "relevant" logs)

So you can try to do an "error" handling as well "asynchron" (may be once a day a report is scheduled reading log entries and then "react" on the errors)

My experience with the application log is as. not eaasy to implement; not really good performance in daily business)

So the "user exit" or "Badi" implementation option is really the best case (refer above)

C.B.

christoph_bergemann
Active Contributor
0 Kudos

Dear Michael

no idea regarding your demand. But may be check:

https://help.sap.com/http.svc/rc/76737111153c4839b3b9c6412ab16cc4/15.2.1/en-US/PCO15_BS_IMPL_G_FINAL...

https://archive.sap.com/discussions/thread/3806295

Normally we have two main options for integration of applications

a.) to do so by "ALE"

b.) to do so by "RFC"

And to clealry use SAP XI/PI/PO for integration.(this is the Best PRactise" for SAP <> Non SAP connections; but not sure for your landscape)

I have no experience with your IT landscape.

Looking on: https://www.se80.co.uk/sapfms/s/s_pc/s_pco_rfc_execute_receive_evnt.htm

the function module you are talking about is not "RFC" enabled

But some error handling might be possible

error parameter are as:

 ERROR_XML_PROC = 1          "
    ERROR_BADI_IMPL = 2         "
    ERROR_BADI_FILTER = 3       "
    ERROR_EXEC_METH = 4         "
    ERROR_CLASS_INST = 5        "
    NO_AUTHORISATION = 6        "

C.B.