Let me explain this with a scenario. Customer has requested to add Field ZBIDAT to BI Cube ZSD_C01. This field needs to be extracted from R/3 table VBAK field ZDATE. This cube is loaded using the standard extractor 2lis_11_vascl, but this extractor does not have ZDATE field in it.
In R/3 this field ZDATE in table VBAK is populated while creating or changing the sales order using the Standard sales order user Exit. Being this is a custom Field in table VBAK it cannot be pulled into Standard extractor 2lis_11_vascl using LBWE.
We need to add this field to the extract structure and use the SAP extraction user exit to populate the values and then map this to the new field ZBIDAT in Cube ZSD_C01.
There are some Steps which need to be followed before making Enhancements to the standard LO extractors. Click HERE to check.
Goto RSA6 Navigate to extract structure 2LIS_11_VASCL. On Double click on this Extract Structure.
Now Double Click on ExtractStruct ‘MC11VA0SCL’ to append the new fields.
Now Hit on Append Structure and create a new append structure called ‘ZBIAPPEND’ (Any name) as shown in below screen.
Add/Create fields to the structure.
Save and Activate the append structure. Now again come back to RSA6 and now get into changed mode of the Data source. Here you will find the newly created field. Make sure to uncheck the ‘Hide Field’ and select ‘Field Only’ and generate the data source using the menu button Datasource Genarate.
Now you need to write logic to populate this newly created field.
You do this in the SAP user Exit.
Go to Program ZXRSAU01 ( In function module EXIT_SAPLRSAP_002) write below logic to populate the values.
You can check the new field values in RSA3 t-code. Enter the data source name and hit on Execute.
Once the records are extracted you need to hit on Display List and then select any single packet to list the values. Below is the screen showing the values populated in ZDATE.
Thanks,
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,
ReplyDeleteI tried the same method as you gave for Date field, I am getting a short dump.
When we run RSA3, it end up with short dump CONNE_IMPORT_WRONG_COMP_TYPE
It said that The data type is "C" in the dataset, but "D" in the program.
If I extract the data from BW also end up with job termination with the
same short dump
Please suggest.
Thanks,
You may have wrong component type. See column component type in screen shot where he added field to append structure, and check that your component type matches the new field's data type, etc. To be sure on that, go to source table in se12 and check how the field is defined.
ReplyDelete