Documente Academic
Documente Profesional
Documente Cultură
Applies to:
SAP 7.0 BI versions. For more information, visit the Business Intelligence Homepage
Summary
This paper explains about the removing of invalid characters for particular infoobject, which is when the entry in the flat file in a particular column for that particular infoobject contains invalid or Chinese characters then how to remove those particular entries from the PSA table using Routine for that particular infoobject. Author: Gaurav Paul
Author Bio
Gaurav Paul is working as a SAP BI Consultant having 1.3 years of experience. He has worked on Development projects for multiple clients.
Table of Contents
Introduction: ........................................................................................................................................................3 Step by Step Solution......................................................................................................................................3 Related Content..................................................................................................................................................9 Disclaimer and Liability Notice..........................................................................................................................10
Introduction:
This article describes about the basic steps about the removing of invalid characters for particular infoobject, which is when the entry in the flat file in a particular column for that particular infoobject contains invalid or Chinese characters then how to remove those particular entries from the PSA (Persistent Staging Area) table using Routine for that particular infoobject. That is it will create spaces for that particular invalid character. Step by Step Solution Here initially I am going to show you the flat file structure that has errors in flat file for a particular infoobject ZAREA.
Here you can see that column ZAREA contains invalid characters and our motto is to remove those invalid characters with blank spaces so that values for that particular column can be successfully updated in our infoprovider.
So for this I create a DSO in which Ill be loading this flat file without these invalid characters.
Then we create a data source for this DSO and then create infopackage and schedule that package and load the data till PSA.
Then we create transformation for this DSO. In the transformation, while mapping the fields from source to target we give direct assignment from source to target for all the fields except for ZAREA.
For ZAREA, we write a routine that is right click on ZAREA click on rule details.
In the rule type select routine from dropdown and another window opens.
Write the following routine in that window for that particular ZAREA.
Check for any errors in this routine and if no errors are found then save this routine and click on transfer values. This routine basically removes all the invalid characters and fills with blank spaces replacing those chars. Save and activate your transformation.
Then right click and create Data Transfer Process. Then load the data from PSA into DSO using DTP. And finally when you activate the request and see the data yourself in DSO you will find that the invalid characters have been removed from that particular column ZAREA and data has been loaded successfully.
Finally you see that in ZAREA field, from each value those invalid characters have been truncated and values have been updated successfully.
Related Content
http://www.help.sap.com https://www.sdn.sap.com/irj/scn/thread?messageID=6695387#6695387 https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4059