on 02-02-2016 5:04 AM
Dear All
I have been trying to search for the SAP PI /XI File to RFC scenario (.DAT File).
My dat file contains data in below format
31201602020838000100000001760000
31201602020838000100000021990000
31201602020838000100000030140000
31201602020838000100000021000000
31201602020838000100000042030000
31201602020838000100000036730000
31201602020838000100000042550000
31201602020839000100000020750000
31201602020839000100000020840000
which can be read n below attributes and some of the attributes will be sent to the BAPI (RFC).
31 | 2012 | 07 | 16 | 1209 | 00 | 01 | 0000023036 | 00 | 01 |
Limton-Code | Year | Month | Day | Time | Shift code | Status(In/ Out) | EmployeeID | Management Code | Terminal No |
Can anyone guide me how to achieve this in SAP PI.
I need to develop a scenario in which PI scedules a file read (dynamic file name everyday) and send it to SAP ECC ( BAPI_CC1_UPLOAD_TIMEEVENT).
Your support will be approeciated.
Thanks & Regards
Sidra Hasan
Hi Hasan,
If you are getting same number of digits in one line every time then yo can go for sub string to break the data into small parts.
Example:31201602020838000100000001760000 - total 32 Digits
31 2016 02 02 0838 00 01 0000000176 00 00
Regards,
Bhavin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hasan,
A lot of things are wrong in this
Document name must be the sender Message type name which you created in ESR
Provide document namespace too- which is the namespace of message type provided above
and your recordset structure has substr*, it should be substr,* ... you forgot coma.
and yes endSeparator is missing.. substr.endSeparator='nl'
Regards,
Vikas
Hi Hasan,
It is not reading the file.
Please check whether file is there in source directory or not and also check for permissions of file if you are placing via filezilla and winscp.
Do one more thing- Keep the recordset Name as blank for time being.. don't put Record in the recordset Name. keep it blank
Regards,
Vikas
Hi Hassan,
Regards,
Praveen.
Hi Hasan,
I don't know why this is happening. You channels are not even showing any logs of reading the files.
You have to test it in the same manner place it at NFS location in PI server and then it will be picked up.
Tell me one thing how are you placing your file on the PI server? Remotely login to the server or via winscp or via filezilla?
Regards,
Vikas
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hasan,
For this scenario, pick all the files and apply File Content Conversion with separation as fieldFixedLength
so the length will be 2,4,2,2,4,2 and so on...
After FCC just normal map to the BAPI.
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hasan,
You can handle this in sender channel only using fixedlength
check this link :
Basic File Adapter Content Conversion - Process Integration - SCN Wiki
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.