Enhance BW Extractor -abap coding error

hi gurus
i need to enhance extractor 0customer_attr so that field from KNKK-GRUPP is pulled in along with 0customer_attr extraction
so i enhance the extractor using append and type it in the data element, PROVIDED zzxyzno in the field name
Activated it and UNHIDE it.
now my abap code in CMOD in ZXRSAU01 for EXIT RS*01 DOESNT WORK...
now i wrote below code:
DATA: L_S_INFOSTRU LIKE biw_kna1_s.
CASE I_DATASOURCE.
WHEN '0ustomer_attr'.
DATA: biw_kna1_s_data LIKE biw_kna1_s.
LOOP AT C_T_DATA INTO L_S_INFOSTRU.
L_TABIX = SY-TABIX.
biw_kna1_s_data-ZZXYZNO = KNKK-GRUPP
ENDLOOP.
ENDCASE.
but it is still not pulling in values from extractor...
can you please correct my code ???

Try something like
FIELD-SYMBOLS: <customer_attr> TYPE biw_kna1_s.
CASE i_datasource.
  WHEN '0CUSTOMER_ATTR'. " Upper case
    LOOP AT c_t_data ASSIGNING <customer_attr>.
      SELECT grupp INTO <customer_attr>-zzxyzno
        FROM knkk UP TO 1 ROWS
        WHERE kunnr = <customer_attr>-kunnr.
      ENDSELECT. " not whole primary key
    ENDLOOP.
ENDCASE.
If performance problems arise ("SELECT in a LOOP"), first fill an internal table with a FOR ALL ENTRIES IN c_t_data in a sorted internal table (kunnr and grupp field, key kunnr) , then in the LOOP use a READ TABLE. (mandatory if you use such exits on big extractions.
Regards,
Raymond

Similar Messages

  • Enhance BW Extractor - Transactional data ABAP CODING ERROR

    i need to enhance CRM extractor with additional field.
    This is transactional data so i used Exit_rs_001
    Here is the extractor result -
    Guid...date...........objectid...item guid
    1122......1.1.10....901..........8811
    1122......2.1.10....901..........8812
    1123......1.1.10....902..........8813
    1123......2.1.10....902..........8814
    now i need field Product id in it which is called from DB Table CRMD_SRV_REFOBJ
    itemguid...referencekey...product
    8811............01.................110011
    8812............02.................110012
    8813............03.................110013
    now i want to extract data--
    Guid...date...........objectid...item guid...product
    1122......1.1.10....901..........8811.........110011
    1122......2.1.10....901..........8812.........110012
    1123......1.1.10....902..........8813.........110013
    so i appended the extractor...with field zproduct
    FOLLOWING Code doesnot work:::
    DATA: L_S_INFOSTRU LIKE ziw_orderma_i.
    CASE I_DATASOURCE.
    FIELD-SYMBOLS: <PRO_01> TYPE ziw_orderma_i.
    CASE i_datasource.
    WHEN 'ziw_orderma_i.'. " Upper case
    LOOP AT c_t_data ASSIGNING <PRO_01>.
    SELECT PRODUCT_ID INTO <PRO_01>-zZPRODUCT
    FROM CRMD_SRV_REFOBJ UP TO 1 ROWS
    WHERE ITEM_GUID = <PRO_01>-CRMD_SRV_REFOBJ.
    ENDSELECT. " not whole primary key
    ENDLOOP.
    ENDCASE.

    actually
    coding doesnt give any error
    but in output in rsa3 i dont see any data
    it worked fine wit the same code for master data datasource in exit...2
    now same code different parameters doesnt work in exit..1 for transactional data.

  • ABAP coding error...enhance transactional datasource

    i need to enhance CRM extractor with additional field.
    This is transactional data so i used Exit_rs_001
    Here is the extractor result -
    Guid...date...........objectid...item guid
    1122......1.1.10....901..........8811
    1122......2.1.10....901..........8812
    1123......1.1.10....902..........8813
    1123......2.1.10....902..........8814
    now i need field Product id in it which is called from DB Table CRMD_SRV_REFOBJ
    itemguid...referencekey...product
    8811............01.................110011
    8812............02.................110012
    8813............03.................110013
    now i want to extract data--
    Guid...date...........objectid...item guid...product
    1122......1.1.10....901..........8811.........110011
    1122......2.1.10....901..........8812.........110012
    1123......1.1.10....902..........8813.........110013
    so i appended the extractor...with field zproduct
    FOLLOWING Code doesnot work:::
    DATA: L_S_INFOSTRU LIKE ziw_orderma_i.
    CASE I_DATASOURCE.
    FIELD-SYMBOLS: <PRO_01> TYPE ziw_orderma_i.
    CASE i_datasource.
    WHEN 'ziw_orderma_i.'. " Upper case
    LOOP AT c_t_data ASSIGNING <PRO_01>.
    SELECT PRODUCT_ID INTO <PRO_01>-zZPRODUCT
    FROM CRMD_SRV_REFOBJ UP TO 1 ROWS
    WHERE ITEM_GUID = <PRO_01>-CRMD_SRV_REFOBJ.
    ENDSELECT. " not whole primary key
    ENDLOOP.
    ENDCASE.

    Hi,
    For this, you can do as below
    REFER EXTRACTOR GUID --1122
    Find GUID References for guid = 1122 in table CRMD_ORDERADMI (item level table)
    for the guid reference in CRMD_ORDERADMI, find the Product >0 in table CRMD_SRV_REFOBJ
    select that Product and write into extractor field zzproduct#
    WHEN 'ziw_orderma_i'.
    LOOP AT c_t_data INTO l_s_ziw_orderma_i.
    l_tabix = sy-tabix.
    data: temp_guid like CRMD_ORDERADM-GUID. to create a temporary variable
    SELECT single GUID FROM CRMD_ORDERADMI INTO temp_guid
    WHERE GUIDREF = l_s_ziw_orderma_i-GUID.
    The above statement would give you value for GUID from this table i.e. z1122
    SELECT PRODUCT_IT FROM CRMD_SRV_REFOBJ INTO l_s_ziw_orderma_i-ZZPRODUCT
    WHERE GUID = temp_guid.
    MODIFY c_t_data FROM l_s_ziw_orderma_i INDEX l_tabix.
    ENDSELECT.
    This would fetch your value
    clear temp_guid. to clear this temporary variable
    ENDLOOP.
    WHEN OTHERS.
    EXIT.
    ENDCASE.
    PS: It appears that you have corrected already so not requried any more
    Edited by: Rahul K Rai on Oct 17, 2010 9:27 PM

  • FM ABAP coding error

    i created GENERIC datasource  and i am trying to fill the values in that datasource using Fm.
    Within my FM i want to call FM- CRM_ORDER_READ to get the values.
    now when u execute CRM_ORDER_READ, i want the data from segments
    ET_ORDERADM_H : GUID
    ET_ORDERADM_H :  OBJECT ID
    & ET_ORDERADM_I : HEADER
    ET_ORDERADM_I :  ITM_TYPE
    now, when HEADER = guid extract ALL ITEM TYPES
    extract data for all guids.  (guid is something like order number which is key in between different segments.)
    my code below gives NO-Error and short dumps at execution in RSA3-
    ERROR IS : FM- CRM_ORDER_READ is called with ITM-TYPE. ITM_TYPE is not defined.
    can somebody suggest corrections:
    CASE I_DSOURCE.
    WHEN 'ZCRM_COMP_TEST_D2'.
    WHEN OTHERS.
    IF 1 = 2. MESSAGE E009(R3). ENDIF.
    LOG_WRITE 'E' "message type
    'R3' "message class
    '009' "message number
    I_DSOURCE "message variable 1
    ' '. "message variable 2
    RAISE ERROR_PASSED_TO_MESS_HANDLER.
    ENDCASE.
    APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    S_S_IF-REQUNR = I_REQUNR.
    S_S_IF-DSOURCE = I_DSOURCE.
    S_S_IF-MAXSIZE = I_MAXSIZE.
    ELSE. "Initialization mode or data extraction ?
    loop at s_s_if-t_select into l_s_select
    where fieldnm = 'ITM_TYPE'.
    move-corresponding l_s_select to L_R_ITM_TYPE.
    append L_R_ITM_TYPE.
    endloop.
      OPEN CURSOR WITH HOLD S_CURSOR FOR
         SELECT *  FROM CRMD_ORDERADM_H
            WHERE PROCESS_TYPE  EQ 'STT1'.
       ENDIF. "  this endif is for the IF S_COUNTER_DATAPAKID = 0.
               " this will ensure the base records are selected from header with a pariticular doc type for the
               " for the cursor
    FETCH NEXT CURSOR S_CURSOR
    APPENDING CORRESPONDING FIELDS
    OF TABLE E_T_DATA
    PACKAGE SIZE S_S_IF-MAXSIZE.
    IF SY-SUBRC EQ 0.
    Here select the guid of the header table which can be used in the FM
    DATA : LT_HEADER      TYPE            CRMT_OBJECT_GUID_TAB     .
           SELECT GUID FROM CRMD_ORDERADM_H
           INTO  TABLE LT_HEADER
                    WHERE PROCESS_TYPE  EQ 'STT1'.
       "CAll the FM here
           CALL FUNCTION 'CRM_ORDER_READ'
           EXPORTING
             IT_HEADER_GUID = LT_HEADER
           IMPORTING 
                                 ITM_TYPE = CRMD_ORDERADM_I-ITM_TYPE.
         " MOdify e_t_data .... transporting your fields from FM
       ENDIF .
       IF SY-SUBRC <> 0.     
    CLOSE CURSOR S_CURSOR.
    RAISE NO_MORE_DATA.
    ENDIF.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    ENDIF. "Initialization mode or data extraction ?
    ENDIF.
    ENDFUNCTION.
    any inputs??

    so i modified the code , it is bringing values for GUID & Object id (Order Numbers) but the field for ITEM_TYPE is always empty.
    what modification needs to be done in code so that it item_type is populated.
    (the logic is something like when GUID of   et_orderadm_h = Header of   et_orderadm_i, bring in all ITEM TYPES)
    so data in   et_orderadm_h is
    GUID--OBJECT ID
    111.......101
    112.......102
    and data in   et_orderadm_i is :
    GUID--Header guid.........item types
    911.......111........................ORD1
    912.......111........................ORD2
    913.......111........................ORD3
    914.......112........................ORD4
    915.......112........................ORD5
    916.......112........................ORD6..............
    IF S_COUNTER_DATAPAKID = 0.
           loop at s_s_if-t_select into l_s_select
             where fieldnm = 'ITM_TYPE'.
             move-corresponding l_s_select to L_R_ITM_TYPE.
             append L_R_ITM_TYPE.
             endloop.
            OPEN CURSOR WITH HOLD S_CURSOR FOR
            SELECT *  FROM CRMD_ORDERADM_H
            WHERE PROCESS_TYPE EQ 'ZSRV'.
    FETCH NEXT CURSOR S_CURSOR
    APPENDING CORRESPONDING FIELDS
    OF TABLE E_T_DATA
    PACKAGE SIZE S_S_IF-MAXSIZE.
    IF SY-SUBRC EQ 0.
    DATA : LT_HEADER TYPE CRMT_OBJECT_GUID_TAB .
           SELECT GUID FROM CRMD_ORDERADM_H
           INTO  TABLE LT_HEADER
             WHERE PROCESS_TYPE EQ 'ZSRV'.
       "CAll the FM here
           CALL FUNCTION 'CRM_ORDER_READ'
            EXPORTING
              it_header_guid = lt_header_guid
              it_requested_objects = lt_request_objs
              IMPORTING
                et_orderadm_h = lt_orderadm_h
                et_orderadm_i = lt_orderadm_i
                et_status = lt_status.
          ENDIF .
            IF SY-SUBRC <> 0.
              CLOSE CURSOR S_CURSOR.
              RAISE NO_MORE_DATA.
              ENDIF.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    ENDIF...
    any inputs???????

  • Enhance BW Extractor - coding problems

    hi gurus
    i need to enhance extractor 0customer_attr so that field from KNKK-GRUPP is pulled in along with 0customer_attr extraction
    so i enhance the extractor using append and type it in the data element, PROVIDED zzxyzno in the field name and extracted it and UNHIDE it.
    now i wrote below code:
    GRUPP
    DATA: L_S_INFOSTRU LIKE biw_kna1_s.
    CASE I_DATASOURCE.
    WHEN '0ustomer_attr'.
      DATA: biw_kna1_s_data LIKE biw_kna1_s.
      LOOP AT C_T_DATA INTO L_S_INFOSTRU.
        L_TABIX = SY-TABIX.
    biw_kna1_s_data-ZZXYZNO = KNKK-GRUPP
      ENDLOOP.
    ENDCASE.
    but it is still not pulling in values from extractor...
    can you please correct my code ???

    thank u sir
    can you please give me the correct code?
    what needs to be written in Read **
    where read needs to be inserted etc. etc.
    if u refering some thread can u please give that thread
    or let me know !!

  • Enhance CRM extractor for BW

    Hi all,
      To enhance CRM extractors we enhance the BDoc and then used the BADI CRM_BWA_MFLOW or CRM_BWA_SFLOW whichever is applicable to extract the data for the enhanced fields and fill the data source.
    Also we go to transaction RSA6 enhance the datasource structure.
    Now my basic question is why User exists are also enhanced. The procedure is
    In transaction RSA6 select the datasource structure and choose the menu "Function enhancment". This goest to CMOD transaction and there the user exit "EXIT_SAPLRSAP_001" is enhanced
    Could someone explain me why some coding is done in the user exit when the data which needs to be send from the BDoc is already filled in the badi implementation. When does this user exit actually used. In what scenarios do we use this user exit along with the badi implementation.
    Any idea. Thanks for the continued support and I wish "Happy new year" to all of you.
    Thanks in advance
    Jothi

    Hi all,
      To enhance CRM extractors we enhance the BDoc and then used the BADI CRM_BWA_MFLOW or CRM_BWA_SFLOW whichever is applicable to extract the data for the enhanced fields and fill the data source.
    Also we go to transaction RSA6 enhance the datasource structure.
    Now my basic question is why User exists are also enhanced. The procedure is
    In transaction RSA6 select the datasource structure and choose the menu "Function enhancment". This goest to CMOD transaction and there the user exit "EXIT_SAPLRSAP_001" is enhanced
    Could someone explain me why some coding is done in the user exit when the data which needs to be send from the BDoc is already filled in the badi implementation. When does this user exit actually used. In what scenarios do we use this user exit along with the badi implementation.
    Any idea. Thanks for the continued support and I wish "Happy new year" to all of you.
    Thanks in advance
    Jothi

  • ABAP dump Error while creating service order in PCUI.

    Hi Experts,
                     We are getting following ABAP dump error while creating service order in PCUI which is working fine in GUI.
    Runtime Errors         RAISE_EXCEPTION
    Date and Time          02.01.2008 14:55:38
    Short text
    Exception condition "TYPE_NOT_FOUND" raised.
    What happened?
    The current ABAP/4 program encountered an unexpected
    situation.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    A RAISE statement in the program "CL_CRM_ELEMDESCR==============CP" raised the
    exception
    condition "TYPE_NOT_FOUND".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Short description of exception condition:
    For detailed documentation of the exception condition, use
    Transaction SE37 (Function Library). You can take the called
    |    function module from the display of active calls.     
    We have added custom fields in the service application. these custom fields with Z-structure & data elements  are included in BSP structure CRMT_BSP_SRV_OIC_SRCHRES in development system.But the same Z structure & custom fields are exist in the production system but not included in BSP Structue CRMT_BSP_SRV_OIC_SRCHRES.
    This may be the reason resulting this ABAP dump error in PCUI while creating Service order.
    How these Z structures can be included in the BSP Structure CRMT_BSP_SRV_OIC_SRCHRES in production system?
    Helpful answers would be rewrded max points as it is high priority issue.
    Regards,
    Basavaraj Patil

    Hi Thirumala,
    Thnaks for the reply.
                I have enhanced service application using transaction EEWB to add new custom fields. these fields are there in Z structure created by the system in production system. All the transports are moved to target system. Problem is that Z structure( contains custom fields)  created while doing  EEWB is not included in BSP structure.
    I f transports are missed to move to target system, Is there any other alternative to solve this problem?
    Regards,
    Basavaraj Patil

  • Getting ABAP runtime error while doing MIGO-GR against PO.

    Hi,
    Getting ABAP runtime error message while doing GR against PO.
    47 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_01 SPOTS ES_SAPLMBWL STATIC.
    48
    49 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_02 SPOTS ES_SAPLMBWL.
    50    CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'
    51         EXCEPTIONS
    52           error_message = 4.
    53 *  As soon as we have started to put things into UPDATE TASK, we must
    54 *  ensure that errors definitely terminate the transaction.
    55 *  MESSAGE A is not sufficient because it can be catched from
    56 *  external callers which COMMIT WORK afterwards, resulting in
    57 *  incomplete updates. Read note 385830 for the full story.
    58    IF NOT sy-subrc IS INITIAL.
    >>       MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH            "385830
    60                  sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    61 *     MESSAGE A263.
    62    ENDIF.
    63 * Optische Archivierung
    64 * Spaete Erfassung mit Barcode
    65 * Redesign of barcode handling -> note 780365
    66   PERFORM barcode_update(sapmm07m) USING xmkpf-mblnr
    67                                          xmkpf-mjahr
    68                                          barcode.
    69
    70   MOVE-CORRESPONDING xmkpf TO emkpf.
    71   CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
    72     EXCEPTIONS
    73       error_message = 4.
    74    MOVE-CORRESPONDING xmkpf TO emkpf.
    75    CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
    76         EXCEPTIONS
    77           error_message = 4.
    78    IF NOT sy-subrc IS INITIAL.
    Any pointers
    Code Formatted by: Alvaro Tejada Galindo on Jan 14, 2010 6:00 PM

    Hi ,
    Any inputs
    for this error
    No RFC destination is defined for SAP Global Trade Services
    Regards
    Ashu

  • ABAP coding issues after BW upgrade

    Hello Gurus,
    We recently did a BW upgrade from version 3.5 to 7.31 and even since have been encountering few strange issues with many of our ABAP coding.
    For example, there is an APPEND statement in one of our Update Rules as below:
    APPEND <lw_rtab_wa> TO <lt_rtab>.
    Before upgrade, this was working as expected and the contents of <lw_rtab_wa> was getting transferred to <lt_rtab> without any issues.
    Now after upgrade, we find that the contents of <lw_rtab_wa> is being clubbed together in the 1st few columns of <lt_rtab>.
    Both the <lw_rtab_wa> & <lt_rtab> have the same fields, but the length of few fields in <lt_rtab> is bigger than that in <lw_rtab_wa>. For example DOC_NUMBER in <lw_rtab_wa> is of type C(10) while in <lt_rtab> it is C(20). This difference is causing the data of the 2nd field also to be over-writen in the DOC_NUMBER field of <lt_rtab>.
    Please let us know if you have encountered similar situations after your BW upgrade. Any possible solutions to this would be very much appreciated as this is causing PROD issues at the moment!
    Thanks
    Arvind

    Hi Arvind,
    After Upgrade In BW 7.3 or higher versions All data elements that use the domain RSCHAVL are converted from CHAR60 to SSTRING. thats the reason you are getting that syntax error.
    Take help of some ABAP programmer and try to change the syntax as suggested from below link.
    Just scroll down and check the same. even though link shows for BW 7.4 issues, its applicable for 7.3 too. Please let me know
    http://scn.sap.com/community/data-warehousing/bw/blog/2014/07/28/sap-bw-74-analysis-issues
    Thanks
    Ajay

  • ABAP LOGICAL ERRORS

    Expalin about ABAP Logical errors?
    Help me sending appropriate link to understand more.
    Moderator Message: Read the Rules of Engagement of this forum.
    Edited by: kishan P on Dec 27, 2011 9:50 PM

    Hi Vinay,
         You can't delete the ABAP Runtime errors. But  you can catch the errors using catch exception Statement.
    For Example,
    Class-based exceptions are handled in the following control structure:
    TRY.
      ...                       " TRY block (application coding)
    CATCH cx_... cx_... ...
        ...                     " CATCH block (exception handler)
    CATCH cx_... cx_... ...
        ...                     " CATCH block (exception handler)
      CLEANUP.
        ...                     " CLEANUP block (cleanup context)
    ENDTRY.
    Try This Sample Code,
    *--EXAMPLE FOR RUNTIME ERROR--
    *DATA : VALUE1 TYPE I.
    *VALUE1 = 1 / 0.        -
    >>>>>> IT MAKES RUN TIME ERROR.
    *WRITE : VALUE1.
    *-EXAMPLE FOR HOW TO CATCH THE ARITHMETIC ERROR AT THE RUN TIME USING SUBRC----
    DATA : VALUE1 TYPE I.
    CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
    VALUE1 = 1 / 0.
    WRITE : VALUE1.
    ENDCATCH.
    IF SY-SUBRC = 1.
    WRITE : ' IT MAKES ERROR'.
    ELSE.
    WRITE : VALUE1.
    ENDIF.
    Thanks,
    Reward If Helpful.

  • How to enhance Standard Extractor for 0CUSTOMER_ATTR

    Hi,
    I need to enhance the standard extractor of 0CUSTOMER_ATTR in order to populate the newly added attributes.
    I have few questions:-
    1) Will there be any impact of manually adding attributes to 0CUSTOMER on the data flow/where used list of 0CUSTOMER.
    2) In order to get the master data for newly added attributes we will need to enhance the extractor. Could you let me know the entire process of enhancing the standard extractor.
    3) Will it be safe to make a copy of 0CUSTOMER as ZCUSTOMER, add the new attributes in ZCUSTOMER and use ZCUSTOMER for our requirement. In this case also we will need to enhance the extractor.
    Your inputs will be helpful.
    Thanks,
    Naveen Kr. Choudhary

    1) Will there be any impact of manually adding attributes to 0CUSTOMER on the data flow/where used list of 0CUSTOMER.
    No there will not be any impact for the where used list of 0CUSTOMER info object, there will be effect once the enhanced data source is replicated to BI side.
    2) In order to get the master data for newly added attributes we will need to enhance the extractor. Could you let me know the entire process of enhancing the standard extractor.
    SE11 --> create the Structure
    Tcode: RSA6 -> Double click on the Data source --> Now in the DS:customer version screen you can see the extract structure name --> double click on it -->Next you will find an option of Append Structure button --> click on it -->
    Add the necessary field's in the Append Structure with Component Type:. Before you exit, make sure that you activate the
    structure by clicking on the activate button.
    Next
    -->You need to confirm that the Added filed has been added to the DataSource and that it will be available to BW. When you go  back at the Postprocess Datasource and Hierarchy screen(RSA6), select the same DataSource again and press the Change DataSource button .
    Check for the filed that you had appended, it will be appeared at the bottom of the extract structure.
    Once this is done now the appended fileds are ready in DS, now we need to populate the data from the corresponding tables.
    For this Select the Data source 0customer_attr --> click on Function enhancement --> enter the project name and next enter the Enhancement RSAP0002 This enhancement has four components that are specific to each of the four types of R/3
    DataSources:
    Transaction data EXIT_SAPLRSAP_001
    Master data attributes EXIT_SAPLRSAP_002
    Master data texts EXIT_SAPLRSAP_003
    Master data hierarchies EXIT_SAPLRSAP_004
    With these four components , any R/3 DataSource can be enhanced suing the above 4 Function module. In this case, you are enhancing a Master data DataSource, so you only need EXIT_SAPLRSAP_002 .
    Next we need ABAP developer in order to enahance the DS and write the logic to populate the values to the filed from the source table.
    once this is done save the code and activate it.
    Next fill the set up tables and  Goto RSA3 tcode check the data source and check for the fileds that were appened are populated with the values or not.
    (for more detailed steps our friend Chowdary has send u the links go through them)
    3) Will it be safe to make a copy of 0CUSTOMER as ZCUSTOMER, add the new attributes in ZCUSTOMER and use ZCUSTOMER for our requirement. In this case also we will need to enhance the extractor.
    I dont think there is a need for creating a new ZCUSTOMER , you can use the standard one.
    Edited by: prashanthk on Aug 13, 2010 9:02 AM

  • ABAP Runtime Error CONVT_NO_NUMBER

    Dear all,
    I am calling transaction F-02 for posting G/L Account from an FM. I tried with the Header Data and Account and Cost Centre but it says ABAP Runtime Error CONVT_NO_NUMBER. I undersood that its because of the Number interpretation and coded accordingly but still it throws the same error.
    Can you please help me in this....
    With Regards
    Jay

    Dear all,
    Thanks for giving me some hope. I tried the possiblities but still it says the same error. I have pasted the FM in nutshell. Can you please see that and help me.
    FUNCTION ZUPLOAD_XLS.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(P_BUKRS) LIKE  BKPF-BUKRS
    *"     REFERENCE(P_BLDAT) LIKE  BKPF-BLDAT
    *"     REFERENCE(P_BUDAT) LIKE  BKPF-BUDAT
    *"     REFERENCE(P_MONAT) LIKE  BKPF-MONAT
    *"     REFERENCE(P_WAERS) LIKE  BKPF-WAERS
    *"     REFERENCE(P_BKTXT) LIKE  BKPF-BKTXT
    *"  TABLES
    *"      IN_JE_XLS STRUCTURE  ZFGI_JE_STR
    ITAB-BSCHL = 40.
    ITAB-SAKNR = '812070'.
    ITAB-WRBTR = '30881.00'.
    ITAB-KOSTL = '11620009'.
    APPEND ITAB.
      MOVE P_BUDAT(4)  TO TEM+4(4).
      MOVE P_BUDAT+4(2) TO TEM(2).
      MOVE P_BUDAT6(2) TO TEM2(2).
      MOVE P_BUDAT(4)  TO TEM+4(4).
      MOVE P_BUDAT+4(2) TO TEM(2).
      MOVE P_BUDAT6(2) TO TEM2(2).
      MOVE P_BLDAT(4)  TO TEM1+4(4).
      MOVE P_BLDAT+4(2) TO TEM1(2).
      MOVE P_BLDAT6(2) TO TEM12(2).
      MOVE P_BLDAT(4)  TO TEM1+4(4).
      MOVE P_BLDAT+4(2) TO TEM1(2).
      MOVE P_BLDAT6(2) TO TEM12(2).
    WRITE ITAB-WRBTR TO WRBTR.
    CONDENSE WRBTR NO-GAPS.
    WRITE ITAB-BSCHL TO T_BSCHL NO-GROUPING LEFT-JUSTIFIED.
      IF ITAB-KOSTL+8(2) EQ SPACE.
        MOVE ITAB-KOSTL       TO  HOLD_KOSTL+2(8).
        MOVE '00'      TO  HOLD_KOSTL(2).
      ELSE.
        MOVE ITAB-KOSTL       TO  HOLD_KOSTL.
      ENDIF.
    FIELD_LENGTH = STRLEN( ITAB-SAKNR ).
      IF FIELD_LENGTH EQ 10.
        MOVE ITAB-SAKNR      TO   HOLD_SAKNR.
      ELSE.
        MOVE ITAB-SAKNR(6)     TO   HOLD_SAKNR+4(6).
        MOVE '0000'      TO   HOLD_SAKNR(4).
      ENDIF.
    PERFORM NEW_DYNPRO USING 'SAPMF05A' '0100'.
    PERFORM NEW_FIELD USING 'BKPF-BUDAT' TEM.
    PERFORM NEW_FIELD USING 'BKPF-BLDAT' TEM1.
    PERFORM NEW_FIELD USING 'BKPF-MONAT' P_MONAT.
    PERFORM NEW_FIELD USING 'BKPF-WAERS' 'USD'.
    PERFORM NEW_FIELD USING 'BKPF-BUKRS' P_BUKRS.
    PERFORM NEW_FIELD USING 'BKPF-BKTXT' P_BKTXT.
    PERFORM NEW_FIELD USING 'RF05A-NEWBS' T_BSCHL.
    PERFORM NEW_FIELD USING 'RF05A-NEWKO' HOLD_SAKNR.
    PERFORM NEW_FIELD USING 'BDC_OKCODE' '/11'.
    PERFORM NEW_DYNPRO USING 'SAPMF05A' '0300'.
    PERFORM NEW_FIELD USING 'BSEG-WRBTR' WRBTR.
    PERFORM NEW_FIELD USING 'RF05A-NEWKO' '          '.
    PERFORM NEW_FIELD USING 'RF05A-NEWBS' '  '.
    PERFORM NEW_FIELD USING 'BDC_OKCODE' '/11'.
    PERFORM NEW_DYNPRO USING 'SAPLKACB' '0002'.
    PERFORM NEW_FIELD USING 'COBL-KOSTL' HOLD_KOSTL.
    CALL TRANSACTION 'F-02' USING BDCDATA MODE 'A' UPDATE 'S'.

  • ABAP Runtime Error CONV_NO_NUMBER

    Dear all,
    I am calling transaction F-02 for posting G/L Account from an FM. I tried with the Header Data and Account and Cost Centre but it says ABAP Runtime Error CONV_NO_NUMBER. I undersood that its because of the Number interpretation and coded accordingly but still it throws the same error.
    Can you please help me in this....
    With Regards
    Jay

    Hi Sharma
    the dump occured CX_SY_CONVERSION_NO_NUMBER
    while executing the transaction some of the procedures may not raise and this dump throws, make a note of the actions in st22 and intimate to the ABAP team.
    Follow the link
    http://www.bwexpertonline.com/downloads/source_code.doc
    Regards
    Bhaskar
    Edited by: bhaskar1818 on Jun 20, 2008 5:25 PM

  • ABAP runtime error for 0CRM_OPPT_H and I while running RSA3

    hello Gurus,
         I'm having problems while running RSA3 transaction for these data sources.
    0CRM_OPPT_H
    0CRM_OPPT_I
    0CRM_SALES_ACT_1
    0CRM_SALES_ACT_I.
    I'm getting ABAP runtime error for these.
    This is the error:
    Runtime Error          CALL_FUNCTION_CONFLICT_TAB_TYP
    Exception              CX_SY_DYN_CALL_ILLEGAL_TYPE
    I tried finding OSS notes for these, but I didn’t succeed.
    I activated the data source from RSA5, and then I tried RSA3. That time I got “Errors occurred during extraction”.
    After that I activated delta at BWA5, then I started getting runtime error.
    Even though I activated at BWA5, I am not able to see the data sources at BWA7.
    Am I missing any thing…please guide me through this….
    Thanks
    RKR

    Thanks for your replay... All the DS and related tables are active..
    But wen I tried to re-generate the DS again... this is the warning I'm getting... Any idea why I'm getting this....
    The even-numbered length of the DEC field SAMPLE_QTY_ALLOW can lead to problems
    <b>Message no. R8569</b>
    <b>Diagnosis</b>
    You want to use the field SAMPLE_QTY_ALLOW in the extract structure for DataSource 0CRM_OPPT_I. This field has a field of type 'DEC' (or 'CURR' or 'QUAN') with an even number of characters.
    This can create problems since the length resulting from calculations in ABAP (for example, in extractors or Customer Exits for extraction) is too large to be inserted in the database later (PSA in BW), causing a short dump.
    <b>Procedure</b>
    This warning is only relevant when the maximum length of this field is exceeded during extraction, for example when the field is expanded in the Customer Exit through a calculation.
    More information and a remedy can be found in SAP Note 641744.
    When I search the OSS note, SAP suggesting to apply 883310 note.
    In my company we are using CRM 4.0 servie pak8. SAP suggsting to install service pak 11, but my client is not interested to upgrade to 11 as CRM people are working on service pak 8.
    By any chance we can use specific note which change the ABAP code to solve this problem... Please give me some suggetions...
    Thanks
    RKR

  • ABAP-Coding for EVERY Key figure in infocube 0RT_C02

    Hello gurus;
          Does anybody know which is the reason for Abap-coding for every key figure in infocube 0rt_c02 from InfoSource 2lis_13_vditm?
    Thanks in advanced!
    Csr

    Hi,
    this is done like this in the business content because the extractor is providing the data with a process key; this process key is then translated into meaningfull business objects (key figures);
    fro instance ProcessKey 202 in application SD is reflecting Credit memos:
    * Credit Memo
      IF COMM_STRUCTURE-PROCESSKEY = '202'
        AND COMM_STRUCTURE-BWAPPLNM EQ 'SD'.
    * currency convert
        IF COMM_STRUCTURE-COST <> 0.       "Value in document UNIT
          PERFORM LOC_CURR_CONVERT
            USING    COMM_STRUCTURE-COST   "Value in doc UNIT
                     COMM_STRUCTURE-TRANS_DATE     "Date for exchange
                     COMM_STRUCTURE-DOC_CURRCY     "Document Currency
                     COMM_STRUCTURE-LOC_CURRCY     "Local currency
    *                COMM_STRUCTURE-EXCHG_RATE     "Exchanging rate
                     COMM_STRUCTURE-/BIC/ZEXRATEAC "Exchanging rate Acctn
            CHANGING RESULT.
    * the KPI's must be turned to positive because the SD-extractors
    * allways deliver them neg. if it's a process back (e.g. return order)
          RESULT = RESULT * ( -1 ).
          UNIT = COMM_STRUCTURE-LOC_CURRCY.
    * if the returncode is not equal zero, the result will not be updated
          RETURNCODE = 0.
        ELSE.
    * if the returncode is not equal zero, the result will not be updated
          RETURNCODE = 4.
        ENDIF.
      ELSE.
    * if the returncode is not equal zero, the result will not be updated
        RETURNCODE = 4.
      ENDIF.
    the above routine is quite self explaining the code.
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

Maybe you are looking for

  • Question on SWF animation and timing

    I am trying to do a single splash page for an event. Every thing is working OK except I want a button link to a registration site to drop into the frame after about 20 seconds on page load. This isn't a problem except that I have a audio track that p

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09. I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB. I would know if I must configure my apex in order to

  • Error:numeric or value error : buffer too small

    hi can any one please help me? i am developing the application in HTMLDB. i have an error numeric or value error: char buffer too small. i have an attributes plan_name,type......att_header1 in the database. The data's were inserted to the database, w

  • "Request variable" in dashboard prompt

    Can I really change the value of a session variable using Set variable "Request variable" option in a dashboard Prompt. If "yes", can someone explain with an example. If "no" is there any other way to change the value of a session variable in specifi

  • APPLICATION created in Admin BPC client can't see in Office BPC client

    `Hello Gurus, I am an SAP BI Consultant and having around 4 years of experience. I have started to work on BPC 7.5. I have created dimensions and APPLICATION as well successfully. however when i try to open my Microsoft office BPC client, i am able t