cancel
Showing results for 
Search instead for 
Did you mean: 

Filling Datasource with module

Former Member
0 Kudos

Can anybody provide me the details with documentation about filling the Datasource with function module.

Thanks & Regards

Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi S Kumar,

i am analysis here : account receivabale

Go To T-Code SE11 and open the

extract structure : DTFIAR_3

Click on Append structure button to create append structure .

Enter component as XXXXX and component type XXXXX for 1 st field .

Go to T-code RSA6 .

Select data source 0FI_AR_4 and remove the tick in hide checkbox for fields XXXXX .

Enahancment of first field XXXXX is easy because all the key fields of table BKPF

You can select a unique record from BKPF for the key combination.

In the source system...Create an append structure to the std datasource's extract structure..then add fields in the append structure.The Z-fields can be named like 'ZZ<field-name>'.(For the data-element,use same data element as that of the fields from where you will pick the data..so that format problems are avoided)Save and activate the append structure and also the datasource extract structure.Added z-fields are hidden by default.Now go to tcode rsa6 and find the std datasource.Click on change button and unhide the added z-fields..but do not remove the checkbox for 'fields known in customer exit'.Now u will have to write user exit in tcode CMOD.Go to CMOD and enter the project name for BW.Then choose radio button components.4 user exits will come up.

Use 2nd one for master data attributes enhancements.You will have to loop on C_T_DATA(or I_T_DATA) and modify it with derived values for the z-fields.Save and activate exit.Then do extract check in rsa3.See that z-fields getting derived OK.In BW,try to find if BC infoobjects available for the required additional attributes.Go to change mode in the std main infoobject and add the new attr at the end.Then replicate datasource in BW,map the transfer and update rules and then load data.Done.Hope I havent missed anything.You dont have an existing project and u have to create one.Select a good name for a project..say ZBIW..and then enter the name and click on create button.It will take u to new screen.There give short text for project name.Above u will see 'enhancement assignments' button.Click it and in the new screen add enhancement RSAP0001.Save and remember to activate project too..(save in appropriate transport request)Then if u click the components button u will see the 4 user exits..Choose the documentation radio button and u will get purpose of all 4 exitsEnahncing the Data Source is nothing but adding fields to DS.

EXIT_SAPLRSAP_001

EXIT_SAPLRSAP_002

EXIT_SAPLRSAP_003

EXIT_SAPLRSAP_004

and we need to populate the data for the 2 fields through the ABAP Coding.1. go to RSA6 select DS go with Enhance DS, System will propose structure name click on enter. Then it will take you to the Data Dictionary Structure Maintainenance screen provide the field names that's not available in the Standard one.2. Activate the Structure.3. go to CMOD. check is there any projects available for BW. Press F4 ...you could see all the Projects. If not create one.provide enhancement assignment RSAP0001. click on components. select 1st function module(for Transactional DS). it contains one include, we need to write code in that include.Note: if RSAP0001 already assigned to any project

Former Member
0 Kudos

Hi,

Just create a function module which fetches the required data and then use this Fn module as it is while creating

genric datasource.

If u go to RS02 tehre r options, View, ABAP program , Function module and Table , choose function module and give ur fn module name.

Hope it helps.

Apparao

Former Member
0 Kudos

Thank you Apparao, but this is not generic extraction . this is a bussiness content datasource . can u provide any help.

regards

sateesh

Former Member
0 Kudos

Hi,

If u want to enhance the business content u have to use Exits by appedning the structure.

Apparao