Database Variant to Data.vi not working for the Date datatype with LV 8.2?

I'm moving a large body of LV database code from LV 7.1 to 8.2 and find that the Database Variant to Data.vi is not working correctly when used with the Date datatype. It works fine with 8.0, and the common Variant to Data works also. Am I missing something? Thanks in advance for any assistance. Wes

Thanks for the prompt reply Crystal,
The data is stored in an Oracle database using the DATE type. I'm querying many rows along with other columns and converting each of the values as necessary for each column with the 'Database Variant to Data' vi. Only conversion to Timestamp is no longer working as of version 8.2. I recognize that plain Variant to Data works but I have many (100's) of VIs to change if that is the only solution (not the end of the world). Most often the dates are originally generated in the database using PL/SQL procedures calling SYSDATE which look like: 5/1/2006 11:56:26 AM (in TOAD anyway) which I then need to read into LV as type Timestamp.
Regards, Wes.

Similar Messages

  • Clob is not working for bulk data files in PL/SQL XML program

    Hi Odie,
    we took your help to fix the our issue before
    "https://forums.oracle.com/forums/thread.jspa?threadID=2238458&tstart=105"
    working fine for : program is working for smaller size data.
    Issue : now we have problem with the largr size data .
    getting the below error:
    Arguments
    P_dir_name='/tmp'
    P_file_name='CCBGO.COLO_CNG.RESPONSES.20120802.00054131826'
    Environment will now switch to UTF-8 code-set.
    Parts of this log file may not display correctly
    as a result. This is an expected behavior.
    XML_REPORTS_XENVIRONMENT is :
    /apps/applmgr/product/OFDEV/ofdevora/806/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /apps/applmgr/product/OFDEV/ofdevora/806/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 8B
    stat_high = 0
    emsg:was terminated by signal 11
    Appreciated for your earlier support.
    Kindly suggest .
    Many Thanks,
    Ramesh.

    Thanks ALex,
    your are true it is concurrent program error ,
    but it is working for small amount of data and generating the output and it is not working for larger data.
    i have placed the code which i have used kindly suggest where i am going wrong.
    i am calling the .rdf through the concurrent program, i've used the below query in RDF
    select
    BATCHHEADER
    ,BATCHTRAILER
    ,RqUID
    ,Severity
    ,PmtRefId
    ,StatusDesc
    ,ErrorDesc
    ,AsOfDate
    ,AsOfTime
    ,RqUID1
    ,SPRefId
    from table(CL_CXFRFXFH_PKG.rcacknowledgments(:P_dir_name,:P_file_name));
    kindly find the below code for the package CL_CXFRFXFH_PKG.
    ==========================
    CREATE OR REPLACE package body APPS.CL_CXFRFXFH_PKG is
    function rcacknowledgments (p_directory in varchar2, p_filename in varchar2)
    return TRecordTable pipelined
    is
    nb_rec number := 1;
    tmp_xml clob;
    tmp_file clob;
    rec TRecord;
    begin
    dbms_lob.createtemporary(tmp_file, true);
    tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
    rec.BATCHHEADER := regexp_replace(tmp_file, '.*<BATCHHEADER>(.*)</BATCHHEADER>.*', '\1', 1, 1, 'n');
    rec.BATCHTRAILER := regexp_replace(tmp_file, '.*<BATCHTRAILER>(.*)</BATCHTRAILER>.*', '\1', 1, 1, 'n');
    loop
    tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s*<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
    exit when length(tmp_xml) = 0;
    --dbms_output.put_line(tmp_rec);
    nb_rec := nb_rec + 1;
    select RqUID, Severity, PmtRefId, StatusDesc, ErrorDesc, AsOfDate, AsOfTime, RqUID1, SPRefId
    into rec.RqUID
    , rec.Severity
    , rec.PmtRefId
    , rec.StatusDesc
    , rec.ErrorDesc
    , rec.AsOfDate
    , rec.AsOfTime
    , rec.RqUID1
    , rec.SPRefId
    from xmltable(
    '/CMA/BankSvcRq' passing xmltype(tmp_xml)
    columns RqUID varchar2(3000) path 'RqUID'
    , Severity varchar2(3000) path 'XferAddRs/Status/Severity'
    , PmtRefId varchar2(3000) path 'XferAddRs/Status/PmtRefId'
    , StatusDesc varchar2(3000) path 'XferAddRs/Status/StatusDesc'
    , ErrorDesc varchar2(3000) path 'XferAddRs/Status/ErrorDesc'
    , AsOfDate varchar2(3000) path 'XferAddRs/Status/AsOfDate'
    , AsOfTime varchar2(3000) path 'XferAddRs/Status/AsOfTime'
    , RqUID1 varchar2(3000) path 'XferAddRs/RqUID'
    , SPRefId varchar2(3000) path 'XferAddRs/SPRefId'
    pipe row ( rec );
    end loop;
    dbms_lob.freetemporary(tmp_file);
    return;
    end;
    end;
    ============================================
    Many Thanks,
    Ramesh.

  • Calendar Issues - "Repitition is not working for the item you tried to access"

    I ran into an interesting error when troubleshooting a calendar issue today, wondering if anyone has seen it.
    Exchange 2010 SP2 latest RU, Outlook 2010
    User changes then start time for a recurring meeting, changes in everybody's calendar but hers 9still shows in her calednar as the original start time)
    Logged into OWA to see if her claendar reflected the correct start time there - no, still  shows the old start time.  So I open the meeting, have a quick look, and the following error pops up:
    "Repitition is not working for the item you tried to access.  It's possible either the start or end date are not correct"
    Has anyone seen this error in OWA before?
    TAG

    Hi,
    Please double check whether the updated start time and end time are changed properly in attendees’ calendar. Also confirm whether the updating message is in the organizer’s sent items both in OWA and Outlook.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • I have the i phone four and just uploaded to my computer and now it will not work  has the apple logo with a long oval bar under it

    i have the i phone four and just uploaded to my computer and now it will not work  has the apple logo with a long oval bar under it

    It may be that it is stuck loading. You will want to probably first attempt a Hard Reset (Home Button + Power Button for 5-10s until it restarts with an Apple Logo then let it load up) and see if this will get it working.

  • Timing of text box will not appear.  My text boxes stop working on slide 5 and they will not work for the remainder of the slide show.

    Timing of text box not working.  I get the first few slides to work and then on slide 5 my text boxes will not appear.  And they do not appear for the rest of the slide show.   Help anyone.

    Text caption is timed to appear at 2 seconds, but you have a click box at 0sec. Its duration is very short, which means that I cannot see if there is a pause. I suspect this click box is pausing at the end of its timeline, which is at 0.3secs and the Text caption at 2 seconds will not appear before the user has clicked on that click box. The timeline is the core of Captivate, learn at least how to read it.
    Tiny Timeline Tidbits - Captivate blog
    If you want the green text caption 'Click on...' to appear right at the beginning of the slide, you have to check its Timing accordion: set it to start at 0 secs instead of 2 secs and extend its duration to the 'rest of the slide'.
    I don't know what is in the Group. That group and the HIghlight box will disappear at 3 seconds. Or maybe the action that is triggered by the Clickbox is different from 'Continue'?
    Lilybiri

  • BI Publisher configured with BI Server Security not working for the admins.

    Hello Everyone,
    I have configured the BI publisher to work with the BI server security. Everything is working well with the exception that all users part of the BI Server "Administrators" group are unable to login and get the following error message (message displayed below). If a user is removed from the "Administrators" group then they are able to access the BI Publisher. As indicated everything else is working for exemple all users part of the 'XMLP_Admin' group all have access to the "ADMIN" tab in BI Publisher. The issue seems to be limited to the users part of the BI Server "Administrators" group.
    - Has anyone else ever had this issue?
    - Is this a normal behaviour of BI Publisher?
    - Or the security groups for the BI Server and BI Publisher conflicting?
    Thanks in advance for everyone's help.
    Best regards,
    FBELL
    *********************** Error Message ***************************************
    Oracle BI Publisher Enterprise
    Reporting Login: Login failed: Please contact administrator for your username/password.
    Error Details
    Error Codes:
    ***************************************************************************

    Thanks Madan for your help.
    The group XMLP_Admin was already created and working. The conflict was with security groups outside BI Publisher. What I ended up doing was recreating the principals.xml and security.xml files and rsetting the roles and permissions. Surprisingly that fixed my problem.
    Best regards,
    FBELL.

  • Database roles seems like its not working for me - your help is appreciated

    Hi,
    I am using database 10g express edition.
    I am using sql developer to connect to database.
    I have 2 database connections,
    one is called TCF and has a user called oracle.
    two is called TCF_TEST and has a user called smith.
    oracle user has privileges to do anything.
    smith user has privileges to only connect, and something called resources.
    I logged in to the database using oracle and gave the following command:
    CREATE ROLE TCF_R;
    GRANT SELECT ON EMP_IOD TO TCF_R;
    GRANT TCF_R TO SMITH;Then I logged in as smith and was able to create a table.
    first of all, the user does not have any privileges to create a table.
    Second, when creating a table, smith can insert, update, delete records which also smith does not have any privileges to do.
    so basically this whole thing is not working the way I want.
    what am I doing wrong and what do I do to fix it ??
    Thanks,
    if you need more info, please let me know so I can provide it.

    hey 009,
    thanks for your help,
    ok this is what I did step by step:
    first , I created a user and granted create session to that user as below
    CREATE USER SMITH IDENTIFIED BY SMITH;
    GRANT CREATE SESSION TO SMITH;Then I logged in and gave SMITH privilege to create tables. (the reason for this is only for testing, I create a table and then I want to check if SMITH can drop it later on).
    Then I created one table.
    then Revoked the create table privilege from SMITH, log out, log back in and tested to make sure SMITH cannot create tables.
    up to here everything is successfull.
    Now since SMITH only has the following privileges which is only create session:
    Privilege     Admin Option     From Role
    CREATE SESSION          -
              1 - 1      
    it should not drop, insert , or update any table, or even select because I did not give it any grants.
    but its doing all of the above.

  • Download software site not working for Financial Data Quality

    Hi
    Financial data quality management site download site not working. it's showing error message below error message.
    Error message: "We're sorry,the page you requested was not found.We have recorded this error (404) to help us fix the problem"
    Site: http://www.oracle.com/technetwork/middleware/bi-foundation/downloads/hyperion-fin-data-quality-111130-085525.html
    regards
    Anil

    Hi Ferro;
    As far as I can see Apple doesn't have to fix anything with Software Update because it is working perfectly for myself and the users I help to support.
    So maybe if you can give us more details; such as what error messages are you getting, what have you done so far to solve this problem.
    Allan

  • Repository variable is not working for prompted date

    Hi experts..
    I have created one repository variable sum(amount1), but it is not filtering according to date local.... i need to filter it according to date local.

    Thanks for reply..
    I need to calculate the value in A1 = Amount in A in each row is how much % of SUM(A) ..and want to show in chart..

  • Drill Through report not working for large data

    Hi,
    In SSRS 2008 R2, I have a main report and a drill through report from one of the main report's column. The drill through report works mostly except if the data is too large i.e. more than 1 million records. How to fix this problem?
    Thanks,
    Jkrishna

    Nope. WHat I meant was not to show the entire data in child report (ie your 1 million records). Instead add extra parameter as PageNumber. By default set it as 1 when you navigate to child report (default value)
    Then in query behind use a ROW_NUMBER based logic like below
    SELECT *
    FROM
    SELEC ROW_NUMBER() OVER (ORDER BY <combination of unique valued column(s)>) AS Rn,...
    Your existing query other columns
    )t
    WHERE Rn BETWEEN ((@PageNo-1) * 1000) + 1 AND @PageNo * 1000
    Assuming you want 1000 per page
    So when it renders it will show first 1000 records. Add a NextPage icon to report footer and when clicked add a jump to report functionality to same report but with PageNumber parameter value as
    =Parameters!PageNumber.Value + 1
    and it will then give you second page data etc 
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • 11.1.1.3 Uncommitted Data Warning not working for fields  AutoSubmit =true

    We are facing an issue in our application where [ Uncommitted Data Warning |http://www.oracle.com/technetwork/testcontent/unsaveddatawarning-096556.html] doesnot seem to work for input fields on which autosubmit is turned to true. Once I unset thye autoSubmit property to false , this works fine.
    The autosubmit is needed in our application for specific needs.
    Can you please throw some light on this weird behaviour ! We have followed the exact steps as mentioned viz -
    1)Turn the Critical to 'true' for the bounded taskflow.
    2)Turned the UncommittedDataWarning to 'on' for the af:document of the container .jspx page
    Thanks
    Sudipto

    I tried this as a small prototype . Can someone please give any pointers ?
    TEST CASE 1 (Using a simple jspx and no taskflows)
    1)Created a new Test1.jspx and put a af:inputText in it bound to an attribute binding coming from a DataControl (using EJB).
    2)Set the autoSubmit property to true for the inputText.
    3)For the af:Document of the above Test1.jspx set the UnCommittedDataWarning to “on”
    4)Register the above page in jazn-data.xml for anonymous and auntenticated-role for login purpose.
    5)Run the page and found that the UncommittedDataWarning (UD Warning henceforth) pops up fine after dirtying the inputText and pressing browser back button.     
    TEST CASE 2 (Using a jsff embedded into a taskflow which in turn is embedded into a jspx
    1)Created a new Test2.jsff and put a af:inputText in it bound to an attribute binding coming from a DataControl.
    2)Set the autoSubmit property to true.
    3)Insert the Test2.jsff into a bounded task flow say Test2TF.xml. Have critical set to “true” for this taskflow.
    4)Embed the Test2.xml into a new jspx say Test2.jspx
    3)For the af:Document of the above Test2.jspx set the UnCommittedDataWarning to “on”
    4)Register the above page , jsff and taskflow in jazn-data.xml for anonymous and auntenticated-role for login purpose
    5)Run the page and find that the UD Warning doesnot pop up after dirtying the inputText and pressing browser back button.
    +(The above is a typical scenario of our application)+
    I also checked the steps and concepts well explained at http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-100139.html
    ,but couldnot arrive at a solution . The transaction and data control properties seem to be fine since , the UD warning does fire for a couple of fields having autoSubmit=”false” .
    Thanks
    Sudipto

  • Date field not working like a date field

    We have quite a few date objects in the Universe but only some seem to function as a date field whereas some do not.
    The easiest way to tell whether a date field is functioning as a date field seems to be to add the date fields as a filter in a query. If it is a proper date field a Calendar option appears. If it is not, no Calendar option appears.
    In the screenshot below, the Latest Approved Date functions like a proper date object and shows a calendar option. The other field does not even though it is a date field too.
    I'm checking with this forum as the Universe designer didn't have any answer for this.

    HI Vivek,
    Go to Universe Designer
    click on object (Latest Approved Date)
    click on definition
    go to TYPE scroll down and select type as DATE
    and export now check the filter it will work
    try once
    Regards,
    Ranjeet

  • Data is not uploding for the following code in bdc

    DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
    *       messages of call transaction
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    *       error session opened (' ' or 'X')
    DATA:   e_group_opened.
    *       message texts
    TABLES: t100,
            cosp.
    *** Generated data section with specific formatting - DO NOT CHANGE  ***
    DATA: BEGIN OF record OCCURS 0,
    * data element: KPP_VALUE
            bdc00(032),                              "Cost Center
    * data element:
            bdc01(032),                              "Cost Element
    * data element:
            bdc02(032),                              "January
    * data element:
            bdc03(032),                              "february
    * data element:
            bdc04(032),                              "March
    * data element:
            bdc05(032),                              "April
    * data element:
            bdc06(032),                              "may
    * data element:
            bdc07(032),                              "june
    * data element:
            bdc08(032),                              "july
    * data element:
            bdc09(032),                              "august
    * data element:
            bdc10(032),                              "september
    * data element:
            bdc11(032),                              "october
    * data element:
            bdc12(032),                              "november
    * data element:
            bdc13(032),                              "december
          END OF record.
    *** End generated data section ***
    DATA: g_file TYPE string,                        "Input file var for FM
          g_count(4) TYPE n VALUE 0000,              "Counter
          g_flag(1),                                 "Flag
          g_bdc01(11),
          g_bdc02(11),
          g_bdc03(11),
          g_bdc04(11),
          g_bdc05(11),
          g_bdc06(11),
          g_bdc07(11),
          g_bdc08(11),
          g_bdc09(11),
          g_bdc10(11),
          g_bdc11(11),
          g_bdc12(11),
          g_bdc13(11).
    DATA: g_objnr LIKE cosp-objnr. "Object Number
    DATA: g_record TYPE string,    "work area to read from app server
          g_tab TYPE string.       "tab variable to separate the columns
    *   Selection Screen Variables
    PARAMETERS ctumode LIKE ctu_params-dismode DEFAULT 'A' OBLIGATORY.
    PARAMETERS: user(12) DEFAULT sy-uname OBLIGATORY.     "user for session in batch
    PARAMETERS cupdate LIKE ctu_params-updmode DEFAULT 'L' OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETERS: p_file(256) LOWER CASE OBLIGATORY,   "Input file
                p_ver(3) OBLIGATORY,                 "version
                p_gjahr(4) OBLIGATORY,               "Fiscal Year
                p_prof(8) OBLIGATORY,                "Planner Profile
                p_lines(4) OBLIGATORY,               "No. of Lines
                p_kokrs(4) OBLIGATORY.               "Controlling area
    SELECTION-SCREEN END OF BLOCK b1.
    *   Initialization
    INITIALIZATION.
    *Shiva-Change -01/03/2007 Costom Authorization check.
    INITIALIZATION.
      INCLUDE zauthocheck.
    *End.
      CLASS cl_abap_char_utilities DEFINITION LOAD.
      g_tab = cl_abap_char_utilities=>horizontal_tab.
    *  Start of Selection
    START-OF-SELECTION.
    *Set the Controlling area
      PERFORM bdc_dynpro USING 'SAPLSPO4'     '0300'.
      PERFORM bdc_field  USING 'SVALD-VALUE(001)' p_kokrs. "Contr.area
      PERFORM bdc_transaction USING 'OKKS'.
    *Set the planner profile
      PERFORM bdc_dynpro USING 'SAPLKPP6'     '1007'.
      PERFORM bdc_field  USING 'RKPP6-PLPROF' p_prof. "Planner profile
      PERFORM bdc_transaction USING 'KP04'.
    *Number of lines
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = p_lines
        IMPORTING
          output = p_lines.
    *For use in FM g_file should be of type string
       g_file = p_file.
    *Open the app server file
      PERFORM sub_get_data.
    *read all data one by one
    *  DO.
    *    READ DATASET p_file INTO g_record.
    *    IF sy-subrc <> 0.
    *      EXIT.
    *    ENDIF.
    **Split the record at tab
    *    SPLIT g_record AT g_tab INTO
    *     record-bdc00 record-bdc01 record-bdc02
    *     record-bdc03 record-bdc04 record-bdc05
    *     record-bdc06 record-bdc07 record-bdc08
    *     record-bdc09 record-bdc10 record-bdc11
    *     record-bdc12 record-bdc13.
    *    IF sy-subrc = 0.
    *      APPEND record.
    *      CLEAR record.
    *    ENDIF.
    *  ENDDO.
    *For every new cost center, check whether there is already some plan data
    *that is existing. If yes, delete them and replace with new plan data. Else,
    *upload the new data.
      LOOP AT record.
    *Start of every new transaction
        AT NEW bdc00.
          READ TABLE record INDEX sy-tabix.
          CLEAR cosp.
          CONCATENATE 'KS' p_kokrs record-bdc00 INTO g_objnr.
          SELECT SINGLE * FROM cosp WHERE objnr = g_objnr AND
                                          gjahr = p_gjahr AND
                                          wrttp = '01' AND
                                          vrgng = 'RKP1'.
          IF sy-subrc = 0.
            PERFORM bdc_dynpro      USING 'SAPLKPP0' '1000'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'KPP0B-VALUE(03)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CSUB'.
            PERFORM bdc_field       USING 'KPP0B-VALUE(01)'
                                          p_ver.
            PERFORM bdc_field       USING 'KPP0B-VALUE(02)'
                                          p_gjahr.
            PERFORM bdc_field       USING 'KPP0B-VALUE(03)'
                                          record-bdc00.
            PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'Z-BDC02(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CMAL'.
            PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'Z-BDC02(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CDEL'.
            PERFORM bdc_dynpro      USING 'SAPLSPO1' '0200'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=YES'.
            PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'Z-BDC02(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CBUC'.
            PERFORM bdc_transaction USING 'KP06'.
          ENDIF.
    *The line count should be set to 0001 first
          g_count = 0001.
          PERFORM bdc_dynpro      USING 'SAPLKPP0' '1000'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'KPP0B-VALUE(03)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CSUB'.
          PERFORM bdc_field       USING 'KPP1B-ONLY'
                                        'X'.
          PERFORM bdc_field       USING 'KPP0B-VALUE(01)'
                                        p_ver.
          PERFORM bdc_field       USING 'KPP0B-VALUE(02)'
                                        p_gjahr.
          PERFORM bdc_field       USING 'KPP0B-VALUE(03)'
                                        record-bdc00.
        ENDAT.
    *End of every new transaction
    *If the line count increases what was specified in sel screen, reset it to 1
        IF g_count > p_lines.
          g_count = 0001.
          g_flag = 'X'.
        ENDIF.
        CONCATENATE 'Z-BDC01(' g_count+2(2) ')' INTO g_bdc01.
        CONCATENATE 'Z-BDC02(' g_count+2(2) ')' INTO g_bdc02.
        CONCATENATE 'Z-BDC03(' g_count+2(2) ')' INTO g_bdc03.
        CONCATENATE 'Z-BDC04(' g_count+2(2) ')' INTO g_bdc04.
        CONCATENATE 'Z-BDC05(' g_count+2(2) ')' INTO g_bdc05.
        CONCATENATE 'Z-BDC06(' g_count+2(2) ')' INTO g_bdc06.
        CONCATENATE 'Z-BDC07(' g_count+2(2) ')' INTO g_bdc07.
        CONCATENATE 'Z-BDC08(' g_count+2(2) ')' INTO g_bdc08.
        CONCATENATE 'Z-BDC09(' g_count+2(2) ')' INTO g_bdc09.
        CONCATENATE 'Z-BDC10(' g_count+2(2) ')' INTO g_bdc10.
        CONCATENATE 'Z-BDC11(' g_count+2(2) ')' INTO g_bdc11.
        CONCATENATE 'Z-BDC12(' g_count+2(2) ')' INTO g_bdc12.
        CONCATENATE 'Z-BDC13(' g_count+2(2) ')' INTO g_bdc13.
    *Trigger a new page when the limit reaches.
        IF g_flag = 'X'.
          PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        g_bdc01.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CP+'.
          g_flag = space.
        ENDIF.
        PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                        g_bdc01.
        PERFORM bdc_field       USING g_bdc01
                                      record-bdc01.
        PERFORM bdc_field       USING g_bdc02
                                      record-bdc02.
        PERFORM bdc_field       USING g_bdc03
                                      record-bdc03.
        PERFORM bdc_field       USING g_bdc04
                                      record-bdc04.
        PERFORM bdc_field       USING g_bdc05
                                      record-bdc05.
        PERFORM bdc_field       USING g_bdc06
                                      record-bdc06.
        PERFORM bdc_field       USING g_bdc07
                                      record-bdc07.
        PERFORM bdc_field       USING g_bdc08
                                      record-bdc08.
        PERFORM bdc_field       USING g_bdc09
                                      record-bdc09.
        PERFORM bdc_field       USING g_bdc10
                                      record-bdc10.
        PERFORM bdc_field       USING g_bdc11
                                      record-bdc11.
        PERFORM bdc_field       USING g_bdc12
                                      record-bdc12.
        PERFORM bdc_field       USING g_bdc13
                                      record-bdc13.
        g_count = g_count + 1.
    *at end of all records of a transaction
        AT END OF bdc00.
          PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        g_bdc13.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CBUC'.
          SKIP.
          WRITE:/ 'Cost Center:', 15 record-bdc00.
          PERFORM bdc_transaction USING 'KP06'.
        ENDAT.
      ENDLOOP.
    *&      Form  sub_get_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sub_get_data .
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = g_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = record
        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.
    ENDFORM.                    " sub_get_data
    *   open dataset                                                       *
    *FORM open_dataset USING p_dataset.
    *  OPEN DATASET p_dataset
    *               FOR INPUT IN TEXT MODE
    *               ENCODING DEFAULT.
    *  IF sy-subrc <> 0.
    *    WRITE: / text-e00, sy-subrc.
    *    STOP.
    *  ENDIF.
    *ENDFORM.                    "OPEN_DATASET
    **   close dataset                                                      *
    *FORM close_dataset USING p_dataset.
    *  CLOSE DATASET p_dataset.
    *ENDFORM.                    "CLOSE_DATASET
    *        Start new transaction according to parameters                 *
    FORM bdc_transaction USING tcode.
      DATA: l_mstring(480).
      DATA: l_subrc LIKE sy-subrc.
    * batch input session
    * call transaction using
      REFRESH messtab.
      CALL TRANSACTION tcode USING bdcdata
                       MODE   ctumode
                       UPDATE cupdate
                       MESSAGES INTO messtab.
      l_subrc = sy-subrc.
      WRITE: / 'CALL_TRANSACTION',
               tcode,
               'returncode:'(i05),
               l_subrc,
               'RECORD:',
               sy-index.
      LOOP AT messtab.
        SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
                                  AND   arbgb = messtab-msgid
                                  AND   msgnr = messtab-msgnr.
        IF sy-subrc = 0.
          l_mstring = t100-text.
          IF l_mstring CS '&1'.
            REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
          ELSE.
            REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
          ENDIF.
          CONDENSE l_mstring.
          WRITE: / messtab-msgtyp, l_mstring(250).
        ELSE.
          WRITE: / messtab.
        ENDIF.
      ENDLOOP.
      SKIP.
      REFRESH bdcdata.
    ENDFORM.                    "BDC_TRANSACTION
    *        Start new screen                                              *
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "BDC_DYNPRO
    *        Insert field                                                  *
    FORM bdc_field USING fnam fval.
    *  IF fval <> nodata.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    *  ENDIF.
    from the flat file its reading first record in to the tab strip but not the second record for  the same costcenter

    So your sparse upper level members are dynamically calculated?
    I wonder if that is interacting with the calc order of the attribute dimension and not valuing the way you want.
    The DBAG has lots of good stuff on attributes: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_dbag/dattrib.htm
    You might want to think about making the upper level members in Function stored/never share and see if you get the result you're looking for. If Function is sparse, I would think long and hard about whether I really want those members to be dynamically calculated because of retrieval performance impact.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • Andrew - one more doubt in the donsample.sql file,it is urgent

    Andrew, I believe you can answer this ,i hope i am not trying too much on your patience.Thanks .I am connected to the oracle server.In that i execute a procedure which i believe is executing on the oracle server.i supply arguments to it .The arguemen

  • Urgent help on null values

    hi every body i hope some body might have faced similar problem i have a database retrival problem and i am getting the values in the last row of the table, But the problem is if the value stored is "NULL" my program and application hangs can any bod

  • File sender, uploader widget

    Is there any file sender, uploader widget for Muse?

  • How to Open Project Professional file of particular project from project server pro-grammatically?

    Hello all, I am working on project server 2013 right now. I am able to create and check in project from my C# application. but is there any way open MPP file of this project from my App. Regards, Kartik Ghodasara Associative Software engineer, Synove

  • YTD view in Periodic application

    Hi Experts, I got an answer from SAP Korea, the YTD is only available for quarter in BPC 7.5 NW in periodic application. IS IT TRUE??? If it is just for BS, sounds OK since usually we get BS quarterly, but for PL, it should support monthly YTD view.