<?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>topic Re: Datasource enhancement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284764#M785635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Points assigned but can you help further? I would appreciate if you could provide the whole code i should use as I am quite new to ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2008 12:19:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-16T12:19:28Z</dc:date>
    <item>
      <title>Datasource enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284762#M785633</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 added the field ZZPRCTR to the extract structure and want to fill it with code. But when I go inot RSA3, I get the runtime error UC_OBJECTS_NOT_CONVERTIBLE. The error seems to be around the loop of C_T_DATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Include ZXRSAU01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_s_bsid like BSID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_prctr type PRCTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE i_datasource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN '0FI_AR_4'.&lt;/P&gt;&lt;P&gt;LOOP AT C_T_DATA INTO l_s_bsid.&lt;/P&gt;&lt;P&gt;SELECT PRCTR FROM BSID UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;INTO lv_prctr.&lt;/P&gt;&lt;P&gt;MODIFY C_T_DATA FROM l_s_bsid.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What have I done wrong or do you have an alternative code I can use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 12:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284762#M785633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datasource enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284763#M785634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jimi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use field-symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs_ar&amp;gt; type DTFIAR_3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN '0FI_AR_4'.&lt;/P&gt;&lt;P&gt;LOOP AT C_T_DATA assgning &amp;lt;fs_ar&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT single PRCTR FROM BSID &lt;/P&gt;&lt;P&gt;INTO &amp;lt;FS_ar&amp;gt;-zzprctr&lt;/P&gt;&lt;P&gt;where ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh Thorat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 12:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284763#M785634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Datasource enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284764#M785635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Points assigned but can you help further? I would appreciate if you could provide the whole code i should use as I am quite new to ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 12:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284764#M785635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Datasource enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284765#M785636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0FI_AR_4 is transactional data so exit ZXRSAU01, the structure of CT_DATA is not BSIS but the structure associated to the DataSource      , look at RSA6, here it is DTFIAR_3 (the same as DataSource       0FI_AR_3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you extend the DataSource       via RSA6, if not, you should have do it so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 1 : CI_BSID is already in structure and all fields are already filled (MOVE-CORRESPONDING from BSID, BSAD and BSEG are performed in standard extractor)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 2 : Don't use any SELECT SINGLE in an extension of DataSource   , put CT_DATA parameter in an internal table defined in a form, and use SELECT FOR ALL ENTRIES into a sorted internal table then LOOP at internal table and update using READ TABLE. (Else severe performance problems will arise in production system.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source ZXRSAU01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE i_datasource.&lt;/P&gt;&lt;P&gt;  WHEN '0FI_AR_3' OR '0FI_AR_4'.&lt;/P&gt;&lt;P&gt;    PERFORM 0fi_ar_3 TABLES c_t_data.&lt;/P&gt;&lt;P&gt;  WHEN '0FI_GL_4'.&lt;/P&gt;&lt;P&gt;    PERFORM 0fi_gl_4 TABLES c_t_data.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an include ZXRSAF01 or at the end of ZXRSAU01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM 0fi_ar_3 TABLES work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: bsid LIKE bsid, " Clients postes individuels&lt;/P&gt;&lt;P&gt;        bsad LIKE bsad, " Clients postes individuels (rapprochés)&lt;/P&gt;&lt;P&gt;        dtfiar_3 LIKE dtfiar_3. " Transfert de données : postes client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: t_work LIKE dtfiar_3 OCCURS 0,&lt;/P&gt;&lt;P&gt;        t_bsid LIKE bsid OCCURS 0,&lt;/P&gt;&lt;P&gt;        t_bsad LIKE bsad OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA w_gjahr LIKE bsid-gjahr. " Année&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH t_work.&lt;/P&gt;&lt;P&gt;  INSERT LINES OF work INTO TABLE t_work.&lt;/P&gt;&lt;P&gt;  IF t_work[] IS INITIAL. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH t_bsid.&lt;/P&gt;&lt;P&gt;  SELECT * INTO TABLE t_bsid&lt;/P&gt;&lt;P&gt;    FROM bsid&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN t_work&lt;/P&gt;&lt;P&gt;    WHERE kunnr = t_work-kunnr&lt;/P&gt;&lt;P&gt;      AND bukrs = t_work-bukrs&lt;/P&gt;&lt;P&gt;      AND belnr = t_work-belnr&lt;/P&gt;&lt;P&gt;      AND buzei = t_work-buzei.&lt;/P&gt;&lt;P&gt;  SORT t_bsid BY kunnr bukrs gjahr belnr buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH t_bsad.&lt;/P&gt;&lt;P&gt;  SELECT * INTO TABLE t_bsad&lt;/P&gt;&lt;P&gt;    FROM bsad&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN t_work&lt;/P&gt;&lt;P&gt;    WHERE kunnr = t_work-kunnr&lt;/P&gt;&lt;P&gt;      AND bukrs = t_work-bukrs&lt;/P&gt;&lt;P&gt;      AND belnr = t_work-belnr&lt;/P&gt;&lt;P&gt;      AND buzei = t_work-buzei.&lt;/P&gt;&lt;P&gt;  SORT t_bsad BY kunnr bukrs gjahr belnr buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_work INTO dtfiar_3.&lt;/P&gt;&lt;P&gt;    w_gjahr = dtfiar_3-fiscper(4).&lt;/P&gt;&lt;P&gt;    IF dtfiar_3-augdt IS INITIAL.&lt;/P&gt;&lt;P&gt;      READ TABLE t_bsid INTO bsid&lt;/P&gt;&lt;P&gt;        WITH KEY kunnr = dtfiar_3-kunnr&lt;/P&gt;&lt;P&gt;                 bukrs = dtfiar_3-bukrs&lt;/P&gt;&lt;P&gt;                 gjahr = w_gjahr&lt;/P&gt;&lt;P&gt;                 belnr = dtfiar_3-belnr&lt;/P&gt;&lt;P&gt;                 buzei = dtfiar_3-buzei&lt;/P&gt;&lt;P&gt;        BINARY SEARCH.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        dtfiar_3-zzgsber = bsid-gsber.&lt;/P&gt;&lt;P&gt;        dtfiar_3-zzuonr = bsid-zuonr..&lt;/P&gt;&lt;P&gt;        dtfiar_3-zzxzahl = bsid-xzahl.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      READ TABLE t_bsad INTO bsad&lt;/P&gt;&lt;P&gt;        WITH KEY kunnr = dtfiar_3-kunnr&lt;/P&gt;&lt;P&gt;                 bukrs = dtfiar_3-bukrs&lt;/P&gt;&lt;P&gt;                 gjahr = w_gjahr&lt;/P&gt;&lt;P&gt;                 belnr = dtfiar_3-belnr&lt;/P&gt;&lt;P&gt;                 buzei = dtfiar_3-buzei&lt;/P&gt;&lt;P&gt;        BINARY SEARCH.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        dtfiar_3-zzgsber = bsad-gsber.&lt;/P&gt;&lt;P&gt;        dtfiar_3-zzuonr = bsad-zuonr..&lt;/P&gt;&lt;P&gt;        dtfiar_3-zzxzahl = bsad-xzahl.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY t_work FROM dtfiar_3.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH work.&lt;/P&gt;&lt;P&gt;  INSERT LINES OF t_work INTO TABLE work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 12:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284765#M785636</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-16T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Datasource enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284766#M785637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also thanks Raymond. let me explain what I am trying to achieve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add BSID-PRCTR to the 0FI_AR_4 datasource. I added component ZZPRCTR  with component type PRCTR to the extract structure CI_BSID. When I run transaction RSA3, the field ZZPRCTR was blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also read about the MOVE-CORRESPONDING within logistics. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tried to add PRCTR (not ZZPRCTR) to CI_BSID and this gave me errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thus confused. Woud you advise me to add PRCTR directly in the structure DTFIAR_3 in SE11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist as this is quite urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 12:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284766#M785637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Datasource enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284767#M785638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't change DTFIAR_3 directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call RSA6, select 0FI_AR_4 (or _3) and click on menu pushbutton "Enhance Extract Structure" it will create an append to the structure, activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then reselect DataSource and click on change icon, new fields are deactivated by default, activate them and save. (Else implicit move-corresponding doesn't work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if you don't have already do it, create a project via transaction CMOD and assign Enhancement RSAP0001 "BW Data Extraction: Customer Function Calls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then copy the source i provided to you in the include ZXRSAU01 of EXIT_SAPLRSAP_001 and adjust it to your need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then activate the project and call RSA3 to check the extractor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 12:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datasource-enhancement/m-p/3284767#M785638</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-16T12:51:19Z</dc:date>
    </item>
  </channel>
</rss>

