About calling a program while inserting the fields

hi friends,
                Can you help to know how we can achieve to automatically calculate the field value and assign when all other fields were inserted...
Consider num1,num2,num3 are three fields
I am calculating the num1 and num2 values and putting to num3.
I have written a code in ABAP to calculate and the result is modified in DB.
But i need to calculate it automaticall this program want to run when the two fields(num1 and num2) are entered.

Hi Mahesh,
You can do this like.
if not num1 and num2 is intial.
  SUBMIT REPORT01
       VIA SELECTION-SCREEN
       USING SELECTION-SET 'VARIANT1'
       USING SELECTION-SETS OF PROGRAM 'REPORT00'
       AND RETURN.
endif.
Try this out... may trun into result for you.
Regards,
Jayant

Similar Messages

  • Error while inserting the value in xmltype field of oracle using ALDSP?

    I am getting the following error, while trying to insert the large xml in the xmltype field of oracle using aldsp service:
    inconsistent datatypes: expected - got CLOB in bea
    But this error does not occur when the input xml is of smaller size.

    Please post the complete error message and stack trace.

  • Error while inserting date field data in user nanaged cache group( program)

    Hi,
    I had usermanaged cachegroup, it is working fine as expected when I insert the record on the ttIsql prompt but when I try to insert the record programmatically (using c language ) it gives me the following error for date field
    pthread_kill(??, ??) at 0x90000000217d214
    praise(??) at 0x90000000217cc68
    raise.raise(??) at 0x900000000050c84
    abort() at 0x90000000007ac1c
    getExports.getPtrArrayIf() at 0x9000000030a16c0
    datetime.sbPatCmp() at 0x9000000033033ec
    cacheAgingAPI.hashString() at 0x900000003663eac
    unnamed block in ttBdbOraInputValue(0x7000000476efbb0, 0x73000000000073, 0x70000004866dea8, 0x113d8fdf0, 0xfffffffffffd250, 0x113d8fdf8, 0x113c1def0), line 690 in "bdbConvert.c"
    ttBdbOraInputValue(0x7000000476efbb0, 0x73000000000073, 0x70000004866dea8, 0x113d8fdf0, 0xfffffffffffd250, 0x113d8fdf8, 0x113c1def0), line 690 in "bdbConvert.c"
    bdbBufferStmt(0xf9000000d2845518, 0x834d0, 0x623e8b8, 0x73000000000073, 0x0, 0x0, 0x100000001, 0xfffffffffffd3f0), line 1290 in "bdbTblH.c"
    ttBDbTableHInsert(0xf9000000d2845518, 0x834d0, 0x623e8b8, 0x73000000000073, 0x0, 0x113c1def0), line 991 in "bdbTblH.c"
    sbTblStorLTupInsert(0x7000000415347c8, 0x700000083668090, 0x0, 0x0, 0xfffffffffffd928, 0x113c1def0), line 15648 in "table.c"
    eeDML.sbEeInsertEval(0x70000008385d7c0, 0x7000000833cff98, 0x0, 0x113c1def0), line 5035 in "eeDML.c"
    eeDDL.sbEeStmtEval(0x423ac4c8, 0x7000000833cff98, 0x113c1def0), line 12100 in "eeDDL.c"
    sbSqlCmdExec(0x70000008385d618, 0x0, 0x0, 0xfffffffffffe670, 0x0, 0x0, 0x113c1def0), line 4052 in "cmdExec.c"
    sb_sqlExec(0x113d27f68, 0x0, 0x0, 0xfffffffffffe840, 0x0), line 1470 in "sqlAPI.c"
    cxlSqlExecute(0x113d273d0), line 3436 in "cxlsql.c"
    stmtExecPart2(0x113d273d0), line 1372 in "vsexec.c"
    stmtExecute(0x113d273d0), line 948 in "vsexec.c"
    SQLExecDirect(0x113d273d0, 0xfffffffffffeb20, 0xfffffffdfffffffd), line 172 in "sqlexec.c"
    Can please guide me.
    Regards
    S

    I have tried but still I am not getting, can u check it out weather we have possibilites to work with DB links or shall i remove it.

  • Question about calling batch file by using the System Exec+.vi?

    Hi
    I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?
    Bill.

    Hi,
    Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.
    Good luck.
    Oleg Chutko.

  • Problem while assigning  the fields of EBM to ABM in Provider

    Hi All,
    I am facing a problem with the fields of EBM not being able to Assign to ABM in ProviderBPEL
    In RequestorABCSImpl, i am transforming a ABM to SupplierPartyEBM(CreateSupplierPartyListEBM is the type i am using)
    Field called 'PayementTerm' is being mapped as below
    <corecom:PaymentTerm>
    <corecom:Code>
    <xsl:value-of select='dvm:lookupValue(concat("oramds:/apps/AIAMetaData/dvm/","SY_SUPPLIERPARTY_TERMTYPE",".dvm"),"MULTISYS_01",tnsaboabo:PaymentTerm/text(),"COMMON",aia:getServiceProperty($ServiceName,"SyncSupplierPartyList.PaymentTerm.Code",false()))'/>
    </corecom:Code>
    </corecom:PaymentTerm>
    after transform I am able to see the value for PaymentTerm/Code while testing requestor.
    Now in provider I am using an Assign activity to assign 'PaymentTerm/Code' to ABM field called 'termID '
    Here
    'PaymentTerm/Code' is a TermType
    'termID ' is a string.
    When i test end to end
    i am getting an error while assigning 'PaymentTerm/Code' to 'termID'
    Error i am getting is "Error in evaluate<from expression at line 677. the result is empty for xpath expression inputvariable/./../PaymentTerm/Code
    Please guide me what is wrong in this. In Input Payload i am able to see the value coming in provider but while assigning i'ts failing

    This is the input xml
    <CreateSupplierPartyListReqMsg><part name="CreateSupplierPartyListEBM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><CreateSupplierPartyListEBM xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <EBMHeader xmlns:fpsdataabo="http://xmlns.cassini.telenor.com/FPS/SupplierParty/V1" xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:EBMID>2d323432363737383037393633373932</corecom:EBMID><corecom:EBMName>{http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1}CreateSupplierPartyListEBM</corecom:EBMName><corecom:EBOName>{http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1}SupplierPartyEBO</corecom:EBOName><corecom:CreationDateTime>2012-12-07T08:51:15.135+01:00</corecom:CreationDateTime><corecom:VerbCode>Create</corecom:VerbCode><corecom:MessageProcessingInstruction><corecom:EnvironmentCode>PRODUCTION</corecom:EnvironmentCode></corecom:MessageProcessingInstruction><corecom:Sender xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:ebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions" xmlns:hashmap="http://www.oracle.com/XSL/Transform/java/java.util.HashMap"><corecom:ID>MULTISYS_01</corecom:ID><corecom:CallingServiceName>{http://xmlns.oracle.com/ABCSImpl/Multisys/Core/SyncSupplierPartyListMultisysReqABCSImpl/V1.0}SyncSupplierPartyListMultisysReqABCSImpl</corecom:CallingServiceName><corecom:Custom xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:cd:04" xmlns:tnsaboabo="http://xmlns.cassini.telenor.com/Multisys/SupplierParty/V1"><corecom:LegalEntityReference><corecom:LegalEntityIdentification><corecom:ID/></corecom:LegalEntityIdentification></corecom:LegalEntityReference></corecom:Custom></corecom:Sender><corecom:Target><corecom:ID>EBIZ_01</corecom:ID></corecom:Target><corecom:BusinessScope><corecom:ID>Supplier Party - 0000001</corecom:ID><corecom:InstanceID>CreateSupplierPartyList/32313433363838393939393637303532</corecom:InstanceID><corecom:BusinessScopeTypeCode>BusinessProcess</corecom:BusinessScopeTypeCode><corecom:EnterpriseServiceName>{http://xmlns.oracle.com/EnterpriseServices/Core/SupplierParty/V1}SupplierPartyEBSV1</corecom:EnterpriseServiceName><corecom:EnterpriseServiceOperationName>CreateSupplierPartyList</corecom:EnterpriseServiceOperationName></corecom:BusinessScope><corecom:BusinessScope><corecom:ID>CreateSupplierPartyListReqMsg</corecom:ID><corecom:InstanceID>CreateSupplierPartyListReqMsg/2d323432363737383037393633373932</corecom:InstanceID><corecom:BusinessScopeTypeCode>Message</corecom:BusinessScopeTypeCode><corecom:EnterpriseServiceName>{http://xmlns.oracle.com/EnterpriseServices/Core/SupplierParty/V1}SupplierPartyEBSV1</corecom:EnterpriseServiceName><corecom:EnterpriseServiceOperationName>CreateSupplierPartyList</corecom:EnterpriseServiceOperationName></corecom:BusinessScope><corecom:EBMTracking><corecom:SequenceNumber>1</corecom:SequenceNumber><corecom:ExecutionUnitID/><corecom:ExecutionUnitName>{http://xmlns.oracle.com/EnterpriseFlows/Core/SyncSupplierPartyListEBF/V1}SyncSupplierPartyListEBFV1</corecom:ExecutionUnitName><corecom:ImplementationCode>BPEL</corecom:ImplementationCode><corecom:ActivityDateTime>2012-12-07T08:51:15.136+01:00</corecom:ActivityDateTime></corecom:EBMTracking><xacml:Request xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:cd:04"/></EBMHeader>
    <DataArea><corecom:Create xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"/><ebo:SyncSupplierPartyList xmlns:ebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1"><corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:ID schemeID="SY_SUPPLIERPARTY_SUPPLIERPARTYID" schemeAgencyID="XREF">33363339373538363835333734303432</corecom:ID><corecom:ContextID>c</corecom:ContextID><corecom:ApplicationObjectKey><corecom:ID schemeID="VENDOR_NUMBER" schemeAgencyID="MULTISYS">0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><corecom:PartyLocation xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Identification><corecom:ApplicationObjectKey><corecom:ID>0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><corecom:LocationReference><corecom:Address><corecom:LineOne>Hillev?gsv 24</corecom:LineOne><corecom:LineTwo>Hillev?gsv 24</corecom:LineTwo><corecom:LineThree>Hillev?gsv 24</corecom:LineThree><corecom:LineFour>Hillev?gsv 24</corecom:LineFour><corecom:CityName>STAVANGER</corecom:CityName><corecom:PostalCode>4016</corecom:PostalCode></corecom:Address></corecom:LocationReference></corecom:PartyLocation><corecom:PartyContact xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Contact><corecom:PersonName><corecom:FirstName>Nordialog Stavanger</corecom:FirstName></corecom:PersonName></corecom:Contact></corecom:PartyContact><corecom:Organization xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Name>Nordialog Stavanger</corecom:Name><corecom:LegalStructureCode>00</corecom:LegalStructureCode><corecom:OrganizationFinancialProfile><corecom:FinancialProfile><corecom:FinancialAccount><corecom:AccountNumber>54130613600</corecom:AccountNumber><corecom:TypeCode>SUPPLIER</corecom:TypeCode><corecom:CurrencyCode>NOK</corecom:CurrencyCode></corecom:FinancialAccount></corecom:FinancialProfile></corecom:OrganizationFinancialProfile></corecom:Organization><ebo:CustomerNumber>0000001</ebo:CustomerNumber><ebo:MinimumOrderAmount>0</ebo:MinimumOrderAmount><ebo:TypeCode>VENDOR</ebo:TypeCode><ebo:OneTimeIndicator>false</ebo:OneTimeIndicator><ebo:SupplierPartyTradingLocationProfile><corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:ID schemeID="SY_SUPPLIERPARTY_SUPPLIERPARTYTRADINGLOCATIONPROFILEID" schemeAgencyID="XREF">2d323735363933313339333732353537</corecom:ID><corecom:ApplicationObjectKey><corecom:ID schemeID="VENDOR_NUMBER" schemeAgencyID="MULTISYS">0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><ebo:PrimaryIndicator>true</ebo:PrimaryIndicator><ebo:FreightTermsCode/><ebo:HoldReasonCode/><ebo:InvoiceCurrencyCode/><ebo:PaymentCurrencyCode/><ebo:PaymentPriorityCode>99</ebo:PaymentPriorityCode><ebo:TermsDateBasisCode/><ebo:VATTaxCode>SY25VAT</ebo:VATTaxCode><ebo:VATRegistrationNumber/><ebo:ExcludeFreightFromDiscountIndicator>false</ebo:ExcludeFreightFromDiscountIndicator><ebo:PurchasingEnabledIndicator>false</ebo:PurchasingEnabledIndicator><ebo:RFQOnlyIndicator>false</ebo:RFQOnlyIndicator><corecom:PaymentTerm xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Code>6 DAYS</corecom:Code></corecom:PaymentTerm><ebo:TradingLocationProfileAddress><corecom:Address xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:LineOne>Hillev?gsv 24</corecom:LineOne><corecom:LineTwo>Hillev?gsv 24</corecom:LineTwo><corecom:CityName>STAVANGER</corecom:CityName><corecom:PostalCode>4016</corecom:PostalCode></corecom:Address></ebo:TradingLocationProfileAddress></ebo:SupplierPartyTradingLocationProfile></ebo:SyncSupplierPartyList></DataArea>
    </CreateSupplierPartyListEBM></part></CreateSupplierPartyListReqMsg>
    And my assign is
    bpws:getVariableData('CreateSupplierPartyListReqMsg','CreateSupplierPartyListEBM','/WL5G3N2ebo:CreateSupplierPartyListEBM/WL5G3N2ebo:DataArea/WL5G3N2ebo:CreateSupplierPartyList/WL5G3N2ebo:SupplierPartyTradingLocationProfile/corecom:PaymentTerm/corecom:Code') to an 'invoke_InputVariable/termid'

  • Calling Smartform after click on the field

    Hi gurus,
    I have a alv list of data, so when i click on the field value, i want to display the smartform..
    how it is possible plz help me on this....
    the report is Zreport and smartform is zsmartform
    thanks,
    man

    Hi
    Search in SDN.Go through ALV Documentation
    I hope you know about USER_COMMAND event in ALV .You can call the code (For Smartform) Here.

  • Problem while inserting the same value on a primary key column

    hi all ,
    in my application there is a block with a pat_id column "primary key" ,
    if the user inserts the same value in this column , a message appears asking me if i want to save the changes or not ,
    i do not know what changes is the message asking about , and sure i do not want this message to appear to the user
    when he insert the same values by mistake ?
    thanks

    as a primary key field dont fill this with manually try use db seq.
    Use pre-insert trigger .

  • Error while selecting the fields in creation of Look-Up

    Hi Experts,
    I am getting following error message when writing a lookup.
    Unknown column name "/BIC/XXXXXX" until runtime, you cannot specify a field list.
    Would like to know whats the cause and how to solve it.
    Regards
    Shubh Karan

    I think you dont have a field named /BIC/XXXXXX in the table from which you are trying to fetch the data. Chech the spelling of the field name and table name.

  • Error while inserting the Unicode (Russian/Chinese) Data in Oracle Database

    Hi all,
         I am using Oracle 9i and have created database with AL32UTF8 character set. I am using OraOLEDDB 9.0.1.0.1 to connect oracle from ATL COM. I have set the NLS_LANG= AMERICAN_AMERICA.AL32UTF8 registry.
         I have created a table ItemMaster with two column ItemName Varchar2(20) and ItemDescription CLOB.
         Values are accepted in ASP page and passed to COM function. In COM function inserting in ItemMaster table using ADO record set.
         It works fine when I insert English Charaters.
         COM is getting crash when insert Russian or Chinese Characters. Error message is given below. Looks like there is problem in OraOLEDB but not sure.
         Guide me if I am doing something wrong.
    Exception: E06D7363
    Address: 0x7C81EB33
    Call Stack:
    kernel32!RaiseException + 0x52
    UTFTran! + 0x4B2D
    UTFTran! + 0x3D39
    UTFTran! + 0x3D11
    UTFTran! + 0x1870
    OLEAUT32!DispCallFunc + 0xC3
    OLEAUT32!DispCallFunc + 0x6D3
    UTFTran! + 0x1C28
    OLEAUT32! + 0x7BF39
    OLEAUT32! + 0x7B1BD
    RPCRT4!NdrProxyFreeBuffer + 0xB5
    RPCRT4!CStdStubBuffer_Invoke + 0x82
    OLEAUT32!VarMonthName + 0xCF89
    ole32!StgGetIFillLockBytesOnFile + 0x10489
    ole32!StgGetIFillLockBytesOnFile + 0x10433
    ole32!CoReleaseMarshalData + 0x7DC
    ole32!CoReleaseMarshalData + 0x701
    ole32!StgGetIFillLockBytesOnFile + 0x10369
    ole32!StgGetIFillLockBytesOnFile + 0x10214
    ole32!StgGetIFillLockBytesOnFile + 0xFF6D
    RPCRT4!NdrGetTypeFlags + 0x1C9
    RPCRT4!NdrGetTypeFlags + 0x12E
    RPCRT4!NdrGetTypeFlags + 0x5A
    RPCRT4!CreateStubFromTypeInfo + 0x2E2
    RPCRT4!CreateStubFromTypeInfo + 0x323
    RPCRT4!NdrConformantArrayFree + 0x28B
    RPCRT4!I_RpcBCacheFree + 0x14C
    RPCRT4!I_RpcBCacheFree + 0x5EA
    RPCRT4!I_RpcBCacheFree + 0x403
    RPCRT4!I_RpcBCacheFree + 0x5D2
    kernel32!GetModuleFileNameA + 0x1B4
    Regards,
    Mani

    Crossposted: http://forum.java.sun.com/thread.jspa?threadID=5293664&tstart=0

  • Problem with JDBC Recever adapter while inserting the Hebrew charecters

    HI All,
    I am using the JDBC adapter at reciver side.
    While I am inserting any hebrew charecters in database table all are getting converted into ??????
    for this Do I need to use any specific datatype?
    Please suggest...
    Best Regards
    Manish

    Hi,
    What it is showing in PI Target structure(Moni),it is showing valid format,if yes then speak with your data base team they may change data base settings to support your Hebrew characters.
    Regards,
    Raj

  • Facing a problem with RFC Call receiver error while importing the table sap sandbox

    Hi All,
    I am trying to import a table from sap sand box . while importing it is showing below error..
    RFC CallReceive error <Function DDIF_FIELDINFO_GET: RFC_ABAP_EXCEPTION-(Exception_Key: NOT_FOUND, No active nametab exists for /BIC/OHZ_ISP_SCX)[SAP NWRFC 720][SAP Partner 731 ][SCX][ics106046124][APOBODS][4103]>.
    Please suggest me how can i overcome this problem ??

    Hi Kishore,
    Can you quickly check with your SAP Basis Team whether they have installed necessary  functions related to BODS on the SAP Application server.
    Please check Supplement for SAP Guide
    Regards
    Arun Sasi

  • ORA-01438 error while inserting the BLOB value in the column

    Hi All,
    I have created a table with definition:
    CREATE TABLE stories (id NUMBER(4), story BLOB);
    Now I am trying to populate this table with some values from other table with:
    insert into stories
    select sensitivity_id, multi_value from sensitivity where sensitivity_id=3983021541;
    Here the multi_value column from th source table is also declared as BLOB so I shlould not get this error. What kind of precision needs to be set so the query doesnt faills?
    Regards,
    aashish

    Hi,
    Can you elaorate more on this..I never tried his thing but this is just a part of big procedure where I have to do this.
    Thanks,
    aashish

  • Pasting text from a word program while retaining the same italics formatting?

    Hello,
    I'm looking for a way to be able to copy text from another program (Microsoft Word) and then, using the Text tool in Photoshop (CS6), paste that text, but where it retains the correct italics formatting I had in the other program--and not as an image of text (Ctrl+P), in which the formatting is present, as a flat image, but rather as an actual unrasterized and editable Text layer. For example, the sentence “I told you..” where 'told' is italics, simply pastes into Photoshop as "I told you.." without the original formatting. Is there a way to get Photoshop to recognize formatting from pastes without my having to manually re-apply the formatting myself? This would be a hassle over a long period of time. If necesary I would be willing to use a plug-in that allows for this sort of recognition.
    Thanks!

    InDesign does correctly accept Word's formatting with 2 important considerations.
    In the InDesign preferences, Clipboard Handling needs to be set up to paste "All Information (Index Markers, Swatches, Styles, etc)
    In Word you can't use formatting like faux Bold or faux Italic in place of using a font that has an actual Bold or Italic font style.
    InDesign only allows for using fonts that have a Bold or Italic font style and no longer allows for faux styles like MS Word or older type layout applications like PageMaker or Quark (clicking a B or I button)
    You can copy the Text Block in InDesign (the arrow tool - not the text tool) and paste this into Photoshop as a Vector Smart Object.
    You can then use a layer style on this Vector Smart Object layer.
    But all this really just a sideshow. If you are copying a small amount of text, it shouldn't take long to reformat in PS.
    If you are doing a large amount of text or small amounts many, many times you should do as Willi Adelberger says and place the images in InDesign. You can place or paste text for MS Word in InDesign  (and adjust or edit it if you want)
    In InDesign you can color the text, apply special effects like drop shadows, embossing, etc.
    Can you tell us the amount of text you deal with, how often you need to do this, and what (if anything) do you want to do to the text after you get it into PS?
    I think everyone would agree with Willi's statement: "Personally I would avoid to make text objects in Photoshop if not specific raster-image effects or combinations are needed."

  • Satellite P875-31C - BSOD while inserting the SD card

    Hi all and sorry for my english.
    I have a problem when insert an SDcard in the slot. Appears a blue screen with the follow missage:
    "PAGE_FAULT_IN_NONPAGED_AREA" Your Pc we'll be checked and then restarted himself.
    My laptop have only 3 mounth and today is the first time I try to insert SD Card in the slot.
    Anybody knows what can be the problem?
    I just download and installed the drivers from official page but no good results.
    Thanks a lot
    Sergi.

    The BSOD seems to be caused due to the internal card reader.
    In your case I would recommend system recovery and additional BIOS update (if available)
    In case the BSOD would still appear using the internal card reader, you should contact the Toshiba authorized service provider which could test the hardware.
    I guess in worst case the motherboard needs to be replaced but if warrant is valid the notebook should be fixed free of charge.

  • SQL: while insert the number value

    Hi All,
    I have one doubt.please see the below issue.
    SQL>create table test (no number(10));
    Table created.
    SQL>insert into test values (001);
    1 rows inserted.
    SQL> select * from test;
    NO
    1
    But I need the value is 001.
    Note: I couldn't change the table structure.
    Regards
    RajaBaskar Thangaraj
    www.dbarajabaskar.blogspot.com

    what is the difference between 001 and 1?
    if it is only for display purposes, then use TO_CHAR
    select to_Char (no, '099')
      from test

Maybe you are looking for