<?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: hlp req in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565444#M585279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sum up the values into a variable like&lt;/P&gt;&lt;P&gt;if itab-shkzg = 'H'.&lt;/P&gt;&lt;P&gt; v_amnt1 = v_amnt1 + itab-dmbtr.&lt;/P&gt;&lt;P&gt;else.   "for shkzg = 'S'.&lt;/P&gt;&lt;P&gt;v_amnt2 = v_amnt2 + itab-dmbtr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use this variables further in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 08:57:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T08:57:16Z</dc:date>
    <item>
      <title>hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565443#M585278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a small problem in my code for displaying debit credit n balance value, when  there is dmbtr values present for either  Shkzg = 'H' or 'S' the in gives correct output but if for certain g/l codes both values r present then those get displayed of saperat lines, i want them to b printed on same line  how can i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565443#M585278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T08:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565444#M585279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sum up the values into a variable like&lt;/P&gt;&lt;P&gt;if itab-shkzg = 'H'.&lt;/P&gt;&lt;P&gt; v_amnt1 = v_amnt1 + itab-dmbtr.&lt;/P&gt;&lt;P&gt;else.   "for shkzg = 'S'.&lt;/P&gt;&lt;P&gt;v_amnt2 = v_amnt2 + itab-dmbtr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use this variables further in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565444#M585279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T08:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565445#M585280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are getting multiple entries for the given critera that both entries found for SHKZG = 'H' or 'S'. then sumup the value in the body of the loop and process into a final internal table at the AT END OF section. do not forget pass original work area to a local work area when appending to a final int table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishnendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565445#M585280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565446#M585281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry or late reply is my net is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually my problem is not multiple  entries but entries which satisfies both &lt;/P&gt;&lt;P&gt;shkzg  = 'h' as well as shkzg = 's'  i.e. for certaint G/L accounts some amount get credited n some amount get debited and those values get printed on diff lines i want them to b printed on same line how can i do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565446#M585281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565447#M585282</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 think that your problem can be solved ( not very elegant,but it will work ) in this way.&lt;/P&gt;&lt;P&gt;You can transfer ammounts to strings/char,add + or - as you want (by shifting till the end and one place back&amp;amp;putting + or - in this place,and than shifting back untill the end) and than concatenate them into one string (warning : take strings length in mind when you do so) which will be displayed in one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yossi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 11:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565447#M585282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T11:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565448#M585283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii yossi&lt;/P&gt;&lt;P&gt; im not able to get what u wnat to say...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 11:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565448#M585283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: hlp req</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565449#M585284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear check this code,&lt;/P&gt;&lt;P&gt;I have faced similar problem long time back try to solve using this code. Mean time if i recall it then i wil post you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points,&lt;/P&gt;&lt;P&gt;Regard &lt;/P&gt;&lt;P&gt;Bohra &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select statement to fetch 85% 0f local currency and document currency&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;  IF NOT it_pos[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT belnr wrbtr dmbtr INTO TABLE it_bseg FROM bseg&lt;/P&gt;&lt;P&gt;          FOR ALL ENTRIES IN it_pos&lt;/P&gt;&lt;P&gt;            WHERE belnr = it_pos-belnr AND&lt;/P&gt;&lt;P&gt;                  bukrs = it_pos-bukrs AND&lt;/P&gt;&lt;P&gt;                  gjahr = it_pos-gjahr AND&lt;/P&gt;&lt;P&gt;                  buzei = it_pos-buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR it_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_bseg INTO wa_bsegg  WITH KEY belnr = it_pos-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*changes new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR w_dmshb.&lt;/P&gt;&lt;P&gt;      IF it_pos-dmshb &amp;lt; 0.&lt;/P&gt;&lt;P&gt;        w_dmshb = it_pos-dmshb * -1.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        w_dmshb = it_pos-dmshb.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      CLEAR w_wrshb.&lt;/P&gt;&lt;P&gt;      IF it_pos-wrshb &amp;lt; 0.&lt;/P&gt;&lt;P&gt;        w_wrshb = it_pos-wrshb * -1.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        w_wrshb = it_pos-wrshb.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*end changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF it_pos-dmshb &amp;lt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_bsegg-zdmbtr =  ( w_dmshb + ( it_pos-zhwbas + it_pos-zhwste ) ) * -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_bsegg-zwrbtr =  ( w_wrshb + ( it_pos-zfwbas + it_pos-zfwste ) ) * -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_bsegg-zdmbtr =  w_dmshb - ( it_pos-zhwbas + it_pos-zhwste ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_bsegg-zwrbtr =  w_wrshb - ( it_pos-zfwbas + it_pos-zfwste ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE : wa_bsegg-zwrbtr TO it_pos-zwrbtr,&lt;/P&gt;&lt;P&gt;             wa_bsegg-zdmbtr TO it_pos-zdmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY it_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;select to fectch 100% of local currency and document currency, if doucment is reversed then&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;posting key for the relevant doucment is changed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH rbschl.&lt;/P&gt;&lt;P&gt;  CLEAR rbschl.&lt;/P&gt;&lt;P&gt;  rbschl-sign  = 'I'.&lt;/P&gt;&lt;P&gt;  rbschl-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  rbschl-low = '40'.&lt;/P&gt;&lt;P&gt;  APPEND rbschl.&lt;/P&gt;&lt;P&gt;  CLEAR rbschl.&lt;/P&gt;&lt;P&gt;  rbschl-sign  = 'I'.&lt;/P&gt;&lt;P&gt;  rbschl-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  rbschl-low = '50'.&lt;/P&gt;&lt;P&gt;  APPEND rbschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH rhkont.&lt;/P&gt;&lt;P&gt;  CLEAR rhkont.&lt;/P&gt;&lt;P&gt;  rhkont-sign = 'I'.&lt;/P&gt;&lt;P&gt;  rhkont-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  rhkont-low = '0000851001'.&lt;/P&gt;&lt;P&gt;  APPEND rhkont.&lt;/P&gt;&lt;P&gt;  CLEAR rhkont.&lt;/P&gt;&lt;P&gt;  rhkont-sign = 'I'.&lt;/P&gt;&lt;P&gt;  rhkont-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  rhkont-low = '0000710001'.&lt;/P&gt;&lt;P&gt;  APPEND rhkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_pos[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH it_bseg_n1.&lt;/P&gt;&lt;P&gt;    SELECT belnr wrbtr dmbtr INTO TABLE it_bseg_n1 FROM bseg&lt;/P&gt;&lt;P&gt;          FOR ALL ENTRIES IN it_pos&lt;/P&gt;&lt;P&gt;            WHERE bukrs = it_pos-bukrs AND&lt;/P&gt;&lt;P&gt;                  belnr = it_pos-belnr AND&lt;/P&gt;&lt;P&gt;                  gjahr = it_pos-gjahr AND&lt;/P&gt;&lt;P&gt;                  bschl IN rbschl AND&lt;/P&gt;&lt;P&gt;                  koart = 'S'  AND&lt;/P&gt;&lt;P&gt;                  hkont IN rhkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR it_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_pos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 11:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlp-req/m-p/2565449#M585284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T11:39:18Z</dc:date>
    </item>
  </channel>
</rss>

