<?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: Enhancing datasource 0vendor . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-datasource-0vendor/m-p/8679698#M1669049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Include ZXRSAU02. " master data enhancement
CASE i_datasource.
  WHEN '0VENDOR_ATTR'.
    PERFORM 0vendor_attr TABLES i_t_data.
ENDCASE.
* Include ZXRSAZZZ. " Subprograms and Modules
FORM 0vendor_attr TABLES itab.
  DATA: itab  TYPE TABLE OF biw_lfa1_s,
        record TYPE biw_lfa1_s.
  " Here select required data from LFA1, ADR6 into itab for values received
  LOOP AT itab INTO record.
    " Here read the itab and map data
    MODIFY itab FROM biw_lfa1_s.
  ENDLOOP.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Read [SELECT|http://help.sap.com/abapdocu_70/en/ABAPSELECT.htm]/[FOR ALL ENTRIES|http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_ITAB.htm] and [READ TABLE|http://help.sap.com/abapdocu_70/en/ABAPREAD_TABLE.htm] documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 09:51:50 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2012-02-28T09:51:50Z</dc:date>
    <item>
      <title>Enhancing datasource 0vendor .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-datasource-0vendor/m-p/8679697#M1669048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to enhance datasource  0VENDOR_ATTR with e-mail address of the vendor. Email address can be obtained from ADR6 table.&lt;/P&gt;&lt;P&gt;We can directly link both tables LFA1 and ADR6. &lt;/P&gt;&lt;P&gt;ADDRNUMBER - is the joining field in both these tables to determine the mail address of the vendor.&lt;/P&gt;&lt;P&gt;ADRNR field in the lfa1 table and ADDRNUMBER field in ADR6 table.&lt;/P&gt;&lt;P&gt;The logic will be as follows&lt;/P&gt;&lt;P&gt;*Selecting the ADRNE from LFA1...&lt;/P&gt;&lt;P&gt;SELECT SINGLE ADRNR FROM LFA1 INTO I_ADRNR&lt;/P&gt;&lt;P&gt;WHERE LIFNR = ITAB-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Passing ADRNR to ADR6 to get Email...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SMTP_ADDR INTO TABLE I_Z1EMAIL&lt;/P&gt;&lt;P&gt;FROM ADR6 WHERE ADDRNUMBER = I_ADRNR.&lt;/P&gt;&lt;P&gt;I dont have much knowledge in ABAP so experts please help me in completing this code in the enhancement EXIT_SAPLRSAP_002 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE i_datasource. When '0vendor_ATTR'.&lt;/P&gt;&lt;P&gt;???????????????&lt;/P&gt;&lt;P&gt;??????????????&lt;/P&gt;&lt;P&gt;??????????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE ADRNR FROM LFA1 INTO I_ADRNR&lt;/P&gt;&lt;P&gt;WHERE LIFNR = ITAB-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SMTP_ADDR INTO TABLE I_Z1EMAIL&lt;/P&gt;&lt;P&gt;FROM ADR6 WHERE ADDRNUMBER = I_ADRNR.&lt;/P&gt;&lt;P&gt;??????????????????????????&lt;/P&gt;&lt;P&gt;????????????????????????&lt;/P&gt;&lt;P&gt;???????????????????????.&lt;/P&gt;&lt;P&gt;Any help would be greatly appriciated.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 08:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-datasource-0vendor/m-p/8679697#M1669048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancing datasource 0vendor .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-datasource-0vendor/m-p/8679698#M1669049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Include ZXRSAU02. " master data enhancement
CASE i_datasource.
  WHEN '0VENDOR_ATTR'.
    PERFORM 0vendor_attr TABLES i_t_data.
ENDCASE.
* Include ZXRSAZZZ. " Subprograms and Modules
FORM 0vendor_attr TABLES itab.
  DATA: itab  TYPE TABLE OF biw_lfa1_s,
        record TYPE biw_lfa1_s.
  " Here select required data from LFA1, ADR6 into itab for values received
  LOOP AT itab INTO record.
    " Here read the itab and map data
    MODIFY itab FROM biw_lfa1_s.
  ENDLOOP.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Read [SELECT|http://help.sap.com/abapdocu_70/en/ABAPSELECT.htm]/[FOR ALL ENTRIES|http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_ITAB.htm] and [READ TABLE|http://help.sap.com/abapdocu_70/en/ABAPREAD_TABLE.htm] documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 09:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-datasource-0vendor/m-p/8679698#M1669049</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-02-28T09:51:50Z</dc:date>
    </item>
  </channel>
</rss>

