<?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 bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154494#M750222</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;suppose I hv a table with 5 different fields and suppose  I wanted to delete duplicate entries of any one fields without deleting entire row of that table. How to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shashikant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 09:06:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T09:06:00Z</dc:date>
    <item>
      <title>bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154494#M750222</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;suppose I hv a table with 5 different fields and suppose  I wanted to delete duplicate entries of any one fields without deleting entire row of that table. How to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shashikant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154494#M750222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154495#M750223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort the table on that field.&lt;/P&gt;&lt;P&gt;Store the value in a variable.&lt;/P&gt;&lt;P&gt;check with the rows.&lt;/P&gt;&lt;P&gt;Wherever find that value, replace it with BLANK.&lt;/P&gt;&lt;P&gt;Modify the table for that row transporting that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154495#M750223</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-12-19T09:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154496#M750224</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;the sample code would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1[] = itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab1 into wa_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if wa_itab2-f1  = wa_itab1-f1.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  count = count + 1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  count ge 1.&lt;/P&gt;&lt;P&gt;   clear wa_itab2-f1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab from wa_itab2 index sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;clear : wa_itab2&lt;/P&gt;&lt;P&gt;          wa_itab1.&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;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward points if helpfull&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vijay sharma on Dec 19, 2007 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154496#M750224</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-12-19T11:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154497#M750225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u send structure of the internal table and sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 14:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154497#M750225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154498#M750226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a BAPI where I am using four tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGR_USERS(uname, agr_name),  AGR_HIER(report), AGR_1016(profile), UST12(objct, field, von)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here i wan to display  agr_name, report, profile, objct, field, von for the uname which user will enter. I want display the objct field von for all the profile the fields should not repeated for new valu of report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is like this here it is repeating the values of ust12 fields for every new value of report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION zbapi_autho_object .&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(UNAME) TYPE  XUBNAME&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(OUTPUT) TYPE  ZST_ITAB&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NO_RECORDS&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;*--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---------" /&gt;SHASHIKANT--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&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;&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;&lt;/P&gt;&lt;P&gt;        LOOP AT IT_TEMP ASSIGNING &amp;lt;FS_ITAB&amp;gt;.&lt;/P&gt;&lt;P&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;&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;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;************************&lt;STRONG&gt;END&lt;/STRONG&gt;********************************888&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anythig wan to ask pls give a call 9322468903 or give ur cell no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 04:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3154498#M750226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-20T04:28:31Z</dc:date>
    </item>
  </channel>
</rss>

