<?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 simulation in FI document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693997#M1293703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am an FI consulatant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we made document posting program in FI. Program gets data from excel into internal table and shows customer the field. when the customer push the post button the document is created. however there may be some tax problems so the customer wants to simulate the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He wants to post after simulation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;İs there any chance to process the data up to the simulatin process (before saving).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 15:27:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-10T15:27:34Z</dc:date>
    <item>
      <title>simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693997#M1293703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am an FI consulatant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we made document posting program in FI. Program gets data from excel into internal table and shows customer the field. when the customer push the post button the document is created. however there may be some tax problems so the customer wants to simulate the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He wants to post after simulation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;İs there any chance to process the data up to the simulatin process (before saving).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 15:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693997#M1293703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693998#M1293704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends - how does your program work? Batch input? BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 15:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693998#M1293704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T15:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693999#M1293705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works as batch input, but there is no use of SM35.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 06:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5693999#M1293705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T06:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694000#M1293706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your program, in BDC code, in the end you must be using OKCODE '=BU' (post) for some screen say '0700' in this example, it might be some other screen in your code. for e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    ....................
    ....................
    ....................
    ....................

    PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0331'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'BSEG-XREF1'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_FIELD       USING 'BSEG-XREF1'
                                  'IN00'.

    PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0700'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'RF05A-NEWBS'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=BU'.

    PERFORM BDC_TRANSACTION USING 'F-02'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in order to SIMULATE the document before POSTING you need to enter two lines of code before the earlier Posting code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) the screen number that was last used before posting, in the above e.g its '0331'&lt;/P&gt;&lt;P&gt;2) and the OKCODE for simulate i.e. '=BS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so considering the eg. below make the according changes in your BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    ....................
    ....................
    ....................
    ....................
    PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0331'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'BSEG-XREF1'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_FIELD       USING 'BSEG-XREF1'
                                  'IN00'.

*******************Code added START
    PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0331'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=BS'.
*******************Code added END

    PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0700'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'RF05A-NEWBS'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=BU'.

    PERFORM BDC_TRANSACTION USING 'F-02'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code is only for reference, make changes according to screen sequence used in your BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 06:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694000#M1293706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T06:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694001#M1293707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply Tripat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we implement what u said however it did not work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we run batch input in "N" mode. do you have any other suggestion. we want customer to reach simulation screen before save.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 08:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694001#M1293707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T08:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694002#M1293708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get it.... You want the processing to stop at Simulation screen running in 'N' mode..... I don't think that is possible logically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have an idea, i think it might work,&lt;/P&gt;&lt;P&gt;comment the code of posting i.e OKCODE '=BU' and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way can you put ur code here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 09:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694002#M1293708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694003#M1293709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;should we change running mode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 09:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694003#M1293709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694004#M1293710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'N' mode doesn't displays any screen, so even if you simulate it or not, it won't matter as the screens won't be shown at all, even if error occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in 'E' mode only screen on which error occurs, the BDC stops for user intervention. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in 'A' mode all the screens are shown and BDC progresses with user intervention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try commenting '=BU' part of BDC and checked? Well it might work but i am not sure...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 09:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694004#M1293710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694005#M1293711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we ll try thanks for your kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 11:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694005#M1293711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: simulation in FI document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694006#M1293712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Tripat for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we run in error mode, and we told the program before "save" to "give error" so the document stops before save.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 06:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-in-fi-document/m-p/5694006#M1293712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T06:15:18Z</dc:date>
    </item>
  </channel>
</rss>

