<?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: bdc update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595396#M865803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please gimme some ideas..its v.v.urgent..&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, 26 Mar 2008 11:38:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T11:38:47Z</dc:date>
    <item>
      <title>bdc update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595395#M865802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guyz,&lt;/P&gt;&lt;P&gt;At the moment only one user can  apply condition type if  two users apply at the same time its taking the only one and declining the other...so now i want to make it sure it should work for both the users..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program (at present) :&lt;/P&gt;&lt;P&gt;DATA: lv_discount(5) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_from(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_to(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_prkz LIKE mara-iprkz,&lt;/P&gt;&lt;P&gt;        lv_save TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_system_msgtyp LIKE bdcmsgcoll-msgtyp VALUE 'S',&lt;/P&gt;&lt;P&gt;             c_discountsave_msgid LIKE bdcmsgcoll-msgid VALUE 'VK',&lt;/P&gt;&lt;P&gt;             c_discountsave_msgnr LIKE bdcmsgcoll-msgnr VALUE '023'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK gs_ci_include_x-zzdiscountam = 'X' OR&lt;/P&gt;&lt;P&gt;        gs_ci_include_x-zzdiscountva = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;On creation all X fields are marked so check we have values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CHECK NOT gs_ci_include-zzdiscountva IS INITIAL.&lt;/P&gt;&lt;P&gt;  IF gs_ci_include-zzdiscountam &amp;lt; 0.&lt;/P&gt;&lt;P&gt;    lv_discount = gs_ci_include-zzdiscountam * -1.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CONCATENATE '-' gs_ci_include-zzdiscountam INTO lv_discount.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CONDENSE lv_discount NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE sy-datum TO lv_from.&lt;/P&gt;&lt;P&gt;  WRITE gs_ci_include-zzdiscountva TO lv_to.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; * Update discount.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; * Assumes only one discount per customer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR bdcdata. REFRESH bdcdata.&lt;/P&gt;&lt;P&gt;  CLEAR messtab. REFRESH messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING 'SAPMV13A' '0100' 'X' ' ' ' '.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'RV13A-KSCHL' 'K007'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING 'RV13A307' '1000' 'X' ' ' ' '.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'F001'&lt;/P&gt;&lt;P&gt;                         gs_salesarea-salesarea-sales_org.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'F002'&lt;/P&gt;&lt;P&gt;                         gs_salesarea-salesarea-channel.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'F003-LOW' p_iv_customer.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'BDC_OKCODE' '=HIZ1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING 'SAPMV13A' '1307' 'X' ' ' ' '.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'KOMG-KUNNR(01)' p_iv_customer.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'KONP-KBETR(01)' lv_discount.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'RV13A-DATAB(01)' lv_from.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'RV13A-DATBI(01)' lv_to.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_load USING ' ' ' ' ' ' 'BDC_OKCODE' '=SICH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION 'VK12' USING bdcdata&lt;/P&gt;&lt;P&gt;               MODE gv_bdcmode&lt;/P&gt;&lt;P&gt;               UPDATE 'S'&lt;/P&gt;&lt;P&gt;               MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT messtab.&lt;/P&gt;&lt;P&gt;    IF messtab-msgtyp = c_system_msgtyp&lt;/P&gt;&lt;P&gt;    AND messtab-msgid = c_discountsave_msgid&lt;/P&gt;&lt;P&gt;    AND messtab-msgnr = c_discountsave_msgnr.&lt;/P&gt;&lt;P&gt;      lv_save = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF lv_save IS INITIAL.&lt;/P&gt;&lt;P&gt;    gv_exit = 'X'.&lt;/P&gt;&lt;P&gt;    gt_errors-line = 'Failed to insert/update discount'.&lt;/P&gt;&lt;P&gt;    LOOP AT messtab.&lt;/P&gt;&lt;P&gt;      PERFORM message_capture USING messtab-msgid&lt;/P&gt;&lt;P&gt;                                 messtab-msgnr&lt;/P&gt;&lt;P&gt;                                 messtab-msgv1&lt;/P&gt;&lt;P&gt;                                 messtab-msgv2&lt;/P&gt;&lt;P&gt;                                 messtab-msgv3&lt;/P&gt;&lt;P&gt;                                 messtab-msgv4&lt;/P&gt;&lt;P&gt;                           CHANGING gt_errors-line.&lt;/P&gt;&lt;P&gt;      APPEND gt_errors.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Plz Advise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595395#M865802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: bdc update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595396#M865803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please gimme some ideas..its v.v.urgent..&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, 26 Mar 2008 11:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595396#M865803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: bdc update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595397#M865804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What Happens if your project manger and you are working on the same code at the same time he saves some thing and you too try to save  some thing, some one has to loose his work...two people cannot update same condition type in VK12 as the TCODE locks the entries...so its not possible to update the database when it is already locked by others...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kaluvala Santhosh on Mar 26, 2008 5:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 11:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595397#M865804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T11:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: bdc update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595398#M865805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi santosh ,&lt;/P&gt;&lt;P&gt;thanks for your reply...but to prevent this it is proposed that all discounts are 'collected' in a temp table to be processes by a seperate update job to be schedule to run on regular basis, this will allows us to contract creation and ensure all discounts condition records are being created and applied correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we apply this on the present program...plz advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 11:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-update/m-p/3595398#M865805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T11:54:23Z</dc:date>
    </item>
  </channel>
</rss>

