E:Field "SOURCE_PACKAGE" is unknown.

Hi guys,
I've got a strange error. In a standard End Routine, on the right place I want to loop at RESULT_PACKAGE. The error occurs:
E:Field "RESULT_PACKAGE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
I see the standard SAP declaration:
    METHODS
      end_routine
        IMPORTING
          request                  type rsrequest
          datapackid               type rsdatapid
        EXPORTING
          monitor                  type rstr_ty_t_monitors
        CHANGING
          RESULT_PACKAGE              type tyt_TG_1
        RAISING
          cx_rsrout_abort.
So, what can the problem be? Any Idea?
Best Regards
Neven
Edited by: Neven Terziev on Mar 30, 2010 5:10 PM

Hi Neven,
You have to write ebd routine like this:
  METHOD end_routine.
*=== Segments ===
    FIELD-SYMBOLS:
      <RESULT_FIELDS>    TYPE tys_TG_1.
$$ begin of routine - insert your code only below this line        -
    loop at RESULT_PACKAGE assigning <RESULT_FIELDS>
      where vtype eq '010' or vtype eq '020'.
      case <RESULT_FIELDS>-vtype.
        when '010'.
          <RESULT_FIELDS>-/bic/zplactual = 'A'. "Actual
        when '020'.
          <RESULT_FIELDS>-/bic/zplactual = 'P'. "Plan
      endcase.
    endloop.
$$ end of routine - insert your code only before this line         -
  ENDMETHOD.                    "end_routine
Source: SAP Documentation
Do not forget to insert your code only after line $$ begin of routine - insert your code only below this line        -.

Similar Messages

  • The field "SOURCE_PACKAGE" is unknown IN THE START ROUTINE?

    Hi all,
    i am trying to create a start routine in the DTP FROM THE CUBE TO THE OPEN HUB.
    But when i check the syntax : it throws me an error message stating.
    The field "SOURCE_PACKAGE" is unknown IN THE START ROUTINE?
    how come the source package is unknow in the start routine can anyone pls advise  me on this!!
    DATA: l_tabix TYPE sy-tabix, wa_source_package TYPE tys_sc_1.
    LOOP AT SOURCE_PACKAGE INTO wa_source_package.
    l_tabix = sy-tabix.
    IF wa_source_package-SALES EMP EQ ' '.
    DELETE SOURCE_PACKAGE
    WHERE SALESEMP EQ ' '.
    INDEX l_tabix.
    ENDIF.
    ENDLOOP.

    Hi Pooja,
    I think that the error comes from the delete statement.
    As you already said, the SOURCE_PACKAGE is from BI7.0. That means that the LOOP AT statement cannot be wrong (although I prefer field-symbols)
    I would restate you code like below:
    DATA: l_tabix TYPE sy-tabix,
          wa_source_package TYPE _ty_s_sc_1.
    LOOP AT SOURCE_PACKAGE ASSIGNING <source_fields>.     "<source_fields> is declared as line from source_package
    * l_tabix = sy-tabix.
      IF <source_fields>-SALES_EMP IS INITIAL.
        DELETE <source_fields> FROM SOURCE_PACKAGE.
    * If this line does not work, try to add TABLE after the FROM-statement
    *WHERE SALESEMP EQ ' '.
    *INDEX l_tabix.
      ENDIF.
    ENDLOOP.
    Hopefully this will help.
    Alternatively you can try a single statement, because it is not necessary to do a loop.
    DELETE SOURCE_PACKAGE WHERE sales_emp IS INITIAL.
    Good luck!
    Steven Groot
    Edited by: S. Groot on Aug 11, 2010 7:50 AM

  • The field "GLTPC" is unknown, but there is a field with the similar name*

    Hi all
    When i am running the report painter reports in SAP
    i am getting this error .
    Syntax error in program    SAPFGRWG
    in include                  FGRWGE60
    in line                      19
    Last changed by            SAP
    Author                     SAP
    The field "GLTPC" is unknown, but there is a field with the similar name
    "GLTPC".*
    Please help me whenever
    Regards,
    suchithra
    Edited by: Rob Burbank on May 22, 2009 9:00 AM

    Hi All
    All 8A group Report painter reports i.e GLPCt table Reports are not executed properly
    Can you please help me out
    Regards,
    suchithra

  • Field "VAL6" is unknown. It is neither in one of the specified tables nor

    Hello
    In following report:
    "REPORT  ZRSETESTD.
    data: val1 type t value '000000',
           val2 type t value '240000',
           val3 type d value '20000101',
           val4 type d value '20080415',
           va15(30) type c value '/CWM/STPPOD',
           va16(30) type c value 'ZRHRMD_ABA'.
    SUBMIT RSETESTD
    WITH gs_creti BETWEEN val1 AND val2 SIGN 'I'    "assuming CREATED_AT is select option in RSETESTD program
    WITH gs_creda BETWEEN val3 AND val4 SIGN 'I'   "assuming CREATED_ON is select option too
    WITH gs_mesty BETWEEN val5 AND val6 SIGN 'I'."
    I get error:
    "Program ZRSETESTD
    Field "VAL6" is unknown. It is neither in one of the specified tables
    nor defined by a "DATA" statement . . . . . . . . . ."

    You have declared "va16" change it to VAL6.

  • Error In smartform - FOOTERTEXT     Field "EQ" is unknown.

    Hi all,
    I am getting an error in smartform in the FOOTERTEXT     - Field "EQ" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. .
    What is the problem and how to fix this error
    Thanks in advance
    Neela

    Hi,
    I checked in the coding i get the error in this line of the coding
    IF &3 EQ 'T'.
        %L_NAME = &1-PARAMETER.
      ENDIF.
    pls help me in debugging this error.
    Thanks in advance,
    Neela

  • Editable ALV tutorial -Field "R_PARAM" is unknown.

    Hi,
    I am practicing [ALV Editable Tutorial|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1].
    I am stuck at Implement event handler ONDATACHECK.
    METHOD ondatacheck .
    DATA: node_node_flighttab TYPE REF TO if_wd_context_node,
    elem_node_flighttab TYPE REF TO if_wd_context_element,
    lt_sflight TYPE if_resultview=>elements_node_flighttab.
    * save data only if no error has occured
    CHECK r_param->t_error_cells IS INITIAL.
    * navigate from <CONTEXT> to <NODE_FLIGHTTAB> via lead selection
    node_node_flighttab
    = wd_context->get_child_node( name = `NODE_FLIGHTTAB` ).
    When I do a syntax check I am etting following message.
    I guess I need to create a parameter R_PARAM.. What Should i refer it to? or am i doing something
    wrong?
    Error:
    Method ONDATACHECK
    Field "R_PARAM" is unknown. It is neither in one of the specified
    tables nor defined by a "DATA" statement. .
    Rgds
    Vara

    Resolved it.
    I missed this.. part
    1 Select Method type as 'Event Handler'
    2. In the Event Column, Do F4 and select 'On DATA' Event.
    Rgds
    vara

  • Problem on Export to Excel - converts Long type field to General (Unknown)

    hello! i used JSP to export table data to excel.. there's nothing wrong with the data displayed.. But the problem is.. when one of the fields is computed and retrieved in the JSP, and then exported to excel, it converts the Long type field to General and therefore cannot be computed when being used in a formula. Also, when you change it's type by right clicking the cell and chose "Format Cells", it still can't change it's type to number even if you have it changed. Therefore can't be computed..
    I have other number fields but they were just retrieved and not computed as they were exported to excel.. But they don't change their types like the computed ones..
    please help.. thanks

    hello! i used JSP to export table data to excel..Yuck. :p Didn't even consider it being possible. I'd use a servlet anyway, after all, it's designed to be able to stream out non-HTML.
    there's nothing wrong with the data displayed.. But
    the problem is.. when one of the fields is computed
    and retrieved in the JSP, and then exported to excel,
    it converts the Long type field to General and
    therefore cannot be computed when being used in a
    formula. Well, since there is no class in the standard API that handles Excel files, you migh want to ask the support of whoever provided your tool.

  • Syntax error  with Transformation

    Hi all,
    I am trying to write a routine in Transformation which reads the navigation attribute of the char Ymaterial from a ODS and fills an internal table which will then be uploaded to a char in the cube.
    The Code looks like the one below:
    $$ begin of 2nd part global - insert your code only below this line  *
    DATA: G_MATERIAL TYPE TABLE OF /BIC/PYMATERIAL.
    TABLES: /BIC/PYMATERIAL.
    $$ begin of routine - insert your code only below this line        -
    SELECT * INTO TABLE G_MATERIAL
    FROM /BIC/PYMATERIAL.
    FOR ALL ENTRIES IN SOURCE_PACKAGE
    WHERE /BIC/YMATERIAL = SOURCE_PACKAGE-/BIC/YMATERIAL.
    SORT G_MATERIAL BY /BIC/YMATERIAL.
    I am getting the following error message:
    E:The statement "FOR" is not expected. A correct similar statement is
    "FORM". statement is "FORM".
    In other words, how do I ensure that the value of the attribute which I am reading from the master data table of Ymaterial is the one that is present in the ODS. Can you give the syntax for the same.

    Hi rakesh
    I think You are right but when I removed the full stop after FROM /BIC/PYMATERIAL, I got the following error Field "SOURCE_PACKAGE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement
    Thanks

  • Error in SELECT : unknown field

    Hi,
    I'm getting strange compiler error by a simple SQL-Statement:
    select * from KNVP into table CST_KNVP
      where KUNNR <> KUNN2.
    Compiler complains that the Field KUNN2 is unknown.
    If I write
    where KUNN2 <> KUNNR.
    it complains about KUNNR.
    Strange, because both fields ARE in the KNVP table.
    Do You have some advice how to deal with it?
    Thanks in Advance
    Daniel

    Daniel,
      your query is wrong.Syntaxt problem
      select * from KNVP into table CST_KNVP
      where KUNNR <> KUNN2.
    How KUNN2 will availble to select statement?
    You have to pass this value.
    ex : you can use various ways
    1.
       loop at itab.
          select * from KNVP into table CST_KNVP
          where KUNNR <> itab-KUNN2.
      endloop.
    2.       select * from KNVP into table CST_KNVP
                 for all entries in itab
          where KUNNR <> itab-KUNN2.
    pls. reward if useful

  • Field Unknown error message in program node

    I'm brand new to SAP and trying to get to grips with Smartforms. This is a very basic question I'm afraid but hope someone will answer it.
    I'm trying to perform the following in a program node
    SELECT SINGLE * FROM MARC INTO WA_MARC
      WHERE IT_VBDPA-MATNR = MARC-MATNR.
    IT_VBDPA is defined in TABLES tab of Form Interface
    WA_MARC is defined in Global Definitions
    IT_VBDPA is defined as an input parameter on the program node
    WA_MARC is defined as an output parameter.
    I get 'Field IT_VBDPA-MATNR unknown' error message. What am I doing wrong?
    Mike.

    I did define IT_VBDPA in the input parameters section of the program node. Is that what you mean by interface of coding node?
    Mike.

  • Relationship between unknown SAP-TABLES

    Hi Folks,
    Lets take a scenario of populating an ouput internal table with fields from 4 unknown sap tables(relation between the tables is unknown). How can we check the relationship between those tables to populate the internal table..? What are the possible ways to check the relationship between tables..?
    Can u please help me on this.
    Thanks n regards,
    ram.

    Hi <b>Ram</b>,
        I tried the following method to find relation between tables and i think it is quite useful. I hope this will be of some use to you.
    ->   Goto SE11 and display one of the tables.
    ->   Click on the <b>Graphic</b> icon on the toolbar or use shortcut ctrlshiftF11
    ->   It displays all the related tables by foreign key and even gives you all check tables involved. If the list is a long one, you can even use <u>Find</u> option to check if the other tables you are trying to find relation with, exist in the screen.
        Hope this Helps!! Do get back!!
    Regards,
    <b>Naveenan</b>.

  • Disable certain fields during the creation of SC using "create limit item"

    Hi,
    I have a requirement to disable certain fields from the role "SHOP" associated with the operational purchaser role. I would like to disable the fields "Unlimited check box", "Service Agent", " Invoice Only radio button", "Unknown account assignment radio button" from the screen I get during creation of SC using the option "Create Limit Item". Also i need to disable the option "Good / Service" entry box as we are using only free text items and donu2019t want this option to be seen in the screen when using the operational purchaser role.
    Please advise how can I achieve this.
    Regards
    GGL

    Hi,
    I have a same requirement to disable certain fields from the Shopping Cart Limit Item. I would like to disable the fields  "Service Agent", "Unknown account assignment radio button" from the Detail  screen. during creation of SC using the option  Limit Item .  Also i need to make default Value "Known" and "Invoice Only". But this is in SRM 7.0. Notes You have mentioned supports only Release 5.5, But I am in Release 7.0. Any idea?
    I appreciate your help
    Thanks,
    Monica

  • 1000 CHARACTER TEXT IN ALV FIELD

    Hi Experts,
    I have a String type variable containing 1000 character text that I am passing in a field on ALV. But ALV field can display on 132 characters. So now my requirement is that when a user double clicks on that field... then a popup or a screen appears where the user can read the entire text of that field.
    I have tried some FMs (like POPUP_TO_CONFIRM, POPUP_TO_INFORM, POPUP_DISPLAY_TEXT etc...), but all have length restriction.
    Please suggest if there is any FM to get the entire 1000 character text on a popup....  OR if there is any other way to do this...
    Thanks in advance
    Regards,
    Ashish Goyal

    I am using this code provided by you, facing error : Field "OB_GUI_DIALOGBOX_CONTAINER" is unknown. It is neither in one of   the specified tables nor defined by a "DATA" statement. 
    Please take a look and suggest.
    Using REUSE ALV GRID to display ALV.
       TYPES: BEGIN OF tp_text_x .
    TYPES: tdname      TYPE thead-tdname ,
           tdobject    TYPE thead-tdobject ,
           tdid        TYPE thead-tdid ,
           tdspras     TYPE thead-tdspras ,
           tdtxtlines  TYPE thead-tdtxtlines .
    TYPES: tdline      TYPE tline-tdline ,
           it_tline    TYPE tline_tab .
    TYPES: END OF tp_text_x .
    CLASS cl_event_reciever DEFINITION DEFERRED.
    DATA v_event_reciever TYPE REF TO cl_event_reciever.
    CLASS cl_event_receiver DEFINITION .
      PRIVATE SECTION.
        METHODS: close
                 FOR EVENT close OF cl_gui_dialogbox_container
                 IMPORTING sender.
        METHODS: init_container .
        METHODS: display_textedit
                 IMPORTING value(st_text_x) TYPE tp_text_x .
    ENDCLASS .                    "cl_event_receiver DEFINITION
    CLASS cl_event_receiver IMPLEMENTATION.
      METHOD close .
        CALL METHOD sender->set_visible
          EXPORTING
            visible = abap_false.
      ENDMETHOD .                    "handle_close
      METHOD init_container .
    *    DATA: ob_gui_dialogbox_container TYPE REF TO cl_gui_dialogbox_container.
        IF ob_gui_dialogbox_container IS NOT INITIAL .
    *    IF EDITOR_CONTAINER IS NOT INITIAL .
          me->close( EXPORTING sender =  ob_gui_dialogbox_container ) .   " EDITOR_CONTAINER ).
        ENDIF .
        CREATE OBJECT ob_gui_dialogbox_container
          EXPORTING
            parent   = cl_gui_container=>screen0
            top      = 40
            left     = 200
            lifetime = cntl_lifetime_dynpro
            width    = 600
            height   = 100.
      ENDMETHOD.                    "init_container
      METHOD display_textedit .
        me->init_container( ) .
        DATA: ob_gui_textedit TYPE REF TO cl_gui_textedit .
    *    DATA: ob_gui_dialogbox_container TYPE REF TO cl_gui_dialogbox_container.
        CREATE OBJECT ob_gui_textedit
          EXPORTING
            parent = ob_gui_dialogbox_container.
        CALL METHOD ob_gui_textedit->set_readonly_mode
          EXPORTING
            readonly_mode = cl_gui_textedit=>true.
        DATA: it_tdline TYPE TABLE OF tdline .
        DATA: st_tdline LIKE LINE OF it_tdline .
        FIELD-SYMBOLS: <st_tline> LIKE LINE OF st_text_x-it_tline .
        LOOP AT st_text_x-it_tline ASSIGNING <st_tline> .
          APPEND <st_tline>-tdline TO it_tdline .
        ENDLOOP .
        CALL METHOD ob_gui_textedit->set_text_as_stream
          EXPORTING
            text = it_tdline.
      ENDMETHOD.                    "display_textedit
    ENDCLASS .                    "cl_event_receiver IMPLEMENTATION
    INITIALIZATION.
    CREATE OBJECT v_event_reciever.
    DATA: ob_gui_dialogbox_container TYPE REF TO cl_gui_dialogbox_container.
    CREATE OBJECT ob_gui_dialogbox_container.
    START-OF-SELECTION.
    v_event_reciever->display_textedit( EXPORTING st_text_x = <st_alv_data_1>-text_1 ) .

  • Currency and Quantity fields in Nested Table

    Hallo Experts,
    I have created a Interface  with import Sturcture SLS_PRT_COM. This Sturcture have many nested Sturctures. Now I created a Table type ZEBFO with line type VBDPA. VBDPA has many currency and quantity fields such like GEWEI.
    Now I have created internal Table of ZEBFO.
    Declare the nested Quantity field in the Currency/Quantity Fields section, using the autofiller (the buttons to the right of the field).
    Create an adobe form for it and a program and execute it.
    Dump
    The following syntax error occurred in program "/1BCDWB/SAPLSM00000034 " in
      include "/1BCDWB/LSM00000034F01 " in
    line 1769:
    "Field "VBDPA-GEWEI" unknown. "."
    can somebody help me what shall I do.
    Thanks
    Best regards
    Waseem Rana
    Edited by: ranawaseem165 on Feb 17, 2012 9:14 AM

    Hi,
    When Creating a Structure ,include currency and quantity Fields in the same structure and Refere those as currency and
    Quantity Fields.
    In the Form when click on Currency/Quantity Fields,they automatically visible and you can add them .
    Thanks.
    uma

  • Error in program RFIDESM340. COUNT field

    I have solved the error with BR_BUKRS in the RFIDESM340 setting BFR in u201Clogical databaseu201D in program u201CAttributesu201D.
    But now I have a new error: u201C Field "COUNT" is unknown. It is neither in one of the specified tablesu201D.
    Has anyone had the same problem?
    I don´t found OSS notes or entries in this blog.
    Regards

    Hi FinTore,
    check with your ABAP responsible in your tema about this subject.

Maybe you are looking for