Many times we required to change the data while loading it to the data target and sometimes need to validate the data and then update them into the target. For this SAP has provided different options in Transformation.
1. Start routine.
2. Field Routine.
3. End Routine.
The idea of writing the routine depends on the requirement. For e.g. if you want to delete records based on some condition then this requirement can be handled at all the places but due to performance reasons it is always better to handle it in the Start routine.
Let me explain how to use Start routine with Scenario
The requirement is to load sales order for only those customers where Industry sector is ‘AFS’ using data source 2LIS_11_VAITM. The industry sector information is not available from data source 2LIS_11_VAITM (Data source to load sales order item data). But, we need to read this information from customer master data as Industry sector is one of the attribute of 0customer.
First create the transformation and hit on Start Routine to open the source code.
Identify the field required from the attribute tab of the info-object (in our case it is 0industry of 0customer)
Different tables of master data info objects are displayed in Master data/Text tab of 0customer info object. We can use /BI0/PCUSTOMER to fetch the industry information out of 0customer info object. Double click on this table will open the table definition in next Screen.
Now identify the field required. Here in our case it is INDUSTRY.
Now we have all the information required to write a start routine. Below is the screen shot showing the routine.
You can fill the monitor entries in case of any errors to trace and fix them.
By
Chindam Praveen Kumar.
Blue Marlin systems.
www.bluemarlinsys.com/bi
For a Excellent Online Resource for SAP EP and SAP Web Dynpro ABAP, Visit Learn SAP Online
ReplyDeleteSAP EP - Standard Portal Services
Portal Eventing and Navigation
Portal Look and Feel - Branding the Portal
How to Develop Portal Applications
SAP EP-Developing portal content and assigning permissions
SAP EP-Role maintenance
SAP EP-How to make Enterprise Portal highly available
SAP Material Management Introduction
SAP EP-J2EE architechture
and many more...
Basics of Web Dynpro ABAP
ABAP Data Types and Objects
ABAP Statements
WD4A - Topics to be covered in the upcoming posts
WD4A - Introduction
WDA - SAP Logon Procedures
WD4A-Format the Values appearing on value Axis of Business Graphic
WD4A-Navigate from one view to another and back to previous view
WD4A - How to Calculate next 12 months from current month in web dynpro ABAP
WD4A - Validate Inputs in a web dynpro ABAP Application
Web Dynpro ABAP application
and many more...
Hi,
ReplyDeleteGood scenario for start routine.. but above ABAP code is not visible,if possible plz provide start routine code in clear.
Regards,
Naresh
just click on that image then u can see the code
DeleteA great website with interesting and unique material what else would you need. News Update
ReplyDelete