<?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: ORA-01722: invalid number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979799#M400930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone, please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 20:00:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T20:00:05Z</dc:date>
    <item>
      <title>ORA-01722: invalid number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979796#M400927</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;In this particular program, I have a subroutine and Native SQL statement to connect to the external database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It always works FINE for me in the Prod. R/3 4.7 system but when I try it in the R/3 4.7 Ides, I'm getting dumped everytime with error above ORA-01722: Invalid Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am puzzle, WHY? I tested in the QA system and it also works. But not in Ides system, why???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any helps greatly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the subroutine FORM, It stops right at line "insert into TASK".&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;FORM frmwritesapactivities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : ctablekey(30) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  cstatusmessage = 'Updating the Activities'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      text = cstatusmessage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'task_task_id' TO ctablekey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tops WHERE&lt;/P&gt;&lt;P&gt;    opaction = 'I' OR&lt;/P&gt;&lt;P&gt;    opaction = 'U' OR&lt;/P&gt;&lt;P&gt;    opaction = 'R' OR&lt;/P&gt;&lt;P&gt;    opaction = 'A'.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 4.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT torders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT tops WHERE aufpl = torders-aufpl AND&lt;/P&gt;&lt;P&gt;      ( opaction = 'I' OR opaction = 'A' OR opaction = 'U').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WRITE  tops-p3eact    TO tops-task_code.&lt;/P&gt;&lt;P&gt;      WRITE : tblprojdata-proj_id TO tops-proj_id,&lt;/P&gt;&lt;P&gt;             'N'            TO tops-rev_fdbk_flag,&lt;/P&gt;&lt;P&gt;             'N'            TO tops-lock_plan_flag,&lt;/P&gt;&lt;P&gt;             'N'            TO tops-auto_compute_act_flag,&lt;/P&gt;&lt;P&gt;             'CP_Drtn'      TO tops-complete_pct_type,&lt;/P&gt;&lt;P&gt;             'TT_Task'      TO tops-task_type,&lt;/P&gt;&lt;P&gt;             'DT_FixedDrtn' TO tops-duration_type,&lt;/P&gt;&lt;P&gt;             'RV_OK'        TO tops-review_type,&lt;/P&gt;&lt;P&gt;             'TK_NotStart'  TO tops-status_code,&lt;/P&gt;&lt;P&gt;             tops-ltxa1     TO tops-task_name,&lt;/P&gt;&lt;P&gt;             tops-arbei     TO tops-target_work_qty,&lt;/P&gt;&lt;P&gt;             tops-arbei     TO tops-remain_work_qty,&lt;/P&gt;&lt;P&gt;             tops-dauno     TO tops-target_drtn_hr_cnt,&lt;/P&gt;&lt;P&gt;             tops-dauno     TO tops-remain_drtn_hr_cnt,&lt;/P&gt;&lt;P&gt;             tops-ismnw     TO tops-act_work_qty,&lt;/P&gt;&lt;P&gt;             'N'            TO tops-DRIVING_PATH_FLAG.&lt;/P&gt;&lt;P&gt;      MOVE : tproject-clndr_id    TO tops-clndr_id,&lt;/P&gt;&lt;P&gt;             0                    TO tops-phys_complete_pct,&lt;/P&gt;&lt;P&gt;             1                    TO tops-est_wt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF tops-timerecorded = 'X'.&lt;/P&gt;&lt;P&gt;        WRITE : 'TK_Active'  TO tops-status_code.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY tops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tops WHERE subop &amp;lt;&amp;gt; 'X' AND&lt;/P&gt;&lt;P&gt;                 ( opaction = 'I' OR opaction = 'A' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXEC SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      insert into TASK&lt;/P&gt;&lt;P&gt;        ( TASK_ID,&lt;/P&gt;&lt;P&gt;          PROJ_ID,&lt;/P&gt;&lt;P&gt;          WBS_ID,&lt;/P&gt;&lt;P&gt;          CLNDR_ID,&lt;/P&gt;&lt;P&gt;          EST_WT,&lt;/P&gt;&lt;P&gt;          PHYS_COMPLETE_PCT,&lt;/P&gt;&lt;P&gt;          RSRC_ID,&lt;/P&gt;&lt;P&gt;          REV_FDBK_FLAG,&lt;/P&gt;&lt;P&gt;          LOCK_PLAN_FLAG,&lt;/P&gt;&lt;P&gt;          AUTO_COMPUTE_ACT_FLAG,&lt;/P&gt;&lt;P&gt;          COMPLETE_PCT_TYPE,&lt;/P&gt;&lt;P&gt;          TASK_TYPE,&lt;/P&gt;&lt;P&gt;          DURATION_TYPE,&lt;/P&gt;&lt;P&gt;          REVIEW_TYPE,&lt;/P&gt;&lt;P&gt;          STATUS_CODE,&lt;/P&gt;&lt;P&gt;          TASK_CODE,&lt;/P&gt;&lt;P&gt;          TASK_NAME,&lt;/P&gt;&lt;P&gt;          TARGET_WORK_QTY,&lt;/P&gt;&lt;P&gt;          TARGET_DRTN_HR_CNT,&lt;/P&gt;&lt;P&gt;          REMAIN_WORK_QTY,&lt;/P&gt;&lt;P&gt;          REMAIN_DRTN_HR_CNT,&lt;/P&gt;&lt;P&gt;          ACT_WORK_QTY )&lt;/P&gt;&lt;P&gt;        VALUES (&lt;/P&gt;&lt;P&gt;          :tOps-TASK_ID,&lt;/P&gt;&lt;P&gt;          :tOps-PROJ_ID,&lt;/P&gt;&lt;P&gt;          :tOps-WBS_ID,&lt;/P&gt;&lt;P&gt;          :tOps-CLNDR_ID,&lt;/P&gt;&lt;P&gt;          :tOps-EST_WT,&lt;/P&gt;&lt;P&gt;          :tOps-PHYS_COMPLETE_PCT,&lt;/P&gt;&lt;P&gt;          :tOps-RSRC_ID,&lt;/P&gt;&lt;P&gt;          :tOps-REV_FDBK_FLAG,&lt;/P&gt;&lt;P&gt;          :tOps-LOCK_PLAN_FLAG,&lt;/P&gt;&lt;P&gt;          :tOps-AUTO_COMPUTE_ACT_FLAG,&lt;/P&gt;&lt;P&gt;          :tOps-COMPLETE_PCT_TYPE,&lt;/P&gt;&lt;P&gt;          :tOps-TASK_TYPE,&lt;/P&gt;&lt;P&gt;          :tOps-DURATION_TYPE,&lt;/P&gt;&lt;P&gt;          :tOps-REVIEW_TYPE,&lt;/P&gt;&lt;P&gt;          :tOps-STATUS_CODE,&lt;/P&gt;&lt;P&gt;          :tOps-TASK_CODE,&lt;/P&gt;&lt;P&gt;          :tOps-TASK_NAME,&lt;/P&gt;&lt;P&gt;          :tOps-TARGET_WORK_QTY,&lt;/P&gt;&lt;P&gt;          :tOps-TARGET_DRTN_HR_CNT,&lt;/P&gt;&lt;P&gt;          :tOps-REMAIN_WORK_QTY,&lt;/P&gt;&lt;P&gt;          :tOps-REMAIN_DRTN_HR_CNT,&lt;/P&gt;&lt;P&gt;          :tOps-ACT_WORK_QTY )&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979796#M400927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-01722: invalid number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979797#M400928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;It a Oracle database error.&lt;/P&gt;&lt;P&gt;Check the datatypes of all the fields that you are trying to insert in to table TASK.&lt;/P&gt;&lt;P&gt;Maybe you are passing a char into a number field. Pls check if you are mapping all the fields correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979797#M400928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-01722: invalid number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979798#M400929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes I know what the error meant but the problem here is it always works in Prod or QA but NOT in this Idess system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same database that I was using for in QA so I know it is mapping fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979798#M400929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-01722: invalid number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979799#M400930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone, please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 20:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979799#M400930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-01722: invalid number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979800#M400931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for a chance, check the number format in both the systems... one may be passing 100,000.00 and other may be 100.000,00 or something like this. Coz, i had the same problem some months back... Check thru' SU01 in SAP and in DB of legacy..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Audy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 20:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979800#M400931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T20:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-01722: invalid number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979801#M400932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Audum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that was it. I was assume all set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;caused me 4 hrs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 20:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ora-01722-invalid-number/m-p/1979801#M400932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T20:48:02Z</dc:date>
    </item>
  </channel>
</rss>

