ABAP - type conversion

Hi Experts,
I have a curr variable with '-ve' sign. I want it to store it in a variable without the '-ve' sign.
Any suggestions?

See the code..
Cheers,
Thomas.
FUNCTION Z_CONVERT_NEGATIVE_SIGN.
*"*"Local interface:
*"       IMPORTING
*"             VALUE(DMBTR) LIKE  VBAK-NETWR
*"             VALUE(WAERS) LIKE  BSID-WAERS DEFAULT 'NTD'
*"       EXPORTING
*"             VALUE(ZMBTR) TYPE  CHAR16
IF DMBTR > 0.
    WRITE DMBTR TO ZMBTR  RIGHT-JUSTIFIED CURRENCY WAERS.
ELSE.
    DMBTR = ABS( DMBTR ).
    WRITE DMBTR TO ZMBTR RIGHT-JUSTIFIED  CURRENCY WAERS.
    CONDENSE ZMBTR NO-GAPS.
    WRITE ZMBTR TO ZMBTR RIGHT-JUSTIFIED.
ENDIF.
ENDFUNCTION.

Similar Messages

  • Data type conversion JCO To ABAP( Double to DEC)

    Hi,
      I want to update a field having data type as DEC with length 11 in APO system using JCO.Whatever i give as input is not getting reflected in APO system. Instead i get some different value.
    It seems that there is some data type conversion for that field..
    Thanks
    Archana

    if(tableName.equals("BAPI10001LOCPRDVERS2"))
                                                           table.appendRow();
                                                           //System.out.println("getting inside table "+tableName);
                                                           table.setValue("SOP112","PRODUCT");
                                                           table.setValue("SCMTEST111","LOCATION");
                                                           table.setValue("1001","LOCTYPE");
                                                           table.setValue("SCMTEST111","LOCATION_INT");
                                                           table.setValue("000","PLANNING_VERSION");
                                                           table.setValue("5000","SAFETY_DAYS_SUPPLY");//this is the field having problem
                                                           table.setValue("5","SAFETY_STOCK");
                                                           table.setValue(" ","SAFTY_STOCK_CALC_METHOD");
                                                           table.setValue("5.00","OPENING_PERIOD");
                                                           table.setValue("15","FORECAST_HORIZON");
                                                           table.setValue(("20000"),"VMI_PROM_LEAD_TIME");
                                                           table.setValue("0","MINIMUM_LOT_SIZE");
                                                           table.setValue(bd1,"TARGET_DAYS_SUPPLY");

  • The priority of different data type conversion

    Hi All,
    I want to know the priority of data type conversion rule. if in an expression, I have several kind of data type( I, P, F,N..).
    Then finaly, all the data object will convert to which data type?
    I don't know the priority of data conversion.
    E.g.   data a type i. data b type p. data c type f.
             a = b + c.
    or    data d type p, data e type f.
          if ( d > f ).
    Then who will convert to who's type?
    Thanks and Regards.
    Aaron

    For expressions, the right term in SAP is "calculation type", it's explained here : [abap help - determining the calculation type|http://help.sap.com/abapdocu_70/en/ABENARITH_TYPE.htm]. SAP takes the "biggest" type of all variables in the expression. It can be I, P or F (smallest is I, biggest is F).
    Conditions are handled differently, just using data type conversion (see link given above by Abhishek), SAP converts from smallest to biggest type (in your case, it converts P to F and compares the two F variables).

  • ABAP Rountine Conversion question

    This is a routine that was migrated from 3.5. Here is the code I have, I've bolded the area that's throwing the error message:
    PROGRAM trans_routine.
          CLASS routine DEFINITION
    CLASS lcl_transform DEFINITION.
      PUBLIC SECTION.
    Attributs
        DATA:
          p_check_master_data_exist
                TYPE RSODSOCHECKONLY READ-ONLY,
    *-    Instance for getting request runtime attributs;
        Available information: Refer to methods of
        interface 'if_rsbk_request_admintab_view'
          p_r_request
                TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
      PRIVATE SECTION.
        TYPE-POOLS: rsd, rstr.
      Rule specific types
        TYPES:
          BEGIN OF tys_SC_1,
         Field: SHKZG Debit/credit.
            SHKZG           TYPE C LENGTH 1,
         Field: ZZ_QUAN Quantity.
            ZZ_QUAN           TYPE P LENGTH 7 DECIMALS 3,
          END   OF tys_SC_1.
        TYPES:
          BEGIN OF tys_TG_1,
         InfoObject: 0COPASLQTY Sales quantity.
            COPASLQTY           TYPE /BI0/OICOPASLQTY,
          END   OF tys_TG_1.
    $$ begin of global - insert your declaration only below this line  -
    ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
        METHODS
          compute_0COPASLQTY
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
              SOURCE_FIELDS              type tys_SC_1
            EXPORTING
              RESULT                   type tys_TG_1-COPASLQTY
              monitor                  type rstr_ty_t_monitor
            RAISING
              cx_rsrout_abort
              cx_rsrout_skip_record
              cx_rsrout_skip_val.
        METHODS
          invert_0COPASLQTY
            IMPORTING
              i_th_fields_outbound         TYPE rstran_t_field_inv
              i_r_selset_outbound          TYPE REF TO cl_rsmds_set
              i_is_main_selection          TYPE rs_bool
              i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
              i_r_universe_inbound         TYPE REF TO cl_rsmds_universe
            CHANGING
              c_th_fields_inbound          TYPE rstran_t_field_inv
              c_r_selset_inbound           TYPE REF TO cl_rsmds_set
              c_exact                      TYPE rs_bool.
    ENDCLASS.                    "routine DEFINITION
    $$ begin of 2nd part global - insert your code only below this line  *
    $$ end of rule type
        TYPES:
          BEGIN OF tys_TG_1_full,
         InfoObject: 0COMP_CODE Company code.
            COMP_CODE           TYPE /BI0/OICOMP_CODE,
         InfoObject: 0FISCPER Fiscal year / period.
            FISCPER           TYPE /BI0/OIFISCPER,
         InfoObject: 0AC_DOC_NO Accounting document number.
            AC_DOC_NO           TYPE /BI0/OIAC_DOC_NO,
         InfoObject: 0ITEM_NUM Number of line item within accounting docum
    *ent.
            ITEM_NUM           TYPE /BI0/OIITEM_NUM,
         InfoObject: 0FI_DOCSTAT Item Status.
            FI_DOCSTAT           TYPE /BI0/OIFI_DOCSTAT,
         InfoObject: 0CHRT_ACCTS Chart of accounts.
            CHRT_ACCTS           TYPE /BI0/OICHRT_ACCTS,
         InfoObject: 0GL_ACCOUNT G/L Account.
            GL_ACCOUNT           TYPE /BI0/OIGL_ACCOUNT,
         InfoObject: 0ACCT_TYPE Account type.
            ACCT_TYPE           TYPE /BI0/OIACCT_TYPE,
         InfoObject: 0SP_GL_IND Special G/L indicator.
            SP_GL_IND           TYPE /BI0/OISP_GL_IND,
         InfoObject: 0AC_DOC_TYP Document type.
            AC_DOC_TYP           TYPE /BI0/OIAC_DOC_TYP,
         InfoObject: 0POST_KEY Posting key.
            POST_KEY           TYPE /BI0/OIPOST_KEY,
         InfoObject: 0FISCVARNT Fiscal year variant.
            FISCVARNT           TYPE /BI0/OIFISCVARNT,
         InfoObject: 0DOC_DATE Document Date.
            DOC_DATE           TYPE /BI0/OIDOC_DATE,
         InfoObject: 0PSTNG_DATE Posting date in the document.
            PSTNG_DATE           TYPE /BI0/OIPSTNG_DATE,
         InfoObject: 0CREATEDON Date on which the record was created.
            CREATEDON           TYPE /BI0/OICREATEDON,
         InfoObject: 0VALUE_DATE Value Date.
            VALUE_DATE           TYPE /BI0/OIVALUE_DATE,
         InfoObject: 0CLEAR_DATE Clearing date.
            CLEAR_DATE           TYPE /BI0/OICLEAR_DATE,
         InfoObject: 0CLR_DOC_NO Clearing Document Number.
            CLR_DOC_NO           TYPE /BI0/OICLR_DOC_NO,
         InfoObject: 0CO_AREA Controlling area.
            CO_AREA           TYPE /BI0/OICO_AREA,
         InfoObject: 0COSTCENTER Cost Center.
            COSTCENTER           TYPE /BI0/OICOSTCENTER,
         InfoObject: 0PROFIT_CTR Profit Center.
            PROFIT_CTR           TYPE /BI0/OIPROFIT_CTR,
         InfoObject: 0COORDER Order number.
            COORDER           TYPE /BI0/OICOORDER,
         InfoObject: 0WBS_ELEMT Work Breakdown Structure Element (WBS Elem
    *ent).
            WBS_ELEMT           TYPE /BI0/OIWBS_ELEMT,
         InfoObject: 0PLANT Plant.
            PLANT           TYPE /BI0/OIPLANT,
         InfoObject: 0BUS_AREA Business area.
            BUS_AREA           TYPE /BI0/OIBUS_AREA,
         InfoObject: 0FUNC_AREA Functional area.
            FUNC_AREA           TYPE /BI0/OIFUNC_AREA,
         InfoObject: 0PART_PRCTR Partner profit center.
            PART_PRCTR           TYPE /BI0/OIPART_PRCTR,
         InfoObject: 0PCOMPANY Partner company number.
            PCOMPANY           TYPE /BI0/OIPCOMPANY,
         InfoObject: 0PBUS_AREA Trading partner business area of the busin
    *ess partner.
            PBUS_AREA           TYPE /BI0/OIPBUS_AREA,
         InfoObject: 0LOC_CURRCY Local currency.
            LOC_CURRCY           TYPE /BI0/OILOC_CURRCY,
         InfoObject: 0DEBIT_LC Debit amount in local currency.
            DEBIT_LC           TYPE /BI0/OIDEBIT_LC,
         InfoObject: 0CREDIT_LC Credit amount in local currency.
            CREDIT_LC           TYPE /BI0/OICREDIT_LC,
         InfoObject: 0DEB_CRE_LC Amount in Local Currency with +/- Signs.
            DEB_CRE_LC           TYPE /BI0/OIDEB_CRE_LC,
         InfoObject: 0DOC_CURRCY Document currency.
            DOC_CURRCY           TYPE /BI0/OIDOC_CURRCY,
         InfoObject: 0DEBIT_DC Debit amount in foreign currency.
            DEBIT_DC           TYPE /BI0/OIDEBIT_DC,
         InfoObject: 0CREDIT_DC Credit amount in foreign currency.
            CREDIT_DC           TYPE /BI0/OICREDIT_DC,
         InfoObject: 0DEB_CRE_DC Foreign currency amount with signs (+/-).
            DEB_CRE_DC           TYPE /BI0/OIDEB_CRE_DC,
         InfoObject: 0LOC_CURTP2 Currency Type of Second Local Currency.
            LOC_CURTP2           TYPE /BI0/OILOC_CURTP2,
         InfoObject: 0LOC_CURRC2 Second Local Currency.
            LOC_CURRC2           TYPE /BI0/OILOC_CURRC2,
         InfoObject: 0DEBIT_LC2 Debit Amount in 2nd Local Currency.
            DEBIT_LC2           TYPE /BI0/OIDEBIT_LC2,
         InfoObject: 0CREDIT_LC2 Credit Amount in Second Local Currency.
            CREDIT_LC2           TYPE /BI0/OICREDIT_LC2,
         InfoObject: 0DEB_CRE_L2 Amount in Second Local Currency with +/-
    *Sign.
            DEB_CRE_L2           TYPE /BI0/OIDEB_CRE_L2,
         InfoObject: 0LOC_CURTP3 Currency Type of Third Local Currency.
            LOC_CURTP3           TYPE /BI0/OILOC_CURTP3,
         InfoObject: 0LOC_CURRC3 Third Local Currency.
            LOC_CURRC3           TYPE /BI0/OILOC_CURRC3,
         InfoObject: 0DEBIT_LC3 Debit Amount in Third Local Currency.
            DEBIT_LC3           TYPE /BI0/OIDEBIT_LC3,
         InfoObject: 0CREDIT_LC3 Credit Amount in Third Local Currency.
            CREDIT_LC3           TYPE /BI0/OICREDIT_LC3,
         InfoObject: 0DEB_CRE_L3 Amount in Third Local Currency with +/- S
    *ign.
            DEB_CRE_L3           TYPE /BI0/OIDEB_CRE_L3,
         InfoObject: 0REF_DOC_NO Reference document number.
            REF_DOC_NO           TYPE /BI0/OIREF_DOC_NO,
         InfoObject: 0REF_KEY3 Reference Key 3.
            REF_KEY3           TYPE /BI0/OIREF_KEY3,
         InfoObject: 0ORG_DOC_NO Document Number of Source Document.
            ORG_DOC_NO           TYPE /BI0/OIORG_DOC_NO,
         InfoObject: 0ORG_DOC_YR Fiscal Year for Source Document Number.
            ORG_DOC_YR           TYPE /BI0/OIORG_DOC_YR,
         InfoObject: 0ORG_DOC_CC Company Code for Source Document Number.
            ORG_DOC_CC           TYPE /BI0/OIORG_DOC_CC,
         InfoObject: 0ORG_DOC_CO Controlling Area for Source Document Numb
    *er.
            ORG_DOC_CO           TYPE /BI0/OIORG_DOC_CO,
         InfoObject: 0POSTXT Item Text.
            POSTXT           TYPE /BI0/OIPOSTXT,
         InfoObject: 0RECORDMODE BW Delta Process: Record Mode.
            RECORDMODE           TYPE RODMUPDMOD,
         InfoObject: 0ALLOC_NMBR Allocation Number.
            ALLOC_NMBR           TYPE /BI0/OIALLOC_NMBR,
         InfoObject: 0COPASLQTY Sales quantity.
            COPASLQTY           TYPE /BI0/OICOPASLQTY,
         InfoObject: 0COPASLQTU Sales unit.
            COPASLQTU           TYPE /BI0/OICOPASLQTU,
         InfoObject: ZTRANSTYP Transaction Type.
            /BIC/ZTRANSTYP           TYPE /BIC/OIZTRANSTYP,
         InfoObject: 0FI_DBCRIND Debit/Credit Indicator.
            FI_DBCRIND           TYPE /BI0/OIFI_DBCRIND,
         InfoObject: 0ASSET_MAIN Main Asset Number.
            ASSET_MAIN           TYPE /BI0/OIASSET_MAIN,
         InfoObject: 0JV_RECIND Joint Venture Recovery Indicator.
            JV_RECIND           TYPE /BI0/OIJV_RECIND,
         InfoObject: ZTBSETPER Settlement Period.
            /BIC/ZTBSETPER           TYPE /BIC/OIZTBSETPER,
         Field: RECORD Data record number.
            RECORD           TYPE RSARECORD,
          END   OF tys_TG_1_full.
        TYPES:
          BEGIN OF tys_SC_1__RULE_63,
         Field: SHKZG Debit/credit.
            SHKZG           TYPE C LENGTH 1,
         Field: ZZ_QUAN Quantity.
            ZZ_QUAN           TYPE P LENGTH 7 DECIMALS 3,
          END   OF tys_SC_1__RULE_63.
    Additional declaration for transfer rule interface
      DATA:
        g_t_errorlog TYPE rssm_t_errorlog_int,
        RECORD_ALL   LIKE SY-TABIX.
    global definitions from transfer rules
    TABLES: ...
    DATA:   ...
    FORM compute_COPASLQTY
       USING
         RECORD_NO      type sy-tabix
         TRAN_STRUCTURE type tys_SC_1__RULE_63
       CHANGING
        RESULT         TYPE tys_TG_1_full-COPASLQTY
        RETURNCODE     LIKE sy-subrc
        ABORT          LIKE sy-subrc
      RAISING
        cx_sy_arithmetic_error
        cx_sy_conversion_error.
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
      If TRAN_STRUCTURE-SHKZG = 'S'.
         RESULT = TRAN_STRUCTURE-ZZ_QUAN * -1.
      ELSE.
        RESULT = TRAN_STRUCTURE-ZZ_QUAN.
      ENDIF.
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    ENDFORM.                    "COPASLQTY
    $$ end of 2nd part global - insert your code only before this line   *
          CLASS routine IMPLEMENTATION
    CLASS lcl_transform IMPLEMENTATION.
      METHOD compute_0COPASLQTY.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-SHKZG TYPE C LENGTH 000001
        SOURCE_FIELDS-ZZ_QUAN TYPE P LENGTH 000007 DECIMALS 000003
       EXPORTING
         RESULT type tys_TG_1-COPASLQTY
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    *$*$ begin of routine - insert your code only below this line        *-*
      Data:
        l_s_error_log    type rssm_s_errorlog_int,
        TRAN_STRUCTURE   type tys_SC_1__RULE_63,
        l_subrc          type sy-tabix,
        l_abort          type sy-tabix,
        ls_monitor       TYPE rsmonitor,
        ls_monitor_recno TYPE rsmonitors.
    REFRESH:
      monitor,
      monitor_recno.
    Migrated transfer rule call
      MOVE-CORRESPONDING SOURCE_FIELDS to TRAN_STRUCTURE.
      *Perform compute_COPASLQTY*
        *USING*
          *SOURCE_FIELDS-record*
          *TRAN_STRUCTURE*
        *CHANGING*
          *RESULT*
          *l_subrc*
          *l_abort.*
    *-- Convert Messages in Transformation format
        LOOP AT G_T_ERRORLOG INTO l_s_error_log.
          move-CORRESPONDING l_s_error_log to MONITOR_REC.
          append monitor_rec to MONITOR.
        ENDLOOP.
        IF l_subrc <> 0.
          RAISE EXCEPTION TYPE cx_rsrout_skip_val.
        ENDIF.
        IF l_abort <> 0.
          RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
        ENDIF.
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "compute_0COPASLQTY
          Method invert_0COPASLQTY
          This subroutine needs to be implemented only for direct access
          (for better performance) and for the Report/Report Interface
          (drill through).
          The inverse routine should transform a projection and
          a selection for the target to a projection and a selection
          for the source, respectively.
          If the implementation remains empty all fields are filled and
          all values are selected.
      METHOD invert_0COPASLQTY.
    $$ begin of inverse routine - insert your code only below this line-
    ... "insert your code here
    $$ end of inverse routine - insert your code only before this line -
      ENDMETHOD.                    "invert_0COPASLQTY
    ENDCLASS.                    "routine IMPLEMENTATION

    Here was the orignal code. I've migrated the datasource now, and basically have started over using the 7.0 flow. We have a full 7.0 implemention, but the consultants chose not to migrate the Business Content, and built out the dataflow using 3.5 functionality. This routine is the only issue I'm having. It is flipping the sign. The above code is what BW did with the code when I created a transformation from the original rule.
    PROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
    Declaration of transfer structure (selected fields only)
    TYPES: BEGIN OF TRANSFER_STRUCTURE ,
      InfoObject 0COMP_CODE: CHAR - 000004
      BUKRS(000004) TYPE C,
      InfoObject 0FISCPER: NUMC - 000007
      FISCPER(000007) TYPE N,
      InfoObject 0AC_DOC_NO: CHAR - 000010
      BELNR(000010) TYPE C,
      InfoObject 0ITEM_NUM: NUMC - 000003
      BUZEI(000003) TYPE N,
      InfoObject 0FI_DOCSTAT: CHAR - 000001
      STATUSPS(000001) TYPE C,
      InfoObject 0CHRT_ACCTS: CHAR - 000004
      KTOPL(000004) TYPE C,
      InfoObject 0GL_ACCOUNT: CHAR - 000010
      HKONT(000010) TYPE C,
      InfoObject 0ACCT_TYPE: CHAR - 000001
      KOART(000001) TYPE C,
      InfoObject 0SP_GL_IND: CHAR - 000001
      UMSKZ(000001) TYPE C,
      InfoObject 0AC_DOC_TYP: CHAR - 000002
      BLART(000002) TYPE C,
      InfoObject 0POST_KEY: CHAR - 000002
      BSCHL(000002) TYPE C,
      InfoObject 0FISCVARNT: CHAR - 000002
      FISCVAR(000002) TYPE C,
      InfoObject 0DOC_DATE: DATS - 000008
      BLDAT(000008) TYPE D,
      InfoObject 0PSTNG_DATE: DATS - 000008
      BUDAT(000008) TYPE D,
      InfoObject 0CREATEDON: DATS - 000008
      CPUDT(000008) TYPE D,
      InfoObject 0VALUE_DATE: DATS - 000008
      VALUT(000008) TYPE D,
      InfoObject 0CLEAR_DATE: DATS - 000008
      AUGDT(000008) TYPE D,
      InfoObject 0CLR_DOC_NO: CHAR - 000010
      AUGBL(000010) TYPE C,
      InfoObject 0CO_AREA: CHAR - 000004
      KOKRS(000004) TYPE C,
      InfoObject 0COSTCENTER: CHAR - 000010
      KOSTL(000010) TYPE C,
      InfoObject 0PROFIT_CTR: CHAR - 000010
      PRCTR(000010) TYPE C,
      InfoObject 0COORDER: CHAR - 000012
      AUFNR(000012) TYPE C,
      InfoObject  : NUMC - 000008
      PROJK(000008) TYPE N,
      InfoObject 0PLANT: CHAR - 000004
      WERKS(000004) TYPE C,
      InfoObject 0BUS_AREA: CHAR - 000004
      GSBER(000004) TYPE C,
      InfoObject 0FUNC_AREA: CHAR - 000004
      FKBER(000004) TYPE C,
      InfoObject 0PART_PRCTR: CHAR - 000010
      PPRCT(000010) TYPE C,
      InfoObject 0PBUS_AREA: CHAR - 000004
      PARGB(000004) TYPE C,
      InfoObject 0PCOMPANY: CHAR - 000006
      VBUND(000006) TYPE C,
      InfoObject 0LOC_CURRCY: CUKY - 000005
      LCURR(000005) TYPE C,
      InfoObject 0DEBIT_LC: CURR - 000013
      DMSOL(000007) TYPE P,
      InfoObject 0CREDIT_LC: CURR - 000013
      DMHAB(000007) TYPE P,
      InfoObject 0DEB_CRE_LC: CURR - 000013
      DMSHB(000007) TYPE P,
      InfoObject 0DOC_CURRCY: CUKY - 000005
      WAERS(000005) TYPE C,
      InfoObject 0DEBIT_DC: CURR - 000013
      WRSOL(000007) TYPE P,
      InfoObject 0CREDIT_DC: CURR - 000013
      WRHAB(000007) TYPE P,
      InfoObject 0DEB_CRE_DC: CURR - 000013
      WRSHB(000007) TYPE P,
      InfoObject 0LOC_CURTP2: CHAR - 000002
      CURT2(000002) TYPE C,
      InfoObject 0LOC_CURRC2: CUKY - 000005
      HWAE2(000005) TYPE C,
      InfoObject 0DEBIT_LC2: CURR - 000013
      DMSO2(000007) TYPE P,
      InfoObject 0CREDIT_LC2: CURR - 000013
      DMHA2(000007) TYPE P,
      InfoObject 0DEB_CRE_L2: CURR - 000013
      DMSH2(000007) TYPE P,
      InfoObject 0LOC_CURTP3: CHAR - 000002
      CURT3(000002) TYPE C,
      InfoObject 0LOC_CURRC3: CUKY - 000005
      HWAE3(000005) TYPE C,
      InfoObject 0DEBIT_LC3: CURR - 000013
      DMSO3(000007) TYPE P,
      InfoObject 0CREDIT_LC3: CURR - 000013
      DMHA3(000007) TYPE P,
      InfoObject 0DEB_CRE_L3: CURR - 000013
      DMSH3(000007) TYPE P,
      InfoObject 0REF_DOC_NO: CHAR - 000016
      XBLNR(000016) TYPE C,
      InfoObject 0REF_KEY3: CHAR - 000020
      XREF3(000020) TYPE C,
      InfoObject 0ORG_DOC_NO: CHAR - 000010
      AWREF(000010) TYPE C,
      InfoObject 0ORG_DOC_YR: NUMC - 000004
      AWGJA(000004) TYPE N,
      InfoObject 0ORG_DOC_CC: CHAR - 000004
      AWBUK(000004) TYPE C,
      InfoObject 0ORG_DOC_CO: CHAR - 000004
      AWKOK(000004) TYPE C,
      InfoObject 0POSTXT: CHAR - 000050
      SGTXT(000050) TYPE C,
      InfoObject 0RECORDMODE: CHAR - 000001
      UPDMOD(000001) TYPE C,
      InfoObject 0WBS_ELEMT: CHAR - 000024
      PS_POSID(000024) TYPE C,
      InfoObject 0ALLOC_NMBR: CHAR - 000018
      ZUONR(000018) TYPE C,
      InfoObject 0COPASLQTU: UNIT - 000003
      ZZ_MEINS(000003) TYPE C,
      InfoObject 0COPASLQTY: QUAN - 000013
        ZZ_QUAN(000007) TYPE P
                                            DECIMALS 000003,
      InfoObject ZTRANSTYP: CHAR - 000003
      BEWAR(000003) TYPE C,
      InfoObject 0FI_DBCRIND: CHAR - 000001
        SHKZG(000001) TYPE C,
    END OF TRANSFER_STRUCTURE .
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
          FORM COMPUTE_COPASLQTY
    Compute value of InfoObject 0COPASLQTY
    in communication structure /BIC/CS0FI_GL_4
    Technical properties:
        field name      = COPASLQTY
        data element    = /BI0/OICOPASLQTY
        data type       = QUAN
        length          = 000017
        decimals        = 000003
        ABAP type       = P
        ABAP length     = 000009
        reference field = 0COPASLQTU
    Parameters:
    -->  RECORD_NO       Record number
    -->  TRAN_STRUCTURE  Transfer structure
    <--  RESULT          Return value of InfoObject
    <->  G_T_ERRORLOG    Error log
    <--  RETURNCODE      Return code (to skip one record)
    <--  ABORT           Abort code (to skip whole data package)
    FORM COMPUTE_COPASLQTY
      USING    RECORD_NO LIKE SY-TABIX
               TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
               G_S_MINFO TYPE RSSM_S_MINFO
      CHANGING RESULT TYPE /BI0/OICOPASLQTY
               G_T_ERRORLOG TYPE rssm_t_errorlog_int
               RETURNCODE LIKE SY-SUBRC
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
      If TRAN_STRUCTURE-SHKZG = 'S'.
         RESULT = TRAN_STRUCTURE-ZZ_QUAN * -1.
      ELSE.
        RESULT = TRAN_STRUCTURE-ZZ_QUAN.
      ENDIF.
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

  • IDES ERP 2005 / open ABAP dictionary conversion during SPAM Update

    Dear all,
    First of all, I'm currently busy implementing a educational enviroment for our company, we are using IDES MySAP ERP 2005 SR1 MSSQL.
    At the moment we are trying to upgrade the SPAM version from version 20 to 22.
    However, during the requirement checks the following error occurred :
    <b>Open conversions in the data dictionary</b>
    <i>Phase CHECK_REQUIREMENTS: Explanation of Errors
    Some open conversion requests still exist in the ABAP Data Dictionary
    for the following ABAP Dictionary objects. To avoid inconsistencies and
    loss of data, you must process these conversions first.
    Proceed as follows:
    - Open a new session.
    - Start the Database Utility (transaction SE14).
    - Correct the inconsistencies for the specified objects.
    - Repeat the import phase. If no more inconsistencies are found, the
      import continues.
    Phase CHECK_REQUIREMENTS: Open ABAP Dictionary Conversions
    Object Type       Object Name
    Table Index       LXE_WRK_4 ~ STA
                       SC2T327F363DFA4T ~ ESI
                       SC2T327F363DFA4T ~ KYS
    </i>
    It seems that the indexes mentioned above are missing or doesn't exist!!!! i've tried looking for a sap note or a solution on SDN. However, haven't found a solution at all, or I'm looking at the wrong spot.
    Is there a note or can somebody provide me what's in the indexes, so i can create it in our IDES system.
    Regards,
    Yam-Lang Lee

    Hi Kiran,
    Thank you very much. I managed to create the first index.
    However not the indexes on table SC2T327F363DFA4T. Can't find any information for the indexes for this table. Did found note 959811. There it state that de indexes were deleted. But still stuck in the check_requirements of the SPAM Update!
    Greetings,
    Yammie

  • Invalid data type conversions

    what are the invalid data type conversions in ABAP ???
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 10, 2012 6:01 PM

    No Amanda,
    The values that I see in message monitor are also those that comes to XSLT programs as input.
    I investigated our problem a little further myself:
    1) XI always converts messages into XML format - this everybody knows.
    2) In XI documentation it is declared that XI uses ISO 8601 for DATE type formatting. That's why you see dates in format YYYY-MM-DD in XML data in message monitoring.
    3) The appearance of those decimal values are not that obvious for me. If XI uses ABAP transformation for message content then applies the rules for converting ABAP data types into XML. For this there is a SAP document 'ABAP - XML mapping' from TechEd2004. This document seems to describe how ABAP data types are handled by XML transformation.
    Anyway, we currently need to play with decimal values in XSLT mapping programs inside XI:
    a) add leading 0 integer if source value < 1
    RFC returns 0.123 -> XI converts to XML '.123' -> XSLT mapper should return '0.123' ->SOAP response returns '0.123'
    b) add decimal point and trailing zeros
    RFC returns 0.000 -> XI converts to XML '0' -> XSLT mapper should return '0.000' ->SOAP response return '0.000'
    With dates, the problem is actually on documenting mapping rules when writing interface specifications. If you would write an EAI-solution-independent conversion rule (RFC/date->SOAP/char) for date field it could sound like: YYYYMMDD -> dd.mm.yyyy. This works semantically between these systems but would not work for XI-developer, because he get YYYY-MM-DD from the RFC.
    Additionally the decimal type conversion requirements in XSLT mapping programs probably only applies XI and are therefore not reusable in other EAI environments.
    I would be glad if somebody would still have further comments for this data type conversion issue.
    br: Kimmo

  • DataAccessException Type conversion error complex type class

    Hello,
    We meet some trouble randomly wrbtr field, we have suspected the jco cache, but after a reboot the problem still occurs.
    We currently use this field on others webdynpro applications.
    While execute the message displays :
    DataAccessException : Type conversion error, field wrbtr complex type class dop.model.Zst_Pp_liste
    We have a Z customize structure, which contains a zone "WAERS", used as reference field for wrbtr
    Anyone has an idea to look for ?

    Are you sure you have posted this question in the correct forum?  I don't see how this is Web Dynpro ABAP related. You refer to JCo cache and Java style class names.  I think perhaps you actually should have posted this question in the Web Dynpro Java forum?

  • Type conversion error, field ABSENCE_TYPE while accessing General Informati

    Hi ,
    One of the user is facing issue while he is accessing General Information link under Manager Self Service -> Team on portal. He is getting the below error message while accessing it.
    500   Internal Server Error
      SAP NetWeaver Application Server 7.00/Java AS 7.00 
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field ABSENCE_TYPE, complex type class com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input
        at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)
        at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:669)
        at com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input.setAbsence_Type(Hrmss_Rfc_Ep_Read_Absencedays_Input.java:192)
        at com.sap.xss.hr.eeprofile.absencedays.wdp.IPublicBAbsenceDaysComp$IHrmss_Rfc_Ep_Read_Absencedays_InputElement.setAbsence_Type(IPublicBAbsenceDaysComp.java:579)
        ... 64 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MS-RTC LM 8)
    Version null
    DOM version null
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0017.20100223114935.0000 (release=NW04S_17_REL, buildtime=2010-02-23:11:33:08[UTC], changelist=80269, host=pwdfm114), build date: Wed Apr 28 21:07:28 BST 2010
    J2EE Engine 7.00 patchlevel 112614.44
    Java VM IBM J9 VM, version:2.3, vendor: IBM Corporation
    Operating system Linux, version: 2.6.16.60-0.21-smp, architecture: amd64
    Session & Other
    Session Locale en_GB
    Time of Failure Wed Oct 06 12:13:18 BST 2010 (Java Time: 1286363598619)
    Web Dynpro Code Generation Infos
    sap.com/pb
    SapDictionaryGenerationCore 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:31[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:37[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore 7.0017.20060719095755.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:48:53[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:06[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:40[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:34[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0017.20060719095619.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:58:48[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0017.20080801093120.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:03:59[UTC], changelist=495368, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
    SapWebDynproGenerationCore 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:12[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
    sap.com/tcwddispwda
    No information available null
    sap.com/pb_api
    SapDictionaryGenerationCore 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:31[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:37[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore 7.0017.20060719095755.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:48:53[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:06[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:40[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:34[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0017.20060719095619.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:58:48[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0017.20080801093120.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:03:59[UTC], changelist=495368, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
    SapWebDynproGenerationCore 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:12[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
    sap.com/tcwdcorecomp
    No information available null
    Detailed Error Information
    Detailed Exception Chain
    com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field ABSENCE_TYPE, complex type class com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input
         at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)
         at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:669)
         at com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input.setAbsence_Type(Hrmss_Rfc_Ep_Read_Absencedays_Input.java:192)
         at com.sap.xss.hr.eeprofile.absencedays.wdp.IPublicBAbsenceDaysComp$IHrmss_Rfc_Ep_Read_Absencedays_InputElement.setAbsence_Type(IPublicBAbsenceDaysComp.java:579)
         at com.sap.xss.hr.eeprofile.absencedays.BAbsenceDaysComp.callRFC(BAbsenceDaysComp.java:291)
         at com.sap.xss.hr.eeprofile.absencedays.BAbsenceDaysComp.readAbsenceDaysData(BAbsenceDaysComp.java:236)
         at com.sap.xss.hr.eeprofile.absencedays.wdp.InternalBAbsenceDaysComp.readAbsenceDaysData(InternalBAbsenceDaysComp.java:230)
         at com.sap.xss.hr.eeprofile.absencedays.BAbsenceDaysCompInterface.readAbsenceDaysData(BAbsenceDaysCompInterface.java:134)
         at com.sap.xss.hr.eeprofile.absencedays.wdp.InternalBAbsenceDaysCompInterface.readAbsenceDaysData(InternalBAbsenceDaysCompInterface.java:191)
         at com.sap.xss.hr.eeprofile.absencedays.wdp.InternalBAbsenceDaysCompInterface$External.readAbsenceDaysData(InternalBAbsenceDaysCompInterface.java:243)
         at com.sap.xss.hr.eeprofile.absencedays.vac.VAbsenceDaysComp.onBeforeOutput(VAbsenceDaysComp.java:259)
         at com.sap.xss.hr.eeprofile.absencedays.vac.wdp.InternalVAbsenceDaysComp.onBeforeOutput(InternalVAbsenceDaysComp.java:260)
         at com.sap.xss.hr.eeprofile.absencedays.vac.VAbsenceDaysCompInterface.onBeforeOutput(VAbsenceDaysCompInterface.java:143)
         at com.sap.xss.hr.eeprofile.absencedays.vac.wdp.InternalVAbsenceDaysCompInterface.onBeforeOutput(InternalVAbsenceDaysCompInterface.java:136)
         at com.sap.xss.hr.eeprofile.absencedays.vac.wdp.InternalVAbsenceDaysCompInterface$External.onBeforeOutput(InternalVAbsenceDaysCompInterface.java:212)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:603)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:569)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at c
    Regards,
    Sreedhar

    Are you sure you have posted this question in the correct forum?  I don't see how this is Web Dynpro ABAP related. You refer to JCo cache and Java style class names.  I think perhaps you actually should have posted this question in the Web Dynpro Java forum?

  • Implicit and explicit Type conversion using Type object in heap

    Hi,
    I am surprised how Implicit and explicit Type conversion works using Type object in heap. for example when implicit type conversion occur what pointer it returns to object and similarly with explicit type conversion.

    Hello,
    >> I am surprised how Implicit and explicit Type conversion works using Type object in heap.
    For Implicit conversions: Typical examples are conversions from smaller to larger integral types, and conversions from derived classes to base classes. For the first one, the reference would be different which means it would return a different pointer to
    a new object. For the reference type, it actually points to the same memory location, you could use the object.ReferenceEquals() to check it.
    For Explicit conversions (casts):Typical examples include numeric conversion to a type that has less precision or a smaller range, and conversion of a base-class instance to a derived class. For first one, it would perform the same with implicit conversions.
    While for the conversion of conversion of a base-class instance to a derived class, actually, there's no built-in way to do this conversion.
    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.

  • Need Help with data type conversion

    Hello People,
    I am new to java, i need some help with data type conversion:
    I have variable(string) storing IP Address
    IPAddr="10.10.103.10"
    I have to call a library function which passes IP Address and does something and returns me a value.
    The problem I have is that external function call in this library excepts IP Address in form of a byte array.
    Here is the syntax for the function I am calling through my program
    int createDevice (byte[] ipAddress).
    now my problem is I don't know how to convert the string  IPAddr variable into a byte[] ipAddress to pass it through method.

    Class InetAddress has a method
    byte[]      getAddress() You can create an instance using the static method getByName() providing the IP address string as argument.

  • How to convert Oracle data types to ABAP types.

    Hi,
    I have this oracle table table:
    Type of col.
    Char(6)
    Number
    Number
    Number
    Number
    Date
    I dont know how to convert column of number to abap types. I use exec sgl syntax and I try to insert value to abap structure. But structure <dyn_wa> is wrong.
      EXEC SQL PERFORMING loop_output.
        SELECT *
            INTO   :<dyn_wa>
            FROM   BIND_VAT_CB_SUM_VIEW@DTRTST1
      ENDEXEC.
    ENDFORM.                    "get_data
    Thanks

    HI,
    REPORT demo_native_sql.
    DATA: BEGIN OF wa,
            connid   TYPE spfli-connid,
            cityfrom TYPE spfli-cityfrom,
            cityto   TYPE spfli-cityto,
          END OF wa.
    DATA c1 TYPE spfli-carrid VALUE 'LH'.
    EXEC SQL PERFORMING loop_output.
      SELECT connid, cityfrom, cityto
      INTO   :wa
      FROM   spfli
      WHERE  carrid = :c1
    ENDEXEC.
    FORM loop_output.
      WRITE: / wa-connid, wa-cityfrom, wa-cityto.
    ENDFORM.
    See the below SAP link for more info
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm
    Thanks
    Sudheer

  • WebDynpro call Returns an exception: Type conversion error

    Hi,
    I'm trying to start some of the standard SAP web dynpro .
    most of then work fine.
    some don't and i get the following error message.
    Root Cause
    The initial exception that caused the request to fail, was:
    +com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field TAX_PER_DIEMTAX, complex type class com.sap.xss.tra.tre.model.expenses.Ptrv_Web_General_Data_Int+
    +at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)+
    +at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)+
    +at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValue(DynamicRFCModelClass.java:482)+
    +at com.sap.tc.webdynpro.progmodel.context.GenericModelClassCopyHelper.setAttributeValue(GenericModelClassCopyHelper.java:69)+
    +at com.sap.tc.webdynpro.progmodel.context.CopyService.copyCorresponding(CopyService.java:55)+
    +... 66 more+
    See full exception chain for details.
    could anyone give me an hint.
    jco connetion are made and testet for:
    sap_r3_humanresources
    sap_r3_finacials
    sap_r3_selfservicegenerics
    sap_r3_travel
    analog the *_MetaData
    Thank in advance
    Maximilian

    Hello
    did you solve this problem? I have the same error
    Regards

  • TextEdit ABAP types and objects

    Anyone who knows an appropriate ABAP type or ABAP object to store the content of my HTMLB textEdit elements?
    Any help will be appreciated.
    Thanks!

    No solution found.

  • Formula node: type conversion

    Hello guys
    I have LV 5.0 and have to edit a script which has some kind of overflows. For testing I set all variables to the hightest usable range - extended or i32. Now I see, in all formula nodes, there are type conversions. How can I change the type of the inputs/outputs of the formula node?
    Hardware_Tester
    My first language is German, please ignore my faults...

    Hi,
    I forgot that you run Lv5.0. My example refers to Lv7.1.
    As far as I know in Lv7.1 the input variable type changes automatically as you connect a control.
    On the contrary the output is DBL by default but you can change it in the formula node introducing an explicit declaration of that variable (see "h" in the attached picture).
    Here are some useful link:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=12253&requireLogin=False
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d6bed7d73659c43586256a7300691c26?
     Sorry, I understand that this cannot solve your problem but I don't remember how Lv5.0 works with formula node.
    Regards
    CLD - Labview Certified Developer
    Attachments:
    untitled3.gif ‏42 KB

  • Unicode Type Conversion Error

    Hi Friend,
    I am working in UNICODE project,i need one help,
    I have one error .
    Actually, im using one structure(Z0028) and passing values to internal table.
    At that time i shows one error.
    Actually,this error is due to type conversion problem.
    In that structure,i ve one packed datatype ,so, if i select
    unicode check it shows error.
    I will sent example prg and error also.
    Please give some solution to slove.
    REPORT  YPRG1                                   .
    TABLES: Z0028.
    DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .
    SELECT * FROM Z0028 INTO TABLE I_Z0028 .
    IF SY-SUBRC <> 0 .
      WRITE:/ ' NO DATA'.
    ENDIF.
      LOOP AT I_Z0028.
        WRITE:/ I_Z0028.
      ENDLOOP.
    Regards,
    Kalidas.T

    Hi,
    Display fields
    do like this..
    REPORT YPRG1 .
    TABLES: Z0028.
    DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .
    SELECT * FROM Z0028 INTO TABLE I_Z0028 .
    IF SY-SUBRC 0 .
    WRITE:/ ' NO DATA'.
    ENDIF.
    LOOP AT I_Z0028.
    WRITE:/ I_Z0028-field1,
                  I_Z0028-field2
    I_Z0028-field3.
    ENDLOOP.
    Regards,
    Prashant

Maybe you are looking for