cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SAP PI and a SP with CLOB as a Parameter In

Former Member
0 Kudos

I have these SP:

procedure ws004_facturacion(

  p_tipo_id             in  tp24_ventas.cp24_tipo_id_contacto%type--varchar2

  p_numero_id           in  tp24_ventas.cp24_numero_id_contacto%type--mumber

  p_descripcion         in  tp24_ventas.cp24_descripcion%type--varchar2

  p_cod_puesto          in  varchar2,

  p_usuario             in  tp24_ventas.cp24_usuario_creacion%type, --varchar2

  p_jorcaj              in  tp24_ventas.cp24_cp08_jorcaj_codigo%type, --number

  p_preliquidacion      in  clob,

  p_medios_pago         in  clob,

  p_fact                out clob)

 

p_preliquidacion    

<pretarif>

  <pretarif_r>

   < tipo_producto>B</tipo_producto>

   < codigo>10</codigo>

   < valor>25500</valor>

   < porcentaje_iva>0</porcentaje_iva>

   < descripcion>PARTICULAR</descripcion>

   < cat_codigo>D</cat_codigo>

   < tipo_edad>N</tipo_edad>

   < seguro>0</seguro>

   < sub_total>25500</sub_total>

  </pretarif_r>

  <pretarif_r>

                <tipo_producto>B</tipo_producto>

                <codigo>10</codigo>

                <valor>25500</valor>

                <porcentaje_iva>0</porcentaje_iva>

                <descripcion>PARTICULAR</descripcion>

                <cat_codigo>D</cat_codigo>

                <tipo_edad>N</tipo_edad>

                <seguro>0</seguro>

                <sub_total>25500</sub_total>

  </pretarif_r>

</pretarif>

 

p_medios_pago       

<ROWSET>

  <ROW>

   < valor>10500</valor>

   < id_mpago>1</id_mpago>

   < id_banco></id_banco>

   < nro_doc></nro_doc>

    <nro_autoriz></nro_autoriz>

   < nro_cta_cheque></nro_cta_cheque>

  </ROW>

  <ROW>

   < valor>14500</valor>

   < id_mpago>2</id_mpago>

   < id_banco>123</id_banco>

   < nro_doc>4567890</nro_doc>

   < nro_autoriz>12345</nro_autoriz>

   < nro_cta_cheque>67890</nro_cta_cheque>

  </ROW>

</ROWSET>

 

I created the Interface in SAP PI as:

<yq1:SoapFacturacionReq_mt xmlns:yq1="http://Colsubsidio_Factura_WS004.com/soap2jdbc/sync" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

- <Request>
<p_tipo_id>1</p_tipo_id>
<p_numero_id>1</p_numero_id>
<p_descripcion>1</p_descripcion>
<p_cod_puesto>1</p_cod_puesto>
<p_usuario>1</p_usuario>
<p_jorcaj>1</p_jorcaj>
- <p_preliquidacion>
- <pretarif_r>
<tipo_producto>1</tipo_producto>
<codigo>1</codigo>
<valor>1</valor>
<porcentaje_iva>1</porcentaje_iva>
<descripcion>1</descripcion>
<cat_codigo>1</cat_codigo>
<tipo_edad>1</tipo_edad>
<seguro>1</seguro>
<sub_total>1</sub_total>
</pretarif_r>
</p_preliquidacion>
- <p_medios_pago>
- <ROW>
<valor>1</valor>
<id_mpago>1</id_mpago>
<id_banco>1</id_banco>
<nro_doc>1</nro_doc>
<nro_autoriz>1</nro_autoriz>
<nro_cta_cheque>1</nro_cta_cheque>
</ROW>
</p_medios_pago>
</Request>
</yq1:SoapFacturacionReq_mt>
And I receive in SAP PI monitor the follow Error:
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException:  Error processing request in sax parser: Error when executing statement for  table/stored proc. 'ws004_facturacion' (structure 'Statement'):  java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error ORA-06512: at  "SYS.XMLTYPE", line 254 ORA-06512: at "PISCILAGO.WS004_FACTURACION", line 41  ORA-06512: at line 1</SAP:AdditionalText>
can you help me to search the solution ?

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

It is type mismatch, take payload from moni and share with DB guys to debug, it look problem with test data,if possible test with real data and see results.

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Please refer this link

http://nimishgarg.blogspot.com/2012/08/ora-06512-at-line-num.html

"The ORA-06512 error itself does not indicate the actual error. It normally indicates the line number at which the oracle PL/SQL code has caused an error. There will be another main error occurred in your process and that error happened in the line number as mentioned in ORA-06512 message description."

The above error is not due to structure mismatch or problem in PI side. The error occurs at db level. Also check what outgoing data from PI causes in oracle side.   Take help from DBA.

Former Member
0 Kudos

Thanks, the DBA group found the solution.

Bhargavakrishna
Active Contributor
0 Kudos

Hi Leonardo,

Go through the below links and make sure that, you have followed all the steps

/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

Also Try this

http://www.flickr.com/photo_zoom.gne?id=1449322648&size=o

Regards

Bhargava krishna