Problem  when uploading data using CATT

Hi
I am doing a CATT upload for the transaction ct04.
In the CATT functions Maintain Test Case Screen,I have written the code as below
C Funct. Object               Text                   
   IF                          &ATNAM NE &TEMP        
   SETVAR                      &TEMP = &ATNAM         
   TCD    CT04                 Characteristics        
   ELSE                                               
   TCD    CT04                 Characteristics        
   ENDIF                                              
ATNAM is the name of the chracteristic which is taken from the input file and temp is a local variable.
For the first record,the if condition will be satisfied and for the rest else part needs to be satisfied.
But for me,it is executing only the if part and the else part is not getting triggered.
Please help me in this regard.

Hi!
Do you want to have something like 'on change of ATNAM'?
Looks like TEMP is reset for each new entry and not saved STATIC for next input line.
There is a work-around. Add a new column (in excel) &TEMP (which is now no longer local, but input variable). Let's asume, ATNAM is in column C: write if statement for TEMP-column (e.g. D2:) if(C1 <> C2; 1; 0).
Then your if-statement in catt can be static like:
IF &TEMP = 1
In other words: write a 1 in each line, where your if part should be executed, write a 0 in each line, where your else part should be executed. With a static if-clause, CATT should work fine.
Regards,
Christian

Similar Messages

  • Can anyone list problems/errors when uploading data using BDC's and BAPI's?

    Can anyone list the problems/errors when uploading data using BDC's and BAPI's?

    Hi,
    If you are actually creating a BDC to load data pls be more specific.
    Data format incorrect. Tab delimited/ etc
    Dates in wrong formats
    Currency incorrect formats
    Missing screens
    Wrong transaction code
    File not found,
    Missing Mandatory fields,
    Screen resoultion.
    You should always use refresh for your Bdcdata table.
    Loop at internal table.
    refresh Bdcdata.
    regards,
    sowjanya.

  • How to upload data using CATT ?

    These are the steps to be followed to Upload data through CATT: Creation of the CATT test case & recording the sample data input. Download of the source file template. Modification of the source file. Upload of the data from the source file.
    I KNOW ONLY THIS ABOUT CATT but i wanna complete in details with an example. its better if anyone can further explain in detail with example

    hi,
    1)     Start tcode SCAT
    2)     Give the test case name and create
    3)     Give title, component then save and come back
    4)     Select the test case and go to change mode
    5)     Start record and provide the tcode to be recorded
    1st button is for normal record (button with arrow key)
    2nd button is for remote (to record in remote server of our landscape)
    Give all the mandatory fields in the transaction without errors and without using f4 and f1 just like recording
    After entering entire data click save button
    Then click end recording
    Then double click on the test case TCD
    Then double click on the first report (SAPMF02D)
    It will open the recorded transaction code
    Import all the fields which we are going to provide in flatfile
    There should not be any default values in the fields after importing
    Click on next screen button
    Same way import for all screens
    Finally it should come to the below screen
    Then go back and click save then go to GOTO -> VARIANTS -> EXPORT DEFAULT
    Then give the path to be transferred in our local sys and transfer as excel file (save with .xls type)
    Then open the excel file
    Select 1st 2 columns right click and delete
    It should contain only the field headings and description as shown in the below excel snapshot
    Leave one empty line and enter our records from 4th row onwards
    Enter all the records and save the excel file
    Then execute our test case
    Then select the type of mode (foreground/background) and variants from external file
    Select our excel file and then execute (click remote execution if it’s a remote server)
    Finally check the data is uploaded or not
    END
    gIVE ME YOUR MAILid so tha i can fwd the atachment to you
    Regards,

  • Encounter Problem when upload Data for T-Code CJ92

    Dear All,
    I want to upload Standard WBS element through transaction code CJ92.  I am encountering a problem when I want to upload more than 13 Standard WBS for a project using recording (SHDB). 
    I have also tried to upload data through BAPI u201CBAPI_BUS2054_CREATE_MULTIu201D but this BAPI didnu2019t work for standard WBS.
    Please provide me a solution to upload Standard WBS (CJ92).

    Thanks Shyam,
    But this BAPI "BAPI_PROJECT_MAINTAIN" works only for operative WBS and I want to upload Standard WBS.  The T-Code to create Standard WBS is CJ92. The screen upload can't be possible due to screen limitations.
    Please provide me any solution to upload Standard WBS.
    regards,
    Saif

  • Problem during uploading data Using BDC

    While I'm trying to upload data for T.Code J1IS using BDC, Value for the field  Net.***.value ( J_1IASSVAL-J_1IVALNDP) is not getting populated on the screen.
    Pls help.

    Hi,
    This is a Currency Field so you need to pass this to a Char field first and then pass to BDCTAB-FVAL.
    " This is a common problem with BDC with other data types even with Date  and Quantity and Numeric types
    Please note while passing values to BDCTAB all the values should be passed in CHAR form only
    Cheerz
    Ram.

  • Problem in Uploading Data using a Tab Separated File?

    Hi All,
    I am trying to upload a file which tab separated containing customer and bank details and my file structure somewhat in the following manner.
    10     21169     abcde     xyz     kdHDHLk     gdh     ghgah  (Customer Details)
    20     21169     DE     20050000     01122334  (bank details for customer 21169)
    20     21169     DE     23022200     1122334455
    (bank details for customer 21169)
    20     21169     DE     23984899     223344556    (bank details).
    But when I am trying to intial upload the details to an internal table using GUI_upload FM and display to check if it is loading correctly or not it is not giving me any o/p.
    I am copying the code which I am trying to execute. Please tell me what way I need to modify the code so that it executes correctly.
    parameters: p_file type rlgrap-filename.
    data: begin of wa_file,
          text(256) type c,
          end of wa_file.
    data: it_file like table of wa_file.
    types: begin of ty_kna1,
           kunnr type kunnr,
           name1 type name1,
           sortl type sortl,
           stras type stras,
           ort01 type ort01,
           land1 type land1,
           spras type spras,
           end of ty_kna1.
    data: it_kna1 type standard table of ty_kna1,
          wa_kna1 type ty_kna1.
    types: begin of ty_knbk,
           kunnr type kunnr,
           banks type knbk-banks,
           bankl type knbk-bankl,
           bankn type knbk-bankn,
           end of ty_knbk.
    data: it_knbk type standard table of ty_knbk,
          wa_knbk type ty_knbk.
    data: v_id(2).
    At Selection-Screen on Value-Request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = p_file
    Start-of-Selection.
    data: p_file1 type string.
          p_file1 = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = p_file1
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
      TABLES
        DATA_TAB                      = it_file
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   NO_AUTHORITY                  = 6
    *   UNKNOWN_ERROR                 = 7
    *   BAD_DATA_FORMAT               = 8
    *   HEADER_NOT_ALLOWED            = 9
    *   SEPARATOR_NOT_ALLOWED         = 10
    *   HEADER_TOO_LONG               = 11
    *   UNKNOWN_DP_ERROR              = 12
    *   ACCESS_DENIED                 = 13
    *   DP_OUT_OF_MEMORY              = 14
    *   DISK_FULL                     = 15
    *   DP_TIMEOUT                    = 16
    *   OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    constants: c_tab type X value '09'.
    loop at it_file into wa_file.
    if wa_file+0(2) = '10'.
    split wa_file at 'c_tab'
              into v_id
                   wa_kna1-kunnr
                   wa_kna1-name1
                   wa_kna1-sortl
                   wa_kna1-stras
                   wa_kna1-ort01
                   wa_kna1-land1
                   wa_kna1-spras.
    append wa_kna1 to it_kna1.
    elseif wa_file+0(2) = '20'.
    split wa_file at 'c_tab'
           into v_id
                wa_knbk-kunnr
                wa_knbk-banks
                 wa_knbk-bankl
                 wa_knbk-bankn.
    append wa_knbk to it_knbk.
    endif.
    endloop.
    write:/ 'Customer Master General Data'.
    uline.
    loop at it_kna1 into wa_kna1.
    write:/ wa_kna1-kunnr,
             wa_kna1-name1,
                   wa_kna1-sortl,
                   wa_kna1-stras,
                   wa_kna1-ort01,
                   wa_kna1-land1,
                   wa_kna1-spras.
    endloop.
    clear wa_kna1.
    skip 2.
    write:/ 'Customer Master Bank Data'.
    uline.
    loop at it_knbk into wa_knbk.
    write:/ wa_knbk-kunnr,
             wa_knbk-banks,
             wa_knbk-bankl,
             wa_knbk-bankn.
    endloop.
    clear wa_knbk.
    Regards,
    MD

    Declare Class cl_abap_char_utilities
    Use File type as 'DBF'
    Has_field_seperator = w_tab in FM GUI_UPLOAD
    DATA: w_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
        CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
        BIN_FILESIZE                    =
          filename                        = w_file
       filetype                        = 'DBF'
        append                          = ' '
       write_field_separator           = w_tab
        TABLES
          data_tab                        = it_extractchar
       fieldnames                      = it_header
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       OTHERS                          = 22

  • Error when uploading data using generic

    Hi,
    I have created a gereic datasrc using view & i took the following fields
    MATNR     Material
    WERKS     Plant
    PBDNR     Req.plan number
    BDZEI     Reqmts pointer
    LAEDA     Last change
    MEINS     Base Unit
    FIXMG     Planned qty
    In the transfer rules of BW the system gave mapping only for LAEDA Last changewith the infoobj 0CH_ON,so I took 0mat infoobj formapping with  Matnr
    0plant for werks & created ZpBDNR,ZBDZEI for PBDNR  BDZEI & for FIXMG i mapped with the infoobj 0PRDPLN_QTY
    In the monitor screen it is showing me 0 records with status yellow then I went to the job overview it is giving me the following msg in job overview
    Date        Time      Message                                                                               
    24.12.2006  12:18:13  Job started                                                                            
    24.12.2006  12:18:13  Step 001 started (program SBIE0001, variant &0000000006181, user ID ALE_MASTER)        
    24.12.2006  12:18:13                                                                               
    24.12.2006  12:18:13  DATASOURCE = PLANEW                                                                    
    24.12.2006  12:18:13  *************************************************************************              
    24.12.2006  12:18:13  *          Current Values for Selected Profile Parameters               *              
    24.12.2006  12:18:13  *************************************************************************              
    24.12.2006  12:18:13  * abap/heap_area_nondia......... 2000000000                              *             
    24.12.2006  12:18:13  * abap/heap_area_total.......... 2000000000                              *             
    24.12.2006  12:18:13  * abap/heaplimit................ 40000000                                *             
    24.12.2006  12:18:13  * zcsa/installed_languages...... DE                                      *             
    24.12.2006  12:18:13  * zcsa/system_language.......... E                                       *             
    24.12.2006  12:18:13  * ztta/max_memreq_MB............ 250                                     *             
    24.12.2006  12:18:13  * ztta/roll_area................ 2000000                                 *             
    24.12.2006  12:18:13  * ztta/roll_extension........... 2000000000                              *             
    24.12.2006  12:18:13  *************************************************************************              
    24.12.2006  12:18:14  Could not determine BW release of logical system 'QEMCLNT003'                          
    24.12.2006  12:18:14  Job cancelled after system exception ERROR_MESSAGE                                                                               
    Thanks,
    Maya

    Did you created Logical system also? If not you have to create logical system and assign it to ur source system.
    If u on BW3.5 system:
    Tcode SPRO->ref Img->SAP NetWeaver->SAP BI->Links to other systems->define logical system. (not sure abt path...but it must be somehow similar to this only)
    Check this link it may help you:
    http://www.erpgenie.com/sapgenie/docs/MySAP%20BW%20Cookbook%20Vol%202.pdf
    Message was edited by:
            KJ (Kamaljeet)

  • Error when uploading data.

    hi guys,
    when uploading data using customer datasource 2lis_01_s001..
    i got the following error.
    <b>Update ( 0 new / 0 changed ) : Errors occurred
    Data records for package 1 selected in PSA - 1 error(s)
    Record 1 :No SID found for value 'ST ' of characteristic 0BASE_UOM</b>
    tel me what can be the error...how to solve it..
    got the data in PSA.
    thanks ,
    kevin..
    Message was edited by:
            kevin peterson

    Hi
    Go to SE38 use program RS_TRANSTRU_ACTIVATE_ALL.
    fill the necessary details required like Infousource and source system name.
    after filling in all the details press execute.
    Now after this is successful go to DS and replicate it and try loading data once again now after deletion of prev unsuccessful req
    hope it helps
    thanks
    puneet

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • Difference between uploading data using BDC,CATT

    Dear experts,
    what is the difference between uploading the data using BDC and CATT tool?
    is it only the coding or something else.
    and can you explain the situations where we prefer to upload the data using CATT tool.
    thanks in advance.

    Check this thread -
    Differences between  BDC , LSMW, BAPI,CATT
    Regards,
    Amit

  • Problem when upload legacy data

    Hi all,
    I've faced a problem when uploading asset legacy data (AS91) for customer. My customer have started depreciation on May 21, 2009, and I set transfer date is November 30, 2010. So SAP doesn't calculate right planned value for December, 2010. I think that problem related to the first month depreciation. It calculated full month for depreciation (instead of from May 21) and change the planned value for December 2010. So I want SAP just calculate 11 days depreciation for May 2009. How can I config to do this?
    Thanks in advance!

    Hi,
    Check in the asset master Opening Start Date for depreciation.. If it is under open mode change that date and see asset explorer for depreciation values.
    Thanks,
    Padmaja

  • HT201415 actually i am use iphone5 in bangladesh. But i am facing some problem , when i am useing the internet over cellular data network. when i am open the cellular data on but no icon E display but when Enable 3G on-of then E is aviable.its a device pr

    actually i am use iphone5 in bangladesh. But i am facing some problem , when i am useing the internet over cellular data network. when i am open the cellular data on but no icon E display but when Enable 3G on-of then E is aviable.its a device problem or Carrier ?

    Hafizur Rahman wrote:
    when i am open the cellular data on but no icon E display but when Enable 3G on-of then E is aviable.its a device problem or Carrier ?
    Problem? I'm not even sure what your problem is, much less whether it's a problem with the phone or the carrier.

  • How to upload data using utl_file when you dont know the exact file name

    Hi
    i want to upload data from a flat file to a table.
    i dont know the exact file name. i want to make a search for filename. like i want to make a search on file (say test*) which will give me all the files with test.
    i want to upload data using these files.
    how can i do this by using UTL_FILE.
    Regards
    Manish

    Thank you very much.
    Thing is previously we are using sqlloader and shell script for loading the data.
    now i am creating a procedure (if possible without parameters).
    Is there any other way i can do that.
    can i make a wild card search using utl_file.
    Thanks n Regards
    Manish

  • SQL Loader Oracle 10g problem in upload date with time data -- Very urgent.

    Hi
    I am trying to upload data using SQL loader. There are three columns in the table
    defined as DATE. When I tried upload a data like this '2007-02-15 15:10:20', it is not loading time part. The date stored as 02/15/2008' only. There is not time on that. I tried with many different format nothing work. Can please help me ?
    I have also tried with to_date --> to_timestamp it did not work.
    The application is going to be in production, I cannot change DATE to TIME STAMP. This is very urgent.
    LASTWRITTEN "decode(:LASTWRITTEN,'null',Null, to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:Mi:SS'))",
    CREATEDON "decode(:CREATEDON,'null',Null, to_date(:CREATEDON,'YYYY-MM-DD HH24:Mi:SS'))",
    LASTUPDATEDON(21) "decode(:LASTUPDATEDON,'null',Null, to_date(:LASTUPDATEDON(21),'DD/MM/YYYY HH24:MI:SS'))"

    Your problem is most likely in decode - the return type in your expression will be character based on first search value ('null'), so it will be implicitly converted to character and then again implicitly converted to date by loading into date column. At some of this conversions you probably are loosing your time part. You can try instead use cast:
    SQL> desc t
    Name                                      Null?    Type
    LASTWRITTEN                                        DATE
    CREATEDON                                          DATE
    LASTUPDATEDON                                      DATE
    SQL> select * from t;
    no rows selected
    SQL> !cat t.ctl
    LOAD DATA
    INFILE *
    INTO TABLE T
    TRUNCATE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    LASTWRITTEN
    "decode(:LASTWRITTEN,'null',cast(Null as date),
      to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:MI:SS'))",
    CREATEDON
    "decode(:CREATEDON,'null',cast(Null as date),
      to_date(:CREATEDON,'YYYY-MM-DD HH24:MI:SS'))",
    LASTUPDATEDON
    "decode(:LASTUPDATEDON,'null',cast(Null as date),
      to_date(:LASTUPDATEDON,'DD/MM/YYYY HH24:MI:SS'))"
    BEGINDATA
    2007-02-15 15:10:20,null,null
    null,2007-02-15 15:10:20,null
    null,null,15/02/2007 15:10:20
    SQL> !sqlldr userid=scott/tiger control=t.ctl log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Feb 29 00:20:07 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 3
    SQL> select * from t;
    LASTWRITTEN         CREATEDON           LASTUPDATEDON
    15.02.2007 15:10:20
                        15.02.2007 15:10:20
                                            15.02.2007 15:10:20Best regards
    Maxim

  • Problem of uploading data in Data Warehouse

    I am using Oracle9i Warehouse Builder on Windows 2000 and i just started working in it. I am facing problem in uploading data from source schema to Target schema
         I) Created Source Moulde -- Link to One schema from where i have get data
         2) Created Warehouse Target Module -- I have created dimesnions , facts , Mapping and i deployed dimensions , fact and mapping. As a result of it i got dimension table , dimension , fact table , facts ,mapping package and TCL script for mapping. I deployed all of them and register TCL script with OEM .
         But my job created in OEM is not running. If run then does not upload any data and If I try to run job from the backend manually then it gives me message that No active job exist..
    Thanks in advance
    Surinder

    I was getting the same error. I don't know if a step failed somewhere in the install or if I missed performing a manual step but I just fired up TOAD and manually inserted a record into the WB_RT_JOB table. I set the RTJ_JOBNAME = DEFAULT_JOB and RTJ_STATUS = BEGIN. The rest of the columns I just entered best guesses. I commited and then my job would run. I guess it just needs a seed record.
    Lewis

Maybe you are looking for