<?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: bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218900#M767607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do this @ the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT output BY uname agr_name.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES  FROM output COMPARING uname agr_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Jan 15, 2008 3:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2008 08:51:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-15T08:51:12Z</dc:date>
    <item>
      <title>bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218899#M767606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a bapi having foolowing code it is for authorisation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv display following fields &lt;/P&gt;&lt;P&gt;uname  agr_name  report  profile  objct  field  von &lt;/P&gt;&lt;P&gt;problem is that it is rpeating the uname agr_name i don't want duplicate enries of hese fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl suggest me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_temp,&lt;/P&gt;&lt;P&gt;         uname type aguname,&lt;/P&gt;&lt;P&gt;         agr_name type agr_name,&lt;/P&gt;&lt;P&gt;         report type extdreport,&lt;/P&gt;&lt;P&gt;         profile type agprofile,&lt;/P&gt;&lt;P&gt;         end of ty_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: it_temp type standard table of ty_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols &amp;lt;fs_itab&amp;gt; like line of it_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: begin of wa.&lt;/P&gt;&lt;P&gt;          include structure zautho.&lt;/P&gt;&lt;P&gt;  data: end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select p&lt;SUB&gt;uname p&lt;/SUB&gt;agr_name s&lt;SUB&gt;report t&lt;/SUB&gt;profile&lt;/P&gt;&lt;P&gt;         into corresponding fields of table  it_temp&lt;/P&gt;&lt;P&gt;         from agr_users as p inner join agr_hier as s on s&lt;SUB&gt;agr_name = p&lt;/SUB&gt;agr_name&lt;/P&gt;&lt;P&gt;                             inner join agr_1016 as t on t&lt;SUB&gt;agr_name = p&lt;/SUB&gt;agr_name&lt;/P&gt;&lt;P&gt;                             where p~uname eq uname.&lt;/P&gt;&lt;P&gt;  loop at it_temp assigning &amp;lt;fs_itab&amp;gt;.&lt;/P&gt;&lt;P&gt;    concatenate &amp;lt;fs_itab&amp;gt;-profile '00' into &amp;lt;fs_itab&amp;gt;-profile.&lt;/P&gt;&lt;P&gt;    condense &amp;lt;fs_itab&amp;gt;-profile no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select  objct field von into  (wa-objct, wa-field, wa-von)&lt;/P&gt;&lt;P&gt;                    from ust12 where auth = &amp;lt;fs_itab&amp;gt;-profile.&lt;/P&gt;&lt;P&gt;      wa-uname    = &amp;lt;fs_itab&amp;gt;-uname.&lt;/P&gt;&lt;P&gt;      wa-agr_name = &amp;lt;fs_itab&amp;gt;-agr_name.&lt;/P&gt;&lt;P&gt;      wa-report   = &amp;lt;fs_itab&amp;gt;-report.&lt;/P&gt;&lt;P&gt;      wa-profile  = &amp;lt;fs_itab&amp;gt;-profile.&lt;/P&gt;&lt;P&gt;      append wa to output.&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;endfunction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 07:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218899#M767606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T07:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218900#M767607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do this @ the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT output BY uname agr_name.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES  FROM output COMPARING uname agr_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Jan 15, 2008 3:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 08:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218900#M767607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218901#M767608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;adjacent duplicate will delete entire row of the output &lt;/P&gt;&lt;P&gt;and output is the expoting parameter not a internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 09:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218901#M767608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218902#M767609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the statement &lt;STRONG&gt;APPEND wa TO output.&lt;/STRONG&gt; tells me that output is in fact an internal table which contains the details to be output. it is probably a function parameter, however it is an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, if you remove the duplicate entries in output table within the function module, the calling program would then receive returned table w/o duplicate entries as I believe you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried putting this block of code i mentioned and tested?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 11:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218902#M767609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T11:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218903#M767610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please put your posts here. i am watching the forum and get a mail intimating me of a post here and can keep track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please paste the short dump information here - i.e. the "error analysis" of the dump as viewed from ST22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 11:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3218903#M767610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T11:29:15Z</dc:date>
    </item>
  </channel>
</rss>

