Error while sending data to a subroutine in script

Hi,
  While passing a currency field for calculation to a subroutine through perform statement iam getting runtime error saying "unable ti interpret 5000.00 as a number. 5000.00 is nothing but the first currency value which iam sending for calculation.in the code the error is raised on the bold line .
rf140-wrshb has value 5000.00 .the code which i have written in subroutine is as follows.
READ TABLE I_IN WITH KEY NAME = 'RF140-WRSHB'.
MOVE I_IN-VALUE TO LV_SUM1. 
CLEAR I_IN.
DATA: SUM_C TYPE N.
  SUM1 = SUM1 + LV_SUM1.
  READ TABLE I_OUT WITH KEY NAME = 'LV_BALANCE'.
MOVE SUM1 TO I_OUT-VALUE.
  MODIFY I_OUT TRANSPORTING VALUE WHERE NAME = 'LV_BALANCE'.
  CLEAR I_OUT.
lv_balance is the one which receives the output value.
can anyone tell me what is the mistake i have done nd how to rectify it.
Thanks,
Rose.

Hi,
I have done something similar so below is the code while passing currency fields to subroutines:
Actually I was retrieving 2 fields from scripts and then substract them and then send back the result to the script. Hope it works out for you, try it out and REWARD POINTS IF HELPFUL!! (also for your prev post!!)
FORM get_pay TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
  DATA: lv_var(255)  TYPE c, "dmbtr,
        lv_var1(255) TYPE c, "qsshb,
        lv_var2(255) TYPE c, "dmbtr.
        var(20) TYPE c,
        var1(25) TYPE c,
        var2(25) TYPE c,
        var3(25) TYPE c,
        var4(25) TYPE c,
        var5(25) TYPE c,
        var6(25) TYPE c,
        vari TYPE ztemp,
        vari2 TYPE ztemp,
        vari3 TYPE ztemp.
  DATA: lv_var4 TYPE dmbtr,
        lv_var5 TYPE qsshb,
        lv_var6 TYPE dmbtr,
        len TYPE i,
        len1 TYPE i,
        dot TYPE c.
  READ TABLE in_tab WITH KEY 'REGUP-DMBTR'.
  IF sy-subrc EQ 0.
    lv_var = in_tab-value.
    len = STRLEN( lv_var ).
    len1 = len - 3.
    dot = lv_var+len1(1).
    IF dot = ','.
      SPLIT lv_var AT ',' INTO var1 var2.
      REPLACE '.' IN var1 WITH ','.
      CONCATENATE '.' var2 INTO var2.
      CONCATENATE var1 var2 INTO var.
      CONDENSE var.
      vari = var1.
      SHIFT vari LEFT DELETING LEADING '0'.
      CONCATENATE vari var2 INTO vari.
      lv_var4 = vari.
    ELSE.
      SPLIT lv_var AT '.' INTO var1 var2.
      REPLACE '.' IN var1 WITH ','.
      CONCATENATE '.' var2 INTO var2.
      CONCATENATE var1 var2 INTO var.
      CONDENSE var.
      vari = var1.
      SHIFT vari LEFT DELETING LEADING '0'.
      CONCATENATE vari var2 INTO vari.
      lv_var4 = vari.
    ENDIF.
    CLEAR: dot, len, len1.
  ENDIF.
  lv_var = vari.
  CALL FUNCTION 'CHAR_NUMC_CONVERSION'
    EXPORTING
      input   = lv_var
    IMPORTING
      numcstr = lv_var4.
  READ TABLE in_tab WITH KEY 'REGUP-QBSHB'.
  IF sy-subrc EQ 0.
    lv_var1 = in_tab-value.
    len = STRLEN( lv_var1 ).
    len1 = len - 3.
    dot = lv_var1+len1(1).
    IF dot = ','.
      SPLIT lv_var1 AT ',' INTO var3 var4.
      REPLACE '.' IN var3 WITH ','.
      CONCATENATE '.' var4 INTO var4.
      CONDENSE var.
      vari2 = var3.
      SHIFT vari2 LEFT DELETING LEADING '0'.
      CONCATENATE vari2 var4 INTO vari2.
      lv_var6 = vari2.
    ELSE.
      SPLIT lv_var1 AT '.' INTO var3 var4.
      REPLACE '.' IN var3 WITH ','.
      CONCATENATE '.' var4 INTO var4.
      CONDENSE var.
      vari2 = var3.
      SHIFT vari2 LEFT DELETING LEADING '0'.
      CONCATENATE vari2 var4 INTO vari2.
      lv_var6 = vari2.
    ENDIF.
    CLEAR: dot, len, len1.
  ENDIF.
  lv_var1 = vari2.
  CALL FUNCTION 'CHAR_NUMC_CONVERSION'
    EXPORTING
      input   = lv_var1
    IMPORTING
      numcstr = lv_var6.
  lv_var5 = lv_var4 - lv_var6.
  lv_var2 = lv_var5.
  var = lv_var5.
  WRITE lv_var5 TO var CURRENCY 'SG'.
  READ TABLE out_tab WITH KEY 'LV_PAY'.
  IF sy-subrc EQ 0.
    out_tab-value = var.
    MODIFY out_tab INDEX 1.
  ENDIF.
ENDFORM.                    "get_PAY
Regards,
Narendra.

Similar Messages

  • Error while sending data from XI to BI System

    Hello Friends,
    I m facing an error while sending data from XI to BI. XI is successfully recived data from FTP.
    Given error i faced out in communication channel monitoring:-
    Receiver channel 'POSDMLog_Receiver' for party '', service 'Busys_POSDM'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR partner '10.1.45.35:sapgw01' not reached
    TIME Fri Apr 16 08:15:18 2010
    RELEASE 700
    COMPONENT NI (network interface)
    VERSION 38
    RC -10
    MODULE nixxi.cpp
    LINE 2823
    DETAIL NiPConnect2
    SYSTEM CALL connect
    ERRNO 10061
    ERRNO TEXT WSAECONNREFUSED: Connection refused
    COUNTER 2
    Error displaying in message monitoring:-
    Exception caught by adapter framework: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME        Fri Apr 16 08:15:18 2010 RELEASE     70
    Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME.
    Kindly suggest me & provide details of error.
    Regards,
    Narendra

    Hi Narendra,
    Message is clearly showing that your system is not reachable
    102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.1.45.35:sapgw01' not reached
    Please check to ping the BI server  IP 10.1.45.35 from your XI server , in case its working you can check telnet to SAP standard port like 3201/3601/3301/3901 etc.
    It seems to be connectivity issue only.
    Make sure your both the systems are up and running.
    Revert back after checking above stuff.
    Regards,
    Gagan Deep Kaushal

  • Sup Error While Sending Date Parameter to SUP server?

    Hi Every one,
       I am developing an iOS app using Sybase Unwired Platform 2.1.3 I am getting error While sending Date parameter to Database. How to send DATE format to the sales_order table for order_date column  from iOS.
    I tried like this..
    @try {
            SUP105Sales_order *insertRow =[[SUP105Sales_order alloc]init];
            int32_t idValue =2671;
            int32_t custID =103;
            int32_t sales =506;
            insertRow.id_=idValue;
            insertRow.cust_id=custID;
            insertRow.order_date=[NSDate date];
            insertRow.fin_code_id=@"r1";
            insertRow.region=@"Hyd";
            insertRow.sales_rep=sales;
            [insertRow save];
            [insertRow submitPending];
            [SUP105SUP105DB synchronize];
        @catch (NSException *exception) {
            NSLog(@"Exception---%@",exception.description);
    In server log:
    2014-02-28 16:39:41.833 WARN Other Thread-182 [SUP105.server.SUP105DB]{"_op":"C","level":5,"code":412,"eisCode":"257","message":"com.sybase.jdbc3.jdbc.SybSQLException:SQL Anywhere Error -157: Cannot convert '' to a timestamp","component":"Sales_order","entityKey":"3210004","operation":"create","requestId":"3210005","timestamp":"2014-02-28 11:09:41.646","messageId":0,"_rc":0}
    I strongly believe the above error for because of Date format..i have tried different ways to send Date to Sup server ..but i didn't get any solution.. Can any one help me me how to send date to database in SUP in iOS??
    Message was edited by: Michael Appleby

    Hi Jitendra,
    Thanks for your Quick reply..Any way i have tried what you said,but i didn't get any solution.
    Here is my Code:
        NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
        [formatter setDateFormat:@"dd-MM-YYYY HH:mm:ss"];
        NSDate *tempDate =(NSDate *) [formatter stringFromDate:[NSDate date]];
        NSLog(@"%@",tempDate);
    @try {
            SUP105Sales_order *insertRow =[[SUP105Sales_order alloc]init];
            int32_t idValue =2671;
            int32_t custID =103;
            int32_t sales =506;
            insertRow.id_=idValue;
            insertRow.cust_id=custID;
            insertRow.order_date =tempDate;
            insertRow.fin_code_id=@"r1";
            insertRow.region=@"Hyd";
            insertRow.sales_rep=sales;
            [insertRow save];
            [insertRow submitPending];
            [SUP105SUP105DB synchronize];
        @catch (NSException *exception) {
            NSLog(@"Exception---%@",exception.description);
    Error is :
    Exception---SUPPersistenceException: exception is in createCore: unexpected null value for 'order_date'

  • Error while sending data to supplier

    Hi All,
    We are facing the errors while sending transaction to our supplier.Actually we send 60 transactions to our supplier in which 15 are errored out in B2B with the below error.
    Please help me in resolving this.
    2010.06.09 at 16:40:04:876: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Calling Send to transmit the message
    2010.06.09 at 16:40:04:879: Thread-10: B2B - (DEBUG) Protocol Name: HTTP
    2010.06.09 at 16:40:04:883: Thread-10: B2B - (DEBUG) Version Name: 1.1
    2010.06.09 at 16:40:04:887: Thread-10: B2B - (DEBUG) Endpoint: http://interchange-stg.apl.com:4090/as2/interface
    2010.06.09 at 16:40:04:891: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send URL: HTTP://INTERCHANGE-STG.APL.COM:4090/AS2/INTERFACE
                                                                          http://interchange-stg.apl.com:4090/as2/interface
    2010.06.09 at 16:40:04:903: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send TO Endpoint: 501 http://interchange-stg.apl.com:4090/as2/interface
    2010.06.09 at 16:40:04:906: Thread-10: B2B - (DEBUG)
    Protocol = HTTP
    Version = 1.1
    Transport Header
    Content-Transfer-Encoding:binary
    Message-ID:<131982@EMRSNS>
    MIME-version:1.0
    ACTION_NAME:Process_X12_5020_850
    From:EMRSNS
    Disposition-Notification-To:[email protected]
    AS2-To:ZZACSLTEST
    User-Agent:AS2 Server
    Date:Wed, 09 Jun 2010 16:39:54 GMT
    Disposition-Notification-Options:signed-receipt-protocol=required, pkcs7-signature; signed-receipt-micalg=required, sha1
    DOCTYPE_NAME:850
    FROM_PARTY:EMRSNS
    DOCTYPE_REVISION:5020
    TO_PARTY:ZZACSLTEST
    AS2-From:EMRSNS
    AS2-Version:1.1
    Content-Type:application/pkcs7-mime; smime-type="enveloped-data"
    Parameters
    -- listing properties --
    http.sender.timeout=0
    2010.06.09 at 16:40:04:910: Thread-10: B2B - (DEBUG) scheme null userName null realm null
    2010.06.09 at 16:41:05:162: Thread-10: B2B - (WARNING)
    Message Transmission Transport Exception
    Transport Error Code is OTA-HTTP-SEND-1000
    StackTrace oracle.tip.transport.TransportException: [IPT_HttpSendError] HTTP encounters send error :.
         at oracle.tip.transport.TransportException.create(TransportException.java:91)
         at oracle.tip.transport.basic.HTTPSender.createTransportResponse(HTTPSender.java:754)
         at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:598)
         at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:311)
         at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:1034)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1758)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:976)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.net.SocketTimeoutException: Read timed out
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at HTTPClient.BufferedInputStream.fillBuff(BufferedInputStream.java:192)
         at HTTPClient.BufferedInputStream.read(BufferedInputStream.java:112)
         at HTTPClient.StreamDemultiplexor.read(StreamDemultiplexor.java:281)
         at HTTPClient.RespInputStream.read(RespInputStream.java:157)
         at HTTPClient.RespInputStream.read(RespInputStream.java:116)
         at HTTPClient.Response.readResponseHeaders(Response.java:997)
         at HTTPClient.Response.getHeaders(Response.java:713)
         at HTTPClient.Response.getStatusCode(Response.java:262)
         at HTTPClient.RetryModule.responsePhase1Handler(RetryModule.java:83)
         at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:739)
         at HTTPClient.HTTPResponse.getStatusCode(HTTPResponse.java:196)
         at oracle.tip.transport.basic.HTTPSender.createTransportResponse(HTTPSender.java:721)
         ... 9 more
    2010.06.09 at 16:41:05:163: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send Error in sending message
    2010.06.09 at 16:41:05:166: Thread-10: B2B - (INFORMATION) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Request Message Transmission failed
    2010.06.09 at 16:41:05:168: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Enter
    2010.06.09 at 16:41:05:171: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2010.06.09 at 16:41:05:173: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Leave
    2010.06.09 at 16:41:05:176: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab [IPT_HttpSendError] HTTP encounters send error :.
    Read timed out
    2010.06.09 at 16:41:05:186: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:notifyApp retry value <= 0, so sending exception to IP_IN_QUEUE
    2010.06.09 at 16:41:05:191: Thread-10: B2B - (DEBUG) Engine:notifyApp Enter
    2010.06.09 at 16:41:05:202: Thread-10: B2B - (DEBUG) Enqueue Engine AQJMSCorrelationID = 889C8E2466211E6DE0440015178ED696
    2010.06.09 at 16:41:05:205: Thread-10: B2B - (DEBUG) notifyApp:notifyApp Enqueue the ip exception message:
    <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <correlationId>131982</correlationId>
    <b2bMessageId>131982</b2bMessageId>
    <errorCode>AIP-50079</errorCode>
    <errorText>Transport error: [IPT_HttpSendError] HTTP encounters send error :.
    Read timed out</errorText>
    <errorDescription>
    <![CDATA[Machine Info: (usmtnz-sinfwi02)
    Transport error: [IPT_HttpSendError] HTTP encounters send error :.
    Read timed out ]]>
    </errorDescription>
    <errorSeverity>2</errorSeverity>
    </Exception>
    Regards
    sekhar

    Hi Sekhar,
    2010.06.09 at 16:41:05:176: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab [IPT_HttpSendError] HTTP encounters send error :.
    Read timed outIt seems that either your TP's server is not accepting these requests (due to heavy load)/ message size is too large that HTTP timout has occured. Possibility for later case is low because only 25% messages are erroring out. Anyways, you may like to tune your B2B system and test again -
    http://www.b2bgurus.com/2007/10/oracle-as-b2b-performance-best.html
    If no change happens, ask your TP to check his server settings.
    Regards,
    Anuj

  • Error while sending data to TP

    Hi B2B Gurus,
    While I am sending data to our trading partner, I am getting the below error. Its very high priority. Please help me to resolve this.
    Machine Info: (essapt020-u009.emrsn.com)
    Transport error: [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    .

    Hi Anuj,
    I send you a log files to your mail id.
    Actually I able to connect to the tp's url.Still i am getting this error.
    Machine Info: (essapt020-u009.emrsn.com)
    Transport error: [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    .

  • Error While Sending Data for Currency Translation

    Hello Experts,
    I am trying to send data via template. Data is getting saved but I am getting following error displayed.
    1.) When I try to enter data for a particular month then, error as FX-200.
    2.) When I try to enter data accross months of more than year then , FX-045 and FX-310 error.
    I had look on various SAP Notes available for the errors.
    As per them, I ran Full optimization, I checked rates are maintained for previous year too, I checked for LC Currency Type Property is maintained as L.
    But nothing Worked.
    Currently only the 3 members are maintained in Rate Dimension, so exceeding the size limit cannot be an issue.
    Kindly Suggest, what could be another possible reason for the errors.
    Regards,
    Apoorva Garg

    Hello,
    1.)  I am getting issues  for example for 2010.Mar, 2010.Dec, 2013.Dec, 2012.Dec
    2.)  Business Rules Maintained
    3.) Business Rule called via Default Script Logic
    // Default base level logic - applies to all base members in all dimensions
    *INCLUDE system_constants.lgl
    //Process_Each_Member = TIME
    *RUN_STORED_PROCEDURE=SPRUNCONVERSION('%APP%','KPI_Working_Act_FX','','GLOBAL','%SCOPETABLE%','%LOGTABLE%')
    *COMMIT
    //*RUN_STORED_PROCEDURE=SPRUNCONVERSION('%APP%','KPI_Working_AOP_FX','','GLOBAL','%SCOPETABLE%','%LOGTABLE%')
    //*COMMIT
    Regards,
    Apoorva

  • Getting error while sending data to OIM through SPMLWS

    [11/12/10 4:12:29:834 EST] 00000040 SystemOut O ERROR,12 Nov 2010 04:12:29,830,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: tcUtilityFactory/getPropertyValue encounter some problems: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
    java.lang.ClassCastException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:372)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
         at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.lookupHome(Unknown Source)
         at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.getHome(Unknown Source)
         at Thor.API.tcUtilityFactory.getUnauthenticatedOperations(Unknown Source)
         at Thor.API.tcUtilityFactory.getPropertyValue(Unknown Source)
         at Thor.API.tcUtilityFactory.<init>(Unknown Source)
         at com.oracle.xl.spmlws.oim.eventhandler.OIMCallFactory.<init>(Unknown Source)
         at com.oracle.xl.spmlws.framework.eventhandler.OIMEventHandler.handleRequest(Unknown Source)
         at com.oracle.xl.spmlws.framework.event.EventMediator.executeEventHandlerSequence(Unknown Source)
         at com.oracle.xl.spmlws.framework.event.EventMediator.processEvent(Unknown Source)
         at com.oracle.xl.spmlws.framework.engine.Engine.process(Unknown Source)
         at com.oracle.xl.spmlws.framework.engine.Engine.provision(Unknown Source)
         at com.oracle.xl.spmlws.ws.server.websphere.HttpSoap11BindingImpl.processRequest(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:585)
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:453)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:414)
         at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
         at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
         at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:831)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1075)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:550)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    [11/12/10 4:12:29:857 EST] 00000040 SystemOut O ERROR,12 Nov 2010 04:12:29,856,[SPMLWS.ENGINE],Provisioning Failed
    [11/12/10 4:12:29:863 EST] 00000040 SystemOut O ERROR,12 Nov 2010 04:12:29,857,[ EXCEPTION WHILE PROCESSING PAYLOAD ],SPMLWS.Utility
    com.oracle.xl.spmlws.framework.engine.EngineException: com.oracle.xl.spmlws.framework.engine.EngineException: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.oim.eventhandler.OIMEventException: Thor.API.Exceptions.tcAPIException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at com.oracle.xl.spmlws.framework.engine.Engine.provision(Unknown Source)
         at com.oracle.xl.spmlws.ws.server.websphere.HttpSoap11BindingImpl.processRequest(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:585)
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:453)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:414)
         at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
         at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
         at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:831)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1075)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:550)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by: com.oracle.xl.spmlws.framework.engine.EngineException: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.oim.eventhandler.OIMEventException: Thor.API.Exceptions.tcAPIException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at com.oracle.xl.spmlws.framework.engine.Engine.process(Unknown Source)
         ... 40 more
    Caused by: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.oim.eventhandler.OIMEventException: Thor.API.Exceptions.tcAPIException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at com.oracle.xl.spmlws.framework.event.EventMediator.processEvent(Unknown Source)
         ... 41 more
    Caused by: com.oracle.xl.spmlws.framework.event.EventException: com.oracle.xl.spmlws.oim.eventhandler.OIMEventException: Thor.API.Exceptions.tcAPIException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at com.oracle.xl.spmlws.framework.eventhandler.OIMEventHandler.handleRequest(Unknown Source)
         at com.oracle.xl.spmlws.framework.event.EventMediator.executeEventHandlerSequence(Unknown Source)
         ... 42 more
    Caused by: com.oracle.xl.spmlws.oim.eventhandler.OIMEventException: Thor.API.Exceptions.tcAPIException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at com.oracle.xl.spmlws.oim.eventhandler.OIMCallFactory.<init>(Unknown Source)
         ... 44 more
    Caused by: Thor.API.Exceptions.tcAPIException: Unable to load class: com.thortech.xl.ejb.interfaces._tcUnauthenticatedOperationsHome_Stub
         at Thor.API.tcUtilityFactory.getPropertyValue(Unknown Source)
         at Thor.API.tcUtilityFactory.<init>(Unknown Source)
         ... 45 more
    [11/12/10 4:12:29:918 EST] 00000040 SystemOut O DEBUG,12 Nov 2010 04:12:29,917,[ WEBSERVICE METHOD PROCESSREQUEST ENDS ],SPMLWS.Utility

    Follow these steps..
    http://download.oracle.com/docs/cd/E14899_01/doc.9102/e14764/toc.htm#BGBJIIID
    If you are using IBM WebSphere Application Server as the application server, then update the xlDataObjectBeans.jar file as follows:
    Note:
    Ensure that you perform these steps after you have performed the procedure described in "Upgrading Oracle Identity Manager on IBM WebSphere Application Server".
    1.
    In a Web browser, connect to the WebSphere administrative console by using a URL of the following format:
    http://HOST_NAME:PORT/admin
    2.
    Log in by using the Oracle Identity Manager administrator account that you specified during installation.
    3.
    Click Applications, and then select Enterprise Applications.
    4.
    Select Xellerate application.
    5.
    Click Export.
    6.
    Save the xellerate.ear file to a temporary directory.
    7.
    Extract the xlDataObjectBeans.jar file from the xellerate.ear file.
    Note:
    Ensure that you extract the xlDataObjectBeans.jar file and not the xlDataObjects.jar file.
    8.
    Copy the xlDataObjectBeans.jar file into the OIM_DC_HOME\xlclient\lib directory.

  • Error while sending data thru excel addin

    Hi John,
    When we tried pushing the data using excel addin, it gives an error
    Your software license does not include the ability to update the data thru the spread sheet.Please contact your administrator.
    We are also unable to save the data thru forms.

    Hi,
    In 9.3.1 the products that are enabled for use are usually set by the registry.properties—in <Hyperion_Home>\common\config
    Have a look at http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hsys9_install_start_here.pdf
    Page 54 - About registry.properties
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 403 forbidden error received at Trade Partner side while sending data to XI

    Hi XI Experts,
    We have a B2B scenario from TP1 to another TP2 via XI in our production system. The interface is working fine and messages are flowing successfully. However, the Trade Partner HUB has decided to implement a new eCommerce Business Platform at their end. That's why they have provided AS2 ID of sender and Receiver to us to make the changes in Quality environment. I have done the same in our Quality system.
    Flow: We are able to send the data successfully to the AS2 ID provided by Hubgroup. Where as we are not able to receive any data from HUB.
    Last Friday, Hubgroup has received the error while sending data to XI. And in our Sender AS2 channel, we also received the following error.
    a) HUB Side error:
                              Here is a copy of the MDN Message send to HUB:
                             The message you sent on "Thu, 14 Oct 2010 07:14:51 GMT" from "XXXXXXXX" to
                            "XXXXXXXXX" with subject "Integrator Message" has been received on 14 Oct
                             2010 19:14:52 GMT, but cannot be processed because message authentication
                             failed.
    b) XI AS2 channel error:
                             Error type: PANIC >> Error date: 10/14/10 11:48 AM >> Description: Initiate     
                             Error:com.seeburger.util.configuration.ConfigurationException: Failed to lookup report channel for failed inbound    
                             message. Reason : com.seeburger.xi.config.ConfigException: No matching inbound binding (report) found for
                             FromParty: ToParty: subject:Integrator Message [10/14/10 11:48 AM]
                      I have done the following things: 1) Cache refreshed 2) Recreated the 1st part from HUB to XI. 3) Checked the Agreements and Receiver Determination and also the AS2 ID's 4) Also checked the URL in communication channel. I have created the scenario with out any mapping. I want to receive the data from HUBGROUP with out any changes. For that, I will be using a dummy interface and dummy namespace in configuration.
    When we test last night, HUB side they have received 403 forbidden error message and we didn;t receive any message to XI.
    Note: XI3.0 version we are using currently. We are upgrading to PI 7.11 in the next month.
    Please help me on this.
    Thanks & Regards,
    Abdullah Shaik.
    Edited by: Abdullah Shaik on Oct 20, 2010 9:06 AM

    Hi Abdullah ,
    here are a few things that you can check:
    1) Message authentication failed
    - Check the authentication certificate settings.
    - Disable the u201Cauthentication requiredu201D flag, if messages without authentication are to be received.
    2) Partner received HTTP Error 403 u201Cforbiddenu201D.
    This error may have different reasons:
    a) You or your partner has entered an incorrect AS2 ID for one of the involved parties.
    b) A valid sender agreement is missing.
    c) There are more then one AS2 sender agreements with the same sender AND receiver party.
    d) The corresponding inbound channel is set to inactive.
    regards,
    Daniel

  • Error while sending bulk data

    Hi,
    I am doing one scenario in which SAP sends Material Number to Oracle and in turn Oracle fetches data for that Material Number and send it back to SAP.
    Here when I am executing the scenatio in SAP with Material Number as 1* . I am getting an error in XI as "Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. java.sql.SQLException: No more data to read from socket"
    I am getting this error while sending data from SAP to oracle.i tried the same scenario with 2 or 3 records.It is working fine.
    I tried many options increasing the polling interval and restricting the records.But I am getting the same error.Please help me in this case.
    Thanks,
    Gunasree.

    Most of the debugging links say: Connection with database server is lost, and Use a new connection to come out this problem with code so that if again the session goes expired the connection automatically get establised.
    Have a look:
    Troubleshooting: No more data.....
    1.http://www.chemaxon.com/forum/ftopic904.html
    2.http://elandingstest.alaska.gov/confluence/display/IERS/TroubleshootingDatabaseConnection+Problems
    3. http://www.orafaq.com/forum/t/35084/0/
    4. BAPI_PO_CHANGE
    5. http://www.junlu.com/msg/314591.html
    BR,
    Alok

  • Deadlock issue while sending data from PI to JDBC !!!

    Hi All,
    We are getting below error while sending data from PI to JDBC (Database).
    Error - JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'store_order_details' (structure 'Order_details_Statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 61) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    This is happening when more than one PI message is trying to deliver data at the same time to database.
    Can anyone let us know the root cause of this issue and how we can rectify this.
    Is there some setting which we can use to do parallel processing as Delivering one message at a time to database is causing performance issues & taking lot of time.
    Thanks
    Neha Verma

    Hello Neha,
    Strange but can please get below information.
    Please check with the DB admin about if the user is getting locked or is there any hanging threads related to user.
    Also confirm with DB admin if the exclusive lock is on table or on the row when you try insertign or updating information.
    You can share the user from the receiver channel.
    Regards,
    Hiren A.

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • "...an error occurred while sending data from the iPhone" - caused by latest iPhone update today?

    I've been syncing my iPhone to my (non-apple) desktop for several months without difficulty.
    Today I accepted the latest upgrade to my iPhone software.
    Since it installed, it will not sync.
    It gives the error message "iTunes could not sync calendars to the iPhone "Steve's iPhone" because an error occurred while sending data from the iPhone."  After rebooting the desktop, the error repeats, and it's now in hour 2 of the continuing message "Syncing Steve's iPhone (Step 2 of 2) - Finishing sync"
    Has anyone else run into this Undocumented Feature of the latest upgrade?
    As bugs go, this is pretty serious for those of us who depend on syncing the iPhone and desktop for our business!
    Thanks to anyone who can help!
    Steve Callender

    Tried rebooting the phone, and now it works.
    Guess there's 2 lessons here -
    Boot again when installing new SW, even if the phone reboots itself during installation, and
    Boot to see if that fixes a problem before posting it.
    Steve

  • 'Error while signing data-Private key or certificate of signer not availabl

    Hello All,
    In my message mapping I need to call a web service to which I need to send a field value consist of SIGNED DATA.
    I am using SAP SSF API to read the certificate stored in NWA and Signing the Data as explained in
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm,
    when I have tested using Test tab of message mapping  it is working fine and I am able to access the certificate Keystore of NWA(we have created a keystore view and keystore entry to store the certificate) and generate the signed data ,but when I test end to end scenario from ECC system,it is getting failed in mapping with the error
    ' Error while signing data - Private key or certificate of signer not availableu2019.
    Appreciate your expert help to resolve this issue urgently please.
    Regards,
    Shivkumar

    Hi Shivkuar,
    Could you please let me know how you were trying to achieve the XML signature.
    We have a requirement where we have to sign the XML document and need to generate the target document as following structure.
    <Signature>
         <SignedInfo>
             <CanonicalizationMethod />
             <SignatureMethod />
             <Reference>
                     <Transforms>
                     <DigestMethod>
                     <DigestValue>
             </Reference>
        <Reference /> etc.
      </SignedInfo>
      <SignatureValue />
      <KeyInfo />
      <Object>ACTUAL PAYLOAD</Object>
    </Signature>
    I am analyzing the possibility of using the approach that is given in the help sap link that you have posted above. Any inputs will be apprecited.
    Thanks and Regards,
    Sami.

  • Error while sending email to external mail - Urgent

    Hi All,
    I am getting error while sending email with attachement. The Error code is 02.
    I am not able to identify the error. bold Please help me in solving this problem.
    Is it anything wrong with the code or Any Configuration with SCOT/SOST.bold
    the code i am using is :
    REPORT YVR_F MESSAGE-ID XX .
    TABLES : EDIDC, EDIDS, EDPAR.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS : P_STATUS LIKE EDIDC-STATUS DEFAULT '51'.
    SELECT-OPTIONS : S_DIRECT FOR EDIDC-DIRECT,
                     S_MESTYP FOR EDIDC-MESTYP,
                     S_CREDAT FOR EDIDC-CREDAT.
    SELECTION-SCREEN END OF BLOCK B1 .
    PARAMETER: P_EMAIL LIKE SOMLRECI1-RECEIVER,
               P_SENDER LIKE SOMLRECI1-RECEIVER no-display,
               P_DELSPL  AS CHECKBOX,
               P_ONLINE NO-DISPLAY.
    DATA : TB_EDIDC LIKE STANDARD TABLE OF EDIDC INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA : TB_EDPAR LIKE STANDARD TABLE OF EDPAR INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA : TB_KNA1 LIKE STANDARD TABLE OF KNA1 INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA : TB_ADRC LIKE STANDARD TABLE OF ADRC INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA: INT_PDF TYPE TABLE OF TLINE WITH HEADER LINE.
    DATA : BEGIN OF TB_ED OCCURS 0,
             SNDPRN LIKE EDIDC-SNDPRN,
             LOC    LIKE ADRC-BUILDING,
             DOCNUM LIKE EDIDC-DOCNUM,
             IDOCTP LIKE EDIDC-IDOCTP,
             MESTYP LIKE EDIDC-MESTYP,
             DIRECT LIKE EDIDC-DIRECT,
             CREDAT LIKE EDIDC-CREDAT,
             STATUS LIKE EDIDC-STATUS,
           END OF TB_ED.
    DATA:   IT_MESSAGE TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    Job Runtime Parameters
    DATA: GD_EVENTID LIKE TBTCM-EVENTID,
          GD_EVENTPARM LIKE TBTCM-EVENTPARM,
          GD_EXTERNAL_PROGRAM_ACTIVE LIKE TBTCM-XPGACTIVE,
          GD_JOBCOUNT LIKE TBTCM-JOBCOUNT,
          GD_JOBNAME LIKE TBTCM-JOBNAME,
          GD_STEPCOUNT LIKE TBTCM-STEPCOUNT,
          GD_ERROR    TYPE SY-SUBRC,
          GD_RECIEVER TYPE SY-SUBRC.
    DATA:  W_RECSIZE TYPE I,
           W_SPOOL_NR LIKE SY-SPONO.
          %_print LIKE pri_params.
    DATA: GD_SUBJECT   LIKE SODOCCHGI1-OBJ_DESCR,
          IT_MESS_BOD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          IT_MESS_ATT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          GD_SENDER_TYPE     LIKE SOEXTRECI1-ADR_TYP,
          GD_ATTACHMENT_DESC TYPE SO_OBJ_NAM,
          GD_ATTACHMENT_NAME TYPE SO_OBJ_DES.
    Spool to PDF conversions
    DATA: GD_SPOOL_NR LIKE TSP01-RQIDENT,
          GD_DESTINATION LIKE RLGRAP-FILENAME,
          GD_BYTECOUNT LIKE TST01-DSIZE,
          GD_BUFFER TYPE STRING.
    Binary store for PDF
    DATA: BEGIN OF IT_PDF_OUTPUT OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF IT_PDF_OUTPUT.
    DATA: GD_RECSIZE TYPE I.
    CONSTANTS: C_DEV LIKE  SY-SYSID VALUE 'DEV',
               C_NO(1)     TYPE C   VALUE ' ',
               C_DEVICE(4) TYPE C   VALUE 'LOCL'.
    DATA:   T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
            T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
            T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            W_CNT TYPE I,
            W_SENT_ALL(1) TYPE C,
            W_DOC_DATA LIKE SODOCCHGI1.
    DATA : MSTR_PRINT_PARMS LIKE PRI_PARAMS,
           MC_VALID,
           P_REPID LIKE SY-REPID,
           WF_ID  LIKE TSP01-RQIDENT,
           LOC_BYTECOUNT TYPE I.
    *start-of-selection.
    MSTR_PRINT_PARMS-PDEST = 'LOCL'.
    P_REPID = SY-REPID.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
        authority= ' '
       COPIES                       = '1'
       COVER_PAGE                   = SPACE
       DATA_SET                     = SPACE
       DEPARTMENT                   = SPACE
       DESTINATION                  = 'LP01'
       EXPIRATION                   = '1'
       IMMEDIATELY                  = 'X'
       LAYOUT                       = 'X_65_132'
       MODE                         = SPACE
       NEW_LIST_ID                  = 'X'
       NO_DIALOG                    = 'X'
       USER                         = SY-UNAME
    IMPORTING
       OUT_PARAMETERS               = MSTR_PRINT_PARMS
       VALID                        = MC_VALID
    EXCEPTIONS
       ARCHIVE_INFO_NOT_FOUND       = 1
       INVALID_PRINT_PARAMS         = 2
       INVALID_ARCHIVE_PARAMS       = 3
       OTHERS                       = 4.
         SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                          SPOOL PARAMETERS MSTR_PRINT_PARMS.
                          AND RETURN.
    NEW-PAGE PRINT ON NO DIALOG PARAMETERS
    MSTR_PRINT_PARMS.
    perform data.
    NEW-PAGE PRINT OFF. "This marks the end of the screen for which the
    *SPOOL NO WAS GENERATED.
    WF_ID = SY-SPONO.
    *converting spool to pdf
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
         EXPORTING
              SRC_SPOOLID              = WF_ID  "SPOOL NUMBER
              NO_DIALOG                = SPACE
              PDF_DESTINATION          = 'X'
         IMPORTING
              PDF_BYTECOUNT =
                 LOC_BYTECOUNT "NUMBER OF BYTES TRANSFERRED
         TABLES
              PDF                      = INT_PDF  "TABLE FOR PDF REPORT
         EXCEPTIONS
              ERR_NO_ABAP_SPOOLJOB     = 1
              ERR_NO_SPOOLJOB          = 2
              ERR_NO_PERMISSION        = 3
              ERR_CONV_NOT_POSSIBLE    = 4
              ERR_BAD_DESTDEVICE       = 5
              USER_CANCELLED           = 6
              ERR_SPOOLERROR           = 7
              ERR_TEMSEERROR           = 8
              ERR_BTCJOB_OPEN_FAILED   = 9
              ERR_BTCJOB_SUBMIT_FAILED = 10
              ERR_BTCJOB_CLOSE_FAILED  = 11
              OTHERS                   = 12.
    *CALL FUNCTION 'DOWNLOAD'
    *EXPORTING
    *bin_filesize = loc_bytecount "NO. OF BYTES
    *filename = 'C:/EMAILPDF.PDF'
    *filetype = 'BIN'
    **IMPORTING
    **act_filename = loc_filename
    *TABLES
    *data_tab = int_pdf.
    IF P_DELSPL EQ 'X'.
      PERFORM DELETE_SPOOL.
    ENDIF.
    Transfer the 132-long strings to 255-long strings
    LOOP AT INT_PDF.
      TRANSLATE INT_PDF USING ' ~'.
      CONCATENATE GD_BUFFER INT_PDF INTO GD_BUFFER.
    ENDLOOP.
    TRANSLATE GD_BUFFER USING '~ '.
    DO.
      IT_MESS_ATT = GD_BUFFER.
      APPEND IT_MESS_ATT.
      SHIFT GD_BUFFER LEFT BY 255 PLACES.
      IF GD_BUFFER IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    DESCRIBE TABLE IT_MESS_ATT LINES GD_RECSIZE.
    CHECK GD_RECSIZE > 0.
    PERFORM SENDMAIL USING P_EMAIL..
    *&      Form  sendmail
          text
    -->  p1        text
    <--  p2        text
    FORM SENDMAIL USING P_EMAIL.
      CHECK NOT ( P_EMAIL IS INITIAL ).
      REFRESH IT_MESS_BOD.
    Default subject matter
      GD_SUBJECT         = 'Subject'.
      GD_ATTACHMENT_DESC = 'IDOC LIST'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      IT_MESS_BOD        = 'List Of Failed Idocs'.
      APPEND IT_MESS_BOD.
      IT_MESS_BOD        = 'List Of Failed Idocs'.
      APPEND IT_MESS_BOD.
    If no sender specified - default blank
      IF P_SENDER EQ SPACE.
        GD_SENDER_TYPE  = SPACE.
      ELSE.
        GD_SENDER_TYPE  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                   TABLES IT_MESS_BOD
                                          IT_MESS_ATT
                                    USING P_EMAIL
                                          'Document attachment'
                                          'PDF'
                                          GD_ATTACHMENT_NAME
                                          GD_ATTACHMENT_DESC
                                          P_SENDER
                                          GD_SENDER_TYPE
                                 CHANGING GD_ERROR
                                          GD_RECIEVER.
    ENDFORM.                    " sendmail
    *&      Form  DELETE_SPOOL
          text
    -->  p1        text
    <--  p2        text
    FORM DELETE_SPOOL.
      DATA: LD_SPOOL_NR TYPE TSP01_SP0R-RQID_CHAR.
      LD_SPOOL_NR = WF_ID.   "GD_SPOOL_NR.
      CHECK P_DELSPL <> C_NO.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                SPOOLID = LD_SPOOL_NR.
    ENDFORM.                    " DELETE_SPOOL
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          text
         -->P_IT_MESS_BOD  text
         -->P_IT_MESS_ATT  text
         -->P_P_EMAIL  text
         -->P_0846   text
         -->P_0847   text
         -->P_GD_ATTACHMENT_NAME  text
         -->P_GD_ATTACHMENT_DESC  text
         -->P_P_SENDER  text
         -->P_GD_SENDER_TYPE  text
         <--P_GD_ERROR  text
         <--P_GD_RECIEVER  text
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES   IT_MESSAGE
                                              IT_ATTACH
                                        USING P_EMAIL
                                              P_MTITLE
                                              P_FORMAT
                                              P_FILENAME
                                              P_ATTDESCRIPTION
                                              P_SENDER_ADDRESS
                                              P_SENDER_ADDRES_TYPE
                                     CHANGING P_ERROR
                                              P_RECIEVER.
      DATA: LD_ERROR    TYPE SY-SUBRC,
             LD_RECIEVER TYPE SY-SUBRC,
             LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
             LD_EMAIL LIKE  SOMLRECI1-RECEIVER,
             LD_FORMAT TYPE  SO_OBJ_TP ,
             LD_ATTDESCRIPTION TYPE  SO_OBJ_NAM ,
             LD_ATTFILENAME TYPE  SO_OBJ_DES ,
             LD_SENDER_ADDRESS LIKE  SOEXTRECI1-RECEIVER,
             LD_SENDER_ADDRESS_TYPE LIKE  SOEXTRECI1-ADR_TYP,
             LD_RECEIVER LIKE  SY-SUBRC.
      DATA:   T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
              T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
              T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
              T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
              T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
              W_CNT TYPE I,
              W_SENT_ALL(1) TYPE C,
              W_DOC_DATA LIKE SODOCCHGI1.
      LD_EMAIL   = P_EMAIL.
      LD_MTITLE = P_MTITLE.
      LD_FORMAT              = P_FORMAT.
      LD_ATTDESCRIPTION      = P_ATTDESCRIPTION.
      LD_ATTFILENAME         = P_FILENAME.
      LD_SENDER_ADDRESS      = P_SENDER.
      LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
    Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME  = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
      W_DOC_DATA-SENSITIVTY = 'F'.
    Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
      W_DOC_DATA-OBJ_LANGU  = SY-LANGU.
      W_DOC_DATA-OBJ_NAME   = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR  = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = IT_ATTACH[].
    Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    Create attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM   = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE   =  LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR  =  LD_ATTDESCRIPTION.
      T_PACKING_LIST-OBJ_NAME   =  LD_ATTFILENAME.
      T_PACKING_LIST-DOC_SIZE   =  T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
    Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = p_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
      T_RECEIVERS-NOTIF_DEL = 'X'.
      T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    W_SENT_ALL = 'X'.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = W_DOC_DATA
                PUT_IN_OUTBOX              = 'X'
               SENDER_ADDRESS             = LD_SENDER_ADDRESS
               SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
                COMMIT_WORK                = 'X'
           IMPORTING
                SENT_TO_ALL                = W_SENT_ALL
           TABLES
                PACKING_LIST               = T_PACKING_LIST
                object_header              = objhead
                CONTENTS_BIN               = T_ATTACHMENT
                CONTENTS_TXT               = IT_MESSAGE
                RECEIVERS                  = T_RECEIVERS
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
      IF SY-SUBRC NE 0.
        MESSAGE E000 WITH 'Error occurred while sending'.
      ELSE.
        MESSAGE I000 WITH 'The document was sent'.
      ENDIF.
    ENDFORM.                    " SEND_FILE_AS_EMAIL_ATTACHMENT
    *&      Form  data
          text
    -->  p1        text
    <--  p2        text
    FORM data.
    SELECT SNDPRN
             DOCNUM
             IDOCTP
             MESTYP
             DIRECT
             CREDAT
             STATUS
             FROM EDIDC
             INTO CORRESPONDING FIELDS
             OF TABLE TB_EDIDC
             WHERE STATUS = P_STATUS
             AND MESTYP IN S_MESTYP
             AND DIRECT IN S_DIRECT
             AND CREDAT IN S_CREDAT.
    SELECT KUNNR
           INPNR
           FROM EDPAR
           INTO CORRESPONDING FIELDS
           OF TABLE TB_EDPAR
           FOR ALL ENTRIES IN TB_EDIDC
           WHERE KUNNR = TB_EDIDC-SNDPRN.
    SELECT KUNNR
           ADRNR
           FROM KNA1
           INTO CORRESPONDING FIELDS
           OF TABLE TB_KNA1
           FOR ALL ENTRIES IN TB_EDPAR
           WHERE KUNNR = TB_EDPAR-INPNR.
    SELECT ADDRNUMBER
           BUILDING
           FROM ADRC
           INTO CORRESPONDING FIELDS
           OF TABLE TB_ADRC
           FOR ALL ENTRIES IN TB_KNA1
           WHERE ADDRNUMBER = TB_KNA1-ADRNR.
    LOOP AT TB_EDIDC WHERE STATUS = P_STATUS
                     AND MESTYP IN S_MESTYP
                     AND DIRECT IN S_DIRECT
                     AND CREDAT IN S_CREDAT.
      TB_ED-SNDPRN = TB_EDIDC-SNDPRN.
      TB_ED-DOCNUM = TB_EDIDC-DOCNUM.
      TB_ED-IDOCTP = TB_EDIDC-IDOCTP.
      TB_ED-MESTYP = TB_EDIDC-MESTYP.
      TB_ED-DIRECT = TB_EDIDC-DIRECT.
      TB_ED-CREDAT = TB_EDIDC-CREDAT.
      TB_ED-STATUS = TB_EDIDC-STATUS.
      READ TABLE TB_EDPAR WITH KEY KUNNR = TB_EDIDC-SNDPRN.
      READ TABLE TB_KNA1 WITH KEY KUNNR = TB_EDPAR-INPNR.
      READ TABLE TB_ADRC WITH KEY ADDRNUMBER = TB_KNA1-ADRNR.
      TB_ED-LOC = TB_ADRC-BUILDING.
      APPEND TB_ED.
    ENDLOOP.
    WRITE :/02 'CustomerNo',
            15 'Location Code',
            30 'Idoc Number',
            55 'Basic Type',
            70 'Message Type',
            95 'Direction',
            110 'Received Date',
            130 'Status'.
    ULINE.
    LOOP AT TB_ED.
      WRITE :/02 TB_ED-SNDPRN,
              15 TB_ED-LOC,
              30 TB_ED-DOCNUM,
              55 TB_ED-IDOCTP,
              70 TB_ED-MESTYP,
              95 TB_ED-DIRECT,
              110 TB_ED-CREDAT,
              130 TB_ED-STATUS.
    ENDLOOP.
    ENDFORM.                    " data
    Kindly help me in solving the issue.
    Thanks in advance.
    Suki.

    Hi,
    Check in transaction SCOT. If your mail is in error status in SCOT, you can assure that there is no problem with your code. If your message has not reached till SCOT, then the problem will be with the code.
    If the mail is there in scot with error status tell the BASIS to configure it. I feel this could be the problem.
    Regards,
    Renjith Michael.

Maybe you are looking for

  • Unable to open raw files from nikon 7100 in Adobe Elements 10 ?

    I can't open raw files from my new Nikon 7100 in Photoshop Elements 10. I was able to do in with raw files from my Nikon D7000.

  • Release of proccess order with 'BAPI_PROCORD_RELEASE'

    I am trying to release a proccess order via the following method, by calling function odule 'BAPI_PROCORD_RELEASE'. in debug mode it works, and in runtime mode it fails to release. Can sombody help. METHOD release.   DATA lt_ordnum TYPE TABLE OF bapi

  • SRM 7.0 for two envelope bidding

    Dear SRM gurus, Am new to SRM. My client is implementing SRM 7.0 for limited tenders in which two-envelope bidding is involved. PR, PO and all other flollow-on documents will be created in ECC 6.0. I have activated business function SRM_Sourcing_1 an

  • What's wrong with my mini?

    i can't figure out wht's wrong with this stupid thing! it was working fine when i was listening to it yesturday until it suddenly froze and turned off. now when i press MENU to turn it on, it makes huming noises, the apple comes up, and a minute late

  • Run time error in all standard reports

    Hi Gurus I got a run time error in all standard reports and error as below. Unable to fulfil request for 8296200 bytes of storage space.                                                                                What happened?