<?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: need logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190444#M466940</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;Ok..Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;DATA: V_FIELD(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get from PKPS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE PKBST INTO V_PKBST FROM PKPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get from TPKSF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE * FROM TPKSF WHERE ... "Give the appropriate condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'SFGS' V_PKBST INTO V_FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (V_FIELD) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / V_FIELD, ' name has the value ', &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 17:07:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-10T17:07:59Z</dc:date>
    <item>
      <title>need logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190442#M466938</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 need some logic&lt;/P&gt;&lt;P&gt;i am retriving data pkps-pkbst based on the value of pkbst &lt;/P&gt;&lt;P&gt;if pkbst value is 1 i have to go&lt;/P&gt;&lt;P&gt;tpksf-sfgs1,&lt;/P&gt;&lt;P&gt;if pkbst value is 2 i have to go&lt;/P&gt;&lt;P&gt;tpksf-sfgs2,like wise&lt;/P&gt;&lt;P&gt;in tpksf-sfgs fields the values are '+','-','.' like that&lt;/P&gt;&lt;P&gt;when it goes to any of tpksf-sfgs value and that value is +&lt;/P&gt;&lt;P&gt;then it has to go the next + value of tpksf-sfgs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded for helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 17:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190442#M466938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T17:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: need logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190443#M466939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try this :-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
1, st get al the data.
2,  loop it.
Loop at itab.
case itab-pkst.
when ''.
read table tpksf with key sfgs1.
do processing.
when '2'.
read table tpksf with key sfgs2
do processing.
when '+'         " here u need to loop
Loop at tpksf.
process.
endloop.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;reward if it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 17:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190443#M466939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: need logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190444#M466940</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;Ok..Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;DATA: V_FIELD(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get from PKPS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE PKBST INTO V_PKBST FROM PKPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get from TPKSF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE * FROM TPKSF WHERE ... "Give the appropriate condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'SFGS' V_PKBST INTO V_FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (V_FIELD) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / V_FIELD, ' name has the value ', &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 17:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190444#M466940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T17:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: need logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190445#M466941</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've not understood your problem very well, anyway I hope thid code can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: PKPS, TPKSF.

FIELD-SYMBOLS: &amp;lt;SFGS&amp;gt;.

DATA: FIELD_INDEX TYPE I.

FIELD_INDEX = PKPS-PKBST + 2.

ASSIGN COMPONENT FIELD_INDEX OF STRUCTURE TPKSF TO &amp;lt;SFGS&amp;gt;.

CASE &amp;lt;SFGS&amp;gt;.
  WHEN SPACE.
  WHEN '-'.
    FIELD_INDEX = FIELD_INDEX - 1.
  WHEN '+'.
    FIELD_INDEX = FIELD_INDEX + 1.
ENDCASE.

IF FIELD_INDEX =&amp;gt; 3.
  ASSIGN COMPONENT FIELD_INDEX OF STRUCTURE TPKSF TO &amp;lt;SFGS&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 17:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic/m-p/2190445#M466941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T17:17:02Z</dc:date>
    </item>
  </channel>
</rss>

