<?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 Inserting the new values into Ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165030#M1516370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If your program should never update records, add a "technical" key field, and fill it using a timestamp or a number range counter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting this point. If you dont mine can you eloberate it please.&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;Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 06:59:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-12T06:59:55Z</dc:date>
    <item>
      <title>Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165023#M1516363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement that when ever user enters the value in Billing Qty input which is in VF01 tcode and the table is VBRP-FKIMG, and client want billing qty and previous month reading, the fields are not in VBRP. So I have created a custom table name as YSD-EXPORT_QTY with fields of CUSTOMER, MONTH, YEAR, BILL_QTY, PREV_READING, CUMULATIVE... When ever user enter the Billing Qty I want to update database table and initally there is no data in custom table. I tried below code but i am not getting and i am getting the error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;"The type of the database table and work area (or internal table) "WA_EXPORT" are not Unicode convertible. "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, How can I resolve this issue.. I am trying this since from 3 days... if u have any sample code please give me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE WA_VBRP-FKIMG TO WA_EXPORT-BILL_QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_EXPORT-CUMULATIVE = WA_EXPORT-BILL_QTY + WA_EXPORT-PREV_READING.&lt;/P&gt;&lt;P&gt;WA_EXPORT-PREV_READING = WA_EXPORT-CUMULATIVE.&lt;/P&gt;&lt;P&gt;APPEND WA_EXPORT TO IT_EXPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO YSD_EXPORT_QTY VALUES WA_EXPORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165023#M1516363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165024#M1516364</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;Have you tried to modify the z table using MODIFY statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODIFY ysd_export_qty FROM TABLE it_export.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165024#M1516364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165025#M1516365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually Initially there is no data in my custom table.. I want to insert the data through program by every day...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried by using Modify Stmt.. it didnt worked..&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;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165025#M1516365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165026#M1516366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me regarding above issue cause I stucked there since from 3 days... I have tried all the ways but my table is not modifying...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks n Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165026#M1516366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165027#M1516367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the definition of the work area, should look like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA WA_EXPORT TYPE YSD_EXPORT_QTY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- I hope there is a client column MANDT in the database table&lt;/P&gt;&lt;P&gt;- Check [Work Areas in Open SQL Statements|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 06:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165027#M1516367</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-12T06:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165028#M1516368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanq for solution.. it's updating the Database but it is overriding already existing record.. but i need it to insert into my databse table...&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;Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 06:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165028#M1516368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165029#M1516369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it overrides existting record, you should add new key fields to your database table, there can be only one record per set of key values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose  keys look like MANDT, KUNNR, GJAHR, MONAT or MANDT VBELN POSNR or a combination of both set of keys (not sure to understand you requirement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to first read from database if some data already exists,&lt;/P&gt;&lt;P&gt;- if yes, add the new quantities and UPDATE the record&lt;/P&gt;&lt;P&gt;- if no, INSERT a new record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember keys define a unique record, and cannot be updated once inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your program should never update records, add a "technical" key field, and fill it using a timestamp or a number range counter (FM NUMBER_GET_NEXT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 06:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165029#M1516369</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-12T06:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165030#M1516370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If your program should never update records, add a "technical" key field, and fill it using a timestamp or a number range counter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting this point. If you dont mine can you eloberate it please.&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;Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 06:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165030#M1516370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T06:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165031#M1516371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you want to keep a log per customer order, the key fields MANDT, VBELN wont be sufficient as only one record can be recorder per order, so you add another key, say CPUDT and CPUTM, so you are able to store the log whenever user changes any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 07:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165031#M1516371</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-12T07:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting the new values into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165032#M1516372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apology for not being able to understand, I am a fresher and i hope u understand. Please guide me why do we need to maintain the log for the customers order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to update the records using a program, when ever user enters the value of VBELN(input) then updations can be done in custom table.&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;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 08:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-the-new-values-into-ztable/m-p/7165032#M1516372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T08:34:39Z</dc:date>
    </item>
  </channel>
</rss>

