<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: writing custom code for enhancing the generic data source in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184506#M495545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as i understand, you will be able to define a 'zfield' in the FM only if you have the field already appended to the extract structure of the datasource. If not, the FM will not identify the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2006 13:59:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-14T13:59:50Z</dc:date>
    <item>
      <title>writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaq-p/1184494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I need to create a generic extractor from two main tables ( Header and detail) by creating the extractor based on a view of these two tables. However I also need to include information/fields ( both header as well as detail level) form a host of ther tables in the data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I would like to know where to find the the extractor program and/or user exit to write the custom code for populating the fields,  after appending additional fields the append structure manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Also want to know whether the entire data source extended this way should be delta enabled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If there are other ways to do this, example function module etc.. I would like to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks in advance for the help and I would reward with appropriate points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaq-p/1184494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T08:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184495#M495534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear,&lt;/P&gt;&lt;P&gt;about delta enabling of your datasource, you have to activate it on RSO2 (as "generic delta": you can find a lot of useful info in previous posts about this topic!).&lt;/P&gt;&lt;P&gt;About enhancement to fill additional fields, you have to follow the same procedure as per standard datasource: after adding them into an append, you have to use CMOD and include RSAP0001 enhancement and userexit EXIT_SAPLRSAP_001 for transactional data...(you can find a lot of info for this topic too!)&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 09:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184495#M495534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184496#M495535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anurava,&lt;/P&gt;&lt;P&gt;create generic extraction, see&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the way we enhance generic datasource is just same as business content, enhancement RSAP0001 is used.&lt;/P&gt;&lt;P&gt;yes, it should be delta-enabled, check doc how to generic delta&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/37/4f3ca8b672a34082ab3085d3c22145/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/37/4f3ca8b672a34082ab3085d3c22145/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;generic extraction using function module, take a look Siggi's weblog&lt;/P&gt;&lt;P&gt;/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;sample code can see in RSAX_BIW_GET_DATA_SIMPLE&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 09:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184496#M495535</guid>
      <dc:creator>edwin_harpino</dc:creator>
      <dc:date>2006-02-16T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184497#M495536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you already have to define a generic datasource. In this case I would recommend to go with a function module directly instead of using the table/view extraction and enhancing it via the exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 10:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184497#M495536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T10:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184498#M495537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am having issues with making the appended field visible in the data source.&lt;/P&gt;&lt;P&gt;Here is what I have done&lt;/P&gt;&lt;P&gt;1&amp;gt; using tran 'Maintain generic data source' I have created a data source from a view and after that I have appended another striucture ( containing some fields) into the extraction structure of the data source and activated both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I return to the data source, those fields are always greed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the step by step procedure to enable those( uncheck the hide checkbox)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 03:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184498#M495537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T03:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184499#M495538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anurava,&lt;/P&gt;&lt;P&gt;to uncheck the hidden checkbox for these new added fields,&lt;/P&gt;&lt;P&gt;transaction rso2, type in your generic datasource, click 'edit', in next screen, you need to click 'save', it will bring you to datasource edit, here scroll the screen down, you will see the new fields in last rows, remove 'hide field' checkmark for these fields.&lt;/P&gt;&lt;P&gt;and click 'save' again.&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 03:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184499#M495538</guid>
      <dc:creator>edwin_harpino</dc:creator>
      <dc:date>2006-02-20T03:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184500#M495539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AHP,&lt;/P&gt;&lt;P&gt;  That is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when I do rso2&lt;DEL&gt;&amp;gt; change&lt;/DEL&gt;&amp;gt; save ... only the fields that the view contains appear for the selection. However the field enhancement that I have done with the extract structure never appears. However if instead of 'Save' If I select the 'Display Field list (F7)' It should show the appended fields but in this case it would all be greyed out and I won't be able to 'Unhide' those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This is a peculiar situation, Please help.&lt;/P&gt;&lt;P&gt;  Thanks&lt;/P&gt;&lt;P&gt;Arunava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 00:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184500#M495539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-21T00:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184501#M495540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Siggy,&lt;/P&gt;&lt;P&gt;  Can you please send me a step by step procedue of creating a generic extractor out of a header and detail table( Please note that I need an extractor for not only combining the header and detail fields but a lot of other table both at the header as well as detail table lever. Also please let me know whether all the fields should be delta enabled for the extractor, irrectpective of which table the field is coming from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In the generic extractor for the view method, I find only one field in the entire extractor can be delta enabled. This, I think is a mazor limitation.&lt;/P&gt;&lt;P&gt;  Thanks&lt;/P&gt;&lt;P&gt;Arunava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 00:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184501#M495540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-21T00:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184502#M495541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siggy and AHP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have been able to write the function module extractor ( quite a complex on involving many tables, header, detail and other tables both at the header, detail level). I agree with Siggy, that in this case the FM option is the best one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; However I haven't tried the delta with this option and I really need most of the fields ( can come from any of the four tables mentioned above) to be anabled in delta.&lt;/P&gt;&lt;P&gt;When I go to do the generic delta, it only allow me to enable only one field. Does that mean that changes to only that field will trigger the delta extraction?&lt;/P&gt;&lt;P&gt;What about changes to the other fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.,&lt;/P&gt;&lt;P&gt;Arunava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 04:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184502#M495541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-21T04:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184503#M495542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anurava,&lt;/P&gt;&lt;P&gt;try to force remove 'hide field'&lt;/P&gt;&lt;P&gt;tables ROOSFIELD. &lt;/P&gt;&lt;P&gt;Update ROOSFIELD set NOTEXREL = 'Y' where &lt;/P&gt;&lt;P&gt;OLTPSOURCE = '[datasource name]' and &lt;/P&gt;&lt;P&gt;FIELD = '[fieldname]' and objvers = 'A'.&lt;/P&gt;&lt;P&gt;if need to enable selection&lt;/P&gt;&lt;P&gt;Update ROOSFIELD set SELECTION = 'X' where &lt;/P&gt;&lt;P&gt;OLTPSOURCE = '[datasource name]' and &lt;/P&gt;&lt;P&gt;FIELD = '[fieldname]' and objvers = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many fields for delta, you may need one new field,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="92608"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="74412"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and let's wait Siggi's reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 04:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184503#M495542</guid>
      <dc:creator>edwin_harpino</dc:creator>
      <dc:date>2006-02-21T04:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184504#M495543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arunava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well you only need to have one field for the generic delta. This field will be passed to the fm. In the fm you can use it to select from different tables using different dates (creation date, change date). E.g. you defined a field ZDATE as THE generic delta field. Within the extractor you get that field in table &lt;/P&gt;&lt;P&gt;s_s_if-t_select. From there you put it into a range table or a fm-internal date field (defined as global or static). Then you do a select like this:&lt;/P&gt;&lt;P&gt;select * from header_table&lt;/P&gt;&lt;P&gt;where ( erdat &amp;gt;= g_zdate&lt;/P&gt;&lt;P&gt;or      aedat &amp;gt;= g_zdate ).&lt;/P&gt;&lt;P&gt;select * from item_table&lt;/P&gt;&lt;P&gt;where ( erdat &amp;gt;= g_zdate&lt;/P&gt;&lt;P&gt;or      aedat &amp;gt;= g_zdate ).&lt;/P&gt;&lt;P&gt;Additionally you can join header and item table to do the select or open a cursor ....&lt;/P&gt;&lt;P&gt;Check out /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module for some more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 07:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184504#M495543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-21T07:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184505#M495544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Siggi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This doesn't work for me, the system indicated error when I specify ZDATE for the generic delta. the system indicates that the field can only be selected from the 'Delta Specific  Field ' Field nm  F4 value, This only comes from the field of the data extractor structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  As per your sugesstion it seemed that I can define my own field ( ZDATE) which need not be present in the extraction structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 10:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184505#M495544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T10:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: writing custom code for enhancing the generic data source</title>
      <link>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184506#M495545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as i understand, you will be able to define a 'zfield' in the FM only if you have the field already appended to the extract structure of the datasource. If not, the FM will not identify the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 13:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/writing-custom-code-for-enhancing-the-generic-data-source/qaa-p/1184506#M495545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T13:59:50Z</dc:date>
    </item>
  </channel>
</rss>

