Skip to main content
Solved

Outbound Integration - CSV file creation

  • September 22, 2022
  • 7 replies
  • 439 views

Forum|alt.badge.img+4

Hello All,

 

I have a requirement of creating CSV file in IFS 10 and sending it to external services .

I need to send the file using SFTP connector(integration)

Does anybody have an Idea on how to create a csv file and send it through Clob variable in PLSQL_Server_Api. Any sample code would help.

 

Regards,

Thej

Best answer by heibde

Hi,

 

it’s extremly simple to send csv files in Apps 10:

  1. define a variable cvs_ of datatype CLOB and fill it with the content of the csv file.
  2. call Plsqlap_Server_API.Post_Outbound_BizAPI(bizapi_name_ => '', xml_ => csv_, sender_ => 'IFS', receiver_ => '<any value for identifying it in routing condition, e, g. MY_CSV>');

 

That’s all.

 

Best regards

Heinz

View original
Did this topic help you find an answer to your question?

7 replies

Forum|alt.badge.img+9
  • Hero (Employee)
  • 80 replies
  • Answer
  • September 26, 2022

Hi,

 

it’s extremly simple to send csv files in Apps 10:

  1. define a variable cvs_ of datatype CLOB and fill it with the content of the csv file.
  2. call Plsqlap_Server_API.Post_Outbound_BizAPI(bizapi_name_ => '', xml_ => csv_, sender_ => 'IFS', receiver_ => '<any value for identifying it in routing condition, e, g. MY_CSV>');

 

That’s all.

 

Best regards

Heinz


Forum|alt.badge.img+4
  • Author
  • 9 replies
  • September 26, 2022

Thank you for Sharing Heinz .. I will give it a try .


Malan Jayanka
Sidekick (Employee)
Forum|alt.badge.img+9
  • Sidekick (Employee)
  • 35 replies
  • April 1, 2025

Hi ​@Thejaswini 

Did you generate the csv file with this option?
I used the same mechanism in APPS10, but it is getting below error

Error while preparing input data. 
Caused by: ifs.fnd.base.SystemException: Invalid xml format

 



I tried with below code.

 PLSQLAP_Server_API.Post_Outbound_BizAPI(
      bizapi_name_  => null,
      xml_   => csv_clob, 
      sender_ => 'IFS',
      message_type_ => 'MALJLK');

Did I miss anything??


Forum|alt.badge.img+4
  • Author
  • 9 replies
  • April 2, 2025

Hello Malan,
Yes, I was able to generate CSV and your code looks good.

How did you structure your Clop variable?

Regards

Thej


Malan Jayanka
Sidekick (Employee)
Forum|alt.badge.img+9
  • Sidekick (Employee)
  • 35 replies
  • April 2, 2025

Hi ​@Thejaswini 

I used the attached sample for testing.
It has the clob variable structure.


Forum|alt.badge.img+4
  • Author
  • 9 replies
  • April 2, 2025

I have attached the Sample code I have used.

Hope this helps.

 

 


Malan Jayanka
Sidekick (Employee)
Forum|alt.badge.img+9
  • Sidekick (Employee)
  • 35 replies
  • April 2, 2025

Hi ​@Thejaswini 

Thank you for providing the sample file. I have identified the root cause of the issue.

Initially, I implemented the solution in the APPS10 UPD0 version, where the CSV file format was not supported. I then reimplemented the same solution in the APPS10 UPD21 environment, and the CSV file was successfully transferred without any issues.

It is possible that the CSV file format was not supported in earlier UPD versions.

/Malan Jayanka


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings