Thursday, October 15, 2009

Enhance the Extractors (ABAP perpective)

Procedure to enhance the Extractors or Datasources from ABAP perspective :
1. Check the fields which we need to enhance already exist as part of  the extraction structure or we need to enhance the structure too.

2. If it is enhancing existing extractor , do the following steps:

    a.  Check whether the extractor is active (RSA6)

    b.  If not active check  in Repository (RSA5 ) & activate the same

    c.   Once the extractor is active , we can enhance the extractor with the Z fields :

          i. Use RSA6 transaction ,select the extractor to be enhanced and use the "Enhance Extraction structure" option

          ii. Provide the name to appending structure and give the fields to  be appended (The procedure is same as appending any other structure)

          iii.Once the extraction structure of the extractor is enhanced ,we need to uncheck the hide fields option as follows :

                1. Select the datasource and use   "Datasource->Change Datasource" from the menu.

                2. Uncheck the Hide Field Option for the zfields we appended and save the extractor .

    d.  Now the extraction structure is enhanced with the z fields

    e.  We can fill the data in the zfields using the following ways

          i.  User Exit  RSAP0001->EXIT_SAPLRSAP_001 (Not ideal)

          ii.  Using Custom BADI

    f.  We can use  BADI (RSU5),

3. RSA3 is used to test the Extractor (Simulation the extractor )

Note : Use field Symbols for better performance .

0 comments: