Error in data upload : "Exceptions in Substep: Rules"

Hi friends,
Data is loaded upto PSA but from PSA to cube it shows "Exceptions in Substep: Rules" when i runs DTP. and it shows following abap code.
cube : zsd_c03
No of records : 10
data source: 2LIS_12_VCITM
========
    if l_rc ne 0 and l_t006flag = ruom_c_t006_mode-t006_iobj. " conversion_not_found
      uom_iobj( exporting  i_objvers          = i_objvers
                           i_uomnm            = i_uomnm
                           i_input_value      = i_input_value
                         i_unit_in          = IS_UOM_val-unit_in
                         i_unit_out         = IS_UOM_val-unit_out
                           is_uom_val         = ls_uom_val
                           is_uom_prop        = is_uom_prop
                           ir_msg             = ir_msg
                importing  es_output          = es_output
                changing   cs_buffer          = cs_buffer ).
    endif.
    if l_rc ne 0.
    Keine Mengenumrechnung möglich
      message e065(rsuom) into l_dummy_msg.
->>>>      raise exception type cx_rs_msg exporting msgid = sy-msgid msgno = sy-msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.
    endif.
========
points will be assigned for the ans.
suyash

Hi Experts
I have received the error message at the step
RSDS Y_VIC_SAP_PRIM_CNTR_GRP ZISSCOM -> IOBJ YECTNRTPM
Error: Exceptions in Substep: Transformation Start
When i clicked on the red exclamation mark. i was taken into the following code. is this start routine and do we have any problem in this?
METHOD get_object_ref.
  DATA:
    l_cx_root    TYPE REF TO cx_root,
    l_seconds    TYPE i,
    lr_exe       TYPE REF TO object,
    ls_tranid    TYPE ty_s_tranid,
    lr_model     TYPE REF TO cl_rstran_model,
    l_uid        TYPE rssguid25,
    l_prog_class TYPE rssg_progclass,
    l_progname   TYPE sy-repid.
  READ TABLE gt_r_tranid INTO ls_tranid
    WITH KEY tranid = i_tranid.
  IF sy-subrc <> 0.
    TRY.
        CALL METHOD cl_rstran_model=>factory
          EXPORTING
            i_tranid         = i_tranid
            i_with_cto_check = rs_c_false
            i_with_authority = rs_c_false
          RECEIVING
            r_r_model        = lr_model.
      CATCH cx_rstran_exception INTO l_cx_root.
        RAISE EXCEPTION TYPE cx_rs_error
          EXPORTING
            previous = l_cx_root.
    ENDTRY.
    IF rs_c_false = lr_model->check_expert( ).
      l_prog_class = gc_tran_progclas.
    ELSE.
      l_prog_class = gc_tran_progclas_expert.
    ENDIF.
*-- Get program_UID for TRANID
    CALL METHOD lr_model->get_progid
      IMPORTING
        e_progid = l_uid.
    CALL FUNCTION 'RSS_PROGRAM_GET_NAME'
      EXPORTING
        i_uni_idc25           = l_uid
        i_program_class       = l_prog_class
      IMPORTING
        e_program_name        = l_progname
      EXCEPTIONS
        invalid_unique_id     = 1
        invalid_program_class = 2
        template_not_found    = 3
        OTHERS                = 4.
    IF sy-subrc <> 0.
      DATA: l_r_exception TYPE REF TO cx_rs_failed,
            l_r_root      TYPE REF TO cx_root.
      CALL FUNCTION 'RS_SYMESSAGE_TO_EXCEPTION'
        EXPORTING
          i_exception   = 'CX_RS_FAILED'
        IMPORTING
          e_r_exception = l_r_root.
      l_r_exception ?= l_r_root.
      RAISE EXCEPTION l_r_exception.
    ENDIF.
    l_seconds = 120.
    CALL FUNCTION 'RSS_PROGRAM_GENERATE'
      EXPORTING
        i_uni_idc25                 = l_uid
        i_program_class             = l_prog_class
  I_CLIENT                    =
  I_PROGRAM_TITLE             =
  I_MAX_GENSTATUS             = '00'
  I_TIMESTAMP                 =
  I_FORCE_GENERATION          = RSSG_C_FALSE
  I_DEBUG_LEVEL               =
  I_NO_SYNTAX_CHECK           = RSSG_C_FALSE
  I_NO_PRETTY_PRINTER         = RSSG_C_FALSE
        i_db_commit                 = rssg_c_true
        i_seconds_to_wait           = l_seconds
  I_NO_RDIR_CHECK             = RSSG_C_FALSE
  I_BUFFERED                  = RSSG_C_FALSE
        i_use_metaclass             = rssg_c_true
  I_GENFLAG                   =
  I_WITH_HEADER_COMMENT       = RSSG_C_FALSE
  I_PROGRAM_NAME              =
  I_FORCE_RELOAD              = RSSG_C_FALSE
  I_SCOPE                     = '2'
IMPORTING
  E_PROGRAM_NAME              =
  E_PROGRAM_GENERATED         =
  E_ERROR_LINE                =
  E_ERROR_MESSAGE             =
  E_CLSNAME                   =
  E_TEMPLATE                  =
      EXCEPTIONS
        invalid_program_class       = 1
        invalid_unique_id           = 2
        generation_error            = 3
        template_not_found          = 4
        template_syntax_error       = 5
        program_syntax_error        = 6
        foreign_lock                = 7
        system_failure              = 8
        internal_error              = 9
        load_program_invalid        = 10.
    IF sy-subrc <> 0.
      RAISE EXCEPTION TYPE cx_rs_error.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM get_runtime_ref IN PROGRAM (l_progname)
       CHANGING lr_exe.
*-- Get ref to local runtime class
    ls_tranid-tranid = i_tranid.
    ls_tranid-ref    = lr_exe.
    APPEND ls_tranid TO gt_r_tranid.
  ENDIF.
  r_ref_runtime = ls_tranid-ref.
ENDMETHOD.

Similar Messages

  • ERROR :  "Exceptions in Substep: Rules" while loading data from DSO to CUBE

    Hi All,
    I have a scenario like this.
    I was loading data from ODS to cube daily. everything was working fine till 2  days before. i added some characteristic fields in my cube while i didn't do any change in my key figures. now i started reloading of data from ODS to cubes. i got the following error  "Exceptions in Substep: Rules" after some package of data loaded successfully.
    I deleted the added fields from the infocube and then i tried toreload data again but i am facing the same error again  "Exceptions in Substep: Rules".
    Can any one tell me how to come out from this situation ?
    Regards,
    Komik Shah

    Dear,
    Check some related SDN posts:
    zDSo Loading Problem
    Re: Regarding Data load in cube
    Re: Regarding Data load in cube
    Re: Error : Exceptions in Substep: Rules
    Regards,
    Syed Hussain.

  • Exceptions in Substep:Rules Error

    Hi Friends,
    I am new to this portal and I seek you guys help to resolve the below error its very urgent.
    I have encountered an error while updating the data from PSA to Infocube i.e. Purchasing Data Cube 0PUR_C01 from the Data Source 2LIS_02_ITM in R3 extraction.
    The Error is-
    "Exceptions in Substep: Rules".
    "Messages for 101 data records saved: request is RED according to configuration."
    "Processing Terminated."
    Data Package2: Errors during processing.
    "RSDS 2LIS_02_ITM........."
    :Error- Messages for 60 records saved:request is Red according to configuration."
    Updating to Infocube 0PUR_C01
    "Error while updating to target 0PUR_C01(type Infocube)"
    "Messages for 41 data records saved:request is Red according to configuration."
    "Processing Terminated".
    The above in RED is the entire error.
    When I explored the error message to see the long text then following was appeared---
    " Run time error while executing rule-->see long text RSTRAN 301"
    Diagnosis
    An error occurred while executing a transformation rule: The exact error message is:
    The argument 'X' can not be interpreted as a number.
    The error was triggered at the following point in the program: GPCRTJMK2HFEFVHGT8LWAALN9K1    734
    System Response
    Processing the data record has been terminated.
    Procedure
    The following additional information is included in the higher-level node for the monitor:
    - Transformation ID
    -  Data record number of the source record.
    - Number and name of the rule which produced the error.
    Procedure for System Administration.
    Kindly anybody can help me out to resolve the above error and explain why this error occurred.
    Thanks
    Prasad

    Hi Prasad,
    This clearly says that error is in Routine in the transformation.
    Can you check the any routines maintained in the transformation? The issue is that some logic is performed in the routine and exceptions are not handled in it properly.
    Go to SE38 tcode and display program 'GPCRTJMK2HFEFVHGT8LWAALN9K1' and go to line 734. This should give you a hint of ABAP code which is not handled properly.
    Let me know your findings and then we can have further look.
    Thanks
    Amit

  • Can't load data to cubes - same error for all DTPs  "exception in substep write to fact table"

    Hi Experts,
    This initial DTP error is:
    Data package processing terminated Message no. RSBK229
    Error while updating to target <cubename> (type INFOCUBE) Message no. RSBK241
    If I drill down to the specific package in the process monitor the error is:  "exception in substep write to fact table" .
    No more details for why the error is being generated.
    SAP BW 307 service pack 8.
    I have run the debugger without success, an ABAPer also ran debug mode to get more details on the error without success
    We checked teh termination point and the ABAP stack
    No error stack is available
    No short dumps
    I have reactivated the DTP
    The data looks fine
    The server crashed the day before the DTPs started to fail
    One cube is standard content and the other is a Z version of the same cube.
    Please let me know if anyone has resolved this issue before and what steps were necessary.

    Hello Russell,
    We have got the similar situation and we later found that it was a data issue only.
    We tried to enable the error stack, but as the data issue was due to a lookup which is bringing the invalid data, its not captured in the error stack and throwing short dump with the message u mentioned.
    so my suggestion, just put a break point if there are any lookups and check the data in internal tables if everything is as expected.
    Hope this helps.
    Thanks,
    Venkata Naresh

  • Error message - data master internal order settlement rule

    Hi people,
    I'm creating an internal order, and in the settlement rule, i'd like to put a message error when i make a distribuition over 100%. For example, i put 50% in a settlement receiver and 65% in another one, that makes 115%. The system shows a message, but it allows me to save. I need that shows an error message and don't allow me to save.
    Anyone can help me?
    The message that appears is this one:
    Total = 115.00%, ( Set.Type PER / Version / Actual settlement ), period 002/2009
    Message no. KD042
    Diagnosis
    You have entered distribution rules which settle 115.00% in total. This applies for settlement view ( Set.Type PER / Version / Actual settlement ) in period 002/2009.
    When checking the percentage total, the system found one of the following errors:
    The total percentage for the distribution rules is more than 100%
    The total percentage for the distribution rules is less than 100% and this is a rule for full settlement.
    The total percentage for the distribution rules is less than 100% and the 100% check is switched on in the settlement profile.
    Procedure
    You can ignore this message if you are settling by fixed amounts. The settlement then checks whether the settlement sender has been fully credited.
    Otherwise, correct the percentages for view ( Set.Type PER / Version / Actual settlement ) to be able to settle exactly 100% in period 002/2009.
    If these rules are not full settlement rules (settlement type GES), you can switch off the 100% check in the settlement profile. This procedure also suppresses the message in future.
    Note
    If you cannot find any fields where you can enter percentage values, this is probably because the settlement profile is configured to hide them. Switch on percentage settlement in the settlement profile, or use equivalence numbers for your rules, if the project profile allows this.
    Many thanks.

    Hi
    Below is the extract for the 100% Validation check. Please check the bold part. Even if you save the settlement rule with more than 100% at the time of settlement this will be errored.
    dentifier for "100% validation"
    Indicator controlling whether percentages in the settlement rules are checked by the system.
    If you have defined percentage distribution rules for a particular settlement rule, the system checks the total percentage either when you save the settlement rule or if you use the percentage check function.
    Use
    If the indicator is set  The system issues a  warning
    if the total is <> 100%.
    If the indicator is not set The system issues a warning
    if the total is > 100%.
    In both cases, you can ignore the warning and save the settlement rule. However, to be able to run the settlement, you must first correct the settlement rule.  The settlement run itself prevents you from settling more than 100%.
    Note
    The indicator only affects periodic settlement.  In overall settlement, the percentage must always be 100%.
    You can also use this indicator if you are not using percentages for settlement.  If this is the case, you must activate the equivalence numbers.  You then receive a warning that, even if you have entered settlement rules, none of the rules has received an equivalence number (other than zero).

  • Error in data upload from CRM to BI

    Hi all,
      Kindly help me with this error.
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class                        
    'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither                         
    caught nor passed along using a RAISING clause, in the procedure       
    "SMOX3_GET_DATA" "(FUNCTION)"  .
    Data Source - 0CRM_LEAD_H. Error occured in RSA3 , in CRM

    Hi Anup,
    Check OSS Note 857278 - Generating DataSources with BWA adapters returns errors.
    I am pasting the content of the note here:
    Symptom
    When you generate new fields from BWA DataSources, the system issues an error message:
    "DataSource cannot be generated"
    This affects the DataSources that use the CRM_BWA_GET_DATA_WITH_ARC extraction module:
    0CRM_COMPLAINTS_I
    0CRM_LEAD_ATTR
    0CRM_LEAD_H
    0CRM_LEAD_I
    0CRM_OPPT_H
    0CRM_OPPT_I
    0CRM_QUOTATION_I
    0CRM_QUOTA_ORDER_I
    0CRM_SALES_ACT_1
    0CRM_SALES_ACT_I
    0CRM_SALES_CONTR_I
    0CRM_SALES_ORDER_I
    0CRM_SRV_CODES
    0CRM_SRV_CONFIRM_H
    0CRM_SRV_CONFIRM_I
    0CRM_SRV_CONTRACT_H
    0CRM_SRV_IBASE_TRAN
    0CRM_SRV_PROCESS_H
    0CRM_SRV_PROCESS_I
    Other terms
    EEW, CRM_BWA_GET_DATA_WITH_ARC, 0CRM_COMPLAINTS_I, 0CRM_LEAD_ATTR,
    0CRM_LEAD_H, 0CRM_LEAD_I, 0CRM_OPPT_H, 0CRM_OPPT_I, 0CRM_QUOTATION_I, 0CRM_QUOTA_ORDER_I, 0CRM_SALES_ACT_1, 0CRM_SALES_ACT_I, 0CRM_SALES_CONTR_I, 0CRM_SALES_ORDER_I, 0CRM_SRV_CODES,
    0CRM_SRV_CONFIRM_H, 0CRM_SRV_CONFIRM_I, 0CRM_SRV_CONTRACT_H, 0CRM_SRV_IBASE_TRAN, 0CRM_SRV_PROCESS_H, 0CRM_SRV_PROCESS_I
    Reason and Prerequisites
    To determine whether you had BWA or SAPI DataSources, only SMOX3_GET_DATA was checked for, since up to now the usage of CRM_BWA_GET_DATA_WITH_ARC was unknown.
    Solution
    Import Support Package 04 of SAP_ABA 7.0, Support Package 14 of SAP_ABA 6.40 or Support Package 54 of SAP_ABA 6.20 or implement the specified advance correction.
    When you implement the advance correction for SAP_ABA 6.20, bear in mind that Note 605469 is a prerequisite for this release.
    After you implement this note, also implement Note 996352, so that the system will use the correct extractor.
    Bye
    Dinesh

  • Error in Data upload through Flat files in SAP BPC

    Hi,
    we are trying to upload data from flat files in SAP BPC  but an error is coming viz Object reference not set to an instance of an object .

    Hi,
    Can you please cross check the file structure and the transfer structure.
    Cheers,
    Malli....

  • Error in Data uploading

    Dear Friends,
    Subseq. processing (messages) : Errors occurred
    Activation of M records from DataStore object ZSD_OD04 terminated
    Error when assigning SID: Action VAL_SID_CONVERT table 0BATCH
    Value 'SAP01` ' (hex. '005300410050003000310060 ') of characteristic 0BATCH contains invalid charact
    Please give me the solution as soon as possible
    Mohan

    Hi,
    I encountered the same problem in the morning.
    This error is due to invalid characters in the data.
    1. select the request from the request tab of the ODS.
    2. Then find the entry for that request from the NEW DATA tab in Contents tab .
    This will give all the list of new entries along with the record number . Pls make a note of these record nos.
    3. now delete that request .
    4. go to reconsruction tab and select the request monitor .
    here you can edit the psa data for the recorded error records .ie. remove the invalid characters
    finally reconstruct./insert the data.
    this will solve the issue.
    Thanks
    DJ

  • Errors in data uploading

    SAPB1 error: (-10) There is not enough quantity available for batch '0301' [Message 29-53]
                           (There is no quantity in ware house for this item)
    What about your opinion? And How to find it?
    Thanks,
    Surendra.
    Edited by: surendra_1982 on Dec 21, 2011 10:23 AM

    Hi Surendra.......
    In order to issue the Qty from batches it is most important to have the stock in that Batch.
    Please check Batch No. Transaction report for Batch No. 0301 for particular Warehouse........
    Regards,
    Rahul

  • Exceptions in Substep: Write Data Package

    Hi All,
    Has anyone encountered this error message in BI7? We just recently applied SP12 and it solved an ABAP dump (SAPSQL_ARRAY_INSERT_DUPREC) we were seeing while trying to load an ODS. However, I'm now seeing a new error message while loading:
    Exceptions in Substep: Write Data Package
    We have some custom ABAP in an End Routine that is doing some additional processing while loading extractor 2LIS_13_VDKON.
    All of this code is working perfectly as a Start Routine in our BW 3.x system, but in BI7, we first had the above SQL error and now this data package error. It appears that it executes the transformation, rules and end routine successfully, (everything is green in the DTS Monitor) but while trying to insert the data into the ODS, it errors out.
    I don't know how or what to debug -- I can't even get an Error Stack. Does anyone have any insight or recommendations?
    Thanks,
    -Mel

    Hi Mel,
    1. on which Database is your BI system running.
    2. Debugging a DTP is possible:
    Open the DTP, choose Execute
    Processing mode (Serially in the Dialog Process ... for Debugging
    a) start a simulation request directly from the DTP-Monitor of the erroneous request
    b) Selections (including source requests) are copied from the original request
    c) Selections can be changed in a UI similar to the DTP filter
    d) Selections can be stored as variants for later use (e.g. in a different support level)
    e) Temporary storages and breakpoints can be switched on and off
    --> you can set the Breakpoints
    --> you can choose "Expertenmodus" (modus for experts), here you can choose the request ID ...
    I hope this helps,
    Michael
    SAP NetWeaver RIG

  • What will the error in calltransactionprogram in dat upload?

    hi all
    what will the error in calltransaction program in dat upload, when that flat file field are not match with the ,internel table fields. what are the common errors occured errors while data uploading by using  calltransaction methodfor a transaction.

    if you declare internal table as like quantity field then you will get short dump so you have declare internal table field as like char type.
    and if you mentioned wrong field name with respect screen field then you get valid error message state that
    field name is not input field.
    Thanks
    Seshu

  • Capturing the details of  data in which error occured during uploading

    Hi, anyone tell me how to Capturing the details of  data in which error occured during uploading  the file using BDC in backgroung mode. Please do the needful
    Thanks & Regards.
    Aniruddha

    hi,
    This declaration is used to capture the error msg. V is the std table that captures that.i have given a sample code with this..pls chk it out..
    data: err type standard table of bdcmsgcoll with header line.
    SAmple code:
    report z_aru_bdc_new4
           no standard page heading line-size 255.
    include bdcrecx1.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    parameters: p_file like rlgrap-filename obligatory.
    data: err type standard table of bdcmsgcoll with header line.
    data: mess(200) type c.
    data: begin of it_err occurs 0,
    msg(200) type c,
    end of it_err.
    data: begin of record occurs 0,
    data element:
            viewname_001(030),
    data element: VIM_LTD_NO
            ltd_dta_no_002(001),
    data element: ZEMPID3
            zempid3_003(004),
    data element: ZENAME3
            zename3_008(040),
    data element: ZEDEPID
            zedepid_009(004),
    data element:
            zsalkey_010(005),
    data element:
            salary_011(013),
    data element: ZENAME3
           ZENAME3_008(040),
    data element: ZEDEPID
           ZEDEPID_009(004),
    data element:
           ZSALKEY_010(005),
    data element:
           SALARY_011(013),
          end of record.
    End generated data section ***
    start-of-selection.
    at selection-screen on value-request for p_file.
    call function 'WS_FILENAME_GET'
    exporting
      DEF_FILENAME           = ' '
      DEF_PATH               = ' '
       mask                   = '.,..'
       mode                   = 'O'  " O -- open, S -- Save.
       title                  = 'OPEN'
    importing
       filename               = p_file
      RC                     =
    exceptions
       inv_winsys             = 1
       no_batch               = 2
       selection_cancel       = 3
       selection_error        = 4
       others                 = 5.
    start-of-selection.
    call function 'UPLOAD'
    exporting
      CODEPAGE                      = ' '
       filename                      = p_file
       filetype                      = 'DAT'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      tables
        data_tab                      = record
    exceptions
       conversion_error              = 1
       invalid_table_width           = 2
       invalid_type                  = 3
       no_batch                      = 4
       unknown_error                 = 5
       gui_refuse_filetransfer       = 6
       others                        = 7
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    *perform open_dataset using dataset.
    *perform open_group.
    delete record index 1.
    loop at record.
    *read dataset dataset into record.
    *if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro      using 'SAPMSVMA' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VIEWNAME'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPD'.
    perform bdc_field       using 'VIEWNAME'
                                  record-viewname_001.
    perform bdc_field       using 'VIMDYNFLDS-LTD_DTA_NO'
                                  record-ltd_dta_no_002.
    perform bdc_dynpro      using 'SAPLZSHAP' '0001'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZEMPTAB1-ZEMPID3(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=NEWL'.
    perform bdc_dynpro      using 'SAPLZSHAP' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZEMPTAB1-SALARY'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'ZEMPTAB1-ZEMPID3'
                                  record-zempid3_003.
    perform bdc_field       using 'ZEMPTAB1-ZENAME3'
                                  record-zename3_008.
    perform bdc_field       using 'ZEMPTAB1-ZEDEPID'
                                  record-zedepid_009.
    perform bdc_field       using 'ZEMPTAB1-ZSALKEY'
                                  record-zsalkey_010.
    perform bdc_field       using 'ZEMPTAB1-SALARY'
                                  record-salary_011.
    perform bdc_dynpro      using 'SAPLZSHAP' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZEMPTAB1-ZENAME3'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UEBE'.
    perform bdc_field       using 'ZEMPTAB1-ZENAME3'
                                  record-zename3_008.
    perform bdc_field       using 'ZEMPTAB1-ZEDEPID'
                                  record-zedepid_009.
    perform bdc_field       using 'ZEMPTAB1-ZSALKEY'
                                  record-zsalkey_010.
    perform bdc_field       using 'ZEMPTAB1-SALARY'
                                  record-salary_011.
    perform bdc_dynpro      using 'SAPLZSHAP' '0001'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZEMPTAB1-ZEMPID3(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_dynpro      using 'SAPLZSHAP' '0001'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZEMPTAB1-ZEMPID3(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BACK'.
    perform bdc_dynpro      using 'SAPMSVMA' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBACK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VIEWNAME'.
    perform bdc_transaction using 'SM30'.
    *enddo.
    *perform close_group.
    *perform close_dataset using dataset.
    endloop.
    loop at it_err.
    write : / it_err-msg.
    endloop.
    form error.
    call function 'FORMAT_MESSAGE'
    exporting
       id              = sy-msgid
       lang            = '-D'
       no              = sy-msgno
       v1              = sy-msgv1
       v2              = sy-msgv2
       v3              = sy-msgv3
       v4              = sy-msgv4
    importing
       msg             = mess
    exceptions
       not_found       = 1
       others          = 2
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    it_err-msg = mess.
    append it_err.
    clear it_err.
    endform.
    If it is session method u can find the session in SM35 from where u can get the error log.
    Hope this helps u,
    Regards,
    Arunsri

  • Getting an error while using BAPI for data upload using FB50

    Hi,
    Can someone please help with the error below :
    To Upload Data Using FB50 , am using 'BAPI_ACC_DOCUMENT_POST' FM
    and passing values as
    obj_type = REACI
    obj_KEY = '$'
    obj_sys = t000-logsys
    getting errors errors in return as
    'Error in document: REACI $ R3_AFRICA
    G/L account 2511510 is not defined in chart of accounts CSGP(though the account exists in the COA)
    Control indicators for controlling area EU01 do not exist'.(we have not input any indicators)
    Thanks

    Control indicators for controlling area (t-code OKKP ) is a primary configuration before the company is set to production. Here we maintain which sub areas of controlling are activated. Have a look at those settings.
    Check the validity of the accounts/cost element in the KA03 to ensure the cost element is valid on the date of transaction.
    What is the error message number?

  • Error-System Type Initialization Exception occured in system data dll

     hello sir,
                 because of transferring my project from one pc to another pc i am getting following error:
    error massage:
    first chance exception of type 'System.TypeInitializationException' occurred in System.Data.dll
    Additional information: The type initializer for 'System.Data.Common.DbConnectionOptions' threw an exception.
    If there is a handler for this exception, the program may be safely continued.
    also attached image of error massage
    so how to by pass this error
    please help,
    regards,
    kavi-kalash

    Hello,
    >>because of transferring my project from one pc to another pc i am getting following error:
    This seems to be related with an environment issue, please have a check the worked machine and the non-worked one, to compare if there are some difference.
    >>If there is a handler for this exception, the program may be safely continued.
    This could be due to missing references. Or it could be due to an error in the app config file. Is it possible for you to post your code about the connect part and the connection string? And here is an article describes how to process the first chance exception:
    https://msdn.microsoft.com/en-us/library/dd997368(v=vs.110).aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error saving Data Source Properties. - Base Exception. Call Oracle Support

    Hi,
    Oracle Application Server 10g Release 2 (10.1.2).
    I tried to create new Datasource using OEM Console but it throws error as following :
    Error saving Data Source Properties. - Base Exception: The Entity et="system";ei="0",et="application";ei="138",et="data-sources";ei="146":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; already exists in the repository. Resolution: If possible, remove et="system";ei="0",et="application";ei="138",et="data-sources";ei="146":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; . Call Oracle Support.
    May I know how to resolve this please ?
    Thank you.
    J.

    Hi ,
    Write following code in your UDF
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    Query = <your query>;
    try{
             channel =LookupService.getChannel(<comm channel name>,< business system>);
             accessor = LookupService.getDataBaseAccessor(channel);
             resultSet = accessor.execute(Query);
             if(!(resultSet.equals(null)))
                       Iterator rows = resultSet.getRows();
                       if (rows.hasNext())  {        
                       Map rowMap = (Map)rows.next();
                       <your variable>.add(rowMap.get(<db field name>)+ "");
    catch(Exception ex)
          result.addValue(ex.getMessage());
    finally
              try
         if (accessor!=null) accessor.close();
              catch(Exception e)
         result.addValue(e.getMessage());
    Thanks ,
    Suvarna
    Pls award pts if it helps .

Maybe you are looking for

  • Release Rules Problem

    Hi All, While Settin Up the OM,there existing a problem in Release Rules:- in tab Inventory in (Define Release rules form) when i go to select the warehouse ,i can not find any organizations defined . it appears empty. thanks.

  • Oracle Reports 10g, PDF fonts

    Hi All, I have an issue with PDF turkish characters. When I run the same report with destype HTMLCSS all the characters are ok. I want to mention that the report data is taken from a remote 9i DB using a database link. The chracter set of the remote

  • I bought ipad 2 not knowing it was a demo.   How do I fix that

    I bought ipad 2 not knowing it was a demo.   How do I fix that

  • How does someone get their Time Capsule serviced?

    Hi all, My 500gb Time Capsule has started to show the dreaded "Volume Can Not Be Mounted" error that I've seen mentioned on this message board a few times. This has been happening for both my computer (a MBP) and my fiance's computer (a MB.) I tried

  • Interface file reading

    Hi Experts, I am doing an Interface. This should be executing daily one time. In this I am reading file from SAP Server, and uploading data. Now I got a problem if there is more then one file how can I red. The file naming is Date & time stamp. How c