Copy from CHAR to CHAR

Hi, help me please.
I copy data from one internal table (1_table) in another internal table (2_table).
Copy number "7777" from the field of CHAR (10) in "1_table" in the CHAR (10) in "2_table".
In the second table I have to get the value "0000007777".
How can I do this in ABAP?

and in 2_table table I will copy different numbers and I need to add up to 10 characters in front of the number zero...
Ie I have to copy as follows:
initial value
should get
7777
0000007777
44444
0000044444
999999
0000999999

Similar Messages

  • Fact columns Datatype is changing from char to int in OBIEE 11g

    Hi ,
    I am taking measure columns - "product description","tot cost" against a dimension "project name" .
    I am generating this report in a planing form and OBIEE .
    in planing form :
    product description tot cost
    project name
    P1 A 1500
    p2 B 1700
    p3 C 1800
    in obiee report :
    product description
    project name
    P1 16 1500
    p2 17 1700
    p3 19 1800
    Somehow , measure's datatype are getting changed from char to number , in OBIEE report.
    By default , the data type for all fact's is Double .I tried changing that to varchar , but result is same .
    Do I need to change anything in physical layer / RPD .
    OBIEE version : 11.1.1.6
    Essbase version : 11.1.2

    Hi ,
    Thanks for your reply . To confirm , the data type of product description column is "double" in essbase .
    I found out ,thers's a RDBMS table , consisting of two columns - ID, text value . where product description's are in text value's with the corresponding ID's(integer values) .
    Now , when I am creating a form in planning , its fetching the text values of product description (there's some inbulit setting's available for this in plannng) .
    However , in obiee its fetching the ID values of product description .
    So ,
    1. Is there any similer setting I can do for OBIEE , so that it's fetches only text value's of product description .
    2. If not , then I have to join the essbase fact table with this RDBMS table . I am not sure how to do it .

  • Change from char(10) to vchar(10)....

    Hey people, i use oracle 10g, i have a big, big, big database. At the time, the database was defined as char (10). This means, that if the variable don't have the size 10 the rest will be completed with blank space. So, I have a solution to this million tables database. I just have to pass char to varchar our make a trim, to every query that is made. These are my two solutions.
    But I don't know, what are the advantages of one and another. And I don't know how to do to the tables that are already implemented as char. Because the time of processing it will be enourmos and if I just pass them from char to varchar, will this not give a big error?
    Thanks.

    so everytme someone makes a query if they don't put all 10 carachter it won't work. No you should use a variable of type char(10) and use that in your query.
    something like this
    select * from tableA where cars = :aHere :a is a bind variable. So when you use this query in a PL/SQL or any other client set the variable as char(10) and store the value. You will not have any issue.

  • COPY FROM command on ORDIMAGE closes SQL-Plus !!

    Hi, I4m using the following command:
    COPY FROM user/pass@Oracle6 INSERT mytable USING SELECT * FROM mytable;
    ...but it always starts processing and closes the SQL-Plus without copying data ! The tables contains an ORDIMAGE column, I wonder if it can be causing the problem.
    Thanks for any help.
    Alexandre.

    From the 9.0.1 doc.
    Copies data from a query to a table in a local or remote database. COPY supports the following datatypes:
    CHAR DATE LONG NUMBER VARCHAR2
    The COPY command is not being enhanced to handle datatypes or features introduced with, or after Oracle8. The COPY command is likely to be made obsolete in a future release.

  • A/P Credit memo cannot copy from A/P Downpayment Invoice

    Hello Everyone!
    I have encounter problem in A / P credit memo. If I clicked on the Copy from A/P Down payment the list of invoices do not appear.
    List seems to be empty. I've checked on the A/P down payment and the account is still open and the is an existing downpayment.
    Thanks!

    Hi Nelle_13,
    if the DPI is not shown in the matrix when you select AP Down Payment from the 'Copy From' menu in the credit memo, then that DPI has been paid or credited already. Only open DPIs can be used as base document for a credit memo.
    To check, you should open the DPI, rightclick & select 'Applied/Reconciled Transactions'. That will show you the documents this DPI is reconciled with & guide you to the payment/credit note standing on it. If it's a payment, you can cancel the payment & thus re-open the DPI. It can then be used as base for a credit memo. You'll need to check with the accountant what to do with the payment.
    All the best,
    Kerstin

  • Client Copy from BWP to BWT

    I had a problem with my List Cube Transaction and for that reason, I had a look at the Infoprovider and also the Data Sources.
    When tried to execute the infoproviders in LISTCUBE, the following messages are being displayed in BWT system:
    1. Error reading the data of InfoProvider ZIP_RC_01
    2. There is still no data source assigned to VirtualProvider ZIP_RC_01
    But, when executed the same in BWD, then it is working fine.
    I have checked the Data Sources in the R/3 Dev system and the DS has no problem. But, when I check the DS in the R/3 Prod (SS in BWT system), the following error message is displayed in the status bar:
    "DataSource Z_IP_RC_DS_1 is not defined in the source system"
    I thought, as the system says the Source system is not available, hence the problem in LISTCUBE and thought if we transport the DS again and then replicate in BW, then our problem would be resolved.
    But, seems that even though the source system says "PRD300", if I look at SM59 it actually points to our QAS system. It says PRD300 because BWT is a copy down from BWP, and that's the source system we use - in other words the logical name is the same, but the actual servers are different.
    In any case, the datasource is transported to our QAS enviroment.
    So, once we do a client copy from Prod to Test, even the source systems get copied. If yes, then does it really affect in case of replications and transports???
    I am really confused in this part...please explain.
    Thanks & Regards

    Hi,
    It looks like the basis team, or whoever performed the Copy from production to QA box hasn't finished all the necessary Steps :
    Main transaction to know:
    SSC4 -> To create new client
    SCCL -> Client copy within local system
    SCC9 -> remote client copy
    SCC3 -> display client copy log
    http://help.sap.com/saphelp_nw04/helpdata/en/69/c24c4e4ba111d189750000e8322d00/content.htm
    http://www.sap-basis-abap.com/bc/client-copy-from-production-to-quality-server-to.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci552257,00.html
    Probably sounds like transaction BDLS hasn't been done.

  • Error in phase import Homogeneous system copy from a BI 7.3 dual stack ABAPJAVA

    Hi
    I'm doing a Homogeneous system copy from a BI 7.3 dual stack ABAP+JAVA system with an Oracle DB (11g version, 11.2.0.3.0 patch level) with AIX ibm OS.
    Before starting export I've executed in the source system the report SMIGR_CREATE_DDL, as described in sap note 888210, and I generated *.SQL files.
    After, during the import in the target system I get the following error message:
    vi /expdb2/tmpDB0/sapinst_instdir/NW730/ORA/ORA/COPY/ORA/SYSTEM/STD/AS/import_monitor.log
    INFO: 2014-03-08 00:21:57 com.sap.inst.migmon.LoadTask run_report
    Monitor jobs: running 0, waiting 1, completed 60, failed 5, total 66  finish processing of package SAP0000
    You can see below the detail of the 5 packages in error:
    SAPAPPL0_1_5
    DbSlExecute: rc = 99
      (SQL error 2216)
      error message returned by DbSl:
    ORA-02216: tablespace name expected
    (DB) INFO: disconnected from DB
    /usr/sap/DB2/SYS/exe/uc/rs6000_64/R3load: job finished with 1 error(s)
    /usr/sap/DB2/SYS/exe/uc/rs6000_64/R3load: END OF LOG: 20140307141347
    SAPZPSA
    DbSlExecute: rc = 99
      (SQL error 2216)
      error message returned by DbSl:
    ORA-02216: tablespace name expected
    (DB) INFO: disconnected from DB
    SAPDODS
    DbSlExecute: rc = 99
      (SQL error 922)
      error message returned by DbSl:
    ORA-00922: missing or invalid option
    (DB) INFO: disconnected from DB
    SAPDFACT
    DbSl Trace: Error 1741 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-01741 occurred when executing SQL stmt (parse error offset=8126464)
    (DB) ERROR: DDL statement failed
    (  ALTER TABLE "/BI0/F0TCT_C01"    ADD PARTITION "/BI0/F0TCT_C010000001131" VALUES LESS THAN ( 0000001131  )    TABLESPACE "" )
    DbSlExecute: rc = 99
      (SQL error 1741)
      error message returned by DbSl:
    ORA-01741: illegal zero-length identifier
    (DB) INFO: disconnected from DB
    SAPZOSO
    DbSl Trace: Error 922 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-00922 occurred when executing SQL stmt (parse error offset=242024448)
    (DB) ERROR: DDL statement failed
    (CREATE TABLE "/BIC/B0000989000"    ("REQUEST" VARCHAR2 (000090)      DEFAULT ' ' NOT NULL,    "DATAPAKID" VARCHAR2 (000018)      DEFAULT '000000' NOT NULL,    "PART
    NO" NUMBER (000010)      DEFAULT 0 NOT NULL,    "RECORD" NUMBER (000010)      DEFAULT 0 NOT NULL,    "PLANT" VARCHAR2 (000012)      DEFAULT ' ' NOT NULL,    "MATERIA
    L" VARCHAR2 (000054)      DEFAULT ' ' NOT NULL,    "RPA_CURUOM" VARCHAR2 (000015)      DEFAULT ' ' NOT NULL,    "RPA_MVF" NUMBER (000017, 000002)      DEFAULT 0 NOT N
    ULL,    "PRICE_UNIT" NUMBER (000017, 000003)      DEFAULT 0 NOT NULL,    "RPA_QTYUOM" VARCHAR2 (000009)      DEFAULT ' ' NOT NULL,    "RT_SSMFGR" VARCHAR2 (000024)
        DEFAULT '00000000' NOT NULL,    "BASE_UOM" VARCHAR2 (000009)      DEFAULT ' ' NOT NULL,    "FRE_PLNPUR" VARCHAR2 (000036)      DEFAULT ' ' NOT NULL,    "FRE_MINS
    TK" NUMBER (000017, 000003)      DEFAULT 0 NOT NULL,    "FRE_SERLEV" NUMBER (000017, 000003)      DEFAULT 0 NOT NULL,    "FRE_SELCLS" VARCHAR2 (000003)      DEFAULT '
    0' NOT NULL,    "FRE_REPLST" VARCHAR2 (000006)      DEFAULT ' ' NOT NULL,    "ABCKEY" VARCHAR2 (000003)      DEFAULT ' ' NOT NULL,    "RECORDMODE" VARCHAR2 (000003)
        DEFAULT ' ' NOT NULL,    "RT_SERVLEV" VARCHAR2 (000003)      DEFAULT ' ' NOT NULL,    "RT_SUPS" VARCHAR2 (000003)      DEFAULT ' ' NOT NULL,    "VAL_TYPE" VARCH
    AR2 (000030)      DEFAULT ' ' NOT NULL,    "PUR_GROUP" VARCHAR2 (000009)      DEFAULT ' ' NOT NULL,    "RT_VPNEU" NUMBER (000017, 000002)      DEFAULT 0 NOT NULL,
    "CURRENCY" VARCHAR2 (000015)      DEFAULT ' ' NOT NULL,    "RT_VRKPE" NUMBER (000017, 000003)      DEFAULT 0 NOT NULL,    "DISMM" VARCHAR2 (000006)      DEFAULT ' '
    NOT NULL,    "SALES_UNIT" VARCHAR2 (000009)      DEFAULT ' ' NOT NULL,    "RT_VP_BT" NUMBER (000017, 000002)      DEFAULT 0 NOT NULL,    "RT_VPE_BT" NUMBER (000017,
    000003)      DEFAULT 0 NOT NULL,    "RT_VP_NT" NUMBER (000017, 000002)      DEFAULT 0 NOT NULL,    "RT_VPE_NT" NUMBER (000017, 000003)      DEFAULT 0 NOT NULL,    "R
    T_VWAERBT" VARCHAR2 (000015)      DEFAULT ' ' NOT NULL,    "RT_VWAERNT" VARCHAR2 (000015)      DEFAULT ' ' NOT NULL,    "RT_VPMEIBT" VARCHAR2 (000009)      DEFAULT '
    ' NOT NULL,    "RT_VPMEINT" VARCHAR2 (000009)      DEFAULT ' ' NOT NULL,    "LOC_CURRCY" VARCHAR2 (000015)      DEFAULT ' ' NOT NULL,    "UNIT" VARCHAR2 (000009)
      DEFAULT ' ' NOT NULL,    "CM_MCATDIV" VARCHAR2 (000054)      DEFAULT ' ' NOT NULL,    "CM_CDT1" VARCHAR2 (000054)      DEFAULT ' ' NOT NULL,    "CM_CDT2" VARCHAR2
    (000054)      DEFAULT ' ' NOT NULL,    "CM_CDT3" VARCHAR2 (000054)      DEFAULT ' ' NOT NULL,    "CM_CDT4" VARCHAR2 (000054)      DEFAULT ' ' NOT NULL,    "CM_HIEID"
    VARCHAR2 (000006)      DEFAULT ' ' NOT NULL,    "CPSTLC" NUMBER (000017, 000002)      DEFAULT 0 NOT NULL,    "CPSVLC" NUMBER (000017, 000002)      DEFAULT 0 NOT NULL
    ,    "STOCK_VAL" NUMBER (000017, 000002)      DEFAULT 0 NOT NULL,    "STOCK_QTY" NUMBER (000017, 000003)      DEFAULT 0 NOT NULL,    "RT_SEASON" VARCHAR2 (000012)
      DEFAULT ' ' NOT NULL,    "RT_SEASYR" VARCHAR2 (000012)      DEFAULT '0000' NOT NULL,    "CALDAY" VARCHAR2 (000024)      DEFAULT '00000000' NOT NULL,    "CALWEEK"
    VARCHAR2 (000018)      DEFAULT '000000' NOT NULL,    "RF_BNDID" VARCHAR2 (000012)      DEFAULT ' ' NOT NULL,    "/BIC/ZCATTR3" VARCHAR2 (000006)      DEFAULT ' ' NOT
    NULL,    "/BIC/ZCSTYLE" VARCHAR2 (000006)      DEFAULT ' ' NOT NULL,    "/BIC/ZCIMAGE" VARCHAR2 (000006)      DEFAULT ' ' NOT NULL,    "/BIC/ZCBRNDTYP" VARCHAR2 (000
    003)      DEFAULT ' ' NOT NULL,    "/BIC/ZCGROUPE" VARCHAR2 (000054)      DEFAULT ' ' NOT NULL)    PCTFREE 10    PCTUSED 00    INITRANS 001    TABLESPACE    STORAGE (
    INITIAL    0000000016 K            NEXT        0000001024 K            MINEXTENTS  0000000001            MAXEXTENTS  2147483645            PCTINCREASE 0000
        FREELISTS  001            FREELIST GROUPS 01)      PARTITION BY RANGE ("PARTNO")      (      PARTITION "/BIC/B00009890000000000002" VALUES LESS THAN      (00000
    00002)      NOCOMPRESS      ) )
    DbSlExecute: rc = 99
      (SQL error 922)
      error message returned by DbSl:
    ORA-00922: missing or invalid option
    (DB) INFO: disconnected from DB

    hello,
    Before anything update DB shared lib, R3load, R3ldctl and R3szchk in the target system. Also Check in source system if you have any tables o index missing in db02 transaction, If this system wa upgraded from a previous release please check TAORA and IAORA tables in source system and check all the tablespaces named in those tables are created in the target system.
    let me know how it goes.
    Regards,
    Michael

  • Copying from Oracle SQL Developer to Microsoft Word doesn't retain formatting (Font,colors etc)

    Copying from Oracle SQL Developer Worksheet doesn't retain formatting (font,color etc...)in Microsoft Word but copying from other programs such as
    visual studio, chrome browser etc works fine. This doesn't work even after changed the setting to Keep Source formatting of Options-> Copy and Paste Settings

    Hi,
    I notice that you have cross posted in Answers forum and Oracle forum. Have you tried Mr. Peter's suggestion?
    Then, I recommend we check the Word settings:
    1. Go to: Options > Advanced > Cut, Copy and Paste
    2.  Make sure that Use smart cut and paste is ticked. 
    3. Click the Settings button next to this option
    4. Make sure that Smart Style
    Behavior is checked.
    If the issue still exists, please upload a sample through One Drive, I want to test.
    Regards,
    George Zhao
    TechNet Community Support

  • ZenXtra: copying from Zen: "file unaccesib

    Hi,
    When copying from my Zen Xtra, after transfer of a couple of files in queue I receive an error: "file unaccessible..." and I cannot copy anything more unless I reconnect. Moreover Zen and the connection seems to be out of order (ie. not all fields visible in Zen Settings in MediaSource). Sometimes after that there is a message: player unconnected, although there is no other evidence of lost connection.
    I tried:
    MediaSource from CD and new one from internet.
    Driver from CD and Internet
    Rescue mode clean up
    Firmware remove and install again
    All PC Zen software removal, reboot, reinstall, reboot
    My Zen Xtra 60GB is running on firmware .20. PC is running WinXP Pro.
    Uploading TO Zen works fine.
    Regards

    Chances are it's a USB compatibility issue with the PC. The simple test is to install the drivers and software on another PC, and test some transfers. If it works fine then it's the original PC, if it still has problems then it's an issue with the player.
    Search on "connection problems" in the FAQ Part post for a link to a lot more troubleshooting information.

  • Data not loading to cube copied from 0sd cubes

    hello everyone,
    wen ever im trying to load data from r/3 into a cube which is created by copying from a 0sd cube, everything is running successfully, info package, dtp, transformations and all, but when i look into the contents tab, it says this is not a basis cube, can anyone explain pls.
    thanks in advance

    Hi
    Some one changed the settings of your cube from Basic cube to transactional cube ( real time infocube in IP)
    Change it from transactional cube back to basic cube..This error will not come
    Regards
    N Ganesh

  • Download doc problem when copied from APEX_APPLICATION_FILES to local table

    Good morning!
    As the subject indicatesm, I am experiencing problems downloading a document I have copied from APEX_APPLICATION_FILES to my local table FILE_SUBJECTS
    and would be very grateful if someone could help.
    Here is the problem:
    I can successfully upload a document into APEX_APPLICATION_FILES and dowload it from there too.
    I can copy the record from APEX_APPLICATION_FILES into my local table FILE_SUBJECTS and delete that entry from APEX_APPLICATION_FILES but I cannot download it from my local table, it keeps pointing me to a page which cannot be found, so I'm guessing there is something wrong with either, my INSERT INTO statement or, my link in the report.
    My INSERT INTO statement is:
    INSERT INTO file_subjects (id,filename,updated_by,updated_on,blob_content,mime_type)
    SELECT id, filename, name, updated_by, updated_on,blob_content,mime_type
    FROM APEX_APPLICATION_FILES
    WHERE APEX_APPLICATION_FILES.filename = :P2_FILE_NAME;
    REPORT LINK
    I have tried just a normal column link in my report like: #ID# (this works when looking at APEX_APPLICATION_FILES)
    but I have also tried the following:
    #OWNER#.DOWNLOAD_MY_FILE?p_file=#ID#
    where download_my_file is a procedure:
    create or replace PROCEDURE "DOWNLOAD_MY_FILE" (p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    --apex_application.g_flow_id := 166;
    --if not(APEX_CUSTOM_AUTH.IS_SESSION_VALID) then
    -- owa_util.status_line(404, 'Page Not Found', true);
    -- return;
    --end if;
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM FILE_SUBJECTS
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end DOWNLOAD_MY_FILE;
    Many thanks in advance!
    Sue

    Sue,
    If you are running XE or running with the EPG versus the http server, you need to grant access to the procedure you are using for it to be run properly..
    You may need to look at this function, if you are using XE or have the EPG setup for your database.. http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e12856/adm_wrkspc.htm#BABEFDHI [Look for the section called *Restricting Access to Oracle Application Express by Database Access Descriptor (DAD)*]
    Thank you,
    Tony Miller
    Webster, TX

  • Copy from Time machine to an new iMac doesn't Work ?

    I bought a new iMac and want to copy from time machine that is on an external disk. Copying stops after 10 minutes. What to do?

    Please visit Pondini's Time Machine FAQ for help with all things Time Machine.

  • Address not copied from Sales order/Delivery to Shipment Document

    Hello Experts,
    I need your help on Addrss of ship to in shipment document.
    Sales Order[VA01] >> Delivery [Vl01N]>> Shipment [VT01N].
    User changed the Address of ship to party (Header level) in Sales Order and It reflected to delivery as well and I believe It should also update the address in Shipment document.
    But when I checked the Address of the Customer/Unloading point in Shipment Document [VT03N] (as below) I found It was not updated It was same as Customer Master Record and I believe It directly copied from Customer Master Record.
    BUT While creating the Shipment system is copying the data from Customer master Record not from Sales Order /Delivery. Logically system should copy the updated address from Order/Delivery BUT It is directly copying from Customer Master i don't know where is the setting of this ??
    Can anybody help me on this ? How system takes the customer (ship to party) address in shipment ? Where are the setting of these.
    What I need to do so system take the updated address from Sales Order/Delivery not from Customer Master Record (Ship to party).
    Can I change the address of customer in shipment document ??
    Awaiting your precious reply.
    Thanks,

    Hello Samir,
    Thanks for your response.
    I think you get my question in wrong way.
    I am sayingCustomer master data was not changed.
    User just changed the Address in Order (Order > Header >> Partner tab >> Change ship to address/overwrite ship to address).
    Overwritten Address / Updated address are copying in Delivery BUT not in Shipment document.
    What I need to do?  system should copy the updated address from Sales Order/Delivery BUT it is copying from Ship to party.
    I hope this time i am clear to explain my issue.
    Thanks,

  • Can't change quantity when copy from Sale order for Delivery

    Hi all!
    Can i use authorization for can't change quantity when copy from Sale order for Delivery.

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Can I send a link to a photo book so family members can choose to order a copy from Apple?

    I woud like to share the photo book that I created so that family members in other states can consider purchasing a copy from I Photo.  Is there a way they can view it?

    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    you can share the PDF via drobbok or other file sharing service
    LN

Maybe you are looking for

  • Taking too long time to login!

    Hi Experts, I am facing a low performance problem in B1. After I enter the user id and password on the login screen of B1 in our client PCs, it takes a long time (around 180sec) to log in to the system. The initial log in time is too long for end use

  • Handling unit deletion in delivery

    Hi Can any one help us on how to unpack and delete HU from Outbound delivery? When we go through VL02N and do the unpacking and delete the HU and try to save that, system is giving the error message: Within the delivery, posting change not possible f

  • Problems using itunes on both desktop and laptop

    i use laptop mainly for itunes but have downloaded softawre onto desktop now, however, the desktop version does not seem aware of my full catalogue of songs. how do i update my desktop to mirror the laptop?? Please help

  • How to allow write privileges by a process to files?

    Hi there In SPARC-Solaris8: How to allow write privileges by a process to files? Tks in advance, C�sar

  • Why does the process Report Crash stay active and take up over 100% of the CPU?

    In addition to window-server taking an inordinate amount of CPU, I am seeing that the process "Report Crash" is sucking up 102% of the CPU and occasionally goes down to 90%.  ***?  What IS Apple doing these days?  Their products are getting worse and