<?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 BADI or Exit for MFBF Tcode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476768#M1651892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do difference calculation in posting date and document date. I have made the code but not able to find exact BADI or exit for MFBF tcode.&lt;/P&gt;&lt;P&gt;BADI i searched - RM_BFLUSH_GOODSMVT&lt;/P&gt;&lt;P&gt;EXIT ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest, where I have to put below code so that when user put dates into this, then it will not allow him to get more than 7 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:  d_days like po347-scrdd,
	budat like mkpf-budat,
	bldat like mkpf-bldat.

budat = rm61b-budat.
bldat = rm61b-bldat.

CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
  EXPORTING
    I_DATUM_BIS                   = budat
    I_DATUM_VON                   = bldat
   I_STGMETH                     = '2'
 IMPORTING
   E_TAGE                        = d_days
          .

if d_days &amp;gt; 7 .
  message 'date exceeds' type 'E'.
  elseif d_days &amp;lt; 0.
  message 'document date should be greater than posting date' type 'I'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Dec 2011 06:04:28 GMT</pubDate>
    <dc:creator>former_member823006</dc:creator>
    <dc:date>2011-12-10T06:04:28Z</dc:date>
    <item>
      <title>BADI or Exit for MFBF Tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476768#M1651892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do difference calculation in posting date and document date. I have made the code but not able to find exact BADI or exit for MFBF tcode.&lt;/P&gt;&lt;P&gt;BADI i searched - RM_BFLUSH_GOODSMVT&lt;/P&gt;&lt;P&gt;EXIT ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest, where I have to put below code so that when user put dates into this, then it will not allow him to get more than 7 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:  d_days like po347-scrdd,
	budat like mkpf-budat,
	bldat like mkpf-bldat.

budat = rm61b-budat.
bldat = rm61b-bldat.

CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
  EXPORTING
    I_DATUM_BIS                   = budat
    I_DATUM_VON                   = bldat
   I_STGMETH                     = '2'
 IMPORTING
   E_TAGE                        = d_days
          .

if d_days &amp;gt; 7 .
  message 'date exceeds' type 'E'.
  elseif d_days &amp;lt; 0.
  message 'document date should be greater than posting date' type 'I'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 06:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476768#M1651892</guid>
      <dc:creator>former_member823006</dc:creator>
      <dc:date>2011-12-10T06:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: BADI or Exit for MFBF Tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476769#M1651893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please advice experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 10:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476769#M1651893</guid>
      <dc:creator>former_member823006</dc:creator>
      <dc:date>2011-12-10T10:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: BADI or Exit for MFBF Tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476770#M1651894</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;Include - LBARMFS1&lt;/P&gt;&lt;P&gt;FORM - FORM get_hr_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a implicit enhancement in the beginning of above mentioned form FORM get_hr_data and put below code inside that.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM get_hr_data.
ENHANCEMENT 1 ZTEST_TEST.
data:  d_days like po347-scrdd,
	budat like mkpf-budat,
	bldat like mkpf-bldat.
 
budat = rm61b-budat.
bldat = rm61b-bldat.
 
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
  EXPORTING
    I_DATUM_BIS                   = budat
    I_DATUM_VON                   = bldat
   I_STGMETH                     = '2'
 IMPORTING
   E_TAGE                        = d_days
          .
 
if d_days &amp;gt; 7 .
  message 'date exceeds' type 'E'.
  elseif d_days &amp;lt; 0.
  message 'document date should be greater than posting date' type 'I'.
endif.
ENDENHANCEMENT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2011 15:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-or-exit-for-mfbf-tcode/m-p/8476770#M1651894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-11T15:17:11Z</dc:date>
    </item>
  </channel>
</rss>

