Probelm in transpoting Cmod Coding in ECC

Hi All,
We are transporting C Mod coding request to ECC Quality system for the first time.We have collected the coding in request and transported to quality but in quality system Iam not able to fine the project in which we do cmod coding, Is there any procedure to be followed to transport cmod coding in ECC for the first time.
Reagrds
Albaik

Dear Albiak,
First of all ,it is not recomended to create local request in  Quality system.
Reason why it is recomended to create local request in  Quality system is: When ever we crete same cmod objects in Development and moved to Quality at that time it will lock the objects creted in Q system.
And we have follow the sequence of all transports with same domain id and it should follow till production.
Any how for moving objects from one system to another system, we have few check list items for validation.
1) We have one common package for moving all the required Transports in a group.
2) After assignement , validate the transport in se09. i.e. validate all the objects assigend properly or not..
3) Do consistency check up.
4) Release the transport request befor importing into traget system.
Hope this info may give you some light on your trsnaport.
Cheers,
Maruthi

Similar Messages

  • User exit(cmod) defined for a Datasource enhancement behaviour

    Hi,
      How does a user exit(cmod) defined in ECC to populate ZZ fields in a extractor that is enhanced.
      Will it execute for every row of a datapackage
    Thanks

    Hi,
      The data is extracted first and then stored in data packets. After that the data packet hits the exit code and you should loop the data package so that all the records are affected by the exit code you have written.
    Regards,
    Raghavendra.

  • Feching Eccn code and HTS code from GTS to ECC

    Hi Gurus,
    I am extending a standard delivery idoc (DELVRY05) for some of the header and items fields.
    i have tried to pull them throgh the FM /SAPSLL/***_DOCS_SD0C_GET_R3 i have passed the sales order number, item number and VBTYP to this FM to pull the Eccn code and HTS code.but all the tables are containing the zero entries.
    Please help me. i have to populate the ECCN code and HTS code at the item level in my EXTENDED (Z)DELVRY05 idoc.
    I have the SO number POSNR and material with me in the program.

    Hi All,
    I am now fetching the ECCN code and HTS code as beow:
    You need to write an RFC enabled function module in GTS system, and then call this FM from ECC6.0 passing the RFC destination with help of the FM:  /SAPSLL/CD_ALE_RECEIVER_GET_R3.
    Call the FM as below:
    Coding in ECC 6.0.
    data:   lv_rfc_dest   TYPE bdibapi_dest-rfc_dest.
    clear : w_so.
              w_so-vbeln = w_e1edl24-vgbel." It can be the SO number or the delivery number which will be passed to the RFC ZFM to GTS to fetch the ECCN and HTS code.
              append w_so to t_so .
              clear: w_so.
       CALL FUNCTION '/SAPSLL/CD_ALE_RECEIVER_GET_R3'
                IMPORTING
                  ev_rfc_dest                   = lv_rfc_dest.
       IF lv_rfc_dest IS NOT INITIAL.
       CALL FUNCTION 'ZS_HS_ECCN_SCHB_COPY'
                  DESTINATION lv_rfc_dest
                  EXPORTING
                    PRVSY              = <fs_lips>-matnr
                  IMPORTING
                    ECCN               = lv_eccn
                    HSCODE             = lv_stawn
                    TABLES
                    REFNO              = t_so
                  EXCEPTIONS
                    systen_error       = 1
                    connection_failure = 2.
    Lv_eccn and Lv_Stawn contains the ECCN and HTS code.
    Coding of the ZFM in GTS:
    Note: tables parameter of FM  RefNo is optional, where as the material number is mandatory parameter for the FM.
       FUNCTION ZS_HS_ECCN_SCHB_COPY.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(PRVSY) TYPE  /SAPSLL/PRVSY
    *"  EXPORTING
    *"     VALUE(ECCN) TYPE  /SAPSLL/CCNGN
    *"     VALUE(HSCODE) TYPE  /SAPSLL/CCNGN
    *"     VALUE(SCHB) TYPE  /SAPSLL/CCNGN
    *"     VALUE(RADIO) TYPE  /SAPSLL/CCNGN
    *"     VALUE(RADIO_ECCN) TYPE  /SAPSLL/CCNGN
    *"     VALUE(TEXT) TYPE  /SAPSLL/TEXT60
    *"  TABLES
    *"      REFNO STRUCTURE  /SAPSLL/API6800_DLN_LC_S OPTIONAL
        DATA:lv_prtyp TYPE /sapsll/prtyp VALUE '01'.
      DATA: lv_rptdt    TYPE /sapsll/rptdt.
      DATA:lr_datab TYPE /sapsll/rptst_r_t,
           lr_datbi TYPE /sapsll/rptet_r_t.
      TYPES : BEGIN OF s_pr,
             guid_pr TYPE /sapsll/guid_16,
             END OF s_pr.
      DATA: w_pr TYPE s_pr.
      DATA: t_pr TYPE STANDARD TABLE OF s_pr.
      TYPES : BEGIN OF s_hscode,
             guid_ctsnum TYPE /sapsll/guid_16,
             stcts TYPE /sapsll/stcts,
             datbi TYPE /sapsll/rptet,
             datab TYPE /sapsll/rptst,
             END OF s_hscode.
    TYPES : BEGIN OF s_corref,
            GUID_POBJ TYPE /SAPSLL/CORREF-GUID_POBJ,
            REFNO  TYPE /SAPSLL/CORREF-REFNO ,
          end of s_corref.
    TYPES: begin of s_cuit,
             GUID_CUHD  TYPE  /SAPSLL/CUIT-GUID_CUHD,
             GUID_PR    TYPE  /SAPSLL/CUIT-GUID_PR,
             CTYDP      TYPE  /SAPSLL/CUIT-CTYDP,
            end of s_cuit.
    TYPES : BEGIN OF s_t606g,
             LGREG TYPE /SAPSLL/T606G-LGREG,
             GGLND TYPE /SAPSLL/T606G-GGLND,
            end of s_t606g.
    TYPES : BEGIN OF s_TLEGSU ,
            LGREG  TYPE /SAPSLL/TLEGSU-LGREG ,
            CTSEX TYPE /SAPSLL/TLEGSU-CTSEX,
        end of s_TLEGSU .
    TYPES  : BEGIN OF s_ctsnum,
          GUID_CTSNUM TYPE /SAPSLL/ctsnum-GUID_CTSNUM ,
          STCTS       TYPE  /SAPSLL/ctsnum-STCTS ,
          CCNGN       TYPE  /SAPSLL/ctsnum-CCNGN ,
      END OF s_ctsnum.
      DATA: w_hscode TYPE s_hscode.
      DATA: t_hscode TYPE STANDARD TABLE OF s_hscode,
            t_corref TYPE STANDARD TABLE OF s_corref,
            t_cuit TYPE STANDARD TABLE OF s_cuit,
            t_t606g TYPE STANDARD TABLE OF s_t606g,
            t_tlegsu TYPE STANDARD TABLE OF s_tlegsu,
            t_ctsnum TYPE STANDARD TABLE OF s_ctsnum,
            w_ctsnum TYPE s_ctsnum,
            w_tlegsu TYPE s_tlegsu,
            w_cuit TYPE s_cuit,
            lv_refno TYPE  /sapsll/corref-refno,
            t_refno type STANDARD TABLE OF /SAPSLL/API6800_DLN_LC_S,
            w_refno TYPE /SAPSLL/API6800_DLN_LC_S.
      TYPES : BEGIN OF s_eccn,
             ccngn TYPE  /sapsll/ccngn,
             guid_ctsnum TYPE /sapsll/guid_16,
             END OF s_eccn.
    DATA: lv_pname TYPE sy-repid,
           t_ztuhcd1 type STANDARD TABLE OF ztuhcd1,
           w_ztuhcd1 type ztuhcd1.
      CONSTANTS: c_eccn  TYPE char7 VALUE 'ECCN',
                 c_HSCODE TYPE char7 value 'HSCODE'.
      DATA: w_eccn TYPE s_eccn.
      DATA: t_eccn TYPE STANDARD TABLE OF s_eccn.
      DATA: w_radio TYPE s_eccn.
      DATA: t_radio TYPE STANDARD TABLE OF s_eccn.
      DATA:w_text TYPE /sapsll/text60.
      REFRESH: t_pr,t_hscode,t_eccn,t_radio,lr_datbi,lr_datab, t_cuit,t_t606g,t_tlegsu,t_ctsnum.
      CLEAR: t_pr,t_hscode,t_eccn,w_radio,hscode,eccn,schb,lr_datbi,lr_datab,lv_rptdt,w_ctsnum,w_tlegsu.
      GET TIME STAMP FIELD lv_rptdt.
    *BREAK-POINT.
      CALL FUNCTION '/SAPSLL/VALID_RANGES_PREPARE'
        EXPORTING
          iv_rptdt  = lv_rptdt
          iv_option = 'LT'
        IMPORTING
          er_datab  = lr_datab
          er_datbi  = lr_datbi.
      CALL FUNCTION 'CONVERSION_EXIT_SLLPR_INPUT'
        EXPORTING
          input  = prvsy
        IMPORTING
          output = prvsy.
      SELECT  guid_pr
              INTO TABLE t_pr
              FROM /sapsll/pntpr
              WHERE grvsy = 'LSG_ECC'
              AND   prvsy = prvsy
              AND   prtyp = lv_prtyp.
    if refno[] is initial.
       IF NOT t_pr[] IS INITIAL.
        SELECT guid_ctsnum
               stcts
               datbi
               datab
               INTO TABLE t_hscode
               FROM    /sapsll/prcts
               FOR ALL ENTRIES IN t_pr
               WHERE guid_pr = t_pr-guid_pr
               AND   stcts  IN ('US_HTS','EARECCN','US_SCHB','NRC_SCHB', 'NRCECCN')
               AND datbi IN lr_datbi[]
               AND datab IN lr_datab[].
      ENDIF.
      IF NOT  t_hscode[] IS INITIAL.
        SELECT  ccngn
                guid_ctsnum
                INTO TABLE t_eccn
                FROM    /sapsll/ctsnum
                FOR ALL ENTRIES IN t_hscode
                WHERE guid_ctsnum  = t_hscode-guid_ctsnum.
      ENDIF.
      LOOP AT t_eccn INTO w_eccn.
        READ TABLE t_hscode INTO w_hscode WITH KEY guid_ctsnum = w_eccn-guid_ctsnum.
        IF sy-subrc = 0.
          IF w_hscode-stcts = 'US_HTS'.
            hscode = w_eccn-ccngn.
          ELSEIF w_hscode-stcts = 'EARECCN'.
            eccn = w_eccn-ccngn.
          ELSEIF  w_hscode-stcts = 'US_SCHB'.
            schb =  w_eccn-ccngn.
          ELSEIF  w_hscode-stcts = 'NRC_SCHB'.
            radio =  w_eccn-ccngn.
          ELSEIF  w_hscode-stcts = 'NRCECCN'.
            radio_eccn =  w_eccn-ccngn.
          ENDIF.
          IF NOT radio IS INITIAL OR
             NOT radio_eccn IS INITIAL .
            SELECT SINGLE text
              INTO w_text
              FROM    /sapsll/ctsnumt
              WHERE guid_ctsnum  = w_hscode-guid_ctsnum
              AND ctstt = 'F'
              AND   langu = 'EN'.
            IF sy-subrc = 0.
              text = w_text.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Else.
      IF NOT t_pr[] IS INITIAL.
        SELECT guid_ctsnum
               stcts
               datbi
               datab
               INTO TABLE t_hscode
               FROM    /sapsll/prcts
               FOR ALL ENTRIES IN t_pr
               WHERE guid_pr = t_pr-guid_pr
               AND datbi IN lr_datbi[]
               AND datab IN lr_datab[].
      endif.
      read table refno into w_refno index 1.
      if sy-subrc eq 0.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = w_refno-refno
       IMPORTING
         OUTPUT        = lv_refno.
      endif.
    select GUID_POBJ
           REFNO
           from /sapsll/corref into TABLE t_corref
           where REFNO = lv_REFNO.
    if t_corref is not initial.
    select GUID_CUHD
           GUID_PR
           CTYDP
           from /sapsll/cuit into table t_cuit
           for all entries in t_corref
           where GUID_CUHD = t_corref-GUID_POBJ.
       endif.
    if t_cuit is not initial .
    select LGREG GGLND from  /SAPSLL/T606G
                       into table t_T606G
                      for all entries in t_cuit
                      where  GGLND = t_cuit-CTYDP.
    endif.
    if t_T606G is not initial.
    select LGREG
           CTSEX from /SAPSLL/TLEGSU
                       into TABLE t_TLEGSU
                       FOR ALL ENTRIES IN t_T606G
                       where LGREG = t_T606G-LGREG.
    endif.
    if t_hscode[] is not INITIAL.
    select GUID_CTSNUM
           STCTS
           CCNGN
          from  /SAPSLL/CTSNUM
          into TABLE t_CTSNUM FOR ALL ENTRIES IN t_hscode
          where GUID_CTSNUM = t_hscode-GUID_CTSNUM .
    endif.
      REFRESH: t_ztuhcd1.
      CLEAR:   t_ztuhcd1,w_ztuhcd1.
    * loop at t_TLEGSU into w_TLEGSU.
    READ TABLE t_cuit INTO w_cuit index 1.
      lv_pname = sy-repid.
    * To retrive all the hard coded values
      w_ztuhcd1-name  = c_eccn.
    *  w_ztuhcd1-field = c_eccn.
      w_ztuhcd1-zkey  = w_cuit-ctydp.
      APPEND w_ztuhcd1 TO t_ztuhcd1.
      CLEAR: w_ztuhcd1,lv_pname.
    * To retrive all the hard coded values
      CALL FUNCTION 'Z_UHARD_CODE_VALUE'
           TABLES
                t_ztuhcd1     = t_ztuhcd1
           EXCEPTIONS
                no_data_found = 1
                OTHERS        = 2.
    if sy-subrc eq 0.
    loop at t_ztuhcd1 into w_ztuhcd1 .
    read table t_CTSNUM into w_CTSNUM with key STCTS =  w_ztuhcd1-low.
    if sy-subrc eq 0.
        eccn = w_CTSNUM-CCNGN.
      endif.
      endloop.
      endif.
      REFRESH: t_ztuhcd1.
      CLEAR:   t_ztuhcd1,w_ztuhcd1.
    *  lv_pname = sy-repid.
    * To retrive all the hard coded values
      w_ztuhcd1-name  = c_HSCODE.
    *  w_ztuhcd1-field = c_HSCODE.
      w_ztuhcd1-zkey  = w_cuit-ctydp.
      APPEND w_ztuhcd1 TO t_ztuhcd1.
      CLEAR w_ztuhcd1.
    * To retrive all the hard coded values
      CALL FUNCTION 'Z_UHARD_CODE_VALUE'
           TABLES
                t_ztuhcd1     = t_ztuhcd1
           EXCEPTIONS
                no_data_found = 1
                OTHERS        = 2.
    if sy-subrc eq 0.
    loop at t_ztuhcd1 into w_ztuhcd1 .
    read table t_CTSNUM into w_CTSNUM with key STCTS =  w_ztuhcd1-low.
    if sy-subrc eq 0.
        HSCODE = w_CTSNUM-CCNGN.
      endif.
      endloop.
      endif.
    endif.
    ENDFUNCTION.

  • C mod Coding to display last five years data ( fiscal year )

    Hi All,
    Requirement is end uesr will enter fiscal year ie Interval example From 2001 To 2003 or end uesr will enter enter only From 2001 and To will be left  balnk.In Report my structure will be fixed ie I need to display data for last  Five years.If end user will enter only one year then data should appear for One year and all other columns should be blank.
    Please let me know what type of  variables to be created and cmod coding.
    Regards
    Albaik

    Hi alba,
    Pls find here with the code
    case I_VNAM.
    when 'ZPRYRPER'.
    if I_STEP = '2'.
    loop at i_t_var_range into temp.
    append temp.
    endloop.
    read table temp with key vnam = '0S_FPER'.
    if sy-subrc eq 0.
    move temp-low to l1_period.
    move temp-high to l_period.
    endif.
    if l_period-gjahr = 0000.
    l_period-gjahr = 2020.
    endif.
    if l1_period-gjahr = 0001.
    l1_period-gjahr = 1990.
    endif.
    CLEAR E_T_RANGE_WA.
    l1_period-buper = '001'.
    l_period-gjahr = l_period-gjahr - 1.
    l1_period-gjahr = l_period-gjahr.
    E_T_RANGE_WA-SIGN = 'I'.
    E_T_RANGE_WA-OPT = 'BT'.
    E_T_RANGE_WA-HIGH = L_PERIOD.
    E_T_RANGE_WA-LOW = L1_PERIOD.
    APPEND E_T_RANGE_WA TO E_T_RANGE.
    endif.
    Hope it helps
    Regards,
    Marasa.

  • Runtime error in activation BADI (CX_HRPA_INVALID_PARAMETER)

    In activation BADI i get a runtime error using 'HR_INFOTYPE_OPERATION'
    An exception occurred that is explained in detail below.                       
    The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not 
      caught in                                                                     
    procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING     
      clause.                                                                       
    Since the caller of the procedure could not have anticipated that the          
    exception would occur, the current program is terminated.                      
    The reason for the exception is:                                               
    Ongeldige parameter EXCEPTION waarde                                                                               
    The occurrence of the exception is closely related to the occurrence of        
    a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the  
      program "CL_HRPA_MASTERDATA_FACTORY====CP",                                   
    specifically in line 6 of the (include) program                                
      "CL_HRPA_MASTERDATA_FACTORY====CM004".                                        
    The cause of the exception was:                                                                               
    Niet aan voorwaarde voldaan                                                    
      DATA: personaldatakey   TYPE bapipakey.
      DATA: return            TYPE bapireturn1.
      DATA: l_p0025           TYPE p0025.
      DATA: l_citem           TYPE t71adm09-citem.
      DATA: l_resultaat(2)    TYPE n.
    l_p0025-pernr = p0759-pernr.
    Begindatum is begindatum binnengekomen IT0759 record - 1 jaar
        CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
          EXPORTING
            date      = p0759-begda
            days      = 0
            months    = 0
            signum    = '-'
            years     = 1
          IMPORTING
            calc_date = l_p0025-begda.
    Einddatum is 31 december van het jaar binnegkomen IT0759
        CONCATENATE: p0759-endda(04) '1231'  INTO l_p0025-endda.
        l_p0025-infty = '0025'.
        IF p0759-cpamt >= 100.
    *GENERATE ERROR
        ELSE.
          l_resultaat = p0759-cpamt.
         IF l_resultaat < 10.
           CONCATENATE '0' l_resultaat INTO l_p0025-krt01.
         ELSE.
         l_p0025-krt01 = l_resultaat.
         ENDIF.
    write data
          CLEAR: return, personaldatakey.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = '0025'
              number        = l_p0025-pernr
              validityend   = l_p0025-endda
              validitybegin = l_p0025-begda
              record        = l_p0025
              operation     = 'INS'
              nocommit      = ''
              tclas         = 'A'
            IMPORTING
              return        = return
              key           = personaldatakey
            EXCEPTIONS
              OTHERS        = 0.
          IF NOT return-number IS INITIAL.
    GENERATE ERROR
          ELSE.
            is_ok = 'X'.
            process_standard = 'X'.
          ENDIF.

    Hello Richard
    The exception is raised in method SET_FRAMEWORK of class CL_HRPA_MASTERDATA_FACTORY. Perhaps the SAP note mentioned in the coding (on ECC 6.0) may be useful:
    METHOD set_framework.
      IF a_is_initialized = true.
    *   This indicates some complex problem which often can be easily
    *   fixed. For details see NOTE 493984 (2003).
        RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.  " line 6
      ELSE.
        CALL METHOD delayed_constructor
          EXPORTING
            read_infotype     = read_infotype
            masterdata_buffer = masterdata_buffer
            additional_buffer = additional_buffer
            legacy_mode       = legacy_mode.
      ENDIF.
    ENDMETHOD.
    Regards
      Uwe

  • Error Exception CX_HRPA_INVALID_PARAMETER  while updating IT0014 using FM

    Hello Experts,
    When i am updating IT0014 for Benefits Wage types with Amounts, i am getting the below Run-time Error .
    UNCAUGHT_EXCEPTION
    CX_HRPA_INVALID_PARAMETER
    Pl let me know, if any inputs.
    Thanks.
    Linga

    Hello Richard
    The exception is raised in method SET_FRAMEWORK of class CL_HRPA_MASTERDATA_FACTORY. Perhaps the SAP note mentioned in the coding (on ECC 6.0) may be useful:
    METHOD set_framework.
      IF a_is_initialized = true.
    *   This indicates some complex problem which often can be easily
    *   fixed. For details see NOTE 493984 (2003).
        RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.  " line 6
      ELSE.
        CALL METHOD delayed_constructor
          EXPORTING
            read_infotype     = read_infotype
            masterdata_buffer = masterdata_buffer
            additional_buffer = additional_buffer
            legacy_mode       = legacy_mode.
      ENDIF.
    ENDMETHOD.
    Regards
      Uwe

  • Problem in creating datasource

    Hi,
       I need to create a master datasource for a table but only for some fields in that table. Some of the fields are of type Timestamp but i need only Date. So I thought of creating a structure with only required fields of that table and changed data type. In the user exit or BADI, thought of writing the code for extracting the data from that table and doing some manipulations. In RSO2 transaction while creating a master datasource i am not able to specify the structure created? Is there any other way to proceed with this scenario?
    Thanks!

    When you want to create generic datasource and need to use manipulation of table data go for function module based datasource.
    First create a structure and in RSO2 choose function module based datatsource and place your function module and structure.
    PS: You need not use CMOD coding instead go for function module.
    Hope this helps.

  • How to declare ranges on ECC6.0

    Hi All,
    i have probelm with the ranges statement in ECC 6.0 i have declared the renages like below.
    RANGES: RA_BZOBJ FOR KEKO_WA-BZOBJ.
    Using like this:
        RA_BZOBJ-SIGN = C_INCL.
        RA_BZOBJ-OPTION = C_EQ.
        RA_BZOBJ-LOW = WA_KEKO_DATA-BZOBJ.
        APPEND RA_BZOBJ.
    But SLIN throwing errors for this. So please let me know or give one example for ranges in ECC 6.0
    Mant Thanks
    Raghu.

    Hi...
    In ECC 6.0 Declaring internal table with Header line will give errors in SLIN.
    Ranges will create a Header line always.
    So ..Try this way.
    Eg:
    <b>Data : r_date like Range of Sy-datum.
    dATA : WA LIKE LINE OF R_DATE.
    WA-sign = 'I'.
    WA-LOW = SY-DATUM - 1.
    WA-HIGH = SY-DATUM.
    APPEND WA TO R_DATE.</b>

  • IDOC (BLAORD03) could not be saved..

    Hello all,
    When we create GOA in SRM and after approval.. it is not getting distributed to ECC..
    When we debug, RFC Call, in ECC there is no IDOC Generated against to this Contract Number.. And the call in failing with the following discription
    IDOC (BLAORD03) could not be saved 
    Application error in backend system D01CLNT200 (SRM outline agreement 6100000043)  
    We Implimented BADI's for Condition (Mapping) in SRM and Company code updation (in ECC)..
    - IDOC it self is not getting generated in ECC, Partner profile is maintained for message - BLAORD
    Pls suggest..!!
    Thanks in Advance.!!
    Regards,
    Mohan Vamsi

    Hello Sanjeev,
    Yes, we maintained partner profiles for both the message types, and, Profile in ECC is SAP_ALL.
    Any other places which I need to check.. Pls suggest. Very much thankful for your help.
    Also..
    Now I hard coded our ECC Sytem LS name in BADI Implimentation of BBP_DETERMINE_LOGSYS as per the documentation.!!
    Follow-on contract from Bid Invitation
    Regards,
    Mohan Vamsi..

  • Re:bapi

    Hi All,
    can u pls help me out in the following issue?
    iam very new to using bapi, i got the requirement to upload time data into sap using standard bapi BAPI_CATIMESHEETMGR_INSERT .
    in this bapi the data import table have the fileds similar to the fields of catsdb table.but catsdb table also contains some customer fields, these fields doesnot exists in bapi's  data import table.
    so my question is i need to upload these customer fields also  into sap using the same bapi,
    how to use the extension in parameter to upload customer fields?
    if possible send me the sample mcode also....
    thanks in advance..
    rahul

    Hello Rahul
    Customer-specific data are imported into the BAPI using the EXTENSIONIN parameter.
    Within the BAPI you can see the following coding (on ECC 6.0):
      LOOP AT extensionin.
        CALL FUNCTION 'MAP2I_BAPICATS7_TO_CATS_EXT'
          EXPORTING
            extensionin = extensionin
          TABLES
            catsrecords = l_tcats_ext
          EXCEPTIONS
            error_line  = 1
            OTHERS      = 2.
        IF sy-subrc <> 0.
          CLEAR return.
          PERFORM bapi_return2_get
                  USING
                     sy-msgty sy-msgid sy-msgno
                     sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                     param_name_in l_tabix space
                  CHANGING
                     return.
          APPEND return.
        ENDIF.
      ENDLOOP.
    This mapping function module has the following coding:
    FUNCTION MAP2I_BAPICATS7_TO_CATS_EXT.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(EXTENSIONIN) LIKE  BAPICATS7 STRUCTURE  BAPICATS7
    *"  TABLES
    *"      CATSRECORDS STRUCTURE  CATS_EXT
    *"  EXCEPTIONS
    *"      ERROR_LINE
      DATA: CUSTOM LIKE BAPI_TE_CATSDB.
      IF EXTENSIONIN-STRUCTURE = 'BAPI_TE_CATSDB'.
    *    MOVE EXTENSIONIN+C_LENSTRUC TO CUSTOM. YCY
        PERFORM move_extension_to_custom
                    USING
                       extensionin
                    CHANGING
                       custom.
        READ TABLE CATSRECORDS INDEX CUSTOM-ROW.
        CATCH SYSTEM-EXCEPTIONS CONVERSION_ERRORS  = 1.
          MOVE-CORRESPONDING CUSTOM TO CATSRECORDS.
        ENDCATCH.
        IF SY-SUBRC <> 0.
          MESSAGE E327(LR) WITH CUSTOM-ROW RAISING ERROR_LINE.
        ENDIF.
        MODIFY CATSRECORDS INDEX CUSTOM-ROW.
      ENDIF.
    ENDFUNCTION.
    Thus, the structure for the EXTENSIONIN parameter is BAPI_TE_CATSDB (containing the customer include CI_CATSDB).
    Most likely your custom fields need to be included into structure CATS_EXT, too, otherwise the MOVE-CORRESPONDING statement is useless.
    The way how EXTENSIONIN parameters need to be filled is standardized and you should find useful documentation in the SAP online help.
    Further reading: [BAPI Conventions|http://www.sap-img.com/abap/bapi-conventions.htm]
    Regards
      Uwe

  • Initialization cannot be deleted in source system

    Hi All,
       While doing an Init Load for the first time, the load failed sinc there was a dump in the source R3 system.
       Then I corrected the error (a CMOD coding error) in R3 and tested it in RSA3. The simulation worked fine.
       Now I am trying to do a second INIT for which I need to delete the first failed INIT (from Scheduler->Initialization options for this source->Delete).
        It says "<b>Initialization for Data Source 0CA_TS_IS_1 Can Not Be Deleted in Source System...There was a dump in source system...Check the short dumps in the source system (/nst22 and /nsm21)...</b>."
       Please suggest how to correct this.
       Any help will be greatly appreciated.
    Thanks
    Vishno

    Anil,
      Firstly thanks for ur reply.
      As per your suggestions:
    1. I made it red and tried to delete from the Info pkg screen but it didnt allow.
    2. Then I tried to delete from RSA7. It dumped.
    3. So I deleted the two entries in two tables ROOSPRMSC & RSSDLINIT
    in R3 and .
    4. I recreated, replicated the Datasource.
    5. But now on trying to open a Info Pkg its dumping (Message type X). It also doesnt allow to create one.
    Our BW DEV box is BW 700 Level 010 SupPack KW70010
    I tried OSS notes 852443, 888677 and 872278 but didnt allow me to implement.
    Please suggest.
    Thanks
    Vishno

  • Dynamic Portal Links

    We have a requirement to display dynamic links in the Portal based on certain criteria in ECC. There are time sensitive items in Payroll & Compensation that we want to control in ECC/Portal or have an Administrator u201Creleaseu201D the items into ESS for a user to view...instead of having static links. For example, we have forms (salary statement), letters, notices that are generated in the ECC backend, but the administrator has to run audits, checks, reviews outside of the system first. Once satisfied and ready to u201Cdisplayu201D these items in the portal they want to be able to u201Cflip a switchu201D on command and only then the links will appear in ESS.
    Any idea how to satisfy this requirement? Is it custom coding in ECC and/or Portal?

    PSO,
    you can acheive that using HomePage framework
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e3a488-cdc2-2b10-209b-e01a0ed934b4?QuickLink=index&overridelayout=true
    and proxy class
    Create Dynamic XSS Homepages with Static Services Using a Simple Proxy Class
    Thanks
    Bala Duvvuri

  • Enhancing Extract structure for 2LIA_13_VDITM

    Hi all,
    I have requirement to enhance my billing cube with tax details. At present we have report lik below...
    Sales Org     Comp Cd     Plant     Cntry     Sold-to party     Name 1     Street     City      Region (State)     Postal Code     Country     Ship-to party     Name 1     Street     City      Region (State)     Postal Code     Cntry     Billing type     Doc. cat. Q/O/D/I     Billing Document     Material     Material Description     Country of Origin fo     Ref Delivery Number     Sales document     Doc cur     Calendar     Month     Billed Quantity     Cost     Net value
    In addition with above we need
    Conversion Rate     Tax XR1 GST 5%     Tax XR2 HST/QST     Tax XR3 PST
    So I want to add above 4 fields for my extract structure MC13VD0ITM.  Can any one help be in respect of CMOD coding and append structure?

    Hi ,
    Are the fields present in the structure of the Data source and not there or you want to populate the fields from different tables?
    double click on the extract sructure --> click on append structure --> it will prompt for Append struture name --> enter and click ok -->add the fileds to the append and activate the structure.
    next in implement the logic in CMOD....
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    Regards
    KP

  • PROBELM WITH TYPE X  VALUE '20' IN CONCATENATE STATEMENT in ECC version

    Hi EXPERTS,
             I am working in ECC 6.0 version.
             PROBELM WITH TYPE X  VALUE '20' IN CONCATENATE STATEMENT in ECC           version
             C_DEL     TYPE X VALUE '09' having solution --C_DEL TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
             If  C_DEL     TYPE X VALUE '20'   what was the solution in ECC version.
             Please let me know. I am awaiting for ur answers
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

    Hi
    welcome to SDN forum
    move that X field to a char field and use in concatenation
    CONCATENATE works only with CHAR fields
    Regards
    Anji

  • Coding in cmod

    Hi All,
    CMOD is used for coding relating to data source enhancement and when we create variables, please let me know if we are using for any other coding purpose in bi.
    Thanks & Regards
    Surendra

    HI,
    CMOD & SMOD
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7ceb940e11d295df0000e82de14a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm
    User Exits,CMOD, SMOD
    Diff between SMOD and CMOD
    CMOD &SMOD
    Tarak

Maybe you are looking for

  • HELP!  WebLogic won't start - "wlDefaultKeyStore.jks does not exist"

    Hi, I am having the same problem with 3 different WebLogic installations not being able to start. All of them are WebLogic 8.1 SP2, with two running under Windows 2000, and one installation under Solaris 9 SPARC. What happens is that when I execute s

  • Using DV deck

    Hi guys, Any pro video guys around? Are DV decks (sonyDSR45, JVC....) acceptable for iChat? I want to try multi-source via DVdeck interface. Please advice... thanks

  • Cluster environment error

    While testing my adobe form i am getting this error message. com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "Render" operation. Request start time: Mon Sep 11 15:59

  • Stuck with date from IPTC core

    I usually change date from template when not corresponding to real one, and succesfully. Now doesn't work, daTE  is stuck at date at IPTC core, and I can actually change from there but I prefer to change from template (small icon top right) I did too

  • Where to check when the query was last used.

    Hi all, Where can we check the information when a particuler query was last used. (date ). Any table. Also how can we check the same from satistics queries.