Extract forecast results and accuracy (errors) in an ABAP program

Hi Experts,
We are executing forecast in background using planning jobs in a process chain. We are doing this in 2 stages - 1. at Product group & Location level and 2. at Product & Location level. The selection ids that we have created for these jobs contain multiple product & locaton combinations or product group & locaton combinations.
We can see the forecast reults, messages and errors in the job logs and messages (in the process chain ad spool). I would like to extract this same information into an ABAP program. We are basically tryig to find out the Product group and location combinations for which the MAPE is greater tha 50%.
There is a table /SAPAPO/FCSTACCU which gives the MAPE and other forecast errors. There is a fileld "Pointer for forecast results", I'm not able to relate this with our Product group & Location codes. Can anyone give me any ideas on how to proceed?
Thank you indeed for your contribution.
Best regards,
Fasial Ali

Hi
All the background job are getting stored in the following tables
/SAPAPO/LISLOG
/SAPAPO/LISMAP
I think here you should able to find out all the information per product , location. As the respective information is available in tables, you can use them in ABAP program.
I hope this will help you.
Amol

Similar Messages

  • Error when exporting ABAP Programs and the Project

    Hi All,
    I keep on getting the following errors when I'm exporting the entire Project or only ABAP Programs (see attached screenshots).
    - Screenshot 1 shows an error when exporting a Project.
    - Screenshot 2 shows an error when exporting ABAP Program(s).
    These errors occur in the DEV environment.
    Please help.
    Thank you all.
    Kind regards,
    Roli

    Hi Ramakrishna,
    I will send the log file for when exporting a project. However, the issue of exporting ABAP Programs is nor resolved.
    In CMC we had to configure the system to Generate ABAP = True.
    Thank you.
    Kind regards,
    Roli

  • 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

  • Error messages in ABAP program are stored in which table

    hi all,
    Can anyone tell
    error messages in ABAP program are stored in which table??

    Hi Sir ,
    Please have a look below .Hope it is suitable and simpler solution for your question.
    Please do reward if useful.
    Thankx.
    Fuction module for storing error messages  ->'format_message'
    for example...
    data : v_message(100) type c.
    call transaction NNNN mode A update S messages into it_messages.
    loop at it_messages where msgty = 'E'.
    call function 'format_message'
    exporting
    *it_messages details
    importing
    v_message.
    write :/ v_message.
    clear v_message.
    endloop.
    Anothe method - ->
    Here is a sample of the program code for that:
    LOOP AT it_messtab.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = it_messtab-msgid
    lang = it_messtab-msgspra
    no = it_messtab-msgnr
    v1 = it_messtab-msgv1
    v2 = it_messtab-msgv2
    IMPORTING
    msg = g_msg
    EXCEPTIONS
    OTHERS = 0.
    IF it_messtab-msgtyp = 'S'.
    it_sucess-sucess_rec = g_msg.
    it_sucess-lifnr = it_header-lifnr." Based on your field
    it_sucess-tabix = v_lines.
    APPEND it_sucess.
    ELSEIF it_messtab-msgtyp = 'E'.
    it_error-error_rec = g_msg.
    it_error-lifnr = it_header-lifnr.
    it_error-tabix = v_lines.
    APPEND it_error.
    ELSE.
    it_info-info_rec = g_msg.
    it_info-lifnr = it_header-lifnr.
    it_info-tabix = v_lines.
    APPEND it_info.
    ENDIF.
    ENDLOOP.

  • Error out the ABAP program execution

    I have an ABAP program which transfers data from a file to a database table thru function module in packages of 50,000 records.
    Upon the successful completion of this ABAP program, I start dependent processes.
    Sometimes the function module does not transfer the data and returns the exception back to the ABAP program - which is an expected scenario. Currently when ever an exception is received in the function module, I stop the ABAP program with a STOP statement.
    The ABAP program stops, which meets my first objective. But what happens is, if you look at the job log --> it is Completed in terms of program execution and the dependent processes automatically start - which is not meeting my second objective.
    My second objective is to force the ABAP program to error out in such a way that .........
    1) The program execution is stopped
    2) If I look at the job log it should not be Completed (I am looking for something like Cancelled so that the dependent process do not get started automatically)
    Is it possible to error out the ABAP program execution by raising an exception or something, so that when i look at the job log - it shows Cancelled and not Completed?
    Let me know if you have any questions.
    Thanks,
    RK.

    Adrian,
    Thanks - This is exactly what I was looking for, it works.
    For some reason Messages skipped my mind and I was looking at raising Exceptions
    Solution:
    if sy-subrc NE 0.
      message id 'abc' type 'E' number 000.
    endif.
    Thanks,
    RK.
    Edited by: RK on Jan 17, 2010 7:47 PM
    Edited by: RK on Jan 17, 2010 7:50 PM
    Edited by: RK on Jan 17, 2010 7:52 PM

  • How to validate VO result and display error message?

    Hi,
    I have created 2 pages:
    Page 1: User to enter employee number and click 'Go' button to search (redirect to Page 2)
    Page 2: To display employee details
    In situation where employee is suspended, employee detail will be display as blank in Page 2.
    At the same time, we would like to display error message which inform user to refer to HR Department for this scenario.
    Need guidance on how to perform the validation and display error message.
    Thanks and Regards,
    Shiau Chin

    Hi Shiau,
    In this case instead of redirecting to next page, throw an exception on the same page.
    If you want redirect it to next page then while redirecting it to next page pass some info that can indicate that employee is suspended, get this value in Process request if it has value then throw exception else query details.
    Regards,
    Reetesh Sharma

  • Error while calling ABAP program from Data Services

    Hi All,
    We have a ABAP program which accepts two parameters 1] a date 2] a string of comma separated ARTICLE numbers .
    We have used a ABAB transform in ABAP dataflow which refers this ABAP program.
    If I pass a string of 6 articles as second parameter the job executes successfully
    But if i pass 9 articles as follows
    $GV_ITEM_VALUES='3564785,1234789,1234509,1987654,1234567,2345678,3456789,4567890,5456759';
    i get the following error
    ABAP program syntax error: <Literals that take up more than one line are not permitted>.
    The error occurs immediately after ABAP dataflow starts, ie even before the ABAP job gets submitted to ECC
    I am using BODS 4.2 . The datatype of $GV_ITEM_VALUES is varchar(1000).
    The ABAP program that gets generated by the DS job has the following datatype for this parameter
    PARAMETER $PARAM2(1000) TYPE C
    Is there a different way to pass string characters to ABAP transform in data services?
    I have attached the screen shot of trace log and error
    Regards,
    Sharayu

    Hi Sharayu,
    The error your getting is because the  literals exceeds more than 72 characters.
    It seems that the length of the string is exceeding more than 72 character.
    Can you check the following in ECC GUI
    Go to Transaction SE38=>Utilities=>Settings=>ABAP Editor=>Editor=> Downwards -Comp.Line  Length(72).
    The checkbox which defines length 72 must be clicked so the error is coming. Can you uncheck the checkbox and then try passing the parameter $GV_ITEM_VALUES using the BODS job
    Regards
    Arun Sasi

  • Catch CONVT_NO_NUMBER runtime error in OO ABAP Program

    Hi all,
           In our abap proxy program, sometimes the CONVT_NO_NUMBER will happen and cause the program dump. I noticed that this error cannot be caught by CX_ROOT exception class.
           Some told me I can use the CATCH SYSTEM-EXCEPTIONS sentence to catch this runtime error, but it is a old-way syntax and cannot be used with the "try" and "catch".
           So, how can I catch this runtime error and avoid the dump of our program?
    Thanks,
    YiNing

    Hi,
    You are not checking for conversion.
    You are checking ofr logical expression.
    Try below code, it works
    DATA error_ref TYPE REF TO cx_sy_conversion_no_number.
    DATA err_text TYPE string.
    DATA a TYPE i.
    TRY.
        MOVE 'A' TO a.
      CATCH cx_sy_conversion_no_number INTO error_ref.
        err_text = error_ref->get_text( ).
        WRITE err_text.
    ENDTRY.
    Regards,
    Atish

  • Error while exporting ABAP programs for transport

    Hi,
    In the process of exporting my abap programs so that they can be transported, I released my work request.
    However, during release, errors were encountered, and the status of the release was set to 'Release Started'.
    The error encountered was
    '[STOP ICON] ===> HALT: rscpi_init fails with rc = 1 (twconv. c:957) Please contact the SAP support.'
    Can anyone help? Thanks.

    check all the objects used  in ur report are in same package
    Edited by: BrightSide on May 14, 2008 3:53 PM

  • How to send query results from BW to R/3 abap program

    Hi,
    I have to bring in query results from BW into a abap program written in R/3...can anyone help me on how to accomplish this(BW to R/3) please...i was thinking if reporting agent or broadcasting should help but i dont know how to get started.
    Please help.
    Thank you so much.

    Hi Vijay,
      As i know, you can send data from BW to Flat file or into any table in BW or to BW application server only.
      You need 3rd party to send data to different server.
    You can use
    1. Tcode : RSCRM_BAPI to download query values/results into a table or into a flat file. OR
    2. You can use Infospokes to generate files from ODS/CUBE/master data objects to flat files(local/application server) or to a table.
    3. Using information broadcasting we can send mail(dont know much options), but i dont think generation of file possible.
      You need to trnasfer generated file from BW to R/3 and load into R/3 using BDC or LSMW(if data is low).
      I think, you can also use RFC function modules to read data from BW to R/3, plz check with ABAPer.
    Hope it Helps
    Srini

  • Extract Process Chain ID/Name that an embedded ABAP program is run from?

    Hi all,
    I have created some Process Chains in SAP BW where I have incorporated some ABAP program Process Types that uses the same ABAP program.
    In these embedded ABAP program Process Types I need to extract the name of the Process Chain it runs from (ID, Technical Name, Descirption).
    Is there any way this is possible to do?
    One solutions that is not possible to implement (due to parallell runs of process chains that uses the same ABAP program) is the following:
    search in table RSPCVARIANT for your program as follows
    - field TYPE = "ABAP"
    - field FNAM = "PROGRAM"
    - field LOW = <program name>
    take the value of field VARIANTE and use this in table RSPCPROCESSLOG (enter a date selection for BATCHDATE as well)
    take the most recent entry (should be the one you're actually running at that moment)
    via field LOG_ID, retrieve CHAIN_ID (technical name of your process chain) in table RSPCLOGCHAIN
    So my question here is:
    -Is there any way to extract the Process Chain ID/Name that an embedded ABAP program Process Type is run from?
    Thanks beforhand for your feedback!
    regards
    Oddmar

    Hi Erik,
    I am stuck up with a similar requirement, wherein I have an ABAP program in my process chain and I need the technical name of the process chain in the ABAP program at run-time.
    Did you get a solution or work-around for this scenario?
    Thanks in advance.
    Regards,
    Chetana.

  • Create and open Crystal Reports from ABAP program

    Hello,
    Let me explain the scenario with a simple example.
    In my ABAP program, I have the entries of table MARA in an internal table. I want to now create a crystal report through ABAP, and display the result in a .rpt file programatically.
    Could you please provide some pointers?
    Regards,
    Suraj

    Hi,
    I think this can done through the BW development or we can use the XI.
    Pls refer to this link
    Crystal reports
    Thanks & Regards,
    Chandralekha.

  • Golden Gate for mysql5.5 extract is Abended,and not error in the file

    Dear All,
    golden gate for mysql5.5 to oracle 11g,extract is Abended ,but there didn't have error in the log , And sometimes the successful extraction some records;
    extract :
    EXTRACT EXT_M1               
    TRANLOGOPTIONS AltLogDest /mydata/mysqllog/binlog/binlog.index       
    SOURCEDB [email protected]:16052, USERID mama,PASSWORD mama        
    sqlexec "set names gbk;"       
    EXTTRAIL dirdat/m1                  
    Dynamicresolution               
    TABLE mama.merchants_member_card_customer;   
    datapump:
    EXTRACT DPRD_M1  
    SOURCEDB [email protected]:16052, USERID mama,PASSWORD mama  
    RMTHOST 192.168.2.57, MGRPORT 7089, compress --COMPRESSUPDATESETWHERE
    RMTTRAIL /home/oracle/goldengate/dirdat/m1
    NOPASSTHRU  
    TABLE mama.merchants_member_card_customer;
    GGSCI>>info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING                                          
    EXTRACT     RUNNING     DPRD_M1     00:00:00      00:00:01   
    EXTRACT     ABENDED     EXT_M1      00:11:49      00:01:56
    REPORT:
    GGSCI>>view report ext_m1
                      Oracle GoldenGate Capture for MySQL
          Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230
    Linux, x64, 64bit (optimized), MySQL Enterprise on Apr 23 2012 05:23:34
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
                        Starting at 2013-09-29 18:38:08
    Operating System Version:
    Linux
    Version #1 SMP Wed Jun 13 18:24:36 EDT 2012, Release 2.6.32-279.el6.x86_64
    Node: M46
    Machine: x86_64
                             soft limit   hard limit
    Address Space Size   :    unlimited    unlimited
    Heap Size            :    unlimited    unlimited
    File Size            :    unlimited    unlimited
    CPU Time             :    unlimited    unlimited
    Process id: 6322
    Description:
    **            Running with the following parameters                  **
    2013-09-29 18:38:08  INFO    OGG-03035  Operating system character set identified as UTF-8. Locale: zh_CN, LC_ALL:.
    EXTRACT EXT_M1
    TRANLOGOPTIONS AltLogDest /mydata/mysqllog/binlog/binlog.index
    SOURCEDB [email protected]:16052, USERID mama100,PASSWORD ****************
    sqlexec "set names gbk;"
    Executing SQL statement...
    2013-09-29 18:38:08  INFO    OGG-00893  SQL statement executed successfully.
    EXTTRAIL dirdat/m1
    Dynamicresolution
    TABLE mama100.merchants_member_card_customer;
    2013-09-29 18:38:08  INFO    OGG-01815  Virtual Memory Facilities for: COM
        anon alloc: mmap(MAP_ANON)  anon free: munmap
        file alloc: mmap(MAP_SHARED)  file free: munmap
        target directories:
        /home/goldengate/dirtmp.
    CACHEMGR virtual memory values (may have been adjusted)
    CACHESIZE:                               64G
    CACHEPAGEOUTSIZE (normal):                8M
    PROCESS VM AVAIL FROM OS (min):         128G
    CACHESIZEMAX (strict force to disk):     96G
    Database Version:
    MySQL
    Server Version: 5.5.24-patch-1.0-log
    Client Version: 6.0.0
    Host Connection: 192.168.2.46 via TCP/IP
    Protocol Version: 10
    2013-09-29 18:38:08  INFO    OGG-01056  Recovery initialization completed for target file dirdat/m1000000, at RBA 1295, CSN 000086|000000065228677.
    2013-09-29 18:38:08  INFO    OGG-01478  Output file dirdat/m1 is using format RELEASE 11.2.
    2013-09-29 18:38:08  INFO    OGG-01026  Rolling over remote file dirdat/m1000000.
    2013-09-29 18:38:08  INFO    OGG-00182  VAM API running in single-threaded mode.
    2013-09-29 18:38:08  INFO    OGG-01515  Positioning to begin time 2013-9-29 06:26:18.
    **                     Run Time Messages                             **
    2013-09-29 18:38:08  INFO    OGG-01516  Positioned to Log Number: 86
        Record Offset: 65223906, 2013-9-29 06:26:18.
    2013-09-29 18:38:08  INFO    OGG-01517  Position of first record processed Log Number: 86
        Record Offset: 65223906, 2013-9-29 06:26:18.
    TABLE resolved (entry mama100.merchants_member_card_customer):
      TABLE mama100."merchants_member_card_customer";
    Using the following key columns for source table mama100.merchants_member_card_customer: id.
    2013-09-29 18:38:08  INFO    OGG-01054  Recovery completed for target file dirdat/m1000001, at RBA 1316, CSN 000086|000000065228677.
    2013-09-29 18:38:08  INFO    OGG-01057  Recovery completed for all targets.
    ggsevt:
    2013-09-29 18:38:08  INFO    OGG-00963  Oracle GoldenGate Manager for MySQL, mgr.prm:  Command received from GGSCI on host localhost (START EXTRACT EXT_M1 ).
    2013-09-29 18:38:08  INFO    OGG-00975  Oracle GoldenGate Manager for MySQL, mgr.prm:  EXTRACT EXT_M1 starting.
    2013-09-29 18:38:08  INFO    OGG-00992  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  EXTRACT EXT_M1 starting.
    2013-09-29 18:38:08  INFO    OGG-03035  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Operating system character set identified as UTF-8. Locale: zh_CN, LC_ALL:.
    2013-09-29 18:38:08  INFO    OGG-00893  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  SQL statement executed successfully.
    2013-09-29 18:38:08  INFO    OGG-01815  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Virtual Memory Facilities for: COM
        anon alloc: mmap(MAP_ANON)  anon free: munmap
        file alloc: mmap(MAP_SHARED)  file free: munmap
        target directories:
        /home/goldengate/dirtmp.
    2013-09-29 18:38:08  INFO    OGG-00993  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  EXTRACT EXT_M1 started.
    2013-09-29 18:38:08  INFO    OGG-01056  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Recovery initialization completed for target file dirdat/m1000000, at RBA 1295, CSN 000086|000000065228677.
    2013-09-29 18:38:08  INFO    OGG-01478  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Output file dirdat/m1 is using format RELEASE 11.2.
    2013-09-29 18:38:08  INFO    OGG-01026  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Rolling over remote file dirdat/m1000000.
    2013-09-29 18:38:08  INFO    OGG-00182  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  VAM API running in single-threaded mode.
    2013-09-29 18:38:08  INFO    OGG-01515  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Positioning to begin time 2013-9-29 06:26:18.
    2013-09-29 18:38:08  INFO    OGG-01516  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Positioned to Log Number: 86
        Record Offset: 65223906, 2013-9-29 06:26:18.
    2013-09-29 18:38:08  INFO    OGG-01517  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Position of first record processed Log Number: 86
        Record Offset: 65223906, 2013-9-29 06:26:18.
    2013-09-29 18:38:08  INFO    OGG-01054  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Recovery completed for target file dirdat/m1000001, at RBA 1316, CSN 000086|000000065228677.
    2013-09-29 18:38:08  INFO    OGG-01057  Oracle GoldenGate Capture for MySQL, ext_m1.prm:  Recovery completed for all targets.
    2013-09-29 18:38:09  INFO    OGG-01054  Oracle GoldenGate Capture for MySQL, dprd_m1.prm:  Recovery completed for target file /home/oracle/goldengate/dirdat/m1000002, at RBA 1435, CSN 000086|000000055512672.
    2013-09-29 18:38:09  INFO    OGG-01057  Oracle GoldenGate Capture for MySQL, dprd_m1.prm:  Recovery completed for all targets.

    GGSCI>>info ext_m1 showch
    EXTRACT    EXT_M1    Last Started 2013-09-29 18:38   Status ABENDED
    Checkpoint Lag       00:11:49 (updated 00:12:05 ago)
    VAM Read Checkpoint  2013-09-29 18:26:18.665841
    Current Checkpoint Detail:
    Read Checkpoint #1
      VAM External Interface
      Startup Checkpoint (starting position in the data source):
        Timestamp: 2013-09-29 18:26:18.665841
      Recovery Checkpoint (position of oldest unprocessed transaction in the data source):
        Timestamp: 2013-09-29 18:26:18.665841
      Current Checkpoint (position of last record read in the data source):
        Timestamp: 2013-09-29 18:26:18.665841
    Write Checkpoint #1
      GGS Log Trail
      Current Checkpoint (current write position):
        Sequence #: 0
        RBA: 917
        Timestamp: 2013-09-29 18:30:55.655570
        Extract Trail: dirdat/m1
    CSN state information:
      CRC: 20-82-1D-34
      CSN: Not available
    Header:
      Version = 2
      Record Source = A
      Type = 8
      # Input Checkpoints = 1
      # Output Checkpoints = 1
    File Information:
      Block Size = 2048
      Max Blocks = 100
      Record Length = 20480
      Current Offset = 0
    Configuration:
      Data Source = 5
      Transaction Integrity = 1
      Task Type = 0
    Status:
      Start Time = 2013-09-29 18:38:08
      Last Update Time = 2013-09-29 18:38:08
      Stop Status = A
      Last Result = 0

  • Extracting the Lightroom_4 and installation error

    I have tried downloading and extracting the Lightroom 4.exe file now several times and always get this message: PHOTOSHOP LIGHTROOM 4.INSTALLER A PROBLEM OCCURRED WHILE EXTRACTING SOME FILES. CHECK AVAILABLE SPACE ON YOUR COMPUTER AND THE WRITE PRIVILEGES ON THE DESTINATION FOLDER.WHAT IS THE PROBLEM?????e

    i am using windows 8, the is no Read / Write priveleges to the default 'program files'folder in which you are trying to install the software. i have 1.8gb on the installation drive. i can not extract the file to install it

  • Extraction problem - selection conditions for data load using abap program

    Hi All,
           I have a problem loading data over a selected period where the selection of date range is done using ABAP routine (type 6). Here though in the request header tab in monitor screen i'm able to see the selection date range populated correctly, no records are being extracted. But if i delete the abap filter and directly give the same date range for selection we are able to extract data. if any body has faced similar problem and have a solution for it please help me with yur suggestion.
    Thanks,
    nithin.

    It seems the the data range is not properly set in the routine.
    You can check the value of selection period generated by routine in the data selection tab-> execute button is there .
    Click it to to test the selection values generated by the ABAP routine..
    If the value here seems correct one then paste the code of the routine that u have written with brief logic details that u have applied.
    Sonal.....

Maybe you are looking for

  • Organising/Saving downloads to folders

    Hi there, Is it just me, or does anyone else find it cumbersome organising and saving downloads to specific saved folders, particularly subfolders, in Mac? It seems I can't do it in less than 2 or 3 steps, as one has to save to the Downloads folder o

  • How can i connect asp to oracle db

    how can i connect asp to oracle db when i go to odbc to make dsn the message say " the oracle(tm) client and networking components were not found thes components are supplied by oracle corporation and are part of the oracle version7.3 or greater clie

  • Regarding Workflow - eApprovel mail

    Hello Experts, I am new at SAP workflow.. This is regarding Workflow issue, before upgradation (4.6 to 6.0) means in 4.6, prior to upgrade the eApproval mail showed the approver and the status of PO in the approval cycle like below Vendor : vendor na

  • Need clarification on doing bulk updates

    Hi All, I got a requirement where I need to insert around 100 Million records and do updates on the entire content of the table. Requirement is I have a customer order table as given below CREATE TABLE customer_order(group_no number, order_no number)

  • How to create VLAN on Cisco PIX 6.3?

    Hi, how to create vlan on pix-6.3? i am bit confused. how do i assign a single internet face with multiple ip address(not secondary IP address) for each & every vlan? how to i connect to the switch, i mean if i put "switch port mode trunk" on the swi