Error FCEXEC in creating forecast

I am trying to create forecast in AWM with foodmart database. There are 5 dimensions, dim_timeall, dim_customer, dim_product, dim_store and dim_promotion, with 1 cube cub_salesfor. I followed example in OLAP Application's Developer Guide 10.2. Dim_timeall includes all of history period and forecast period with day as base level.
First trial :
I made 2 measure with short decimal type and then I used them in fcexec :
FCEXEC handle TIME dimtimeall INTO forecast_sales SEASONAL forecast_sales_seasonal cub_salesfor
After I compile, there were error message :
ERROR: (ORA-33686) The time-series parameter to FCEXEC is not dimensioned by AW_20MAR!DIM_TIMEALL.
Second trial :
I made 2 measure with short decimal type and I selected DIM_TIMEALL, DIM_TIMEALL_HIERLIST, DIM_TIMEALL_LEVELLIST, DIM_TIMEALL_TIME_START_DIM and DIM_TIMEALL_TIME_START_DIM1 in tab Dimension, and of course with the same fcexec.
But, I got the same error message.
Somebody help me, please...

Check the following:
* forecast_sales is dimensioned by dim_timeall
* forecast_sales_seasonal is dimensioned the same as forecast_sales. It may have extra dimensions, but it must have all the dimensions of forecast_sales. If it has extra dimensions, the status of the extra dimensions must be limited to a single value.
* cube_salesfor is dimensioned the same as forecast sales. It may have extra dimensions, but it must have all the dimensions of forecast_sales. If it has extra dimensions, the status of the extra dimensions must be limited to a single value.
There is usually an SMSEASONAL parameter, but I don't know if it is required.
An example forecast program follows. It might be useful as a template.
" The forecast engine needs a scaler integer variable to be used for
" the forecast handle. Define the a variable if it does not already
" exist.
IF EXISTS('FORECAST_HANDLE_UNITS') EQ no
THEN DEFINE forecast_handle_units VARIABLE INTEGER
" Set status of dimensions to the values the will be forecasted. This
" forecast will be run as the lowest levels of the dimensions.
PUSH time channel product customer
LIMIT time TO time_levelrel 'MONTH'
LIMIT customer TO customer_levelrel 'SHIP_TO'
LIMIT product TO product_levelrel 'ITEM'
" Limit channel to some specific values.
LIMIT channel TO '2' '3'
" Run the forecast. Note that the variables for the SEASONAL,
" SMSEASONAL, and SOURCE measures are dimensioned the same as the
" target.
FORECAST_HANDLE_UNITS = FCOPEN('units')
FCSET forecast_handle_units METHOD 'automatic' HISTPERIODS 79 PERIODICITY 12
fcexec FORECAST_HANDLE_UNITS -
TIME time -
INTO forecast_units_cube_forecast_units_stored -
SEASONAL forecast_units_cube_sys_forecast_units_seas_stored -
SMSEASONAL FORECAST_units_cube_sys_forecast_units_smseas_stored -
units_cube_units
FCCLOSE forecast_handle_units
SHOW 'Completed running forecast for method.'
" Return status (constraints) of the dimensions to where they were before
" running this program.
PUSH time channel product customer

Similar Messages

  • Unable to capture error message while creating an SO using bapi

    Hi,
    Can anybody suggest how to capture the error message while creating a SO using BAPI.
    I have developed a customeized BAPI and using the BDC format to create the SO.
    Note: i am using a call transaction method for the BDC.
    I am sending the message into message1.
    but i am unable to send the same into an internal table
    shyam.

    Hi Shyam
    If my understanding is correct, you are performing BDC process within the customized BAPI...
    And you want to collect the messages from BDC to an internal table and pass to the output.
    Proceed as below:
    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.
    2. Now the messages will be collected in ita.
    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>
    4. Collect to the returning table.
    Hope this helps...
    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    Kind Regards
    Eswar

  • Error in phase creating java users during installation!!

    Hi,
    We are getting error at step "Creating java Users" while installing NW 2004s SR1  non unicode dual stack on HP Ux Pa Risc 64 bit with database Oracle 10g.
    Erro logs of file /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/sapinst_dev.log are as:
    ==================================================================================================
    ERROR      2011-07-21 13:20:37
               CJSlibModule::writeError_impl()
    CJS-30197  . For more details see output of logfile:
    TRACE      [iaxxejsbas.hpp:460]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2011-07-21 13:20:37 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0|createJSF was executed with status ERROR .
    =================================================================================================
    Also please note that we have already 1 instance (dual stack) on same host and that is running fine.
    Could someone please assist us in proceeding further.
    Regards
    Joy Garg

    Hi,
    Issue gets resolved by  extracting manualy from JAVA_DVD_DIR/J2EE_OSINDEP/J2EEINSTALL.SAR to SAPINST install directory using SAPCAR. The path of this install directory is:/tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/install as:
    > pwd
    /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/install
    > SAPCAR -xvf /SW/NW_2004s_SR1Java_based_SW_Comp/J2EE_OSINDEP/J2EE-INST/J2EEINSTALL.SAR
    Once we have extracted the J2EEINSTALL.SAR relaunch SAPINST again and the installation continue.
    Regards
    Joy garg
    Once you will have extracted the J2EEINSTALL.SAR please launch SAPINST again and the installation will continue.

  • Time capsule won't back up - Unable to complete backup. An error occurred while creating the backup folder. Any ideas?

    I have tried all the resets, the firmware is the latest version, the green light is on.
    But I get this message "Unable to complete backup. An error occurred while creating the backup folder."
    Any ideas?

    Do setup again.. but make sure both your wireless and your ethernet have ipv6 turned on to local link.
    Done this OK, but no idea about IPv6 - something new to me and rather Appley I think?
    Unplug the WAN for the moment.. Just LAN port TC to the MBPr ethernet via thunderbolt.. (thunderbird was the kids puppet series.. Thunderbirds are go!!). Done - New real people Thunderbirds movie coming out soon I believe!!!
    Reset the TC again.. sorry.. !! You're welcome ... done.
    Make sure the ethernet now has an IP address.. 10.0.1.2 - Yep - done that - on ethernet anyway ...
    You need to open the network preferences to find out. Yep - that's good ...
    ****** I then reconnect the TC WAN to the router - is this right?
    And then I think I start going round in circles ... boot, reboot, restart, reboot again ...
    The final result is green light on TC, but error message when trying TM is "Backup disk is not available".
    Then open the airport utility and you should be able to setup the TC.
    Do as little setup as possible and then run the TM backup and see how it goes.
    I have managed to get Thunderbird to LAN on TC to create a folder on TC and copy a file onto it.
    So I guess the drive is working - it must be the software, settings or perhaps even the operator that isn't quite so clever ...
    I named network RFG, named device RFGTC.  RFG network shown as IP 192.168.0.72
    Wireless router is BT Homehub 3 with IP of 192.168.0.254 - is this issuing new IP addresses when rebooting TC?
    I have three wireless networks here - the BT Homehub3 wireless, the TC wireless, and also a D-link power socket ethernet thingy for an ethernet connection to the telly - DHP-W310AV which is also wireless link.  All are effectively connected to the BT Homehub - is there a conflict there?
    Have several times achieved in Airport Utility schematic with internet shown as green, RFGTC shown as green, light on TC green, but no TM backup run ... "backup disc not available."
    And there are no tall building around here to hurl myself off ... at least you can go to Sydney Harbour bridge - not too far away ... it was my son in Sydney that persuaded me to scrap Windows and go Apple ... it's all his fault ...

  • Please help me to solve error: Split mapping created no messages

    Hi Experts,
    I am facing Split mapping created no messages  when i run my scenario.
    My Scenario is : Proxy to FILE.
    I am triggering Proxy and based on one condition i am generating different Flat Files.
    Now when i do this i am getting error :Split mapping created no messages in SXI_MONITOR.
    When i check this in Message Mapping by taking data from SXI_MONI its working fine...
    but when i trigger the data from RUNTIME WORKBENCH its throughing the error.
    When i remove the NameSpaces <ns0:message>
    and <ns0:messages1> its working fine.
    How can i solve this issue.
    Even though i removed Namespace in Message Type, i am getting the error.
    I changed occurance of Target message to O..unbounded both in Message Mapping and Interface Mapping.
    Its working fine in Message Mapping, problem occurs only when i run end-to-end scenario.
    So please help me to solve this issue.

    I think there might be mismatch between your name spaces.
    may be this link might help you
    Split mapping created no messages -Mluti Mapping
    are you getting the same structure from your proxies whatever structure you have in your XI structure(sender) and NS should match.
    but I dont have exp with proxies.
    Sri

  • An error occured while creating the new dataset Could not get type informat

    Uses: Windows XP Pro SP3+; OracleXE; Oracle 8i Client; ODP.NET; Visual Studio 2005 PRO;
    I had OracleXE and was using OracleXE's Oracle.DataAccess Version 10.2.0.100 which was located in C:\oraclexe\app\oracle\product\10.2.0\server\BIN. Then to use Oracle Developer Tools for VS, I installed ODAC where the Oracle.DataAccess's version was 2.111.6.20.
    Everything connected via SqlPlus and even was able to Oracle XE Home page and was able to loginto it. Further, was even able to create connection with Oracle Dot Net Provider. The problem was created when I tried to create a datasource from DataSource Menu in VS.2005. It was giving an error saying "An error occured while creating the new dataset Could not get type information for dataset". However I wittnessed that Dataset is been created in Solutions Explorer but not in Data Source Tab. Further researching I was able to create Datasets with Microsofts Oracle Data provider with out any issue.
    My Path variable list the following:
    C:\app\Administrator\product\11.1.0\client_1;
    C:\app\Administrator\product\11.1.0\client_1\bin;
    C:\oraclexe\app\oracle\product\10.2.0\server\bin;
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;
    C:\Program Files\Borland\BDS\4.0\Bin;
    C:\PROGRA~1\Borland\Delphi5\Projects\Bpl;
    C:\PROGRA~1\Borland\vbroker\jre\Bin;
    C:\PROGRA~1\Borland\vbroker\Bin;
    C:\PROGRA~1\Borland\Delphi5\Bin;C:\orant\bin;
    C:\WINDOWS\system32;C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    c:\Program Files\Microsoft SQL Server\90\Tools\binn\;
    C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
    C:\Program Files\java\jdk1.6.0_07\bin.
    Further I got 2 Oracle Homes one which C:\orant and other is located in C:\app\Administrator\product\11.1.0\client_1.
    Also noted that while deploying at client site I started gett'n this error:
    "Unable to install or run the application. The application requires that assembly Oracle.DataAcces version be installed in Global Assembly Cache First."
    Is it due to change in the production machine? Any help in this regard is greatly appreciated.

    Hi Pushpa,
    Which enhancement package are you on currently? This is observed in cases where originals in DIR's are invisible and sometimes error message 26296 occurs in transaction CV01n. Hence,please check your entries in the table SDOKPROP to avoid such a problem in your system.
    Further,suggest you explore if the below resolutions can be adopted in your case.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=10321987
    http://wiki.sdn.sap.com/wiki/display/PLM/OriginalsinvisibleafterEHP3or+EHP4
    Regards,
    Pradeepkumar haragoldavar

  • An error occurred while creating a Page Server subprocess.

    I am using XI R2 SP5 on solaris.
    When we try to view any report on demand or schedule any report that has a parameter, the following error comes back:
    An error occurred while creating a Page Server subprocess.
    I have tried restarting the services. I have tried creating a new page server. It behaves the same way. In other online forms, I've seen with this error message, people have talked about fixing it by installing SP2 or by uninstalling and reinstalling everything. We're at SP5, so we should have anything that was fixed at SP2. An uninstall and then reinstall would be a nightmare given the amount of use on this system.
    Can anyone recommend anything at all? I'm about to have our unix admins reboot the server, but that is really nothing more than a stab in the dark. I saw someone else in an online posting claim that a reboot fixed the problem, but I've only seen that once.

    checked this SAP Note?
    1204013 - Error: "The Page Server is unable to create a child process" when viewing a Crystal report in InfoView on Solaris
    Symptom
    When trying to view a Crystal report in BusinessObjects XI Release 2 InfoView on Solaris, the following error message appears:
    "The Page Server is unable to create a child process"
    In the syslogs, you see the following error messages:
    "An error occurred while creating a Page Server subprocess."
    "The function PEOpenEngineEx failed. Reason: Report engine not opened."
    "Internal error for dll procreport."
    "Unable to load dll procreport."
    "Internal Job Server error."
    Cause
    The following file in the MainWin registry has become corrupt:
    bobje/enterprise115/solaris_sparc/crpe/mw/registry/core_data/servername/.mw/hklm_sunos.bin
    This has become corrupt due to the web application server running under a different account than the BusinessObjects Enterprise applications.
    Resolution
    Restore the hklm_sunos.bin file using a backup of that file. The backup file must be from before the corruption occurred. Also ensure that your web application server and BusinessObjects Applications are running under the same user account.

  • A fatal error occurred while creating an SSL client credential. The internal error state is 10011.

    Need help.  I have my pilot lync 2013 pool up (in coexistence with 2010 production environment) and can log into Lync 2013 environment with a lync 2010 client but am not able to with a lync 2013 client.  It just prompts for password but will not
    take it. I'm sseeing this on my front end server multiple times:
    A fatal error occurred while creating an SSL client credential. The internal error state is 10011.
    Came across this http://www.logicspot.net/index.php?id=50 and tried disabling TLS 1.2, which I did and verified but yet the issue still exists.
    All my certs are good coming from internal CA.  My signin logs show below but keep in mind, this works just fine if using a 2010 lync client to my lync 2013 servers.  Issue only occurs when trying to connect using a lync 2013 client.
    1 Login: FAIL (hr = 0x1) 
    this request needs authentication, trying webticket from: https://domain.com/WebTicket/WebTicketService.svc
    1.1 Get-NewWebTicket: FAIL (hr = 0x1) 
    CLogonCredentialManager::QueryForSpecificCreds() Credential user 0x069B64A0 id=15 querying for specific credentials, credSuccess=2, targetName=Microsoft_OC1:[email protected]:specific:LAD:1
    1.1.1 ExecuteWithMetadataInternal: FAIL (hr = 0x3d0000) 
    Executing wws method with windows auth auth, asyncContext=0A4FC348,
     context: WebRequest context@ :173931816
      MethodType:4
      ExecutionComplete? :1
      Callback@ :0A5A1864
      AsyncHResult:80f10041
      TargetUri:https://domain.com/WebTicket/WebTicketService.svc
      OperationName:http://tempuri.org/:IWebTicketService
     Error:
    There was an error communicating with the endpoint at 'https://domain.com/WebTicket/WebTicketService.svc'.
    The server returned HTTP status code '401 (0x191)' with text 'Unauthorized'.
    The requested resource requires user authentication.
    1.1.2 ExecuteWithWindowsOrNoAuthInternal: PASS
    1.1.3 ExecuteWithWindowsOrNoAuthInternal: FAIL (hr = 0x3d0000) 
    Executing wws method with windows auth auth, asyncContext=0A4FC348,
     context: WebRequest context@ :173931816
      MethodType:4
      ExecutionComplete? :1
      Callback@ :0A5A1864
      AsyncHResult:80f10041
      TargetUri:https://domain.com/WebTicket/WebTicketService.svc
      OperationName:http://tempuri.org/:IWebTicketService
     Error:
    There was an error communicating with the endpoint at 'https://domain.com/WebTicket/WebTicketService.svc'.
    The server returned HTTP status code '401 (0x191)' with text 'Unauthorized'.
    The requested resource requires user authentication.
    1.1.4 ExecuteWithWindowsOrNoAuthInternal: FAIL (hr = 0x3d0000) 
    Discovery task(0A4FF830) sent to URL http://domain.com completed with hr=0x80f10045
    1.1.5 ExecuteWithWindowsOrNoAuthInternal: FAIL (hr = 0x3d0000) 
    Executing wws method with windows auth auth, asyncContext=0A4FC348,
     context: WebRequest context@ :173931816
      MethodType:4
      ExecutionComplete? :1
      Callback@ :0A5A1864
      AsyncHResult:80f10041
      TargetUri:https://domain.com/WebTicket/WebTicketService.svc
      OperationName:http://tempuri.org/:IWebTicketService
     Error:
    There was an error communicating with the endpoint at 'https://domain.com/WebTicket/WebTicketService.svc'.
    The server returned HTTP status code '401 (0x191)' with text 'Unauthorized'.
    The requested resource requires user authentication.
    1.1.6 ExecuteWithWindowsOrNoAuthInternal: FAIL (hr = 0x3d0000) 
    CLogonCredentialManager::QueryForSpecificCreds() Credential user 0x069B64A0 id=15 querying for specific credentials, credSuccess=2, targetName=Microsoft_OC1:[email protected]:specific:LAD:1
    Rich

    Hi,
    Please check the server role and Web Services for Internet Information Services (IIS) are set correctly.
    For the detailed IIS configuration, please check:
    http://technet.microsoft.com/en-us/library/gg412871.aspx
    As Lync client 2013 attempt to query in order to perform autodiscover of the Lync registration server. First
    lyncdiscoverinternal.<sipdomain> Host (A) record and then
    lyncdiscover.<sipdomain> Host (A) record. If neither of these records are resolvable then the legacy DNS SRV and A record fall-back process is used. So make sure you have add the two A record in DNS server.
    More details:
    http://blog.schertz.name/2012/12/lync-2013-client-autodiscover/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Deletion marked material should give error message while creating proc ord

    Hello,
    i had marked the material for deletion through T-code MM06 & saved.
    Now when i'm creating the process order for the deleated material, System is giving only Warning message that " Material XXXX in plant XXXX has been marked for deletion."
    But my requirement is system shold give an ERROR message while creating Process Order for the deleted material.

    Yes Brahman is Right,
    Check the followig..
    Go to OMCQ and change the message category  to E- Error message instead of W- Waring message in Message no M7 127, but
    not  M7 121.
    and check it,
    Regards,
    Pavan idlur.

  • "An unexpected error occurred while creating a custom installer."

    All;
    I—and I've seen several others in older posts—have been reported received the error "An unexpected error occurred while creating a custom installer" while attampting to build a customer ARD client installer.  My guess is that this is do to a issue related to 10.8.X (10.8.4, in my case) based console Mac but I cannot confirm this. I have verified that there are no outstanding OS, client or application updates or hot fixes, as well.
    Has anyone built an successful installer from Mountain Lion-installed Mac?  Is there any know workarounds?
    Thanks in advance, for any help. 

    Have the exact same problem.
    iMac running 10.8.4
    Got through the steps of creating a custom client installer.
    if I choose not to customize and just save an installer I don't get the error but it creates a file of Zero bytes in size.
    If I chose to configure, when I try to save I get:
    An unexpected error occurred while creating a custom installer. Please try again....
    Console log reports:
    9/1/13 12:32:29.603 AM Remote Desktop[1306]: open on /private/tmp/RemoteDesktopClientInstaller_HEATyAJ5CR/extracted/RemoteDesktopCli ent.pkg/Scripts/RemoteDesktopClient.pkg: No such file or directory
    I have tried to save this in several location, with no effect on the error or the information logged, with the exception of the name of the temp directory that DOES contains the file (zero bytes):
    RemoteDesktopClient.pkg
    Need help with this someone...!
    APPLE...I JUST purchase this Applciation for $80.....it just flat out does not work....

  • Error in executing ABAP program. Error occurred when creating dataset

    hi,
    when I use LKM SAP ERP to Oracle (SQLLDR) to extract data from SAP ERP server. I execute my interface, and it's stop at extract data step.
    This is message:
    java.lang.RuntimeException: Error occured in open tool execute method...Error in executing ABAP program...Error in executing ABAP program...Error occurred when creating dataset/abc/ZODI_13001_6001_GLOBAL.txt
    I tried others path name, tried slash or backslash. This is content in code tab
    OdiSAPAbapExecute "-UPLOAD=1" "-EXECUTE=1" "-EXECUTEBASE_RKM=0" "-ZRFC_RUN_INSTALL=1" "-ABAP_PROGRAM_NAME=ZODI_13001_6001" "-HOST=10.86.87.24" "-USER=sv_hoa" "-PASSWORD=<@=snpRef.getInfo("SRC_PASS") @>" "-SAP_CLIENT=800" "-SAP_LANGUAGE=EN" "-SAP_SYSTEM_NUMBER=02" "-SAP_FUNCTION_GROUP_NAME=ZODI_FGR_13001" "-CONNECTION_POOL_NAME=SAP_ODI_ERP_POOL_10.86.87.24" "-CONNECTION_POOL_SIZE=10" "-FILE_DELIMITER=<@=""+(char)8@>" "-FILE_NAME=ZODI_13001_6001_GLOBAL.txt" "-FTP_HOST=10.86.82.108" "-FTP_USER=anh" "-FTP_PASSWORD=<@=sFtpPassword@>" "-FTP_PASSIVE_MODE=1" "-FTP_TRANSFER_TIMEOUT=100000" "-ODI_VARIABLE_NAMES=" "-ODI_VARIABLE_VALUES=" "-USER_ABAP_PARAMETER_NAMES=IV_DELIMITER,CHAR3;IV_FILENAME,CHAR255;IV_USER,CHAR35;IV_PWD,CHAR35;IV_HOST,CHAR35;IV_HASHVALUE,CHAR35;IV_PATH,CHAR35;IV_MAX_ROW_CNT,SYTABIX;IV_FETCH_BATCH_SIZE,SYTABIX;" "-USER_ABAP_PARAMETER_VALUES=<Value>" "-USER_ABAP_PARAMETER_SEPARATOR=<Value>" "-ABAP_TABLE_PARAMETERS=RETURN,BAPIRETURN;ET_FILE_RETURN,BAPIRET2" "-ABAP_EXPORT_PARAMETERS=ERRORMESSAGE;SY-MSGV1" "-LOG_FILE_NAME=C:\Users\anh\AppData\Local\Temp\SapAbapExecuteOpenTool_13001.log" "-FTP_PATH=/abc/" "-DEV_CLASS=ZODI_DEVCLASS" "-MAX_ROW_COUNT=" "-FETCH_BATCH_SIZE=100000" "-HASH_VALUE_MARKER=HVM" "-ABAP_PROGRAM_BODY=
    *Final Type declarations
    TYPES : BEGIN OF ty_final,
    Y03HOCSINH_HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID,
    Y03HOCSINH_MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH,
    Y03HOCSINH_TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH,
    Y03HOCSINH_GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH,
    Y03HOCSINH_DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI,
    Y03HOCSINH_GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU,
    END OF ty_final.
    *Final Temp Type Declarations
    TYPES : BEGIN OF ty_final_tmp,
    Y03HOCSINH_HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID ,
    Y03HOCSINH_MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH ,
    Y03HOCSINH_TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH ,
    Y03HOCSINH_GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH ,
    Y03HOCSINH_DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI ,
    Y03HOCSINH_GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU ,
    END OF ty_final_tmp.
    *Final Target Type Declarations
    TYPES : BEGIN OF ty_final_target,
    C0_Y03HOCSINH_HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID,
    C1_Y03HOCSINH_MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH,
    C2_Y03HOCSINH_TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH,
    C3_Y03HOCSINH_GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH,
    C4_Y03HOCSINH_DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI,
    C5_Y03HOCSINH_GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU,
    END OF ty_final_target.
    * Table type for Y03HOCSINH
    TYPES : BEGIN OF ty_Y03HOCSINH,
    HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID,
    MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH,
    TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH,
    GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH,
    DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI,
    GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU,
    END OF ty_Y03HOCSINH.
    TYPES: BEGIN OF gs_text,
    line(843) TYPE c,
    END OF gs_text.
    *Structure Declarations
    DATA: wa_final_string TYPE string,
    wa_final TYPE ty_final,
    wa_final_target TYPE ty_final_target,
    wa_Y03HOCSINH TYPE ty_Y03HOCSINH,
    *Table Declarations
    tt_final TYPE STANDARD TABLE OF ty_final,
    tt_Y03HOCSINH TYPE STANDARD TABLE OF ty_Y03HOCSINH,
    tt_final_target TYPE STANDARD TABLE
    OF ty_final_target,
    tt_final_tmp TYPE STANDARD TABLE OF ty_final_tmp,
    tt_final_tmp1 TYPE STANDARD TABLE OF ty_final,
    gt_result TYPE STANDARD TABLE OF gs_text,
    *Variable Declarations
    lv_path TYPE string,
    lv_flag TYPE char1,
    C0_Y03HOCSINH_HOCSINH_ID TYPE
    STRING,
    C1_Y03HOCSINH_MA_HOC_SINH TYPE
    STRING,
    C2_Y03HOCSINH_TEN_HOC_SINH TYPE
    STRING,
    C3_Y03HOCSINH_GIOI_TINH TYPE
    STRING,
    C4_Y03HOCSINH_DIA_CHI TYPE
    STRING,
    C5_Y03HOCSINH_GHI_CHU TYPE
    STRING,
    wa_final_tmp TYPE ty_final_tmp,
    lv_file TYPE string,
    lv_datum TYPE sy-datum,
    lv_date TYPE char10,
    wa_result TYPE string,
    lv_delimiter type string,
    lv_cnt TYPE sytabix,
    *-Cursor Declaration
    lv_Y03HOCSINH_dbcur TYPE cursor,
    lv_tabix_frm TYPE sy-tabix.
    lv_delimiter = iv_delimiter.
    IF iv_hashvalue = 'HVM'.
    *Open/delete output file
    CONCATENATE iv_path iv_filename INTO lv_path.
    *Check for file existence, if found, delete it
    OPEN DATASET lv_path FOR INPUT
    IN TEXT MODE
    ENCODING DEFAULT.
    IF sy-subrc EQ 0.
    DELETE DATASET lv_path.
    ENDIF.
    *Open/create output file
    OPEN DATASET lv_path FOR APPENDING
    IN TEXT MODE
    ENCODING DEFAULT.
    IF sy-subrc EQ 0.
    *Batch Processing
    OPEN CURSOR WITH HOLD lv_Y03HOCSINH_dbcur FOR
    SELECT HOCSINH_ID
    MA_HOC_SINH
    TEN_HOC_SINH
    GIOI_TINH
    DIA_CHI
    GHI_CHU
    FROM Y03HOCSINH.
    DO.
    *Check for the counter, only for first batch
    *process new line is required...
    lv_cnt = lv_cnt + 1.
    REFRESH tt_Y03HOCSINH.
    FETCH NEXT CURSOR lv_Y03HOCSINH_dbcur
    APPENDING TABLE tt_Y03HOCSINH
    PACKAGE SIZE IV_FETCH_BATCH_SIZE.
    IF NOT tt_Y03HOCSINH IS INITIAL.
    ELSE.
    EXIT.
    ENDIF.
    LOOP AT tt_Y03HOCSINH INTO wa_Y03HOCSINH.
    MOVE wa_Y03HOCSINH-HOCSINH_ID
    TO wa_final_tmp-Y03HOCSINH_HOCSINH_ID.
    MOVE wa_Y03HOCSINH-MA_HOC_SINH
    TO wa_final_tmp-Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_Y03HOCSINH-TEN_HOC_SINH
    TO wa_final_tmp-Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_Y03HOCSINH-GIOI_TINH
    TO wa_final_tmp-Y03HOCSINH_GIOI_TINH.
    MOVE wa_Y03HOCSINH-DIA_CHI
    TO wa_final_tmp-Y03HOCSINH_DIA_CHI.
    MOVE wa_Y03HOCSINH-GHI_CHU
    TO wa_final_tmp-Y03HOCSINH_GHI_CHU.
    APPEND wa_final_tmp TO tt_final_tmp.
    ENDLOOP.
    free : tt_Y03HOCSINH.
    LOOP AT tt_final_tmp INTO wa_final_tmp.
    MOVE wa_final_tmp-Y03HOCSINH_HOCSINH_ID
    TO wa_final_target-C0_Y03HOCSINH_HOCSINH_ID.
    MOVE wa_final_tmp-Y03HOCSINH_MA_HOC_SINH
    TO wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_final_tmp-Y03HOCSINH_TEN_HOC_SINH
    TO wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_final_tmp-Y03HOCSINH_GIOI_TINH
    TO wa_final_target-C3_Y03HOCSINH_GIOI_TINH.
    MOVE wa_final_tmp-Y03HOCSINH_DIA_CHI
    TO wa_final_target-C4_Y03HOCSINH_DIA_CHI.
    MOVE wa_final_tmp-Y03HOCSINH_GHI_CHU
    TO wa_final_target-C5_Y03HOCSINH_GHI_CHU.
    Append wa_final_target to tt_final_target.
    ENDLOOP.
    free : tt_final_tmp.
    Clear wa_final_target.
    IF NOT iv_max_row_cnt IS INITIAL.
    Loop at tt_final_target into
    wa_final_target TO iv_max_row_cnt.
    MOVE wa_final_target-C0_Y03HOCSINH_HOCSINH_ID
    TO C0_Y03HOCSINH_HOCSINH_ID.
    MOVE wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH
    TO C1_Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH
    TO C2_Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_final_target-C3_Y03HOCSINH_GIOI_TINH
    TO C3_Y03HOCSINH_GIOI_TINH.
    MOVE wa_final_target-C4_Y03HOCSINH_DIA_CHI
    TO C4_Y03HOCSINH_DIA_CHI.
    MOVE wa_final_target-C5_Y03HOCSINH_GHI_CHU
    TO C5_Y03HOCSINH_GHI_CHU.
    CONCATENATE
    C0_Y03HOCSINH_HOCSINH_ID
    C1_Y03HOCSINH_MA_HOC_SINH
    C2_Y03HOCSINH_TEN_HOC_SINH
    C3_Y03HOCSINH_GIOI_TINH
    C4_Y03HOCSINH_DIA_CHI
    C5_Y03HOCSINH_GHI_CHU
    INTO wa_final_string
    SEPARATED BY lv_delimiter.
    IF sy-tabix EQ 1 AND lv_cnt EQ 1.
    CONCATENATE wa_final_string
    lv_delimiter INTO wa_final_string.
    ELSE.
    CONCATENATE '<@=""+(char)8@>' lv_delimiter wa_final_string
    lv_delimiter INTO wa_final_string.
    ENDIF.
    APPEND wa_final_string TO gt_result.
    CLEAR : C0_Y03HOCSINH_HOCSINH_ID,
    C1_Y03HOCSINH_MA_HOC_SINH,
    C2_Y03HOCSINH_TEN_HOC_SINH,
    C3_Y03HOCSINH_GIOI_TINH,
    C4_Y03HOCSINH_DIA_CHI,
    C5_Y03HOCSINH_GHI_CHU.
    ENDLOOP.
    ELSE.
    Loop at tt_final_target into wa_final_target.
    MOVE wa_final_target-C0_Y03HOCSINH_HOCSINH_ID
    TO C0_Y03HOCSINH_HOCSINH_ID.
    MOVE wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH
    TO C1_Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH
    TO C2_Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_final_target-C3_Y03HOCSINH_GIOI_TINH
    TO C3_Y03HOCSINH_GIOI_TINH.
    MOVE wa_final_target-C4_Y03HOCSINH_DIA_CHI
    TO C4_Y03HOCSINH_DIA_CHI.
    MOVE wa_final_target-C5_Y03HOCSINH_GHI_CHU
    TO C5_Y03HOCSINH_GHI_CHU.
    CONCATENATE
    C0_Y03HOCSINH_HOCSINH_ID
    C1_Y03HOCSINH_MA_HOC_SINH
    C2_Y03HOCSINH_TEN_HOC_SINH
    C3_Y03HOCSINH_GIOI_TINH
    C4_Y03HOCSINH_DIA_CHI
    C5_Y03HOCSINH_GHI_CHU
    INTO wa_final_string
    SEPARATED BY lv_delimiter.
    IF sy-tabix EQ 1 AND lv_cnt EQ 1.
    CONCATENATE wa_final_string
    lv_delimiter INTO wa_final_string.
    ELSE.
    CONCATENATE '<@=""+(char)8@>' lv_delimiter wa_final_string
    lv_delimiter INTO wa_final_string.
    ENDIF.
    APPEND wa_final_string TO gt_result.
    CLEAR : C0_Y03HOCSINH_HOCSINH_ID,
    C1_Y03HOCSINH_MA_HOC_SINH,
    C2_Y03HOCSINH_TEN_HOC_SINH,
    C3_Y03HOCSINH_GIOI_TINH,
    C4_Y03HOCSINH_DIA_CHI,
    C5_Y03HOCSINH_GHI_CHU.
    ENDLOOP.
    ENDIF.
    free : tt_final_target.
    IF NOT gt_result IS INITIAL.
    CLEAR wa_result.
    LOOP AT gt_result INTO wa_result.
    TRANSFER wa_result TO lv_path.
    ENDLOOP.
    ENDIF.
    REFRESH gt_result.
    *End of main loop for batching
    ENDDO.
    *Close dataset
    CLOSE DATASET lv_path.
    CLOSE CURSOR lv_Y03HOCSINH_dbcur.
    ELSE.
    DATA: lv_mesg TYPE string.
    CLEAR et_file_return.
    et_file_return-type = 'E'.
    CONCATENATE
    'Error occurred when creating dataset' lv_path
    INTO lv_mesg.
    et_file_return-message = lv_mesg.
    Append et_file_return.
    ENDIF.
    ELSE.
    CLEAR et_file_return.
    et_file_return-type = 'E'.
    et_file_return-message =
    'Installed ABAP program does not match interface definition'.
    APPEND et_file_return.
    ENDIF.
    Thanks for help

    r u able to figure it out..........i got the same error .......can someone help me fix this issue

  • The operation could not be completed because an error occurred when creating frame 6105 (error -1).

    I am trying to share a project and after the 3% of sharing the project it appears this message.
    The operation could not be completed because an error occurred when creating frame 6105 (error -1).
    What can I do?? I need some help please!!

    You need to set the FCP X Preferences to count in frames, locate that frame, delete the clip around it and replace with a fresh one.

  • The operation could not be completed because an error occurred when creating frame 19788 (error -1).

    When attempting to build a quicktime movie from my video project on final cut pro I got this message    "The operation could not be completed because an error occurred when creating frame 19788 (error -1)".

    Kathy ...
    Better to post your topic in the Final Cut Pro community here.

  • The operation could not be completed because an error occurred when creating frame 570 (error -1)

    Hi everybody,just started with FCPX and the following occured:
    The operation could not be completed because an error occurred when creating frame 570 (error -1)
    Result is that i can not share to my hard disk.
    If anybody could help me out here....?

    CHange General preferences to show frames. Check what's happenING at the frame number. Maybe replace the shot.

  • The operation could not be completed because an error occurred when creating frame 2829 (error -1)

    I'm getting this error code in Final Cut Pro.  The operation could not be completed because an error occurred when creating frame 2829 (error -1). What does this mean and how can I fix it?  This code comes up when exporting. 

    Final Cut Pro X 10.0.8 and I'm running it on OS X 10.9.1.  I have been doing nothing different for the past few months. I have been creating a weekly video and exporting the same way and everything, but it just did this today for the first time. I have never had this error code before.

Maybe you are looking for