Some Error in ABAP Code

Hello,
I have the below code which gives the error message "In the OO context either an INTO or an ASSIGNING specification or the addition "TRANSPORTING NO FIELDS" must be used. addition "TRANSPORTING NO FIELDS" must be used."
Any suggestion is appreciated.
*-- CODE:
DATA: it_dates TYPE STANDARD TABLE OF /BIC/AZDDINVDT00,
           hold_month(2) type c,
           hold_day(2) type c,
           hold_year(4) type c,
           hold_date TYPE /BIC/OIZOCBEGDAT.
    CLEAR : it_dates.
SELECT *
          FROM /BIC/AZDDINVDT00
          INTO TABLE it_dates
          WHERE /BIC/ZOCDLDTYP = 'B'.
      CHECK sy-subrc = 0.
      read table it_dates index 1.
      hold_month = it_dates-/bic/zocbegdat+4(2).
      hold_day = it_dates-/bic/zocbegdat+6(2).
      hold_year = it_dates-/bic/zocbegdat+0(4).
      concatenate hold_year hold_month hold_day into hold_date.
      <source_fields>-/BIC/ZOCBEGDAT = hold_date.}

Jerry,
I made the changes but still having a small problem running the code. Below is my code & the error that it displays.
DATA: it_dates TYPE STANDARD TABLE OF /BIC/AZDDINVDT00,
          wa_dates TYPE /BIC/AZDDINVDT00,
          hold_month(2) type c,
          hold_day(2) type c,
          hold_year(4) type c,
          hold_date TYPE /BIC/OIZOCBEGDAT.
CLEAR : it_dates.
SELECT *
          FROM /BIC/AZDDINVDT00
          INTO TABLE it_dates
          WHERE /BIC/ZOCDLDTYP = 'B'.
      CHECK sy-subrc = 0.
      read table it_dates INTO wa_dates index 1.
      hold_month = it_dates-/bic/zocbegdat+4(2).
      hold_day = it_dates-/bic/zocbegdat+6(2).
      hold_year = it_dates-/bic/zocbegdat+0(4).
      concatenate hold_year hold_month hold_day into hold_date.
     <source_fields>-/BIC/ZOCBEGDAT = hold_date.
Error is: "IT_DATES" is a table without a header line and therefore has no component called "/BIC/ZOCBEGDAT".
Please suggest.
Thanks.

Similar Messages

  • Error in ABAP code whield efining structures

    Hello,
    I am getting following error when I run ABAP code.
    Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
    DATA: BEGIN OF I_ROLE occurs 0,
          ROLE LIKE ZROLE_OWNER-ROLE,
          END OF I_ROLE.
    DATA: BEGIN OF I_RATT occurs 0,
          ROLENAME LIKE AGR_1251-AGR_NAME,
          OBJECT LIKE AGR_1251-OBJECT,
          FIELD LIKE AGR_1251-FIELD,
          LOW LIKE AGR_1251-LOW,
          HIGH LIKE AGR_1251-HIGH,
          END OF I_RATT.
    DATA: WA_RATT LIKE I_RATT occurs 0.
    SELECT ROLE from ZROLE_OWNER into table I_ROLE
                where SFLAG = ''.
    LOOP AT I_ROLE.
    *This will append all the values for above condition in WA-RATT.
    SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
                 INTO TABLE WA_RATT
                 WHERE AGR_NAME = I_ROLE-ROLE.
    APPEND WA_RATT TO I_RATT.
    ENDLOOP.
    I am getting error that WA_RATT cannot be converted to line type I_RATT.

    hi,
    Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
    DATA: BEGIN OF I_ROLE occurs 0,
    ROLE LIKE ZROLE_OWNER-ROLE,
    END OF I_ROLE.
    DATA: BEGIN OF I_RATT occurs 0,
    ROLENAME LIKE AGR_1251-AGR_NAME,
    OBJECT LIKE AGR_1251-OBJECT,
    FIELD LIKE AGR_1251-FIELD,
    LOW LIKE AGR_1251-LOW,
    HIGH LIKE AGR_1251-HIGH,
    END OF I_RATT.
    DATA: WA_RATT LIKE line of I_RATT .
    SELECT ROLE from ZROLE_OWNER into table I_ROLE
    where SFLAG = ''.
    LOOP AT I_ROLE.
    *This will append all the values for above condition in WA-RATT.
    SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
    INTO WA_RATT
       up to 1 rows
    WHERE AGR_NAME = I_ROLE-ROLE.
    endselect.
    APPEND WA_RATT TO I_RATT.
    ENDLOOP.
    Thanks,
    Rajinikanth.

  • Error in ABAP code generation?

    Hi,
    I am using OWB 10.1 to generate ABAP code for SAP-Data-Extraction. For extracting date values there are two APAB lines which (want to) produce one line in the result SQLLDR-Script. ABAP will accept only around 73 characters per line and this is the reason for the two lines.
    But ABAP does not accept a line break inside a string and thus this code runs into an ABAP-error.
    This all seems to be standard - has anyone a solution?
    generated ABAP-lines:
    Line1: TRANSFER ',ERDAT_DATUM_AN_DEM_DER_SATZ_HI DATE ''yyyymmdd'' NULLIF
    Line2: ERDAT_DATUM_AN_DEM_DER_SATZ_HI=''00000000''' TO DATAFILENAME.
    many thanks

    Hello Jean-Pierre,
    many thanks for your answer. Not the expected solution but it works. Another solution we found is to put an ampersand behind the first line, which tells ABAP that this is a line break. But also here manually work is necessary and also changing generated code.
    Cheers
    Stefan

  • LKM SAP BW to Oracle (SQLLDR) generates sintax error in ABAP code.

    Hi Experts,
    We are installing a SAP BW KM's in ODI 11g.
    Actually, we are able to make reverse ingeneering succesfully.
    Now we want to use the LKM in order to extract SAP data.
    The KM fails, in step Generate ABAP Code. The code is uploaded to SAP system but with sintaxis errors.
    That's the beginning of the SAPAbapExecuteOpenTool_8001_7001.log.
    +##################################################+
    +############ Open Tool Logger ####################+
    +##################################################+
    +############ Upload value: 1+
    +############ Execute value: 1+
    +############ BASE RKM FLAG: 0+
    +############ ZRFC_RUN_INSTALL: 1+
    +############ Abap Function Name: ZODI_8001_7001+
    +############ Sap Host Name: XXXXXXXX+
    +############ Sap User Name: XXXX+
    +############ Sap password: ********+
    +############ Sap Client: 100+
    +############ Sap language: ES+
    +############ Sap system no: 00+
    +############ Sap Connection Pool Name: SAP_ODI_LKM_POOL_GLOBAL+
    +############ Sap Connection Pool Size: 10+
    +############ Sap Function group name: ZODIBW_LKM_FGRP+
    +############ File Delimiter:+
    +############ File Name: ZODI_8001_7001.txt+
    +############ FTP Host: XXXXXXXXX+
    +############ FTP User: ftpbi+
    +############ FTP Password: ********+
    +############ FTP Passive Mode: 1+
    +############ FTP Transfer Time out: 100000+
    +############ User abap parameter names: IV_DELIMITER,CHAR1;IV_FILENAME,CHAR255;IV_USER,CHAR35;IV_PWD,CHAR35;IV_HOST,CHAR35;IV_HASHVALUE,CHAR35;IV_PATH,CHAR35;IV_REQUID_L,RSSID;IV_REQUID_H,RSSID+
    +############ Abap rfc table parameters: RETURN,BAPIRETURN;ET_FILE_RETURN,BAPIRET2+
    +############ Log File Name: /tmp/SAPAbapExecuteOpenTool_8001_7001.log+
    +############ OpenHub Path: /tmp/+
    +############ Delta Extraction First Request ID : 0+
    +############ Delta Extraction Last Request ID : 0+
    +############ SAP Development Class : ZODIBW_PCKG+
    +############ Max Row Count :+
    +############ Fetch Batch Size :+
    +############ Hash Value Marker: HVM+
    +############ Generated Program:+
    *** ODS DSO extraction
    TYPES: BEGIN OF ty_final,
    +/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR+
    TYPE
    +/BIC/AZOFI_UTE00-/BIC/ZFI_SOCOR,+
    +/BIC/AZOFI_UTE00_SOURSYSTEM+
    TYPE
    +/BIC/AZOFI_UTE00-SOURSYSTEM,+
    END OF ty_final.
    In the SAP GUI shows a sintaxis error.
    Functions Module ZODI_8001_7001. line 25
    The name "/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR" is longer that allowed.
    +30 characters.+
    Really the TYPE "/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR" has 31 characters.
    The sufix "/BIC/" is the "NAMESPACE", a SAP grouping concept.
    AZOFI_UTE00 is a table name.
    ZFI_SOCOR is a column name.
    Are this sufix correct in the APAP code?
    Has anyone had that problem?
    Any comment will be wellcome.
    Thank's in advance.

    Hi Somchai,
    r U able to resolve ur issue ..........i'm also struck there at the same point.
    I am using shared folder for file transfer and my error message is
    java.lang.RuntimeException: Error occured in open tool execute method...Error in executing ABAP program...Error in executing ABAP program...Error occurred when creating dataset\\<hostname>\bi-interface$\ZODI_11001_12001_GLOBAL.txt
    Thanks.
    Edited by: Drona on Mar 26, 2012 7:25 AM

  • Some errors with the code

    hello all!
    i am trying to write simple code but have some errors.
    DECLARE
    id NUMBER;
    BEGIN
    id:=SELECT id from technician where salary=(select MIN(salary) from technician);
    DBMS_OUTPUT.put_line(id);
    END;

    Your simple program becomes complex! As pointed out, it will blow up if your query returns more than one row. If you're just doodling with your code, you can add "and rownum=1" to your where clause. That will prevent the "too many rows returned" exception. Of course, it is basically randomly picking one of several values in the DB, so it's not good for production code.
    For real code, there are at least two common options:
    (1) Use your select to create a cursor, which lets you loop through each matching row. Good when multiple rows are normal and you really want to use them all.
    (2) Create an integer variable, such as row_count. Select count(*) into row_count ... from technician t where salary....
    If row_count = 1 then use the assignment you were going to do. Otherwise, stop processing and log an error (too many or too few rows returned...).
    This is good when you expect EXACTLY one technician to have that salary, and anything else is an error.
    Andy

  • Error in Abap code - Unknown column name

    Hi
    I have this error in my code.
    Unknown column name "SUM(EKBE-MENGE)" field list. field list. field
    My code
    *Select sum(ekbe-menge)
           into MCSTRUCT-ZQuant
          from ekbe*
    How do I resolve this.
    thanks

    Hi,
    Try the following statement:
    Select sum( menge )
    into MCSTRUCT-ZQuant
    from ekbe.
    hope it helps...
    regards,
    Raju

  • Error in Abap code when combining data from two tables

    Hi,
    I got error in my code when  i try to select data based on two tables
    error message Unknown column name "(" field list. field list. field list. field list.
    select ( WLK1~ARTNR )
              into ZOXE1D0041-ZZPROMO
              from WLK1 INNER JOIN T001W
              ON WLK1FILIA = T001WKUNNR.
              where WLK1-PFLKN NE 'P' AND
              WLK1-QUELL NE '2'.
    Table 1 WLK1
    ARTNR   FILIA       PFLKN                  QUELL
    001         C001        P                           2
    002         C001        A                          1
    Table 2  T001W
    KUNNR                WERKS
    C001                    P001
    My requirement is to extract from article number from table WLK1 where the customer number (FILIA) matches with Customer number from (T001W) and plant (WERKS).
    In conclusion I like to have this only this row
    ARTNR   FILIA       PFLKN                  QUELL
    002         C001        A                          1

    Hi
    You need to append every article number after each select is performed
    is this an intermal table ZOXE1D0041 with header line ? if yes
    then do this way
    select WLK1~ARTNR
    into ZZARTICLE
    from WLK1 INNER JOIN T001W
    ON WLK1FILIA = T001WKUNNR
    where WLK1~PFLKN NE 'P' AND
    WLK1~PFLKN NE 'S' AND
    WLK1~QUELL NE '2'.
    ZOXE1D0041-ZZLISTARTICLE = ZZARTICLE.
    Append ZOXE1D0041.  " <edited>
    endselect.
    then ZOXE1D0041 will have all article numbers.
    Edited by: Sonal Patel on Sep 5, 2009 10:27 AM

  • Error in ABAP code

    Hi experts..
    There is one one routine in BI which is written in ABAP..
    When I try to compile that code.. it gives me following error :
    E:Field "/BI0/APP_O0100" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
    Can you please tell me what is the reason of this error.
    Regards
    Swati Phadtare

    Hi,
    This i think is because you have not activated the DSO 0PP_O01..... Please check in your AWB whether this object exits. If it exists then please activate this DSO again.
    If it does not exist then please install it from your BI content.
    If it exists and you need to find the related DB tables
    Go to SE12
    Give * PP_O01 * and press F4, If the DSO has been created you will get some search results.
    From there please select the active table.
    Regards,
    Pramod
    Edited by: Pramod Manjunath on Oct 6, 2008 3:39 PM

  • Lead Creation Error thro ABAP Code

    Hi CRM ABAP Experts,
    I have written a code for lead creation by referring SDN Code. when i execute code , lead is created and transaction get saved in to system. but atlast one error comes. plz help me.  when i pass testrun = 'X'  then i am not getting error but lead trasaction is not created. and when i passedtestrun = blank then lead is created but gives below error.Below error i am facing.
    Short text
        An exception occurred that was not caught.
    What happened?
        The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
         anywhere along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_METHODCALL_PPF=============CP' has to be
        terminated.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
         caught in
        procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", 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:
        Could not find the referenced object with the OID
        "00000000000000000000000000000000" (instance GUID) and
    My Code is as follows
    DATA: it_HEADER type standard table of  BAPIBUS2000108_HEADER_INS.
    DATA: wa_HEADER  like line of it_HEADER.
    DATA:it_ORGANISATION TYPE STANDARD TABLE OF     BAPIBUS20001_ORGMAN_INS,
         wa_ORGANISATION LIKE LINE OF it_ORGANISATION.
    DATA: it_partner type table of BAPIBUS20001_PARTNER_INS.
    DATA: wa_partner like line of it_partner.
    DATA:HEADERX TYPE STANDARD TABLE OF     BAPIBUS2000108_HEADER_INSX,
         st_headerx TYPE bapibus2000108_header_insx,
         PARTNERX TYPE STANDARD TABLE OF BAPIBUS20001_PARTNER_INSX,
         st_partnerx TYPE bapibus20001_partner_insx,
         i_orgx  TYPE STANDARD TABLE OF BAPIBUS20001_ORGMAN_INSX,
         st_orgx TYPE bapibus20001_orgman_insx,
         i_save TYPE TABLE OF bapibus20001_object_id,
         i_return TYPE TABLE OF bapiret2,
         DATEX  TYPE STANDARD TABLE OF BAPIBUS20001_APPOINTMENT_INSX.
    DATA:i_itemx TYPE TABLE OF bapibus20001_item_insx,
         i_item TYPE TABLE OF bapibus20001_item,
         st_itemx TYPE bapibus20001_item_insx,
         st_item TYPE bapibus20001_item,
         i_schedulex TYPE TABLE OF bapibus20001_schedlinx,
         i_schedule TYPE TABLE OF bapibus20001_schedlin,
         st_schedulex TYPE bapibus20001_schedlinx,
         st_schedule TYPE bapibus20001_schedlin.
    DATA :c_x TYPE char01 VALUE 'X',
          TESTRUN type BAPIFLAG-BAPIFLAG.
    data i_input TYPE TABLE OF bapibus20001_input_fields.
    data st_input TYPE bapibus20001_input_fields.
    DATA:ORG_NO TYPE OBJEKTID,
         PARTNER_NO1 TYPE BU_PARTNER,
         CUST_BP TYPE BU_PARTNER,
         SALE_OFF TYPE CRMT_SALES_ORG_RESP.
    DATA:msg TYPE ZRETURN_ERROR.
    DATA:w_item TYPE CRMT_ITEM_NO,
         w_handle TYPE CRMT_HANDLE.
    CLEAR:st_headerx.
    st_headerx-handle = c_x.
    st_headerx-process_type = c_x.
    st_headerx-DESCR_LANGUAGE = c_x.
    st_headerx-POSTING_DATE = c_x.
    st_headerx-lead_type = c_x.
    st_headerx-importance = c_x.
    st_headerx-source = c_x.
    APPEND st_headerx TO headerx.
    CLEAR wa_header.
    wa_HEADER-HANDLE = '0000000001'.
    wa_HEADER-PROCESS_TYPE = 'ZCDL'.
    wa_HEADER-DESCR_LANGUAGE = 'EN'.
    wa_HEADER-POSTING_DATE = '20100603'.
    wa_HEADER-IMPORTANCE = '5'.
    wa_HEADER-SOURCE = '019'.
    wa_HEADER-LEAD_TYPE = '0016'.
    APPEND WA_HEADER TO IT_HEADER.
    CLEAR:st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'ORDERADM_H'.
    st_input-fieldname = 'PROCESS_TYPE'.
    APPEND st_input TO i_input.
    CLEAR st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'LEAD_H'.
    st_input-fieldname = 'SOURCE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'IMPORTANCE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'LEAD_TYPE'.
    APPEND st_input TO i_input.
    *To fill the Organization X Structure
    CLEAR:st_orgx.
    st_orgx-ref_handle = c_x.
    st_orgx-ref_kind = c_x.
    st_orgx-dis_channel = c_x.
    st_orgx-sales_org_resp = c_x.
    APPEND st_orgx TO i_orgx.
    *To fill the Organization Structure
    CLEAR:wa_ORGANISATION.
    wa_ORGANISATION-ref_handle = '0000000001'.
    wa_ORGANISATION-ref_kind = 'A'.
    wa_ORGANISATION-dis_channel = '01'.
    wa_ORGANISATION-sales_org_resp = 'O 50000041'.
    APPEND wa_ORGANISATION TO it_ORGANISATION.
    *Fill input fields for Organization data
    CLEAR st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'ORGMAN'.
    st_input-fieldname = 'DIS_CHANNEL'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'SALES_ORG'.
    APPEND st_input TO i_input.
    *To fill the Partner X Structure
    st_partnerx-ref_handle = c_x.
    st_partnerx-ref_kind = c_x.
    st_partnerx-ref_partner_handle = c_x.
    st_partnerx-kind_of_entry = c_x.
    st_partnerx-partner_no = c_x.
    st_partnerx-partner_fct = c_x.
    st_partnerx-no_type = c_x.
    st_partnerx-display_type = c_x.
    st_partnerx-MAINPARTNER = c_x.
    APPEND st_partnerx TO partnerx.
    *To fill the Partner Structure
    *CLEAR:wa_partner.
    *wa_partner-ref_handle = '0000000001'.
    *wa_partner-ref_kind = 'A'.
    *wa_partner-ref_partner_handle = '0001'.
    *wa_partner-kind_of_entry = 'C'.           """""""A
    *wa_partner-partner_no = '62563'.
    *wa_partner-partner_fct = '00000022'.
    *wa_partner-no_type = 'BP'.
    *wa_partner-display_type = 'BP'.
    *wa_partner-MAINPARTNER = 'X'.
    *APPEND wa_partner TO it_partner.
    CLEAR:wa_partner.
    wa_partner-ref_handle = '0000000001'.
    wa_partner-ref_kind = 'A'.
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-kind_of_entry = 'C'.         """""""A
    wa_partner-partner_no = '62564'.
    wa_partner-partner_fct = '00000021'.
    wa_partner-no_type = 'BP'.
    wa_partner-display_type = 'BP'.
    wa_partner-MAINPARTNER = 'X'.
    APPEND wa_partner TO it_partner.
    CLEAR:wa_partner.
    wa_partner-ref_handle = '0000000001'.
    wa_partner-ref_kind = 'A'.
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-kind_of_entry = 'C'.    """"""""A
    wa_partner-partner_no = '71024'.
    wa_partner-partner_fct = 'ZCDLSM'.
    wa_partner-no_type = 'BP'.
    wa_partner-display_type = 'BP'.
    wa_partner-MAINPARTNER = 'X'.
    APPEND wa_partner TO it_partner.
    *Fill input fields for Partner data
    CLEAR st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'PARTNER'.
    *st_input-logical_key = w_logickey_partner.
    st_input-fieldname = 'DISPLAY_TYPE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'KIND_OF_ENTRY'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'NO_TYPE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'PARTNER_FCT'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'PARTNER_NO'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'MAINPARTNER'.
    APPEND st_input TO i_input.
    *To fill the Item X Structure
    st_itemx-handle = c_x.
    st_itemx-header_handle = c_x.
    st_itemx-ordered_prod = c_x.
    st_itemx-number_int = c_x.
    st_item-mode = c_x.
    APPEND st_itemx TO i_itemx.
    *To fill Schedule line X Structure
      st_schedulex-item_handle = c_x.
      st_schedulex-handle = c_x.
      st_schedulex-quantity = c_x.
      st_schedulex-logical_key = c_x.
    APPEND st_schedulex TO i_schedulex.
    CLEAR: w_item, w_handle.
    w_item = '0000000010'.
    *To fill the Item Structure
    w_handle = 1.
    st_item-handle = w_handle.
    st_item-header_handle = '0000000001'.
    st_item-ordered_prod = '400000120' .
    st_item-number_int = w_item.
    st_item-mode = 'A'.
    APPEND st_item TO i_item.
    *To fill Schedule line Structure
    DATA:qty TYPE CRMT_SCHEDLIN_QUAN VALUE '1'.
      st_schedule-item_handle = w_handle.
      st_schedule-quantity = qty.
    APPEND st_schedule TO i_schedule.
    *Fill input fields for Item data
    CLEAR st_input.
    st_input-ref_handle = w_handle.
    st_input-ref_kind = 'B'.
    st_input-objectname = 'ORDERADM_I'.
    st_input-fieldname = 'MODE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'NUMBER_INT'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'ORDERED_PROD'.
    APPEND st_input TO i_input.
    Fill input fields for schedule line data
    CLEAR st_input.
    st_input-ref_handle = w_handle.
    st_input-ref_kind = 'B'.
    st_input-objectname = 'SCHEDLIN'.
    st_input-fieldname = 'LOGICAL_KEY'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'QUANTITY'.
    APPEND st_input TO i_input.
    CLEAR testrun.
    *Testrun = 'X'.
    CALL FUNCTION 'BAPI_LEAD_CREATEMULTI'
    EXPORTING
       TESTRUN            = Testrun
    TABLES
       HEADERX            = headerx
       PARTNERX           = partnerx
       ORGANISATIONX      = i_orgx
       itemx              = i_itemx
       sched_linx         = i_schedulex
       HEADER             = it_header
       ORGANISATION       = it_ORGANISATION
       PARTNER            = it_partner
       item               = i_item
       SCHED_LIN          = i_schedule
       INPUT_FIELDS       = i_input
       RETURN             = i_return
       SAVED_PROCESS      = i_save  .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'x'.
    IF SY-SUBRC = 0.
      IF sy-subrc = 0.
      ENDIF.
    ENDIF.

    Hi,
    Look at the post. No one will be able to understand anything out of this. Kindly Repaste code using  markup.
    Regards,
    Harsh.
    Edited by: Harsh Saxena on Aug 28, 2010 11:40 AM

  • Errors in abap code!!

    Hi gurus,
    iam getting errors like
    1) l_biw_marc_s–matnr is unknown..
    2) l_tabix is unkown ..etc..
    code is :
    TABLES: BIW_MARC_S.
    DATA: l_biw_marc_s LIKE biw_marc_s,
    v_zzstprs LIKE mbew-stprs.
    CASE i_datasource.
    WHEN '0MAT_PLANT_ATTR'(001).
    LOOP AT i_t_data INTO l_biw_marc_s.
    l_tabix = sy-tabix.
    clear v_zzstprs.
    SELECT SINGLE stprs FROM mbew INTO v_zzstprs
    where matnr = l_biw_marc_s–matnr and
    bwkey = l_biw_marc_s – WERKS.
    IF sy-subrc = 0.
    l_biw_marc_s-zzstprs = v_zzstprs.
    ENDIF.
    MODIFY i_t_data FROM l_biw_mvke_s INDEX l_tabix.
    ENDLOOP.
    ENDCASE.
    pls help me out!!
    reply shall be appriciated! as iam not technical bw guy!!
    Regards,
    Jay

    Hi,
    add a statement
    data: l_tabix type i.
    to your code. That should solve one error. The other one might be a spelling issue. Check if you spelled it correctly in your code.
    regards
    Siggi

  • Error in the ABAP code

    Hello all,
    I am getting error in ABAP code .
    The error is:Field "0" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    I have statement as calmonth = sy-datum + 0(6).
    Any ideas are always welcome
    Thanks,
    JB

    Thanks every body.
    eliminating blanks worked.
    AS I am new to ABAP,I have one more error saying
    Unable to interpret "IT_YEAR". Possible causes of error: Incorrect spelling or comma error.The error occured at the staement:
    <b>read it_year with key /BIC/LESS = calmonth+0(4) binary search.</b>
    IT_YEAR is an internal table
    data: it_year like /BIC/PZ_JB occurs 0 with header line.
    Any ideas!!
    JB

  • Update Routine - ABAP code

    Hi,
    I am trying to write an update routine to calculate and populate fields in my ODS infoprovider.
    one of the key figure field in my update rules is 'No. of Days'. Based on the 'No. of Days' range, I want to send a key figure(Infoobject:Due amount) value to another infoobject(Bucket1, Bucket2, Bucket3 ect.)in my ODS infoprovider. For example, let's say,
    IF NO. OF DAYS = >0 AND <=30
       THEN TAKE THE DUE AMOUNT PUT IN BUCKET1
    ENDIF.
    ELSE IF
       NO. OF DAYS = >31 AND <=60
       THEN TAKE THE DUE AMOUNT PUT IN BUCKET2
    ENDIF.
    ELSE IF
       NO. OF DAYS = >61 AND <=90
       THEN TAKE THE DUE AMOUNT PUT IN BUCKET3
    ENDIF.
    I think, I know the data flow logic but I don't know how to code in ABAP language. If someone can give me some psuedo like ABAP code, I would appreciate your help with points.

    Hi Roa,
    I would do this in the start routine of the update rule.
    Here is a sample on how do this. You could use a case statement for this code also.
    Loop at Data_Packet.
    IF NO. OF DAYS = >0 AND <=30
    Data_Packet-BUCKET1 = DUE AMOUNT
    ELSEIF
    NO. OF DAYS = >31 AND <=60
    Data_Packet-BUCKET2 = DUE AMOUNT
    ENDIF.
    ELSEIF
    NO. OF DAYS = >61 AND <=90
    Data_Packet-BUCKET3 = DUE AMOUNT
    ENDIF.
    modify data_packet.
    endlloop.
    Cheers! Bill

  • Abap code standards

    Hi all,
    Please give me some information for abap code standards using in it companies.

    Hi
    Normally company or client specific.
    Mostly used common are
    Modification history should be there..
    for local variables l_variable
    Internal tables i_ vbak etc....
    any report shud start with z_modulename_programname

  • My First Abap Code Error

    Hi Experts,
    I have installed SAP Mini Basis in my computer and I am learning ABAP. As such, I am new to ABAP. I did my first Hello Program in it and it gave an error. I did not change the code in any aspect, but it gave an error. I simply copied it. I can understand that there is some error on statement CALL SCREEN 100. I do not know how to correct it.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Hello Program is given below:
    REPORT  ZKAN.
    Selection Screen
    PARAMETERS input(12) TYPE c DEFAULT 'Hello World!'.
    Dynpro
    CALL SCREEN 100.
    List
    SKIP TO LINE 10.
    POSITION 40.
    WRITE input.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The error is given below.
    ABAP runtime errors         DYNPRO_NOT_FOUND                   
           Occurred on     17.07.2010 at 20:09:43                                                                               
    Screen does not exist                                                               
    What happened?     
    The current ABAP/4 program "ZKAN " had to be terminated because                     
    one of the statements could not be executed.                                                                               
    This is probably due to an error in the ABAP/4 program.                                                                               
    The program had to be terminated.                                                   
    What can you do?     
    Note the actions and input that caused the error.                                                                               
    Inform your SAP system administrator.                                                                               
    You can print out this message by choosing "Print". Transaction ST22                
    allows you to display and manage termination messages, including keeping            
    them beyond their normal deletion date.                                            
    You can print this message by choosing "Print".                                     
    Transaction ST22 allows you to display and manage short dumps. It                   
    is especially useful if you want to keep a particular message.                      
    Error analysis     
    Program "ZKAN" tried to use screen 0100.                                            
    The screen does not exist.                                                                               
    How to correct the error     
    If the error is in one of your own ABAP programs or an SAP program that             
    you have modified, try to correct it.                                                                               
    If the error occurred in a non-modified SAP program, you may be                     
    able to find a solution in the SAP note system.                                     
    If you have access to the note system yourself, use the following                   
    search criteria:                                                                         
    "DYNPRO_NOT_FOUND"                                                                      
    "ZKAN " or "ZKAN "                                                                 
    "START-OF-SELECTION"                                                               
    "START-OF-SELECTION"                                                               
    If you cannot solve the problem yourself, please send the                           
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                                        
       To obtain this, select the "Print" function on the current screen.               
    2. A suitable hardcopy prinout of the system log.                                   
       To obtain this, call the system log with Transaction SM21                        
       and select the "Print" function to print out the relevant                        
       part.                                                                               
    3. If the programs are your own programs or modified SAP programs,                  
       supply the source code.                                                          
       To do this, you can either use the "PRINT" command in the editor or              
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred                  
       or which actions and input led to the error.                                     
    System environment     
    SAP Release.............. "46D"                                                                               
    Application server....... "ganesh"                                                  
    Network address.......... "10.10.0.10"                                              
    Operating system......... "Windows NT"                                              
    Release.................. "5.1"                                                     
    Hardware type............ "Intel 80686 (Mo"                                                                               
    Database server.......... "ganesh"                                                  
    Database type............ "MSSQL"                                                   
    Database name............ "MBS"                                                     
    Database owner........... " "                                                                               
    Character set............ "English_United State"                                                                               
    SAP kernel............... "46D"                                                     
    Created on............... "Oct 22 2000 19:55:29"                                    
    Created in............... "NT 4.0 1381 Service Pack 5 x86 MS VC++ 12.00"            
    Database version......... "SQL_Server_7.00 "                                                                               
    Patch level.............. "242"                                                     
    Patch text............... " "                                                                               
    Supported environment....                                                           
    Database................. "MSSQL 6.5.213 or higher, MSSQL 7.0.1 or higher"          
    SAP database version..... "46D"                                                     
    Operating system......... "Windows NT 4.0, Windows NT 5.0, Windows NT 5.1, ,        
    System build information:,                                                , LCHN :           
    330950"                                                                               
    User, transaction...     
    Client.............. 000                                                            
    User................ "BCUSER"                                                       
    Language key........ "E"                                                            
    Transaction......... "SE38 "                                                        
    Program............. "ZKAN "                                                        
    Screen.............. " "                                                            
    Screen line......... 0                                                                               
    Information on where termination occurred     
    The termination occurred in the ABAP/4 program "ZKAN " in                           
    "START-OF-SELECTION".                                                               
    The main program was "ZKAN ".                                                                               
    The termination occurred in line 10                                                 
    of the source code of program "ZKAN " (when calling the editor 100).          
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Thanks in advance,
    With kind regards,
    Shreeem.
    Edited by: Shreeem on Jul 18, 2010 5:22 AM

    Hi Shreem
    as you said that you are new to ABAP.
    in your code you have written.
    The Hello Program is given below: REPORT ZKAN. * Selection Screen PARAMETERS input(12) TYPE c DEFAULT 'Hello World!'. * Dynpro CALL SCREEN 100. * List SKIP TO LINE 10. POSITION 40. WRITE input.
    PARAMETERS statement creates a screen with input field to enter some values by user.
    you are setting the default values for your parameter as 'Hello World'.
    after that you have called a screen 100.
    and you are getting the error becasue before calling the screen you need to create a screen through SE51 and assign a number to your screen.
    and while calling mention that screen number in your program.
    suppose you have created a screen with number 200, then
    write.   call screen 200.
    here in your code
    the program is not able tofind the screen hence it is giving you that error.
    before posting your question please read SCN rules and go through the topic deeply.
    learning about the screens is not so easy. So start with simple programs
    Thanks
    Lalit Gupta

  • I have a an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes. All of the other movies on the card download with out a problem.

    I have an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes.
    All of the other movies on the card download with out a problem. The movie in question is not 'corrupt' as you can watch it in iMovie direct from the SD card but as soon as you try to import it, it  just says 'error'. iIve tried moving the file to an external drive ( and other variations on this theme) then importing but have had no luck.
    Can anyone please help me.

    The mystery remains....
    Thanks for the pointers. The file type is .mts (a proprietry sony one).
    I have now found some video converter software (Wondershare and iSkysoft) at a cost. Either will convert this file for me into .mp4. This I can then import into iMovie without any problems. I've checked this on the trial versions and it worked well but without paying am left with a giant watermark in the video
    The mystery (which I still havent solved) is why did 20 other .mts files import fine and then this one not?
    If you could point me in the direction of some free .mts converter software that would be the cherry on the cake.
    Thanks

Maybe you are looking for

  • HP Officejet Pro 8500 a910 wireless connectivity issues?

    I have a HP Officejet Pro 8500 a910 and It was working fine. I got a new router and it was still working fine. Second night of having everything set up it stops working and  shows as offline on my computer. It will print information about the printer

  • How to restore ASM based OCR after complete loss of the CRS diskgroup (Doc

    Hello, I'm testing Metalink doc id 1062983.1. I have rac 11.2.0 with asm on Hp-Ux. I have an CRS diskgroup with external redundancy. The Unix System administrator dropped crs disk: GRID user:           oradb GRID home:           /oracle/product/11.2.

  • How to capture the values after applying filter in ALV.

    Hi, I have an ALV in my application with 10 projects displayed. Out of those 10 projects, 5 projects have banking as industry. when you filter the ALV based on industry banking I get 5 projects .In run time  how  can  I capture only these 5 projects.

  • Pavilion g6 2291sa not booting up

    Hello, I have a Pavilion g6 2291sa that is refusing to boot up. The power light is on, the wireless light is on and the caps lock light turns on and off but there is no sound coming from the hardrive and nothing coming on the screen. I have tried a h

  • ODS Settings and performance

    Could any of the following ODS settings individually or in combination have an impact on performance?  BEx Reporting Set quality status to 'OK' automatically Activate ODS object data automatically My ODS will have a maximum of 250,000 records and is