BADI Implementation field symbol error in code...

Hi,
My requirement is to provide barcode for a particular equipment in trasaction IE06. I've implemented badi for that too.
But the problem is when pressing the print barcode button its gives barcode for all equipments rather than giving for particular one.
I think issue is in the code ..here in code field symbol is used for processing the selected equipment buut its not working..
the code is as follows..
METHOD if_ex_badi_eam_list_fcode~execute_function_code.
  BREAK-POINT.
  CONSTANTS: lc_formname TYPE fpname VALUE 'Z_BARCODE_PRINT_FORM',
             lc_cat TYPE char2 VALUE 'EQ'.
  CONSTANTS: lc_formname1 TYPE fpname VALUE 'Z_BARCODE_PRINT_FUNCTIONAL_LOC',
           lc_cat1 TYPE char2 VALUE 'FL'.
  DATA: lv_fname TYPE funcname,
        lv_equip TYPE string,
        lv_outparamas TYPE sfpoutputparams,
        lw_objects TYPE rihequi_list,
        LW_OBJECTS1 TYPE  RIHIFLO_LIST.
*  DATA: ls_objects type REF TO ANY." TABLE."RIHEQUI_LIST.
  FIELD-SYMBOLS <ls_objects> TYPE ANY.
  IF sy-tcode EQ 'IE06'.
*    lc_formname = 'Z_BARCODE_PRINT_FORM'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = lc_formname
      IMPORTING
        e_funcname = lv_fname.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = lv_outparamas
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4
        OTHERS          = 5.
    IF sy-subrc <> 0.
      MESSAGE 'An error occured in processing the background job' TYPE 'E'.
      EXIT.
    ENDIF.
    LOOP AT it_selected_objects INTO lw_objects.
      lv_equip = lw_objects-equnr.
      CALL FUNCTION lv_fname
        EXPORTING
*   /1BCDWB/DOCPARAMS        =
          item_no                  = lv_equip
          item_cat                 = lc_cat
* IMPORTING
*   /1BCDWB/FORMOUTPUT       =
* EXCEPTIONS
*   USAGE_ERROR              = 1
*   SYSTEM_ERROR             = 2
*   INTERNAL_ERROR           = 3
*   OTHERS                   = 4
      IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
*      ENDIF.
      CLEAR: lv_equip,lw_objects.
      UNASSIGN <ls_objects>.
    ENDLOOP.
    CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
*   E_RESULT             =
* EXCEPTIONS
*   USAGE_ERROR          = 1
*   SYSTEM_ERROR         = 2
*   INTERNAL_ERROR       = 3
*   OTHERS               = 4
    IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
Please Help....

Hi Akshay,
1. It is not a standard program, it is a custom one.
2. Try to fix the bug such that field symbol gets assigned.
3. Place the necessary checks before trying to read the field-symbol, i.e. IF <FIELD> IS ASSIGNED. ... ENDIF.
Cheers,
Aabhas

Similar Messages

  • Problem with Field-symbols when copying code from 4.7 to 4.6C

    Dear SDN
    I developed the code below for 4.7 system. It works fine on 4.7, but it is failing to compile on 4.6C.
    field-symbols : <pnnnn> type any.
    assign ('wa') to <pnnnn>.
    move-corresponding p0001 to <pnnnn>. " <i>Error <pnnnn> is not an internal table with a header line</i>
    unassign <pnnnn>.
    Can anyone please assist?
    Regards
    Kriger

    You cannot use MOVE-CORRESPONDING with untyped variables in 4.6c. If you move infotype data between infotype buffer (of type PRELP) and infotype workarea, then you should use MOVE.

  • Get_static_attributes_table: Field symbol error

    Hi,
    I'm trying to build a dynamic context node, edit the data and save the changes.  Referring the link " http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80a3de18-ee00-2d10-bfb3-946d7e00fd91 " which has similar solution.
    But I'm facing the problem in on_data_check method in the call statement of get_static_attributes_table.
    DATA : LO_ND_PROJECTS TYPE REF TO IF_WD_CONTEXT_NODE,
                 LO_EL_PROJECTS TYPE REF TO IF_WD_CONTEXT_ELEMENT.
    FIELD-SYMBOLS : <FS_CONTEXT> TYPE STANDARD TABLE.
      LO_ND_PROJECTS = WD_CONTEXT->GET_CHILD_NODE( NAME = 'NEW_NODE' ).
      LO_EL_PROJECTS = LO_ND_PROJECTS->GET_ELEMENT( ).
    CALL METHOD LO_ND_PROJECTS->GET_STATIC_ATTRIBUTES_TABLE
      IMPORTING
      TABLE = <FS_CONTEXT>.
    When executing the application, I'm getting the error "Field symbol has not yet been assigned. "
    Any pointers to resolve this?

    data : wa_param like line of r_param->t_modified_cells.
    data : lo_nd_projects type ref to if_wd_context_node,
    lo_el_projects type ref to if_wd_context_element.
    field-symbols : <fs_context> type standard table,
    <fs_context2> type any,
    <fs_variable2> type any,
    <fs_variable> type any.
    lo_nd_projects = wd_context->get_child_node( name =
    'NEW_NODE' ).
    lo_el_projects = lo_nd_projects->get_element( ).
    data : lt_dyn_table type ref to data,
    lt_fieldcat type lvc_t_fcat,
    lw_fieldcat like line of lt_fieldcat.
    clear lt_fieldcat.
    lw_fieldcat-fieldname = 'FLD1'.
    lw_fieldcat-datatype = 'string'.
    lw_fieldcat-outputlen = '24'.
    lw_fieldcat-coltext = 'FLD1'.
    lw_fieldcat-seltext = lw_fieldcat-coltext.
    append lw_fieldcat to lt_fieldcat.
    lw_fieldcat-fieldname = 'FLD2'.
    lw_fieldcat-datatype = 'string'.
    lw_fieldcat-outputlen = '24'.
    lw_fieldcat-coltext = 'FLD2'.
    lw_fieldcat-seltext = lw_fieldcat-coltext.
    append lw_fieldcat to lt_fieldcat.
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = lt_fieldcat
    importing
    ep_table = lt_dyn_table
    exceptions
    generate_subpool_dir_full = 1
    others = 2.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    assign lt_dyn_table->* to <fs_context>.
    call method lo_nd_projects->get_static_attributes_table
    importing
    table = <fs_context>.
    loop at r_param->t_modified_cells into wa_param.
    *Loop at changed entries and modify them in the dynamic internal table
    read table <fs_context> index wa_param-index into <fs_context2>.
    assign component wa_param-attribute of structure <fs_context2> to <fs_variable>.
    assign wa_param-r_value->* to <fs_variable2>.
    move <fs_variable2> to <fs_variable>.
    Using Dynamic ALV with Web Dynpro ABAP with Editable Fields
    Endloop.
    lo_nd_projects = wd_context->get_child_node( name = u2018NEW_NODEu2019 ).
    lo_el_projects = lo_nd_projects->get_element( ).
    lo_nd_projects->bind_table( <fs_context> ).

  • Field Symbol error in program SAPMZF01

    Hi All,
    I am doing upgrade from R/3 Enterprise to ECC 6.0. When i do the EPC for the standard program SAPMZF01, in the section "Field Attributes" i get following error:
    *Program: SAPMZF01   Include: MZF01TOP     Row:  468
    Fieldsymbol <FIELD> is not assigned to a field
    (This message can be hidden with "#EC  )
    Is it ok to comment the field symbol, or is there any other way to solve this error.
    Thanking you in advance
    Best Regards
    Akshay

    Hi Akshay,
    1. It is not a standard program, it is a custom one.
    2. Try to fix the bug such that field symbol gets assigned.
    3. Place the necessary checks before trying to read the field-symbol, i.e. IF <FIELD> IS ASSIGNED. ... ENDIF.
    Cheers,
    Aabhas

  • Field Label error in code inspector

    Hello ,
    I am working in release 6.0 . An i tring to release one transport
    Code inspector is giving following error  on screens .
    "Field label has a fixed font instead of proportional font
    When I press on info button i got  following message
    A field name that has the attribute "Equidistant font" was found. Field names should all be output in proportional font.
    Procedure
    Correct the "Equidistant" flag for this field in the Screen Painter.
    Do you know how we can correct Equidistant flag ?
    Please advice
    Krsto

    You get this error because one of the labels have the "Fixed Font" set and the visible length  is less than the default length.
    You can find all this fields on the properties of the label.
    To avoid this warning, set the visible length as the default length.
    Regards,
    Naimesh Patel

  • BPC NW: Field symbol not assigned in BADi as Endroutine

    HI Experts,
    I have a problem when working with BADis as Endroutines in a TransformationFile.
    Guided by the "How To... Use Start and End Routine" I followed the different steps and for the Start Routine everything works fine. My problem is when trying to call the TransformationFile with the Endroutine I get a  GETWA_NOT_ASSIGNED dump telling me that: Field symbol has not yet been assigned.
    I'm using quite the same code as given in the How To. I introduced some checks, but  I did not get any positive results. Can anybody help, please? The How To is made for master data, I assume the error comes from this side, but I can't assure it.
    The code in the Badi is:
    field-symbols:
           type any.
    data: lt_columns type table of string.
    data: lt_column_data type table of string.
    data: lt_message type uj0_t_message.
    data: lt_error_reason type uj0_t_message,
          lv_tabix like sy-tabix.
    data:
          lo_dataref      type ref to data,
          lv_cuenta_asig  type zmap_cuentas-cuenta_asignado.
    Assign importing data reference to field symbol
    assign ir_data->* to  IS ASSIGNED.
    Create work area for importing data
    create data lo_dataref like line of .
    Create new internal table for exporting data
    check .
    Get CUENTA value from custom table or other datasource
    loop at .
    The error occurs when assigning the first pointer.
    By the way, I'm working on BPC 7.5 SP07 for NW.
    Hope someone can help. Thanks very much in advance,
    Àlex

    Hi Kaylan,
    thank you very much for your quick answer.
    Sorry, I think I haven't made quite clear my point.
    I want to use the Endroutine BADi in a Transformation File for Transaction Data, therefor there is no InfoObject directly involved. I use the Transformation File in the Package "Import Transaction Data". The How To I mentioned, and the only one I found that is more or less near to my problem describes how to use Endroutines and BADis for the Import of Master Data.
    Looking at the different tests I have done, as our system team is not giving us a debug user, the dump happens at the assignment of the first field symbol: assign ir_data->* to . Therefor I assume that  ir_data contains no data and this causes the dump.
    My main question is, can I use the code of the mentioned How To for the package "Import Transaction Data" at all? Or do I have to use different tables or table names for this package? How and where do I get them?
    You have an idea? Would be very helpful! Thanks in advance!
    Cheers
    Àlex

  • Field Symbols Assign Type Conflict

    Hi,
        I am working on a BAdi Implementation and have the following code.
    <b>method IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION .
      FIELD-SYMBOLS:
        <ls_attributes> TYPE dpr_ts_project_ext.
      ASSIGN cs_attributes TO <ls_attributes>  .
      CASE flt_val.
        WHEN cl_dpr_co=>sc_ot_project.
          <ls_attributes>-extended_attributes-ZZSOL_PRJ_ID = 'C0001'.
      ENDCASE.
    ENDMETHOD.</b>
    This is the sample implementation code provided by SAP. However, when I implement the above code, the system dumps at the statement
    <i>  ASSIGN cs_attributes TO <ls_attributes> .</i>
    and cs_attributes is of type any.
    I tried the same code by adding "CASTING" at the end of above line. But, it still gives the dump. Below, is the dump message.
    Note
    The following error text was processed in the system BS3 : Error in ASSIGN in the program ZCL_IM_DPR_ATTRIBUTES=========CP .
    The error occurred on the application server acequad_BS3_30 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION of program ZCL_IM_DPR_ATTRIBUTES=========CP
    Form: IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION of program CL_EX_DPR_ATTRIBUTES==========CP
    Form: ATTRIBUTES_DEFLTS_UPON_ACTION of program CL_DPR_BADI_SERVICES==========CP
    Form: ATTRIBUTES_DEFAULTS_UPON_CREA of program CL_DPR_BADI_SERVICES==========CP
    Form: SET_DEFAULTS_UPON_CREATION of program CL_DPR_PROJECT================CP
    Form: SET_DEFAULTS_UPON_CREATION of program CL_DPR_PROJECT_O==============CP
    Form: CONSTRUCTOR of program CL_DPR_PROJECT_O==============CP
    Form: IF_DPR_APPL_OBJECT_FACTORY~CREATE_PROJECT of program CL_DPR_APPL_OBJECT_FACTORY====CP
    Form: CREATE of program CL_DPR_BSP_APPLICATION========CP
    Form: DO_HANDLE_EVENT of program CL_DPR_BSP_C_TOOLS============CP
    Any ideas on how to use field symbols in the above context??
    Thanks,
    Rajesh

    Hi Rajesh,
    The reason it is dumping is because the actually type of the variable passed in CS_ATTRIBUTES is not fixed this is why they have specified it's type as type any.
    The sample code in this regard is not correct, you should fist check the value of FLT_VAL to determine what type of variable CS_ATTRIBUTES actually is.
    In the BADI documentation there is a list of values for field FLT_VALUE and the corresponding data type of CS_ATTRIBUTES for that value (According to the documentation the data type for FLT_VAL sc_ot_project is DPR_TS_PROJECT_INT).
    method IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION .
    FIELD-SYMBOLS:
    <ls_attributes> TYPE dpr_ts_project_int.
    <i><b>* ASSIGN cs_attributes TO <ls_attributes> .</b></i>
    CASE flt_val.
    WHEN cl_dpr_co=>sc_ot_project.
      <i><b>ASSIGN cs_attributes TO <ls_attributes> .</b></i>
      <ls_attributes>-extended_attributes-ZZSOL_PRJ_ID
                = 'C0001'.
    ENDCASE.
    ENDMETHOD.
    In this example you will ultimately end up with multiple field symbols for representing the CS_ATTRIBUTES parameter, one field symbol for each filter value you intend handling.
    From
      De Wildt

  • Assign field symbols in infotype 0021 BADI implementation (HRPAD00INFTY )

    Hi there,
    In PA30 infotype 0021, i have to change the value of T_VIEW_REPID by implementing BADI HRPAD00INFTY [Program MP002100->screen 2000->MODULE BEFORE_OUTPUT->PERFORM badi_before_output(sapfp50m)]. I'm trying to use field symbols (as below) to change the value of T_VIEW_REPID and getting SY-SUBRC = 4 after the Assign (LV_WA) To <FS_REPID>. Can somebody please help.
    method IF_EX_HRPAD00INFTY~BEFORE_OUTPUT.
      Data: LV_WA(20) Type C Value '(MPPDAT02)VIEW_REPID'.
      Types: T_VIEW_REPID Type T582V-REPID.
      Field-Symbols: <FS_REPID> Type T_VIEW_REPID.
      Assign (LV_WA) To <FS_REPID>.
    endmethod.
    Thanks.

    Try like this
    method IF_EX_HRPAD00INFTY~BEFORE_OUTPUT.
      Data: LV_WA(20) Type C Value '(MP002100)VIEW_REPID'.
    Types: T_VIEW_REPID Type T582V-REPID.
      Field-Symbols: <FS_REPID> Type T_VIEW_REPID.
      Assign (LV_WA) To <FS_REPID>.
    endmethod.

  • Problem trying to create FIELD SYMBOLS in BADI.

    Hi guys!
    I'm trying to create a Field Symbol in method CHECK of BADI me_process_req_cust (well, I'm working on a Z implementation).
    The problem is that I'm trying to create a FIELD SYMBOL and when I check the syntaxsis, I receive the next error:
    Clase ZCL_IM_MM_PURREQ_UPDATE,Método IF_EX_ME_PROCESS_REQ_CUST~CHECK
    Names may only consist of the characters "A-Z", "0-9" and "_". In
    addition, they may not begin with a number.
    This is the code:
            FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
    Any idea????
    Thanks in advance!
    Bet

    Hi Silveria,
    The problem lies in
    FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
    instead of that it should be something like this
    FIELD-SYMBOLS: <sy_mereq> TYPE mereq3328-afnam.
    With your code you will be getting a syntax error saying sy-mereq is not defined,as it will be looking for the mereq in the system fields.
    Regards
    Abhinab Mishra

  • Populating the error message log (while executing BAdI implementation)

    Hi there,
    I have a BAdI to implement CRM_ORDERADM_H_BADI where it will check certain header data. If there is a certain condition that is met, we must not allow the transaction to continue by adding error message on the top (the red button). How can we populate this error log within the BAdI implementation (putting it in codes in the method of the BAdI implementation).
    Many thanks in advance,
    Regards,
    MuJi

    put like this
    data:   w_msg type standard table of shp_badi_error_log initial size 0,
            msg like line of w_msg.
    if sy-subrc ne 0.
          msg-msgty  = 'E'.
          msg-msgid  = 'YW2'.
          msg-msgno  = '041'.
          msg-msgv1  =
           'PGI not allowed ,Pls Enter Truck No in Bill of lad.Field'.
          append msg to ct_log.
    endif.
    <b>In BADI u cannt raise Error Messages but u can Post the Messages to Application Logs, So u have to Update ur messages to CT_LOG.</b>Regards
    Prabhu
    Message was edited by: Prabhu Peram

  • RUn time error while  saving po    Field symbol has not yet been assigned.

    Hi Experts,
    I am getting abap dump while saving PO in ME21N  plz seee the below dump  plzzzzzzzzzzzzzzzzzzzzz help me
    Runtime Errors         GETWA_NOT_ASSIGNED
    Date and Time          19.06.2009 11:24:46
    Short dump has not been completely stored (too big)
    Short text
         Field symbol has not yet been assigned.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLKKBL" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    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
         You attempted to access an unassigned field symbol
         (data segment 106).
         This error may occur if
         - You address a typed field symbol before it has been set with
           ASSIGN
         - You address a field symbol that pointed to the line of an
           internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "GETWA_NOT_ASSIGNED" " "
        "SAPLKKBL" or "LKKBLF99"
        "GEN_FIELD_OUT2"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    em environment
    SAP-Release 700
    Application server... "gplqty"
    Network address...... "128.12.0.19"
    Operating system..... "Windows NT"
    Release.............. "5.2"
    Hardware type........ "8x AMD64 Level"
    Character length.... 16 Bits
    Pointer length....... 64 Bits
    Work process number.. 0
    Shortdump setting.... "full"
    Database server... "GPLQTY"
    Database type..... "MSSQL"
    Database name..... "GPQ"
    Database user ID.. "gpq"
    Char.set.... "C"
    SAP kernel....... 700
    created (date)... "Aug 4 2008 02:33:25"
      create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
      Database version. "SQL_Server_8.00 "
      Patch level. 172
      Patch text.. " "
      Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
      SAP database version. 700
      Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
       NT 6.0"
      Memory consumption
      Roll.... 16192
      EM...... 16759360
      Heap.... 0
      Page.... 237568
      MM Used. 12036016
      MM Free. 530432
    er and Transaction
      Client.............. 410
      User................ "SAP_SUPPORT"
      Language key........ "E"
      Transaction......... "ME21N "
      Transactions ID..... "9E955CDE97CBF1648B4C001A64C7B85A"
      Program............. "SAPLKKBL"
      Screen.............. "SAPLKKBL 0500"
      Screen line......... 3
    Information on where terminated
        Termination occurred in the ABAP program "SAPLKKBL" - in "GEN_FIELD_OUT2".
        The main program was "RM_MEPO_GUI ".
        In the source code you have the termination point in line 2908
        of the (Include) program "LKKBLF99".
    Source Code Extract
    Line  SourceCde
    2878       else.
    2879         assign <fs11> to <field>.
    2880         gs_fc = gs_sfc11.
    2881       endif.
    2882     when 012.
    2883       if gs_out_flags-slave ne 'X'.
    2884         assign <fm12> to <field>.
    2885         gs_fc = gs_mfc12.
    2886       else.
    2887         assign <fs12> to <field>.
    2888         gs_fc = gs_sfc12.
    2889       endif.
    2890     when 013.
    2891       if gs_out_flags-slave ne 'X'.
    2892         assign <fm13> to <field>.
    2893         gs_fc = gs_mfc13.
    2894       else.
    2895         assign <fs13> to <field>.
    2896         gs_fc = gs_sfc13.
    2897       endif.
    2898     when 014.
    2899       if gs_out_flags-slave ne 'X'.

    Hi,
    this error occurs when you try to address a field-symbol before it has been assigned to a field or
    the assignment has failed.
    Use following code to remove this dump
    Assign <mara-matnr> to <fs>.
    if sy-subrc <> 0.
      Error Message.
    Endif.
    Hope it helps,
    Raj

  • Error in Moving values to field symbols. - CX_SY_CONVERSION_NO_NUMBER

    Hi Friends,
    I have asigned the component 'ICON' to the field symbol . While i am adding the value to the field symbol it is going for Dump.
    Erro Message :
    Unable to interpret "@08\QGreen Light; Go; Okay@ " as a number.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
         caught and
        therefore caused a runtime error.
        The reason for the exception is:
        The program attempted to interpret the value "@08\QGreen Light; Go; Okay@ " as
         a number, but
        since the value contravenes the rules for correct number formats,
        this was not possible.
    Code :
      ASSIGN COMPONENT 'ICON' OF STRUCTURE <line> TO <fs_icon>.
      add wa_result-icon to <fs_icon>.
    Please find the information and i waiting for your valuable anwers.
    Thanks,
    Shankara Narayan

    HI,
    What do you mean by adding the value?
    Do you want to move the value of wa_result-icon to the field-symbols <fs_icon>.
    use move statement or use '=' operator.
    ADD will try to do an addition.
    You cannot add character fields. It will surely give a dump.
    Do as follows:-
    Move wa_result-icon to <fs_icon>.
    Regards,
    Ankur Parab

  • Regarding error "Field symbol is not assigned." during print preview

    Hi experts,
        I am getting dump while trying print preview for particular POs in ME23n transaction(ECC 6.0). Please refer the below dump error:
    Runtime Errors         GETWA_NOT_ASSIGNED_RANGE
    Date and Time          29.09.2009 19:30:39
    Short dump has not been completely stored (too big)
    Short text
         Field symbol is not assigned.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLSTXC" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    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 field symbol that was not assigned was accessed
         (data segment no. 32769).
        The field symbol is no longer assigned because there was an attempt
        makde previously in a Unicode program to set the field symbol using
        ASSIGN with offset and/or length specification. Here, the memory
        addressed by the offset/length specification was not within the
        allowed area.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "GETWA_NOT_ASSIGNED_RANGE" " "
        "SAPLSTXC" or "LSTXCFFT"
        "FT_COMPOSE"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
       (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
       Utilities->Upload/Download->Download".
       4. Details about the conditions under which the error occurred or which
       actions and input led to the error.
    I am getting this dump only for few POs.. Rest of the POs are able to print. I am not able to find notes for this issue. Is there any SAP notes available for that  or Is there any configuration issue related to this?
    Please provide solution for thsi as soon as possible.
    Thanks and Regards 
    Subbu

    A field symbol is not assigned, but thats what the dump is telling you. Mostly this happens, when fields or function modules are stored by name, like the fieldnames in the fieldcatalog in an ALV report. It a field referenced in such a way does not exist you will get this error. Always store fieldnames and function names in capital letters and check mistyping of 1L 8B and so on.

  • EEWB error message BADI implementation

    Hi,
    I am getting the following error message when I run the wizard in EEWB to create new fields:
    Task CRM_BTX_ADD_NEW_FIELDS
    creating of BADI Implementation "ZCRM_RF_0701" failed
    I am trying to add new fields in Activities.
    This system is a copy of production client. There is no EEWB project or extension created in this system. We are using this system as a sandbox. We wanted to create some new fields here in this system by crating a new project and extension but when I run the wizard to create the new fields it is giving me the above error message at the time of Generation
    Anyone has any idea how to resolve this ?
    Thanks
    Sub
    Edited by: Kolla Subrahmanyam on Jan 9, 2012 3:51 PM

    Resolved the issue myself. Its the problem  with the workbench request i was using.
    Thanks
    Sub

  • Error in field symbol

    Hi all,
    i'm converting a field symbol table to internat table, where field symbol table structure is defined at runtime. for that i'm using
    call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = ifc1
                   importing
                      ep_table        = dy_table.
      assign dy_table->* to <dyn_table>.
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
      LOOP AT <dyn_table> ASSIGNING <dyn_wa>.
      MOVE-CORRESPONDING <dyn_wa> TO dy_line.
      INSERT dy_line INTO TABLE dy_table.
      endloop.
    where
    data: dy_table type ref to data,
          dy_line  type ref to data,
    But in execution time it show a error that dy_table is not a internal table.
    pls give me ur suggestions.

    Hi Ravish,
    pls find yhe code, it;s throwing a error that dyn_table is not a internal table.
    TABLES : SFLIGHT.
    type-pools : abap.
    field-symbols: <dyn_table> type standard table ,
                   <dyn_wa>,
                   <dyn_field>.
    data: dy_table type ref to data,
          dy_line  type ref to data,
          xfc type lvc_s_fcat,
          ifc type lvc_t_fcat,
          IFC1 TYPE LVC_T_FCAT.
    selection-screen begin of block b1 with frame.
    parameters: p_table(30) type c default 'SFLIGHT'.
    *FIELD-SYMBOLS <F> TYPE table p_table.
    data : field(10) type c.
    SELECT-OPTIONS : P_FIELD  FOR field.
    selection-screen end of block b1.
    start-of-selection.
      perform get_structure.
      perform get_selected_field.
      perform create_dynamic_itab.
      perform get_data.
      perform write_out.
    form get_structure.
    data : idetails type abap_compdescr_tab,
           xdetails type abap_compdescr.
    data : ref_table_des type ref to cl_abap_structdescr.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( p_table ).
      idetails[] = ref_table_des->components[].
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
    endform.
    form get_selected_field.
    data: wa like line of ifc.
    loop at ifc into wa.
    if wa-fieldname in p_field.
    append wa to ifc1.
    endif.
    sy-index = sy-index + 1.
    endloop.
    if ifc1 is initial .
    MESSAGE e000 WITH 'This field is not available in table'.
    endif.
    endform.
    form create_dynamic_itab.
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = ifc1
                   importing
                      ep_table        = dy_table.
      assign dy_table->* to <dyn_table>.
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
    endform.
    form get_data.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE <dyn_table>
    FROM (p_table) UP TO 20 ROWS.
    endform.
    form write_out.
    Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index
             of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
    code for convert field symbol internal table to internal table.
      LOOP AT <dyn_table> ASSIGNING <dyn_wa>.
      MOVE-CORRESPONDING <dyn_wa> TO dy_line.
      INSERT dy_line INTO TABLE dy_table.                    <----
      Error point
      endloop.
      endform.

Maybe you are looking for