Skip to Content
author's profile photo Former Member
Former Member

Filling Datasource with module

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

Thanks & Regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 06:09 AM


    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.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 06:44 AM

    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 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.





    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 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.