<?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: Error with BAPI_PS_PRECOMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492176#M1420474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="849501"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2009 06:20:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-24T06:20:55Z</dc:date>
    <item>
      <title>Error with BAPI_PS_PRECOMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492173#M1420471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create the WBS Elements along with Settlement Rules,First I'm creating the Project Definitions.&lt;/P&gt;&lt;P&gt;Once Project Definitions were created successfully,to create the WBS Elements,using the below peace of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PS_INITIALIZATION'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PS_PRECOMMIT'&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the 'BAPI_PS_PRECOMMIT',I'm getting Errors as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final check of the project definition and the WBS elements: Error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Fill in all required entry fields&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can anyone show some light on how to rectify this problem and what may be the origin for this issue.&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;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 06:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492173#M1420471</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-12-22T06:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error with BAPI_PS_PRECOMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492174#M1420472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am not sure about this error but i can help you with my findings in this issue.&lt;/P&gt;&lt;P&gt;I searched for the error message in where used list ,It is used in FM  CJ2001_PROJECT_PRECOMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Error message is thrown based on flag &lt;STRONG&gt;&lt;EM&gt;lv_error&lt;/EM&gt;&lt;/STRONG&gt;  . &lt;/P&gt;&lt;P&gt;It is set  based on below code. Please debug this part of code and let us know your findings,Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* 'CJWB_CHECK_BEFORE_COMMIT' changes title and status
* Save it before and set it back afterwards
  lv_title = sy-title.
  GET PF-STATUS ls_status.
  CALL FUNCTION 'CJWB_CHECK_BEFORE_COMMIT'
       EXCEPTIONS
            cancel = 1.
  IF sy-subrc &amp;lt;&amp;gt; 0.         "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Check 1
*   error from validation or BAdI ...
    lv_error = 'X'.
  ENDIF.
  SET PF-STATUS ls_status OF PROGRAM sy-cprog.
  sy-title = lv_title.

  IF lv_error IS INITIAL.
    CALL FUNCTION 'CJTR_POST_DATES'
         EXCEPTIONS
              sched_wrong    = 1
              check_top_down = 2
              OTHERS         = 0.
* if nothing is changed no_data_changed is raised in 'CJTR_POST_DATES'
* no error -&amp;gt; OTHERS = 0
    IF sy-subrc &amp;lt;&amp;gt; 0.             "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Check 2
      sy-msgty = 'E'.
      PERFORM put_sy_message(saplco2o).
      lv_error = 'X'.
    ENDIF.
  ENDIF.

* no number changes after this point ...
  IF lv_error IS INITIAL.
    PERFORM update IN PROGRAM saplcjtr.
    PERFORM get_new_numbers IN PROGRAM saplcjtr.
    PERFORM on_commit IN PROGRAM saplcjwb.
*   Overall success message for PD and all WBS elements involved
    MESSAGE s070(cnif_pi) WITH text-ner INTO null.
  ELSE.
*   Overall error message for PD and all WBS elements involved
    MESSAGE e070(cnif_pi) WITH text-err INTO null.  " &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Thrown Error  Message 
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 06:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492174#M1420472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error with BAPI_PS_PRECOMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492175#M1420473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any new Inputs please.&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;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492175#M1420473</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-12-22T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error with BAPI_PS_PRECOMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492176#M1420474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="849501"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 06:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492176#M1420474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-24T06:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error with BAPI_PS_PRECOMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492177#M1420475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the following link see the &lt;STRONG&gt;3.4.4 point&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/PLM/Using" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/PLM/Using&lt;/A&gt;&lt;EM&gt;Sub-System&lt;/EM&gt;to&lt;EM&gt;synchronize&lt;/EM&gt;PS+status?focusedCommentId=145719899&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krupajani on Dec 24, 2009 7:26 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 06:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492177#M1420475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-24T06:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error with BAPI_PS_PRECOMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492178#M1420476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreeram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this is an old thread, I hope this help anybody that comes here looking for an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with mandatory fields related to T-Code CJ20N. For me, this was a DATA issue. The problem happened when the BAPI PRECOMMIT was checking the mandatory fields values. If there is one with blank value, it triggers an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 03:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-bapi-ps-precommit/m-p/6492178#M1420476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-01T03:40:50Z</dc:date>
    </item>
  </channel>
</rss>

