<?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 FINDING REASON CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270460#M781731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to write subroutine for display reason code ( BSAK-RSTGR ) into my layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my function consultant instruct me you should pick the data based on following business logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payment Document Number (REGUP-VBLNR ) equal to clearing document number ( BSAK-AUGBL) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written my code as follows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM  ZREASONCODE TABLES in_tab structure itcsy&lt;/P&gt;&lt;P&gt;                      out_tab structure itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: REGUP, BSAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  A_VBLNR TYPE REGUP-VBLNR,&lt;/P&gt;&lt;P&gt;       B_RSTGR TYPE BSAK-RSTGR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;A_VBLNR = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE RSTGR FROM BSAK INTO B_RSTGR WHERE AUGBL = A_VBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_TAB-VALUE = B_RSTGR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_TAB INDEX 1 TRANSPORTING VALUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but no data is picking above logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one guide me how to pick up data for above logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me i will reward the points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 11:18:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T11:18:29Z</dc:date>
    <item>
      <title>FINDING REASON CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270460#M781731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to write subroutine for display reason code ( BSAK-RSTGR ) into my layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my function consultant instruct me you should pick the data based on following business logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payment Document Number (REGUP-VBLNR ) equal to clearing document number ( BSAK-AUGBL) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written my code as follows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM  ZREASONCODE TABLES in_tab structure itcsy&lt;/P&gt;&lt;P&gt;                      out_tab structure itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: REGUP, BSAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  A_VBLNR TYPE REGUP-VBLNR,&lt;/P&gt;&lt;P&gt;       B_RSTGR TYPE BSAK-RSTGR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;A_VBLNR = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE RSTGR FROM BSAK INTO B_RSTGR WHERE AUGBL = A_VBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_TAB-VALUE = B_RSTGR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_TAB INDEX 1 TRANSPORTING VALUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but no data is picking above logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one guide me how to pick up data for above logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me i will reward the points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270460#M781731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: FINDING REASON CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270461#M781732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug it and check why you are not getting the data and try to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE71 and start debuger in your sapscript and in your form in SE38 transaction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270461#M781732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T11:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: FINDING REASON CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270462#M781733</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;After reading a value from in_tab is is often a good idea to run function module CONVERSION_EXIT_ALPHA_INPUT to convert the display format held in the SAPscript to internal format before using it to read a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-reason-code/m-p/3270462#M781733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T11:26:34Z</dc:date>
    </item>
  </channel>
</rss>

