Create Unicode file for SAP Bapi RFM
Posted: Tue Nov 02, 2010 8:38 pm
Hello,
I have created a DataStage job to extract data from SAP R/3 using Functional Module (RFM) for that I have used SAP BAPI stage. Functional Module has import parameters to pass. As per the SAP Stage guide line, I can pass parameters from input file (Path of the file specified within the stage).
File has to be Unicode file (Because we have SAP system Unicode and DataStage too). for now, I have created flat file in Windows (using notepad and saved as Unicode) and put it Unix and it is working fine. i.e. I am getting data as expected.
But actual requirement is I should be able to pass parameters during run time to extract data. so My idea is to create required file using those run time parameters and use that file for BAPI stage. but now, question is that file has to be Unicode.
So My question is. How can I created Unicode file in DataStage?
Our DataStage Environment is NLS enabled. I have tried with to create file with UTF-8 as NLS map but it not working.
Or any other idea to pass required parameters to BAPI Stage?
Thanks
I have created a DataStage job to extract data from SAP R/3 using Functional Module (RFM) for that I have used SAP BAPI stage. Functional Module has import parameters to pass. As per the SAP Stage guide line, I can pass parameters from input file (Path of the file specified within the stage).
File has to be Unicode file (Because we have SAP system Unicode and DataStage too). for now, I have created flat file in Windows (using notepad and saved as Unicode) and put it Unix and it is working fine. i.e. I am getting data as expected.
But actual requirement is I should be able to pass parameters during run time to extract data. so My idea is to create required file using those run time parameters and use that file for BAPI stage. but now, question is that file has to be Unicode.
So My question is. How can I created Unicode file in DataStage?
Our DataStage Environment is NLS enabled. I have tried with to create file with UTF-8 as NLS map but it not working.
Or any other idea to pass required parameters to BAPI Stage?
Thanks