Enhancing a Standard DataSource
Hi Everyone,
Is there any Resrtiction for enahncing a DataSource? I am enhancing my Standard DataSource 2LIS_11_VAITM with around 12-15 fields.Does the affect the Performance of the Syste. What is the Disadvantages if I do SO. I need to enhance because I need to add Fields from ZTables.
Thanks and Regards,
Samir
Hi Surender,
What will be the Text DataSource for Remarks field (VBBP-Z006) . I could not identify the Text Datasource for this field.Currently, I am loading, Customer, Plant, Material, Customer Text, Vendor, country, Region Text DataSources.
But I am not able to identify whether Remarks Field will be getting the Text or Not.Also , I think i need to have Remarks as a Field in DataSource with some Key Value then only it gets theTexts from Master Data. I mean, For Example, For Material, We have to Add 0Material in the Cube and then it gets theTexts from MAterial Text DataSource when we execute the Reports.
So , In this case, What should be my Approach. Do I need to maintain Remarks as afield in my Cube. Or how should be my approach so that VBBP-Z006(REMARKS- Text ID) is loaded into BI.
If I need to maintain Remarks as a field with Key Value , then how do I map it.I hope I am clear
Regards,
Samir
Similar Messages
-
Enhancement of Standard Datasource in LBWE.
Hi,
I am enhancing the standard datasource for additional fields from the extract structure in LBWE. I have selected the fields in maintenance and pushed them into the selection criteria (first column), and saved the daatsource change in a request. but to my surprise the field contents in Selection criteria and pool(Second Column) column are same as of original in R/3 Development server itself.
I have then redone the activity and then generated datasource followed by deactivation and activation of datasorce, this has collected a workbench and customization request . But when i again open the maintenance screen of the data source it is again same as of original before change.
I don't understand why this is happen.
can some one please guide me and guide how to enhance the datasource in the maintenance screen of the datasource.Hi,
Its very simple.
1. delete setup table and delta queue ( all the clients)
2. If fields can be added through lbwe maintainance then add other wise create a append structure
and exit for filling up the value for the fields..
3. change mode in data source ---> uncheck hide buttuon --> if you want data to be extracted
using newly added fields plz check selection checkbox..
4.. Thats it...
Regards,
Viren. -
Master Data Datasource Enhancement or Custom Datasource
HAI
Im implementing the BI7.0 for procurement. We need to the data for VENDOR from XK03(T-code).
In XK03 , we have some custom defined class and its charateristic values .
So if i want to use 0vendor then i need to enhance the standard datasource of 0VENDOR.
So cani enhance the standard datasource or can my abaper create a custome R/3 table and load the vendor details. Then i will create the custom datasource. And load the data into BW.
Pls tell me how to do this one.
kumarhi,
why u want take abap helper, if u want u can create ur customet table ur self go to se 11 create table and enter field what u want , and define lenth and chat type. got o rsa5 create ur data soure and replicate in be side and upload into ur data targets
u need more than 1 table u can create view got to se11 create view.
Thanking u
suneel. -
Enhancement to 0MAT_PLANT_ATTR datasource
I need to enhance 0MAT_PLANT_ATTR datasource with additional fields STPRS, PEINH from MBEW table and WAERS (currency for STPRS) from T001 table. Table T001 and MBEW table have no fields in common. So I took an indirect approach to this.I have a program for enhancing a BW DataSource in R/3. Here is the code:
types: begin of zty_waers,
bukrs type bukrs,
waers type waers,
bwkey type bwkey,
end of zty_waers.
data: zit_waers type standard table of zty_waers,
wa_waers like line of zit_waers.
DATA : it_temp type standard table of biw_marc_s,
wa_temp like line of it_temp,
S_INDEX TYPE SY-TABIX,
z_index type sy-tabix.
DATA : BEGIN OF ITAB_MBEW OCCURS 0,
MATNR TYPE MATNR,
BWKEY TYPE BWKEY,
STPRS TYPE STPRS,
PEINH type PEINH,
WAERS type WAERS,
END OF ITAB_MBEW.
data: wa_mbew like line of itab_mbew.
DATA: BEGIN OF ITAB_CEPC OCCURS 0,
PRCTR LIKE CEPC-PRCTR,
KOKRS LIKE CEPC-KOKRS,
DATBI LIKE CEPC-DATBI,
SEGMENT LIKE CEPC-SEGMENT,
END OF ITAB_CEPC.
select abukrs awaers b~bwkey into table zit_waers
from t001 as a inner join t001k as b on
abukrs = bbukrs.
IF NOT I_T_DATA[] IS INITIAL.
IT_TEMP[] = I_T_DATA[].
SELECT MATNR BWKEY STPRS PEINH FROM MBEW INTO TABLE ITAB_MBEW FOR ALL ENTRIES IN IT_TEMP
WHERE MATNR = IT_TEMP-MATNR and BWKEY = IT_TEMP-WERKS.
SELECT PRCTR KOKRS DATBI SEGMENT FROM CEPC INTO TABLE ITAB_CEPC FOR ALL ENTRIES IN IT_TEMP
WHERE PRCTR = IT_TEMP-PRCTR AND KOKRS = IT_TEMP-KOKRS AND DATBI = '99991231'.
ELSE.
EXIT.
ENDIF.
loop at itab_mbew into wa_mbew.
z_index = sy-tabix.
read table zit_waers into wa_waers with key bwkey = wa_mbew-bwkey.
if sy-subrc = 0.
wa_mbew-waers = wa_waers-waers.
endif.
modify itab_mbew from wa_mbew transporting waers.
endloop.
sort itab_mbew by matnr.
loop at i_t_data into wa_temp.
s_index = sy-tabix.
Read Table itab_mbew with key matnr = wa_temp-matnr
into wa_mbew.
if sy-subrc = 0.
wa_temp-zzstprs = wa_mbew-stprs.
wa_temp-zzwaers = wa_mbew-waers.
wa_temp-zzpeinh = wa_mbew-peinh.
endif.
Sort itab_cepc.
Read Table itab_CEPC
with key PRCTR = wa_temp-PRCTR
KOKRS = wa_temp-KOKRS
binary search.
if sy-subrc = 0.
wa_temp-ZZSEGMENT = itab_CEPC-SEGMENT.
endif.
modify i_t_data from wa_temp.
clear wa_temp.
endloop.
But when I am testing the datasource for the new fields the data is coming out wrong. For example if I run the extractor checker RSA3 for material number 10000306 and plants 1017 - 1021 i extract 2 entries and the stprs values are same for both plants
But if I run RSA3 for 1021 alone then i get another value for 1021 plant. This means the STPRS value is getting overwritten for some reason. Debugging of this code is very difficult since there is a form embedded in this program.
Can anyone tell me wht is wrong with the logic?
Thanks
DeepthiHi Deepthi,
As I see and understand your code,
the problem area could be :
sort itab_mbew by matnr. ***
Here you are sorting the table by MATNR alone, where as when actuall see that
the remaining data would be corresponding to the material only, so when sort
the table alone with MATNR probably your Plant data would get jumble..
so, try sorting the table with all the keys you are having in this table..
and read the table with the max. comibations available or possible..
you should be able to locate the record right get right data..
Hope it helps..
Cheers,
Pattan. -
ABAP code to enhance a standard data source
Hi BW experts,
I am a novice in BW and I need to append a standard datasource <b>0DAT_SRC</b> with a field <b>FLD1</b> from table <b>TABL1</b>.Extract structure: <b>EX0001</b>.
Can anybody please suggest how this can be done?I guess it requires some ABAP coding to be done in the conversion exits.
<b><i>Many,many thanks in advance!!</i></b>Following are the steps to enhance Standard Data source.
1. goto tc RSA6.
2. Select the Data Source which you want to enhance.
3. Select display Data Source (Ctr+f2)
4. Double click on the Extract structure.
5. click on the Append Structure.
6. Add the required fieds starting with ZZ*.
7. Avtivate the Append Structure.
To populate the data into this field you must have a project created to access the FM 'EXIT_SAPLRSAP_001'.
to Create Project code goto tcode: CMOD
1. Enter the Project name and click on create
2. go to components select the required function module.
EXIT_SAPLRSAP_001 for Transactional DS (RSR000
EXIT_SAPLRSAP_002 for Master DS
Goto SE37 and enter the Respective Function module (ex . EXIT_SAPLRSAP_001) and click on the include zxxxxx. then write the code to populate the extra fields added to the DS.
Sample code:
CASE i_datasource.
WHEN '2LIS_11_VAITM'.
loop at c_t_data into work_ar.
do some selections, some calculations ....
append work_ar to c_t_data. " add a new record
modify c_t_data from wa. " change the existing record
endloop.
endcase. -
Hi experts,
i have to enhance the CRM datasource with some additional fields and fill them.
so far i am succesfull in doing the below.
1. i have appended the fields to the extractstructure and also regenerated the datasource
2. and when to the BADI for Messaging Flow for writing the code.
the problem here is its giving a small popup screen in which it has few implementations given by SAP in which do i need to put the code (i am assuming that its the same as our old exit concept where we use the same exit for all transaction datasoruces just by using the case statement) so in that four which one should i use for putting the code and what others are used for.
The below are the implementations available when i execute the badi for messaging flow.
CRM_BTX_EEW_BWA
CRM_BWA_ENHANCE_EX
CRM_BWA_ORDER_1
CRM_CSDR_BWA_MFLOW
If not a big trouble i will be greatfull if somebody can give me the code sample for getting a field filled from someother table with simple logic.
thanks and regards
sreedharPls chk this link for Crm enhancement
Enhance standard data sources in CRM
BWA1 is for all standard crm datsource maintaince
rsa2 for generic datasource
BWA5 i think we use this Tcode after RSA5 activation additionally.
yes(incase of delta)
BWA7 do we have to use this tcode along with BWA1 for standard datasources also or else only for generic datasource.
irrespective of the type of dtasource,use it if you want to load delta(you need to delta enable the datasource here)
So we don't need to put the code as we traditionally do it for R/3 , if we just mapp the fields that would bring the data for these fields.
as i told in CRM we willwrite code in BADI in case you have done enhancement
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/a-c/customer%20enhancements%20and%20userexits%20in%20bw%20-%20sap%20netweaver%20%20know-how%20network%20webinar.pdf
also chk this(credit goes to the writer)
CRm enhancement:
1. Enhance Extract Structure with the required fields. (Create & include an append structure to the extract structure via transaction RSA6).
2.a) Release the fields of the append for usage. ( To do this, double click on the Datasource and remove the flags in the column 'Hide Field' for all fields of Append).
2.b) If the new fields cannot be seen in the extract structure of the transaction BWA1 then change and save the datasource, and then activate it in RSA6.
3. Define your mappings in BADI (CRM_BWA_MFLOW) to fill these fields.
Goto SPRO . Follow the path ->SAP Implementation guide ->Implementation with other mySAP components ->Data transfer to the Business Information Warehouse-> Settings for the application specific datasources (CRM)->Settings for BW adapter-> Badi :BW adapter :Enhancement of datasources in messaging flow.
4. Replicate the new Datasource to BW.
5. Expand the Communication Structure in BW.
6. Maintain transfer Rules for the new Datasource.
7. Activate the trasfer rules and perform the upload.
Refer to the SAP Note 692195 for more info ......
send ur mailid, mail u some good step by step- doc abt this.
*pls assign points,if link is useful*
Regards
CSM Reddy -
Looking for Standard datasource
Hi friends,
I need to get following fields from R3 side for one of my operational report . I am just looking that is there any Standard datasource available to extract these fields
1.ContainerType
2.Loading Port
3.Direction Code
4.LoadingYear
5.LoadingMonth
6.VoyageKey
7.VesselCode
8.Full container teus
9.Empty container teus
10.Total container teus
11.Year
12.Week
13.RouteCode
14.LoadingPlace
15.DischargeYear
16.DischargeMonth
17.Port of loading,
18Count of container
19.port of discharge
can some one suggest me how to proceed with it...,Award points guaranteed.
thanksHi,
well the provided link already gives you an idea where to get the data from. For the missing fields you should check the datasources via lbwe. Possibly the fields are already in the template structures and can be moved to the datasource or you need to enhance the datasources by yourself and do a little coding in the relevant user enhancement to get them populated.
regards
Siggi -
Standard datasource for Invoice master data
Hi ,
Can anybody please tell me , Is there any standard datasource for Invoice masterdata.
Right now in my company there are using 0FI_AP_4 datasource as an Invoice masterdata.
This Invoice masterdata is getting data from 0FI_AP_4 datasource.
But I have a requirement like I need to enhance this 0FI_AP_4 with other tables (PAYR,REUGH).
Is there any simple way to follow.Please help me.
Thanks in advance.
Pints will be rewarded.
Vamsi.Resolved
-
Hi,
is it possible to copy a standard datasource ?
If so How to do ...
T&R
Rakesh.Hi Rakesh
No standard way to Copy DataSource. But you can implement manual copy.
First Check if the DataSource is based on View or Func Module or InfoSet.
Most of the DataSource would be based on function module . So you can use the same function module to populate fields of your new data source.
Like for a FM based DataSource we need to create the structure first in this case you can create your structure from SE11.
In the extraction method put the same function module name.
But I assume when you are copying standard DataSource you also have the requirement of getting some additional fields. In that case you can use normal DS enhancement option to get the new fields.
Regards
Anindya -
Unable to extend the standard datasource 2LIS_13_VDKON
Hi
we are unable to extend the standard datasource 2LIS_13_VDKON on the
SAP by the following fields: MCKOMV-KNUMA_BO, MCKOMV-KNUMH and MCKOMV-KNUMV. We allways get the error message "End phase 002 - D0322".
best regardHi farchid,
i checked that one, but you can ignore that one.
please check the data source status is green that's it. after including that fields in the data source the status change to red. then go to data source maintenance screenselect the field selection check boxand then save it.
now the status changes to yellow.
now select inactive link against your data source in job control--status will turn as green.
now you can do the set up table fill up for that data source.
before doing the transport please make sure the following conditions. this will be displayed when your enhancing the data source.
Extract structure MC13VD0KON generated successfully, see long text
Notifications MCEX 027
Diagnosis
The extract structure was generated successfully.
Procedure
Now choose the maintenance screen of the DataSource. After that, the
status display (traffic light) jumps from red to yellow.
Please make note of the following before you transport the changed
structure MC13VD0KON into another system:
o Run the transport when the target system is not being booked.
Otherwise you will need to initialize it because documents are lost
during this time.
o None of the clients in the target system in the V3 update for the
application 13 should contain data. If you are unsure, start the V3
update of the application 13 in all clients.
o If there is still data in the central delta management of the target
system, it must be retrieved by BW before the transport takes place.
o If you have already reconstructed within this target system, it may
be that the data still exists in the reconstruction tables. After
the transport, you can no longer transfer these entries into BW. You
must delete the contents of the reconstruction tables of the
application 13 in the target system and run another reconstruction
if need be.
o If there is an update log in the target system, you cannot read the
log data of the application 13 after the transport has been run. You
can only read it again once data is booked and the last log entry
overwritten.
Use the report RMCSBWCC to display a log for the changed extract
structure in the target system, to see if any of the above problems
exist. An additional switch deletes all update logs for the application
of the selected extractor.
Please also note that you must reactivate the transfer structures when
you change the extract structure after replicating a DataSource.
hope this help you
regards
harikrishna N -
How to get data for custom feilds for standard datasource
i have extracted CRM standard datasource 0CRM_OPPT_I.
In RSA6 i slected feilds which i want to trnasfer to B Iand i also added some custom feilds.
and then i went to RSA5 and i activated datasource.then i went to RSA3and i extracted.
In rSA3 selection screen all the custom feilds are selcted.
after extraction if i go to LIST,only some of the custom feilds data is displaying remaining feilds displayed as blank data
please tel me how to get data
Thanks in advance
HPHi Hari,
Sorry for late reply.
Once you have done the proper mapping by using the transaction BWA1
you need to write the BADI code which can be accesible from the following path:
Go to transaction SPRO
SAP Implementation guide ->Integration with other mySAP components ->Data transfer to the Business Information Warehouse->
Settings for the application specific datasources (CRM) ->
Settings for BW adapter->Execute Badi :BW adapter :Enhancement of datasources in messaging flow.
Select you the datasource enhancement implementation it will open the BADI Implementation..
go To interface tab and double click on the method..it takes you to the ABAP screen where you need to write the logic to populate the custom fields..
Please feel free to mail back if you have any quries.
All the Best..
Thanks
SK -
Require Standard DataSources for Purchase Orders
Hi,
Please provide me the standard datasources for purchase orders to get the data updated automatically in a BI System.
I have to display report containing the purchase orders details of each day.
Regards
Sunil KumarHi,
Following link will give you complete details of purchase order deports and data sources.
http://help.sap.com/saphelp_nw70/helpdata/en/df/cfb839f6a7a307e10000000a11402f/frameset.htm
Regards,
Vishnu -
Enhancing a standard component - Table Cell Variant
Hi Forum,
I am trying to enhance the standard WD component /SAPSRM/WDC_UI_SC_DOTC_BD view V_SC_DOTC_BASIC in SRM 7.0 .
The requierment that for certain condition the Quantity cell in a row should be read only.
Carried out the following steps:
1. Created an enhancement
2. In the standard table column ITEMS_TABLE_QUANTITY [Columns] , removed the standard inputfield.
3. Added two cell variants ZITEMS_TABLE_QUANTITY_CV1 [CellVariants] and ZITEMS_TABLE_QUANTITY_CV2 [CellVariants] first one contans a text view and second contains inputfield. Variant key for first one is DISPLAY and for second one is EDITABLE.
4. Enhanced the method WDDOMODIFYVIEW with below code:
**Read the ITEMS table
DATA lo_nd_items TYPE REF TO if_wd_context_node.
DATA lt_items TYPE wd_this->elements_items.
DATA ls_item LIKE LINE OF lt_items.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_disable_quantity TYPE wd_this->element_context-enable_quantity.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
** navigate from <CONTEXT> to <ITEMS> via lead selection
lo_nd_items = wd_context->path_get_node( path = `COMP_CONTEXT.ITEMS` ).
lo_nd_items->get_static_attributes_table( IMPORTING table = lt_items ).
lr_table_column ?= view->get_element( 'ITEMS_TABLE_QUANTITY' ).
LOOP AT lt_items INTO ls_item .
IF ls_item-catalogid EQ 'VEP_Staples_D0'.
lr_table_column->set_selected_cell_variant( value = 'DISPLAY' ).
ELSE.
lr_table_column->set_selected_cell_variant( value = 'EDITABLE' ).
ENDIF.
ENDLOOP.
But even after the condition is true ALL cell i.e. the complete column is DISABLED or when the condition is false the COMPLETE column is enabled instead of enabling disabling ONLY THE SPECIFIC CELL.
Is there a problem with the code in WDDOMODIFYVIEW or something else?
Thanks,
AnubhavHi Saravanan
Under ITEMS node I added one more Node(cv_quantity) and one attribute(cell_variant_quantity) with in this node.
And code in WDDOMODIFYVIEW :
DATA lo_nd_items TYPE REF TO if_wd_context_node.
DATA lt_items TYPE wd_this->elements_items.
DATA ls_item LIKE LINE OF lt_items.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
** navigate from <CONTEXT> to <ITEMS> via lead selection
lo_nd_items = wd_context->path_get_node( path = `COMP_CONTEXT.ITEMS` ).
lo_nd_items->get_static_attributes_table( IMPORTING table = lt_items ).
lr_table_column ?= view->get_element( 'ITEMS_TABLE_QUANTITY' ).
DATA lo_nd_cv_quantity TYPE REF TO if_wd_context_node.
DATA lo_el_cv_quantity TYPE REF TO if_wd_context_element.
DATA ls_cv_quantity TYPE wd_this->element_cv_quantity.
IF first_time EQ abap_true.
lr_table_column->set_selected_cell_variant( value = 'EDITABLE' ).<--Initially ALL cells shoud be editable
ELSE.
lr_table_column->bind_selected_cell_variant( path = 'COMP_CONTEXT.ITEMS.CV_QUANTITY.CELL_VARIANT_QUANTITY' ) .
* navigate from <CONTEXT> to <CV_QUANTITY> via lead selection
lo_nd_cv_quantity = wd_context->path_get_node( path = `COMP_CONTEXT.ITEMS.CV_QUANTITY` ).
IF lo_nd_cv_quantity is BOUND.
lo_el_cv_quantity = lo_nd_cv_quantity->get_element( ).
LOOP AT lt_items INTO ls_item .
IF ls_item-catalogid EQ 'VEP_Staples_D0' AND ls_item-number_int IS NOT INITIAL AND ls_item-description IS NOT INITIAL.
lo_el_cv_quantity->set_attribute(
name = `CELL_VARIANT_QUANTITY`
value = 'DISPLAY' ).
ELSEIF ls_item-catalogid NE 'VEP_Staples_D0' OR ( ls_item-number_int IS INITIAL AND ls_item-description IS INITIAL ) ."If the condition is not satisfied OR no item is added to that line
lo_el_cv_quantity->set_attribute(
name = `CELL_VARIANT_QUANTITY`
value = 'EDITABLE' ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
Now If I add an item that DO NOT satisfy the comdition to be read only, for that row the quantity is enabled but for all the rows below it quantity cells are DISABLED.
Hope my issue is clear?
Thanks a lot,
Anubhav -
Error in adding a field to standard datasource
Hi all,
R/3 Side:
I'm trying to add an field KDAUF to the standard datasource "2LIS_03_UM" from the transaction code LBWE.
I'm getting the following error,
Struct. from appl. 03 due to open V3 proc. not changed -> Long text
Message no. MCEX140
Diagnosis
Changing the extract structure MC03UM0 of application 03 is not allowed as there are no V3 update entries for the update module MCEX_UPDATE_03.
If an extract structure is changed for which there are still open V3 updates, these can no longer be updated and the V3 collective update is terminated.
Procedure
Start the V3 update using the "Job Control" function in the customizing cockpit (transaction yDS:TRAN.LBWE>LBWE) or delete those update entries that are already incorrect. You will find these in the update overview.
I've deleted the delta queue form RSA7, deleted the data in setup tables, deleted from LBWQ and also from SM13.
But still i'm getting the same error.
Kindly help me in solving this error.
Thanks in advance.Hi,
Have you followed the path:
LBWE >>> Click on "Job Control" >>> Click on "Job Overview"
If yes, then in the next screen you will find the list of all the job in various states, e.g. Scheduled, Released, Ready, Active, Completed.
In your case, the relevant job should be "LIS-BW-VB_APPLICATION_03_***". Select the one with status as Released.
Also try verifying the same in sm37.
Also please go through the Note 396647 - FAQ: V3 update: Questions and answers.
I hope this helps.
Regards,
Nitin Suvarna -
Purchase order history standard datasource
Hi All
Is there a standard datasource for purchase order history- table EKBE, I need to pick history with movement types
ThanksHi,
Chk this links...
http://help.sap.com/saphelp_nw70/helpdata/EN/58/f6383fdb800804e10000000a114084/frameset.htm
and also trace thru left panel...
rgds,
Maybe you are looking for
-
How to validate multiple lines which is exist in the form builder at the same session
Hi All, we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines tha
-
How to partition the data dynamically
Hi, I've the data which goes on increasingly day by day. So, for the sake of performance i wanted to go for partitioning. i want to divide the data into partitions by months. How can i acheive this one. I do not want to hard code it to the year like
-
Grouping groups in Address Book
Is there a way to create a folder in Address Book's groups? I have so many different groups in the left column that it becomes difficult to navigate. I was wondering if there is a way of "hiding" groups? Thank you,
-
dear all, i have a problem while taking the output for the invoice. i have done output determination for condition type rd00, when i go to invoice output it is displaying only for few customers and some customers it is displaying output type not sele
-
Value mapping replication - groupid format
i am trying to use value mapping replication with the synchronous interface. i generated an abap proxy and wrote this abap program: REPORT z_value_mapping_proxy. TYPES: BEGIN OF ty_lfa1, lifnr LIKE lfa1-lifnr, name1 LIKE lfa1-name1,