<?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: Regarding line posting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-line-posting/m-p/2859888#M670651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF l_amount+12(1) EQ '-'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 13:53:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T13:53:41Z</dc:date>
    <item>
      <title>Regarding line posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-line-posting/m-p/2859887#M670650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;I want to post the data into my final structure. &lt;/P&gt;&lt;P&gt;Here I want to create 2 line items for final structure 1for debit entry and the other for credit entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_wa_a_efund_map LIKE LINE OF me-&amp;gt;ai_efund_map .&lt;/P&gt;&lt;P&gt;data: l_amount(13) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE me-&amp;gt;ai_efund_map INTO l_wa_a_efund_map WITH&lt;/P&gt;&lt;P&gt;KEY efundtrans = me-&amp;gt;a_input_line-efundtrans+12(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_amount = me-&amp;gt;a_input_line-ammount.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;IF l_amount&lt;EM&gt;12(1) EQ '&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;newbs = l_wa_a_efund_map-post_key_debit.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;newbs = l_wa_a_efund_map-post_key_credit.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here me-&amp;gt;a_input_line-ammount is coming from the input file.&lt;/P&gt;&lt;P&gt;there if it is me-&amp;gt;a_input_line-ammount is positive first time the code written is correct and it should execute same way.&lt;/P&gt;&lt;P&gt;newbs = l_wa_a_efund_map-post_key_debit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second time me-&amp;gt;a_input_line-ammount should be negative and &lt;/P&gt;&lt;P&gt;newbs = l_wa_a_efund_map-post_key_credit.&lt;/P&gt;&lt;P&gt;has to be exceted for the second line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is vice versa means :&lt;/P&gt;&lt;P&gt;there if it is me-&amp;gt;a_input_line-ammount is negative first time the code written is correct and it should execute same way.&lt;/P&gt;&lt;P&gt;newbs = l_wa_a_efund_map-post_key_credit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second time me-&amp;gt;a_input_line-ammount should be positive and &lt;/P&gt;&lt;P&gt;newbs = l_wa_a_efund_map-post_key_debit.&lt;/P&gt;&lt;P&gt;has to be exceted for the second line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me the logic for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are assured for useful answers.&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;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 12:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-line-posting/m-p/2859887#M670650</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-10-03T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding line posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-line-posting/m-p/2859888#M670651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF l_amount+12(1) EQ '-'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-line-posting/m-p/2859888#M670651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T13:53:41Z</dc:date>
    </item>
  </channel>
</rss>

