<?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: BAPI_PS_PRECOMMIT dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779810#M909476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same trouble...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryied comment this BAPI but it' doesn't work. &lt;/P&gt;&lt;P&gt;When execute the line: COMMIT WORK is done a check in a pre commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 14:49:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-05T14:49:10Z</dc:date>
    <item>
      <title>BAPI_PS_PRECOMMIT dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779809#M909475</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;In my spec I am using the bapis:&lt;/P&gt;&lt;P&gt;BAPI_BUS2002_GETDATA           &lt;/P&gt;&lt;P&gt;BAPI_PS_INITIALIZATION         &lt;/P&gt;&lt;P&gt;BAPI_PROJECTDEF_EXISTENCECHECK &lt;/P&gt;&lt;P&gt;BAPI_BUS2001_GETDATA           &lt;/P&gt;&lt;P&gt;BAPI_BUS2001_CREATE            &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK      &lt;/P&gt;&lt;P&gt;BAPI_BUS2054_GETDATA           &lt;/P&gt;&lt;P&gt;BAPI_PROJECT_EXISTENCECHECK    &lt;/P&gt;&lt;P&gt;BAPI_BUS2054_CREATE_MULTI      &lt;/P&gt;&lt;P&gt;BAPI_BUS2002_CREATE            &lt;/P&gt;&lt;P&gt;BAPI_BUS2002_ACT_CREATE_MULTI  &lt;/P&gt;&lt;P&gt;BAPI_NETWORK_COMP_ADD          &lt;/P&gt;&lt;P&gt;BAPI_PS_PRECOMMIT              &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine, the def project are created, then it creates the element pep, the network and the activity. All items are created without errors. The components will be created after this proccess  done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems to use the BAPI_PS_PRECOMMIT, showing dump error:  Exception condition "PSPNR" raised. Dump screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 408 * end of ldst modification                                           
 409                                                                      
 410 * old syntax (do that also if ldst not activated)                    
 411         IF *proj-pspnr &amp;lt;&amp;gt; i_proj-pspnr.                              
------------           RAISE pspnr.                                               
 413         ENDIF.                                                       
 414 *       BEAKZ_PROJ initial: File completely unchanged                
 415 *       BEAKZ_PROJ set and ARC_PROJ initial: Status change           
 416         IF beakz_proj IS INITIAL OR                                  
 417            arc_proj   IS INITIAL.                                    
 418           arc_proj = *proj.            "-&amp;gt; Merken f. Aenderungshist. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  IF NOT tg_defi IS INITIAL.
    SORT: tg_tran BY projeto,
          tg_resp BY elemento.
    LOOP AT tg_defi INTO wa_defi. 
      CLEAR vg_erro.
      PERFORM f_bapi_ps_initialization.

      CONCATENATE wa_defi-letra
                  c_ponto
                  wa_defi-empresa
                  c_ponto
                  wa_defi-divisao
                  INTO vg_proj_def.
      PERFORM f_create_def_prj.
      CHECK vg_continue IS INITIAL. 
      PERFORM f_create_pep.
      CHECK vg_continue IS INITIAL. 
      PERFORM f_create_network.
      PERFORM f_create_activity.
      IF vg_erro IS INITIAL.
        PERFORM f_bapi_ps_precommit.
        READ TABLE tg_return WITH KEY type = c_e TRANSPORTING NO FIELDS.
        IF sy-subrc &amp;lt;&amp;gt; 0.
          PERFORM f_bapi_transaction_commit.
          READ TABLE tg_tran INTO wa_tran
               WITH KEY projeto = vg_proj_def BINARY SEARCH.
          CLEAR wa_cn33.
          PERFORM f_de_para_6.
          APPEND wa_cn33 TO tg_cn33.
        ELSE.
          vg_errors = vg_errors + 1.
        ENDIF.
      ELSE.
        PERFORM f_bapi_transaction_rollback.
        vg_errors = vg_errors + 1.
        wa_resumo-proj_def = vg_proj_def.
        wa_resumo-descricao = wa_defi-descr.
        wa_resumo-processado = c_n.
        wa_resumo-no_msg_erro = vg_errors.
        APPEND wa_resumo TO tg_resumo.
        CLEAR: vg_errors, wa_resumo.
        CONTINUE.
      ENDIF.
      wa_resumo-proj_def = vg_proj_def.
      wa_resumo-descricao = wa_defi-descr.
      IF vg_errors IS INITIAL.
        wa_resumo-processado = c_s.
      ELSE.
        wa_resumo-processado = c_n.
      ENDIF.
      wa_resumo-no_msg_erro = vg_errors.
      APPEND wa_resumo TO tg_resumo.
    ENDLOOP. 
    PERFORM f_create_comp.
  ENDIF.
ENDFORM.                    


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, if you know what is wrong and how I can do this, please tell me. I tried to do only bapi_transaction_commit, but it checks if the pre_commit is ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 14:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779809#M909475</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2008-05-05T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PS_PRECOMMIT dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779810#M909476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same trouble...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryied comment this BAPI but it' doesn't work. &lt;/P&gt;&lt;P&gt;When execute the line: COMMIT WORK is done a check in a pre commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 14:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779810#M909476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PS_PRECOMMIT dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779811#M909477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the links below listed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://abap.wikiprog.com/wiki/BAPI_BUS2001_DELETE#Recommendation_.22COMMIT_WORK_AND_WAIT.22]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.mundosap.com/foro/showthread.php?t=12184]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls don't forget to mention reward points!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 15:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779811#M909477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PS_PRECOMMIT dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779812#M909478</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;Did you take look in a SAP Note for that case?&lt;/P&gt;&lt;P&gt;Check if there's not an additional field to mark on that BAPI structure, where RAISE occurs.&lt;/P&gt;&lt;P&gt;If it's being created, maybe it's necessary to make an additional configuration for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brian Gonsales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 19:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779812#M909478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PS_PRECOMMIT dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779813#M909479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exactly the same issue.  Did you  have solution already ?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only I noticed following specific . When I execute following BAPIs  chain it works ok :&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;BAPI_PS_INITIALIZATION (Initialization of the Current Process Unit),&lt;/P&gt;&lt;P&gt;BAPI_BUS2001_CREATE ( Project definition),                          &lt;/P&gt;&lt;P&gt;BAPI_BUS2054_CREATE_MULTI ( WBS elements definition ),      &lt;/P&gt;&lt;P&gt;BAPI_BUS2054_CHANGE_MULTI ( Change WBS Elements Using BAPI )&lt;/P&gt;&lt;P&gt;BAPI_PS_PRECOMMIT -  Precommit for PS BAPIs                         &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT - Execute external Commit when using BAPIs  &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I added  u201CCreate network headeru201D BAPI :&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;BAPI_PS_INITIALIZATION (Initialization of the Current Process Unit),&lt;/P&gt;&lt;P&gt;BAPI_BUS2001_CREATE ( Project definition),                          &lt;/P&gt;&lt;P&gt;BAPI_BUS2054_CREATE_MULTI ( WBS elements definition ),      &lt;/P&gt;&lt;P&gt;BAPI_BUS2054_CHANGE_MULTI ( Change WBS Elements Using BAPI )&lt;/P&gt;&lt;P&gt;BAPI_BUS2002_CREATE ( Create network header  assigned to WBS ),   ***&lt;/P&gt;&lt;P&gt;BAPI_PS_PRECOMMIT -  Precommit for PS BAPIs                         &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT - Execute external Commit when using BAPIs &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got dump  from   BAPI_PS_PRECOMMIT  :&lt;/P&gt;&lt;P&gt;*---&lt;/P&gt;&lt;P&gt;  Function module  CJDW_PROJ_MODIFY  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;old syntax (do that also if ldst not activated)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF *proj-pspnr &amp;lt;&amp;gt; i_proj-pspnr.&lt;/P&gt;&lt;P&gt;          RAISE pspnr.&lt;/P&gt;&lt;P&gt;        ENDIF.    &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;i_proj-pspnr = 999999999 but&lt;/P&gt;&lt;P&gt;*proj-pspnr =  00000229 ( itu2019s next after last existing project NUMBER. SAP assigned it ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting that  added  BAPI_BUS2002_CREATE has not error messages  and executed  successfully .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas pleeeeeeaaaaaase !   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anatoly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-ps-precommit-dump/m-p/3779813#M909479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T11:50:09Z</dc:date>
    </item>
  </channel>
</rss>

