<?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: PROBLEM IN BDC FOR WHILE CREATING PGI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410319#M197679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first, I would suggest you try with VL02 Tcode rather doing for enjoy transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updation of Z table should be sync with your PGI transaction. Here the INSERT/UPDATE should in PERFORM ON COMMIT so the both transaction and Z table will be in sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the error you are getting for first time execution? Do you need commit work before call transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2006 16:59:32 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2006-07-18T16:59:32Z</dc:date>
    <item>
      <title>PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410317#M197677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am using BDC program to Create PGI automatically from custom development program for CASHTILL . In Vl02n there is one Custom development screen '9999', it will be called when press POSTGOODSISSUE button in VL02n. I am filling this screen also Using BDC. This custom screen is called in USEREXIT SAPMV50A include mv50afz1 in USEREXIT_SAVE_DOCUMENT_PREPARE. This code will update one Custome Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is when i run BDC it's updatting the custom table,but it's not creating PGI,but when i run the secondtime my BDC program it's creating PGI. Please help me why i am getting this error? I pasted my code here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YVL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA T_CODE(10) TYPE C VALUE 'VL02N'.&lt;/P&gt;&lt;P&gt;DATA:  T_BDCDATA TYPE STANDARD TABLE OF BDCDATA     WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  h_bdcdata  TYPE STANDARD TABLE OF BDCDATA     WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : L_DATE(10) TYPE C,&lt;/P&gt;&lt;P&gt;       L_DATE1(10) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     DATE_INTERNAL              = SY-DATUM&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     DATE_EXTERNAL              = L_DATE1&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     DATE_INTERNAL_IS_INVALID   = 1&lt;/P&gt;&lt;P&gt;     OTHERS                     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV50A' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LIKP-VBELN'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=WABU_T'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LIKP-VBELN'&lt;/P&gt;&lt;P&gt;                              '80003504'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZSD_PROOF_DELIV' '9999'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZSD_PROOF_DELIV-NAME_LAST'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZSD_PROOF_DELIV-NAME_FIRST'&lt;/P&gt;&lt;P&gt;                              'cash'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZSD_PROOF_DELIV-NAME_LAST'&lt;/P&gt;&lt;P&gt;                              'sales'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZSD_PROOF_DELIV-YSDATE'&lt;/P&gt;&lt;P&gt;                              L_DATE1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZSD_PROOF_DELIV-YSTIME'&lt;/P&gt;&lt;P&gt;                              '11:14:01'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=WABU_T'.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION  T_CODE USING t_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_dynpro USING program dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR h_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND h_bdcdata TO t_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field USING fnam fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR h_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND h_bdcdata TO t_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BDC_FIELD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 16:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410317#M197677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410318#M197678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try using SHDB, just use that to record your BDC and see if your code differs from what the system suggests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 16:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410318#M197678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T16:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410319#M197679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first, I would suggest you try with VL02 Tcode rather doing for enjoy transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updation of Z table should be sync with your PGI transaction. Here the INSERT/UPDATE should in PERFORM ON COMMIT so the both transaction and Z table will be in sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the error you are getting for first time execution? Do you need commit work before call transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 16:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410319#M197679</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-18T16:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410320#M197680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subha,&lt;/P&gt;&lt;P&gt;use commit statement at the end of your your perform.&lt;/P&gt;&lt;P&gt;Ankur Garg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 17:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410320#M197680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410321#M197681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the delivery user exit contain a COMMIT WORK? &lt;/P&gt;&lt;P&gt;If it does, it may cause a problem with the BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 18:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410321#M197681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T18:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410322#M197682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, It's having COMMIT Statement in the USEREXIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 18:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410322#M197682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T18:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410323#M197683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not worked with BDC's in many years, but I thought a COMMIT will stop the BDC.  It ends the transaction.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like the first time it hits the COMMIT, it populates your custom table and ends the BDC before getting to the PGI step.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second time the custom table is already populated and does not hit the COMMIT.  This allows the BDC to continue.  Just a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 19:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410323#M197683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T19:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN BDC FOR WHILE CREATING PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410324#M197684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this  "COMMIT WORK  after the calling the VVL02'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION T_CODE USING t_bdcdata.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt; SY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 19:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-while-creating-pgi/m-p/1410324#M197684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T19:21:20Z</dc:date>
    </item>
  </channel>
</rss>

