System Error - BPM

I am trying to enter a value in the System Error for the Send step to catch System Error and I am not able to. The drop down is empty.
Can someone help?

Hi,
Can you paste the full error message. Also take a look at the default trace log in Visual Admin. Set the logging for soap to debug.
Naveen

Similar Messages

  • Set Message in BPM to System Error - Manual Restart Possible ?

    Hello,
    I'm working on a scenario where two idocs are merged in a BPM. The next step is sending the message in a synchronous RFC (BAPI) to a SAP R/3. Is it possible to set the merged message to the message status 'System Error - Manual Restart Possible' in the SXMB_MONI, when the BAPI returns an Error message?
    When it's not possible, is there an othe possibility to sent the message again, without involving the source system?
    Thanks in advance
    Matthias

    Hi,
    It would be better i think if you use the concept of raising an exception in your response mapping
    please refer:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    in the response mapping you can check the condition for the responce code from RFC.
    Ranjit

  • How to handle system errors in XI using BPM? please help!

    Hi Experts,
         I have a requirement where I have to handle system errors. For example when I am making RFC call using RFC adapter if the remote destination is down then I have create a understandable error message and store it in another SAP table.
    How to handle it? I am using BPM. I can see that there is "Exceptions" in the send step. How to use this?
    Thanks
    Gopal

    Hi Gopalkrishna,
    In this case whenever you get Mapping Exception , you can raise an Exception with the help of BPM and you can send the status to the RFC. But with the help of BPM.
    For a Simple case refer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
    If you want you can do it without a BPM
    and throw an exception in case any of the values is missing:
    have a look at this weblog on how to throw exceptions
    in a nice way:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    Also just go through <a href="/people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping Exceptions in SAP XI Mapping</a> and see if it helps you solve the problem.
    Also go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2243d711d1893e0000e8323c4f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/2166e6a91d11d188de0000e8216438/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/05/bb223905b61b0ae10000000a11402f/content.htm
    Please do let know if it helped.
    Regards,
    Abhy

  • Handle system errors in BPM

    I'm working on a BPM that may fail to perform some steps due to system errors. I can raise an exception if that happens, but what I'd like to do in the exception branch is to build a response message to the calling application that starts the BPM, declaring the reasons of the error. I can do that  giving a generic "system error" description, but I'd like to be more precise, and access the system error cause itself and add it to the message description.
    Is this possible? How to make it?
    Thanks in advance.

    Hi,
        As per my knowledge we can raise System errors using Send step and Transformation Step.I dont think we can rise System errors using Control step.Control Step handles only Exceptions not System errors.(Confirm once).
    But if you want to rise System errors go for Send Step Synchronous or Asynchronous.
    Send Step Synchronous used when exception triggered by permanent system errors that occur in the pipeline or while transporting the message to or from the pipeline.Asynchronous Send Step:the exception will only be triggered if an error occurs during the transfer to the pipeline. Errors that occur during mapping in the pipeline, do not trigger an exception.
    Transformation step used when to rise Permanent System error occurs.
    Regards,
    Raj

  • BPM - JDBC adapter - How to trigger system errors thro' adapters?

    I have designed the BPM in following way :
    1. Receive step - Receive Asynchronous message
    2. Defined the Block - DB
    3. Send step 'A' to JDBC - inside the Block-'DB' - Acknowledgement-Transport, Exceptions System Error-'DB', Receiver from-Send context.
    4. Created an exception handler and Selected 'DB' as exception handler for the property of the exception handler branch.
    5. Inserted the Send step-'B' to Mail inside the exception handler branch by using the mail receiver adapter.
    We want send the message to update database by using JDBC adapter but if it fails to update database then we want send an e-mail to outlook.
    Due to some problem we are not able to receive confirmation for the update of database in the "SEND" step-'A' and it is not red flag error it means it is not system error in Tcode-SXMB_MONI. Does anyone can help me to get a system error triggered by the JDBC adapter which would basically throws up the red flag and tells XI that the message could not be delivered successfully to database and the message would route to "SEND" step-'B' to send an email to outlook?
    Thanks in advance!
    Mrudula

    Hi Sarvana,
    I have defined the all the mandatory fields in the BPM.
    Following is the error log if you could help me in resolving it.
    Thanks in advance!
    MESSAGE ID: com.sap.aii.ib.sbeans.oa.rb_all.RUNTIME_EXCEPTION_OCCURED
    com.sap.aii.utilxi.swing.framework.FrameworkException: Runtime error (RuntimeException). See details
         at com.sap.aii.ib.gui.editor.XiDocument.checkConsistency(XiDocument.java:780)
         at com.sap.aii.ibrep.gui.bpm.BusinessProcessDocument.checkConsistency(BusinessProcessDocument.java:479)
         at com.sap.aii.ib.gui.editor.XiDocument.checkObject(XiDocument.java:799)
         at com.sap.aii.ib.gui.editor.CheckObjectCommand.execute(CheckObjectCommand.java:38)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at com.sap.plaf.frog.FrogMenuItemUI$ClickAction.actionPerformed(FrogMenuItemUI.java:960)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.AccessibleKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • System error in block parforEach: Exception why is process finished?

    Hi everybody,
    we split a message in BPM. Then we loop the multiline-container element.
    For each line-item we call a WebService synchrounous.
    We got a exception branch for system errors.
    Now we got the following problem:
    Our produces abount 3000 line-items.
    While processing e.g. item 1000 we got a system error and the BPM jumped into the execption branch. After processing the exception branch the process FINISHED!
    We assumed that the process would go on processing the remaining items!
    Is there a workaroud, that the process does go on with processing the remaining items?
    Regards Mario

    Hi,
    After handling the exception, the process will be continuing after that block. So you can try to put the block within a loop until all the line items get over.
    Regards,
    P.Venkat

  • System Error u0096 Restart is Not Possible!

    Hi guys,
    I have a sync scenario that calls an http service. When the http service is not available (down) the message in the monitor has a sys error status and the restart is not possible. With an identical scenario, but async, the status is also system error but Manual Restart is possible.
    My question is: this is a typical behavior for sync http scenarios? I would like to be able to restart this message, is it possible?
    Thanks in advance,
    Ricardo.

    Hi Michal
    Thanks for your quick response.
    I’m using these sync calls under a BPM and I found a way to reprocess this messages in system error. So, in Message Monitor open the PE and over the task in error (ex. send step) open the work item and go to “EDIT” menu, in EDIT menu press “change” and you will see on the left side “Services for Administration” and something like “reprocess after error, press the execute button and the sync calls is restarted.
    I believe without BPM is not possible restart sync calls, but with BPM it is
    Thanks Michal.
    Regards,
    Ricardo.
    Message was edited by: Ricardo  Quintino
    Message was edited by: Ricardo  Quintino

  • System Error- Restart Not Possible

    Hi All,
    I have Synchronous scenario.
    I am trying to handle system error in BPM. so if system error comes i m cancelling process.
    So in sxmb_moni, my scenario is successful as it is not getting stuck into queue.
    But it is giving me error as "System Error - restart not possible" .
    But I need to resend / restart this message again.
    So can u please guide me for same
    Regards,
    Manisha

    When your WS id down you are handling the esception in your BPM perfectly....what more you can do is in the exception branch throw an alert to the support team from SAP saying that the processing for a particluar IDOC failed as there was an error while connecting to the end system......in this case you can ask them to restart this particular process once the WS is up....
    One option wil also be to increase the default retry attempts of AE while connecting to the end system....affects performance....maximum retry attempts is 10 (if i am not wrong).....so if your WS comes up during this time you can send the message......
    We have a similar case wherein same logic has been applied in BPM...which asks the support team to restart the process if the process fails due to a communication error with the end system.
    Regards,
    Abhishek.

  • Convert application error to system error

    Iam facing an issue in BPM, Iam triyng to access to a webservice using synchronous send step, and I ahve an exception branch to catch the syetm error and fault message. Eventhough I specified fault messages, application error was not properly recognized. For this Iam trying to write an adapter module.
    In that adapter module I want to access the error in runtime environment, massage the application error look like system error.
    Iam lookign for info like, how do I access the error in runtime environment and covert it to look like system error so that BPM could see that as a system error.

    Hi Vamsi,
    As per my understandiong Application errors different with System errors. so i dont think we can convert application error to system error.
    you need to find other way to handle applications error.
    Regards,
    Raj

  • System Error!!

    Hi Everybody
    I am implementing JDBC ->SOAP->FILE(XML) scenario using BPM where the
    the values from the database are posted to the webservice and the webservice sends a response to the XML File , I am done  completely with design and configuration but i am not able to receive the response from the webservice to the file actually i am getting system error in the synchronous send step in the BPM.
    The status in moni says system error restart not possible and  the workflow shows sync send step in error (red color).
    I am using a free webservice whose URL is:-
    http://webservices.imacination.com/distance/Distance.jws

    HI
    I have done everything from my side for implimenting  JDBC ->XI ->SOAP ->XI ->FILE(XML) scenario and in MONI i can find two prominent errors :
    1. There is system error in "synchronous send" step of BPM and
    2.   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <<b>SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code></b>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • " SYSTEM ERROR" with ERROR CATEGORY: Message and ERROR ID : GENERAL

    HI all
    I m doing JDBC -> XI -> SOAP -> XI -> FILE ( XML) scenario .I have implemented it using  BPM .
    But ,In MONI , i am getting a "SYSTEM ERROR " with "ERROR CATEGORY : MESSAGE" and "ERROR ID : GENERAL" .and 
    One thing more is there my all adapters are active (JDBC,FILE) in runtime workbench but SOAP adapters i am not able to see it there as its services are not defined in there .Is this problem is because SOAP adapters are not defined in runtime workbench ?

    Hi Colin
    I are using SP 3.0
    I have checked the Communication channel monitoring and Adapter monitering also but in mine case when i want to see the SOAP adapter in adapter monitoring , the SOAP ICON is disabled there ,so i am not able to see whats the status of my SOAP adapter i have used in my scenario
    Thanks and Regards
    Abhishek

  • Display system error through a mail

    We have a  BPM scenario in which XI sends a msg to Backend system.If the
    message couldnot reach ,that displays system error at the call adapter level in SXMB_MONI.If we want this error message to be displayed in the failure mail
    to the concerned person,it has to be pushed into a message type or datatype.how
    to do that?Is there any other way... through alerts?

    Hi;
    You can use alerts to send out error mails to the recepients.
    Refer these weblogs for more details
    transaction handling in XI
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    •     Auto triggering of alerts
    transaction handling in XI
    •     SCOT
    not sending email from alert inbox
    Mudit
    Award points if it helps

  • How to handle the system error messages?

    Hi...
       I was doing File to RFC scenario with BPM. If i give the correct values for the Bapi Input it is working . If i give the some wrong input to the BAPI, it is not executing and the scenario is stopping. If i click on PE , it is going to the Inbound Queue.
    If this type of issue occurs i need to capture the system error and store it in a database. Could you pelase help in this issue.
    Thanks,
    Leela
    Edited by: leelaratnam morampudi on Nov 21, 2008 2:24 PM

    Hi Leela,
    You need to handle this in BPM. Check the thread describing how to catch exceptions in BPM.
    How to handle system errors in XI using BPM? please help!
    Thanks!

  • 'System Error' status at Message Monitoring( HTTP to FILE )

    I have created a scenario HTTP to FTP. I sent message to XI server using the HTTP Client.
    After sending the message I am getting the response at browser.
    Result:
    http-Status:  200 Message accepted
    Payload:
    But when I look in to the Message monitoring at RWB, I am getting the message status as
    System error. while going to the details i can see below error category.
    Error Category       MAPPING
    Error Code      EXCEPTION_DURING_EXECUTE
    (Is the password different for port 50000 and 8000)
    Please help me to solve this issue.
    Thanks in Advance,
    John

    This is the trace message that I got for this error
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:46) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:41) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:70) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:231) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy24.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_HTTP2File_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:46)</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_HTTP2File_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:46) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy24.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:46) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:41) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:70) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:231) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy24.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>

  • Getting "SYSTEM ERROR" while generating a PDF in a Workflow method.

    Dear All,
    I'm getting a "SYSTEM ERROR" when I'm calling the below function module in a Workflow BO Method.
    CALL FUNCTION wa_funcnm
       EXPORTING
         /1bcdwb/docparams  = fp_docparams
         invoice                     = invoice
       IMPORTING
         /1bcdwb/formoutput = fp_formoutput
       EXCEPTIONS
         usage_error        = 1
         system_error       = 2
         internal_error     = 3
         OTHERS             = 4.
    The aim is to generate the PDF and store it in DMS. Please let me know, if I'm going wrong somewhere. Any kind of inputs would be sincerely appreciated.
    Regards,
    Tushar.

    Hi Tushar
    You need to the following parameters when calling FM. Background WF process cannot handle dailog.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf   = 'X'.
    Refer to Thread below
    Creating Attachments to Work Items or to User Decisions in Workflows
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
    i_name     = l_formname
        IMPORTING
    e_funcname = l_fm_name.
    *   E_INTERFACE_TYPE           =
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf   = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel          = 1
    usage_error     = 2
          system_error    = 3
    internal_error  = 4
    OTHERS          = 5.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.
    fp_docparams-langu = 'X'.
    fp_docparams-country = 'US'.
      fp_docparams-fillable = 'X'.
      CALL FUNCTION l_fm_name
        EXPORTING
    /1bcdwb/docparams  = fp_docparams
    emp_info           = fs_per_info
        IMPORTING
    /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
    EXCEPTIONS
    usage_error        = 1
          system_error       = 2
    internal_error     = 3
    OTHERS             = 4.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.                               " IF sy-subrc <> 0
      CALL FUNCTION 'FP_JOB_CLOSE'
    *   IMPORTING
    * E_RESULT             = result
       EXCEPTIONS
    usage_error          = 1
    system_error         = 2
    internal_error       = 3
    OTHERS               = 4
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.                               " IF sy-subrc <> 0.
    ENDFORM.                    " GET_FUNCTION_MODULE
    *& Form  CONVERT_PDF_BINARY
    FORM CONVERT_PDF_BINARY .
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
    BUFFER                = FP_FORMOUTPUT-pdf
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    * OUTPUT_LENGTH         =
        TABLES
    BINARY_TAB            = t_att_content_hex .
    ENDFORM.                    " CONVERT_PDF_BINARY
    Regards
    Sandy

Maybe you are looking for