on 03-26-2015 10:19 AM
Hi experts,
My requirement is need to read only the first line or record of incoming CSV file in SAP PI 7.1
Note: first record should be header in CSV file. (It means i need to read only the header record only from the incoming CSV file)
How I can achive this?
Is it possible to achive this by using FCC or UDF?
Please revert your suggestions and solutions for this ASAP.
Thanks,
Jeevitha G
Read the complete file and during the mapping just process first record values.
You can use copy value[0] to access first line values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeevitha,
If the header is in the first line you can copy this line and to rewrite the file or in a new one in a linux script and to execute this before message processing (SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki). Check this linux forum http://nixcraft.com/showthread.php/13389-Read-First-line-of-a-file
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much for your quick reply Hareesh.
Is there any possiblity to do this before it comes to mapping?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.