<?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: Facing a problem in a Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-a-problem-in-a-function-module/m-p/2882652#M677082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 05:32:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-22T05:32:53Z</dc:date>
    <item>
      <title>Facing a problem in a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-a-problem-in-a-function-module/m-p/2882651#M677081</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;anybody worked on FM "RSNDI_SHIE_STRUCTURE_GET3"???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is basically takes input as hierarchy name and displays subnodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code goes like this...please check and let me know if any where i am going wrong.&lt;/P&gt;&lt;P&gt;all inputs i am passing to FM are correct and they have values too!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not giving any output when i execute this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ZTEST4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Hierarchy ID (Unique ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA: lh_hiekey type RSNDI_S_HIEKEY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Hierarchy Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: lh_hiesel type standard table of RSNDI_S_HIESEL with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Node Identification Using Name Without Link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      lh_subsel type standard table of RSSH_S_NODEBYNAMEWOL with header line,&lt;/P&gt;&lt;P&gt;*Hierarchy Header Information NDI&lt;/P&gt;&lt;P&gt;      lh_hiedir TYPE RSNDI_S_HIEDIR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      lh_rc TYPE SYSUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;tables : ZREPCODMAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: itab type standard table of ZREPCODMAP with header line.&lt;/P&gt;&lt;P&gt; TYPES: BEGIN OF STRUC,&lt;/P&gt;&lt;P&gt;         RESULT type /BI0/HCOSTELMNT-nodename,&lt;/P&gt;&lt;P&gt;        END OF STRUC.&lt;/P&gt;&lt;P&gt; DATA: itab1 type standard table of struc with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZREPCODMAP into table itab where PROFIT_CTR &amp;lt;&amp;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;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: xt_hierstruc TYPE STANDARD TABLE OF RSNDI_S_HTAB WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select OBJVERS HIENM VERSION DATETO IOBJNM from RSHIEDIR into table&lt;/P&gt;&lt;P&gt;lh_hiesel where IOBJNM = '0COSTELMNT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of xxx,&lt;/P&gt;&lt;P&gt;        HIEID1 type RSHIEDIR-HIEID,&lt;/P&gt;&lt;P&gt;       end of xxx.&lt;/P&gt;&lt;P&gt;data: xxx1 type standard table of xxx with header line.&lt;/P&gt;&lt;P&gt;**&lt;/P&gt;&lt;P&gt;Select HIEID FROM RSHIEDIR INTO table XXX1 WHERE IOBJNM = '0COSTELMNT' and HIENM = '1000KES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;*BREAK-POINT.&lt;/P&gt;&lt;P&gt;DATA: LV_NODENAME TYPE /BI0/HCOSTELMNT-nodename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY REPDSELM  .&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB COMPARING ALL FIELDS.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;concatenate itab-CO_AREA itab-REPDSELM INTO LV_NODENAME.&lt;/P&gt;&lt;P&gt;ITAB1-RESULT = LV_NODENAME.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select NODENAME IOBJNM from /BI0/HCOSTELMNT&lt;/P&gt;&lt;P&gt;                       into table lh_subsel&lt;/P&gt;&lt;P&gt;                       for all entries in itab1&lt;/P&gt;&lt;P&gt;                       where nodename = itab1-RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lh_subsel.&lt;/P&gt;&lt;P&gt;*write:/ lh_subsel.&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;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;HIEID&lt;/P&gt;&lt;P&gt;*i_s_hiekey = lh_hiekey&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;PASS  hier name,,,version,,,dateto&amp;#133;IOOBJNM&lt;/P&gt;&lt;P&gt;i_s_hiesel = lh_hiesel&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;NODE NAME&lt;/P&gt;&lt;P&gt;i_s_subtreesel = lh_subsel&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;------------STRUCTURE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;e_s_hiedir = lh_hiedir&lt;/P&gt;&lt;P&gt;e_subrc = lh_rc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;e_t_hierstruc = xt_hierstruc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xt_hierstruc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: xt_hierstruc.&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 09:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-a-problem-in-a-function-module/m-p/2882651#M677081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T09:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Facing a problem in a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-a-problem-in-a-function-module/m-p/2882652#M677082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 05:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-a-problem-in-a-function-module/m-p/2882652#M677082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T05:32:53Z</dc:date>
    </item>
  </channel>
</rss>

