Values r not fetch in internal table

Hi Frds
In my report the values are not fetching in the internal table ICOSP
This is my program ,kindly correct my mistake.
DATA : WBS LIKE VBAK-PS_PSP_PNR.
SELECTION-SCREEN: BEGIN OF BLOCK 01.
SELECTION-SCREEN: BEGIN OF BLOCK 02 WITH FRAME .
SELECT-OPTIONS PROJECT FOR WBS.
SELECTION-SCREEN: END OF BLOCK 02.
SELECTION-SCREEN: END OF BLOCK 01.
DATA: BEGIN OF IVBAK OCCURS 0,
      VBTYP LIKE VBAK-VBTYP, "SD document category
      AUART LIKE VBAK-AUART, "Sales Document Type
      NETWR LIKE VBAP-NETWR, "NET VALUE OF THE ORDER ITEM
      WAERK LIKE VBAK-WAERK, "SD document currency
      PS_PSP_PNR LIKE VBAP-PS_PSP_PNR, "WBS Element
      END OF IVBAK.
DATA: BEGIN OF IPRPS OCCURS 0,
      PSPNR LIKE PRPS-PSPNR, "WBS Element
      POSID LIKE PRPS-POSID, "WBS Element
      OBJNR LIKE PRPS-OBJNR, "Object number
      PSPHI LIKE PRPS-PSPHI, "Current project number
      END OF IPRPS.
DATA: BEGIN OF ICOSP OCCURS 0,
      OBJNR LIKE COSP-OBJNR,
      GJAHR LIKE COSP-GJAHR,
      WRTTP LIKE COSP-WRTTP,
      BEKNZ LIKE COSP-BEKNZ,
      WTG001 LIKE COSP-WTG001,
      WTG002 LIKE COSP-WTG002,
      WTG003 LIKE COSP-WTG003,
      WTG004 LIKE COSP-WTG004,
      WTG005 LIKE COSP-WTG005,
      WTG006 LIKE COSP-WTG006,
      WTG007 LIKE COSP-WTG007,
      WTG008 LIKE COSP-WTG008,
      WTG009 LIKE COSP-WTG009,
      WTG010 LIKE COSP-WTG010,
      WTG011 LIKE COSP-WTG011,
      WTG012 LIKE COSP-WTG012,
      WTG013 LIKE COSP-WTG013,
      WTG014 LIKE COSP-WTG014,
      WTG015 LIKE COSP-WTG015,
      WTG016 LIKE COSP-WTG016,
     SUM TYPE CURRENCY ,
      END OF ICOSP.
*DATA: ICOSP LIKE COSP OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF ITAB OCCURS 0,
      PSPNR LIKE VBAK-PS_PSP_PNR,
      NETWR LIKE VBAP-NETWR,
      END OF ITAB.
PERFORM IVBAK.
PERFORM IPRPS.
PERFORM ICOSP.
PERFORM MOVE_COSP.
PERFORM MOVE.
PERFORM FIELDCATALOG.
PERFORM BUILD_LAYOUT.
PERFORM ALVDISPLAY.
FORM IVBAK.
  SELECT VBTYP AUART NETWR WAERK PS_PSP_PNR FROM VBAK INTO TABLE IVBAK
       WHERE PS_PSP_PNR IN PROJECT AND
             VBTYP = 'G' AND AUART = 'ZPCQ'.
  CLEAR: IVBAK.
ENDFORM.                    "IVBAK
FORM IPRPS.
  SELECT PSPNR POSID OBJNR PSPHI FROM PRPS INTO TABLE
         IPRPS WHERE PRPS~PSPHI IN PROJECT.
  CLEAR : IPRPS.
ENDFORM.                    "IVBAP
FORM ICOSP.
LOOP AT IPRPS.
SELECT OBJNR GJAHR WRTTP BEKNZ WTG001 WTG002 WTG003 WTG004 WTG005
    WTG006 WTG007 WTG008 WTG009 WTG010 WTG011
    WTG012 WTG013 WTG014 WTG015 WTG016
    FROM COSP INTO CORRESPONDING FIELDS OF TABLE ICOSP
      WHERE OBJNR = IPRPS-OBJNR AND WRTTP = '4'.
ENDLOOP.
CLEAR:ICOSP.
ENDFORM.
Thanks
Pari

hi,
try this Code
DATA : wbs LIKE vbak-ps_psp_pnr.
SELECTION-SCREEN: BEGIN OF BLOCK 01.
SELECTION-SCREEN: BEGIN OF BLOCK 02 WITH FRAME .
SELECT-OPTIONS project FOR wbs.
SELECTION-SCREEN: END OF BLOCK 02.
SELECTION-SCREEN: END OF BLOCK 01.
TYPES: BEGIN OF ivbak,
  vbtyp LIKE vbak-vbtyp, "SD document category
  auart LIKE vbak-auart, "Sales Document Type
  netwr LIKE vbap-netwr, "NET VALUE OF THE ORDER ITEM
  waerk LIKE vbak-waerk, "SD document currency
  ps_psp_pnr LIKE vbap-ps_psp_pnr, "WBS Element
END OF ivbak.
TYPES: BEGIN OF iprps,
  pspnr LIKE prps-pspnr, "WBS Element
  posid LIKE prps-posid, "WBS Element
  objnr LIKE prps-objnr, "Object number
  psphi LIKE prps-psphi, "Current project number
END OF iprps.
TYPES: BEGIN OF icosp,
  objnr LIKE cosp-objnr,
  gjahr LIKE cosp-gjahr,
  wrttp LIKE cosp-wrttp,
  beknz LIKE cosp-beknz,
  wtg001 LIKE cosp-wtg001,
  wtg002 LIKE cosp-wtg002,
  wtg003 LIKE cosp-wtg003,
  wtg004 LIKE cosp-wtg004,
  wtg005 LIKE cosp-wtg005,
  wtg006 LIKE cosp-wtg006,
  wtg007 LIKE cosp-wtg007,
  wtg008 LIKE cosp-wtg008,
  wtg009 LIKE cosp-wtg009,
  wtg010 LIKE cosp-wtg010,
  wtg011 LIKE cosp-wtg011,
  wtg012 LIKE cosp-wtg012,
  wtg013 LIKE cosp-wtg013,
  wtg014 LIKE cosp-wtg014,
  wtg015 LIKE cosp-wtg015,
  wtg016 LIKE cosp-wtg016,
  sum TYPE currency ,
END OF icosp.
*DATA: ICOSP LIKE COSP OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF itab,
pspnr LIKE vbak-ps_psp_pnr,
netwr LIKE vbap-netwr,
END OF itab.
DATA : i_ivbak TYPE STANDARD TABLE OF ivbak,
       i_prps TYPE STANDARD TABLE OF iprps,
       i_icosp TYPE STANDARD TABLE OF icosp,
       wa_ivbak TYPE ivbak,
       wa_prps TYPE prps,
       wa_icosp TYPE icosp.
PERFORM ivbak.
PERFORM iprps.
PERFORM icosp.
*PERFORM MOVE_COSP.
*PERFORM MOVE.
*PERFORM FIELDCATALOG.
*PERFORM BUILD_LAYOUT.
*PERFORM ALVDISPLAY.
FORM ivbak.
  SELECT vbtyp auart netwr waerk ps_psp_pnr FROM vbak
  INTO TABLE i_ivbak
  WHERE ps_psp_pnr IN project AND
  vbtyp = 'G' AND auart = 'ZPCQ'.
ENDFORM. "IVBAK
*&      Form  IPRPS
*       text
FORM iprps.
  SELECT pspnr posid objnr psphi
  FROM prps INTO TABLE
  i_prps WHERE prps~psphi IN project.
ENDFORM. "IVBAP
*&      Form  ICOSP
*       text
FORM icosp.
  IF i_prps[] IS NOT INITIAL.
    SELECT objnr gjahr wrttp beknz wtg001 wtg002 wtg003 wtg004 wtg005
    wtg006 wtg007 wtg008 wtg009 wtg010 wtg011
    wtg012 wtg013 wtg014 wtg015 wtg016
    FROM cosp INTO CORRESPONDING FIELDS OF TABLE i_icosp
    FOR ALL ENTRIES IN i_prps
    WHERE objnr = i_prps-objnr AND wrttp = '4'.
  ENDIF.
ENDFORM.                    "ICOSP
Regards
Sandipan

Similar Messages

  • VB Runtime error timeouts. Could not fetch terms from table: TPW6

    VB Runtime error timeouts are occurring repeatedly for multiple users on the terminal server.
    Event Type:         Warning
    Event Source:     VBRuntime
    Event Category:  None
    Event ID:              1
    Description: The VB Application identified by the event source logged this Application XL Reporter: Thread ID: 13508 ,Logged: Could not fetch terms from table: TPW6
    It looks like bad table reference in XL reports? This is causing significant lag as they wait to time-out. Is there a way to identify source(s) and correct  it/them? Unfortunately the error does not say what report. Is there any way of identifying exactly what the SAP equivalent is to the tables it is having issues finding?
    thanks

    This error may not cause big problems.  We have to live with it for a long time.  It only show XLR with highlight icon on the task bar.  It shouldn't have much bigger impacts.
    Thanks,
    Gordon

  • Change the Value of column of the internal table at run time

    Hello Experts,
    With the below code i am able to determine the value hold
    by internal table at run time for a sepcific column but i am not getting the way
    of how to update the internal if one of the value is changed,
      lr_desc_table ?= cl_abap_typedescr=>describe_by_data( itab  ).
      lr_desc_struc ?= lr_desc_table->get_table_line_type( ).
    loop at itab assigning <fs_data>.
        loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.
          assign component  <fs_comp_wa>-name of structure <fs_data> to <fs_field>.
          lv_excel_row = <fs_field>.
         CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
            EXPORTING
              INTEXT  = lv_excel_row
            IMPORTING
              OUTTEXT = lv_excel_row.
          assign lv_excel_row to <fs_field>. "this is not changing the value actually hold in internal table
        endloop.
      endloop.

    Hi,
    Resolved this issue with the code mentioned below.
    Code:
    loop at lt_export_items assigning <fs_data>.
      ls_data = <fs_data>.
        loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.
          assign component  <fs_comp_wa>-name of structure <fs_data> to <fs_field>.
          lv_excel_row = <fs_field>.
          CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
            EXPORTING
              INTEXT  = lv_excel_row
            IMPORTING
              OUTTEXT = lv_excel_row.
              concatenate 'ls_data-' <fs_comp_wa>-name into  lv_var.
              assign (lv_var) to <fs_var>.
              <fs_var> = lv_excel_row.
        endloop.
        modify lt_export_items from ls_data .
        clear:ls_data.
      endloop.
    Take care,
    Sanju

  • Data is not coming in internal table

    Hello Abapers,
    Data is not coming in my internal table.
    Plz tell me where I m wrong
    SELECTION-SCREEN BEGIN OF  BLOCK blk.
    PARAMETERS:       compcode LIKE vbrk-bukrs OBLIGATORY.
    PARAMETERS:       billtype LIKE vbrk-fkart OBLIGATORY.
    SELECT-OPTIONS:   billdate FOR  vbrk-fkdat OBLIGATORY.
    PARAMETERS :      acgrpc   LIKE vbrk-ktgrd OBLIGATORY.
    PARAMETERS:       acgrpm   LIKE vbrp-ktgrm OBLIGATORY.
    PARAMETERS:       taxcode  LIKE konv-mwsk1 OBLIGATORY.
    SELECT-OPTIONS:   plant FOR vbrp-werks .
    SELECT-OPTIONS:   bussarea FOR vbrp-gsber .
    SELECTION-SCREEN END OF BLOCK blk.
    START-OF-SELECTION.
    SELECT avbeln afkart aknumv afkdat abelnr aktgrd abukrs axblnr
    amwsbk  bgsber bwerks bktgrm
    FROM ( vbrk AS a INNER JOIN vbrp AS b ON
    avbeln EQ bvbeln  )
    INTO CORRESPONDING FIELDS OF TABLE vbrk_vbrp
    WHERE ( a~fkart EQ billtype )  AND
    ( a~fkdat IN billdate ) AND
    ( a~ktgrd EQ acgrpc ) AND
    ( a~bukrs EQ compcode ) AND
    ( b~gsber EQ bussarea ) and
    ( b~werks EQ plant ) AND
    ( b~ktgrm EQ acgrpm ) .
    Ravi

    Hi,
    write ur query this way :
    SELECT avbeln afkart aknumv afkdat abelnr aktgrd abukrs axblnr amwsbk bgsber bwerks bktgrm
    FROM ( vbrk AS a INNER JOIN vbrp AS b ON
    avbeln EQ bvbeln )
    INTO CORRESPONDING FIELDS OF TABLE vbrk_vbrp
    WHERE ( a~fkart EQ billtype ) AND
    ( a~fkdat IN billdate ) AND
    ( a~ktgrd EQ acgrpc ) AND
    ( a~bukrs EQ compcode ) AND
    ( b~gsber IN bussarea ) and
    ( b~werks IN plant ) AND
    ( b~ktgrm EQ acgrpm ) .
    even plz check then internal table ' vbrk_vbrp ' if they have all the fields of select query and even the order is same as select , since you are using ' into corresponding fields of table ' clause in select statement.
    hope this helps.
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 26, 2008 6:14 AM

  • SUBMIT and return the value of that report into internal table

    Dear all,
    I have a requirement. I want to submit a report and return the value of that report into my internal table.
    How to do this.
    Pl. guide.

    Hi Vidhya,
    Below links from SAP help will resolve your issue.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bd1358411d1829f0000e829fbfe/content.htm
    Edited by: Harsh Bhalla on Jan 2, 2010 11:54 AM

  • Length of value of c field in internal table

    Hi experts,
    how do I find out the lenght of the value which is an CHARACTER field in an internal table.
    I get a .XLS file from the customer. To check where the real entries starts I need to know the length of one field in the internal table.
    How do I do this?
    I tried it with DESCRIBE, but it doesn't work because the c field is interpreted hexadecimal.
    Example:
    all fields in my table are c(30), the value in one column is max. 3 letters. I want to find out the row where the entry in this field is 3 letters long.
    Edited by: Heiko Kany on Sep 3, 2008 8:49 AM

    Hi Heiko,
    You can find the length using the STRLEN function as given below;
    DATA : ipstr TYPE string.
    DATA : len TYPE i VALUE 0.
    ipstr = 'Sample String'.
    len = STRLEN( ipstr )
    After execution len will contain 13.
    Regards
    Karthik D

  • Select statement not populating the internal table

    Hi,
    I have a requirement where I have to upload a file from C drive, the fields in this file are VBELN, description & date of creation.
    I am able to get this file into the internal table. After this i need to cross check the VBELN against VBRK-VBELN, if present then update a Z-table.... How do I do the cross check part ?...
    if not tw_zvatcn[] is initial,
      select * from vbrk
          into table tw_vbrk
          for all entries in tw_zvatcn
           where vbeln = tw_zvztcn-vbeln
                and vkorg = p_vkorg.
      if sy-subrc = 0.
       modify ztzb from lw_zvatcn.
      endif.
    endif.
    Internal table tw_vbrk is coming blank, which is not correct because I see the data in db tbl VBRK

    Is p_vkorg a parameter or select option.
    If it is parameter and is blank you will not get data in the table.
    In that case make a condition for that field also.
    if not tw_zvatcn[] is initial.
    if p_vkorg is not initial.
    select * from vbrk
    into table tw_vbrk
    for all entries in tw_zvatcn
    where vbeln = tw_zvztcn-vbeln
    and vkorg = p_vkorg.
    if sy-subrc = 0.
    modify ztzb from lw_zvatcn.
    endif.
    else.
    select * from vbrk
    into table tw_vbrk
    for all entries in tw_zvatcn
    where vbeln = tw_zvztcn-vbeln.
    if sy-subrc = 0.
    modify ztzb from lw_zvatcn.
    endif.
    endif.
    endif.

  • Value does not exist in VIQMEL table due to ILOA-ILOAN field

    Hello All,
    I am trying to check a PCR/OCR Notification but it seems Notification does not exist.
    The notification number is not there in VIQMEL table.
    VIQMEL takes reference of 3 tables - QMEL, QMIH and ILOA.
    I checked QMIH table for this notification and found a field ILOAN. The ILOAN number given in table QMIH is not there in ILOA table.
    Can you explain what could be the possible reason of empty ILOAN field?
    Also if you could explain the significance of field ILOAN and how this number is generated?
    Thanks & Regards
    Devraj

    There was an issue of value range of notification..

  • Use ComboBox TableCellEditor  - values are not saved to the table model

    Hi,
    I got a combobox cell editor that uses to edit one of the columns.
    And i got an ok button that uses to collect the data from the table and save it to the db.
    In case i started editing of a cell and the editor is still displayed- if i will click on the button the data that will be colected from the table model will not contained the updated value in the cell editor.
    In this case the user think his changes were saved but the last updated field is not updated.
    Is this a bug i got in the cell editor or this is the normal behaviour?
    Can it be fixed? (So that if the cell is in the middle of editing the value that will be saved is the last value that was selected).
    public class PriorityCellEditor extends StandardComboBox implements TableCellEditor {
        private boolean isEditMode=false;
         * A list of eventlisteners to call when an event is fired
        private EventListenerList listenerList = new EventListenerList();
         * the table model
        public StbAreaClusterPriorityCellEditor(boolean isEditMode) {
            super(StbAreaMapper.clustersPriorities);
            setEditMode(isEditMode);
            setEditable(false);
            this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
            setAlignmentX(Component.LEFT_ALIGNMENT);
        public boolean isEditMode() {
            return isEditMode;
        public void setEditMode(boolean editMode) {
            isEditMode = editMode;
            setEnabled(editMode);
        public Component getTableCellEditorComponent(JTable table, Object value,boolean isSelecte, int row, int column) {
            int selectedIndex;
            if (isSelecte) {
                setForeground(table.getSelectionForeground());
                setBackground(table.getSelectionBackground());
            } else {
                setForeground(table.getForeground());
                setBackground(table.getBackground());
            if(value instanceof String){
                selectedIndex=StbAreaMapper.mapGuiPriorityDescToGuiCode((String)value);
                setSelectedIndex(selectedIndex);
            return this;
        public void cancelCellEditing() {
            fireEditingCanceled();
        public Object getCellEditorValue() {
            return getSelectedItem();
        public boolean isCellEditable(EventObject anEvent) {
            return isEditMode;
        public boolean shouldSelectCell(EventObject anEvent) {
            return false;
        public boolean stopCellEditing() {
            fireEditingStopped();
            return true;
         * Adds a new cellEditorListener to this cellEditor
        public void addCellEditorListener(CellEditorListener l) {
            listenerList.add(CellEditorListener.class, l);
         * Removes a cellEditorListener from this cellEditor
        public void removeCellEditorListener(CellEditorListener l) {
            listenerList.remove(CellEditorListener.class, l);
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingStopped() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying
            // those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingStopped(
                            new ChangeEvent(this));
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingCanceled() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this));
    }

    Try this
    yourTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • Actual and Commitments values are not Appearing in Internal order report

    Hi
    We have done budget in KO22 for Internal Order and active the availability controle after that we made PO with the same IO and with account assignment category 'A' and GR also happened.
    So when we run the report (S_ALR_87013019 - List: Budget/Actual/Commitments ), system is not showing Actual and Commitments values...
    Please help me in this regard...
    Thanks,
    Saisri

    Hi,
    Here we are giving internal order in PO with account assignment category 'A'
    In case of Account assignment category 'K'  it is showing the Actual values in Report.
    Why is it showing Actal /commitment values incase of 'K'  ?
    Why it is not showing when we select the 'A' category ?
    Please provide me answer about my queries...plz
    Thanks,
    Saisri

  • Data not getting into internal table

    Hi experts,
    I have a query as given below:
      IF equipment_number IS NOT INITIAL.
        SELECT        eqart
                            equnr
                            invnr
      FROM  equi INTO table lt_equi
        FOR ALL ENTRIES IN equipment_number
        WHERE equnr = equipment_number-equipment_number.
        IF lt_equi[] IS NOT INITIAL.
          SELECT kunnr name1
            FROM kna1
          INTO CORRESPONDING FIELDS OF TABLE lt_kna1
          FOR ALL ENTRIES IN lt_equi
          WHERE kunnr = lt_equi-kunde.
        ENDIF.
    No data is coming in lt_kna1 table,
    I have changed the data declaration of lt_kna1. Earlier it was declared sa TYPE SATNDARD TABLE of kna1,
    and I changed it to:
      types: begin of ty_kna1,
              name1 type kna1-name1,
              kunnr type kna1-kunnr,
             end of ty_kna1.
    data: lt_kna1  TYPE TABLE OF ty_kna1 with header line,
    After doing this change, the problem started coming. Earlier the data was coming correct in it_kna1.
    How to solve this issue?
    Thanks,
    Ajay.

    Hi Ajay,
    Your field declaration is not in the sequence of the database table in KNA1.  Please correct it & also refer to domain directly instead of referring to field. Just do as below :-
    types: begin of ty_kna1,
    KUNNR type KUNNR,
    NAME1 type NAME1_GP,
    end of ty_kna1.
    Also check the value of the field KUNDE in lt_equi-kunde . It migh be because of CONVERSION EXIT .
    Bohn
    As to answer yuor query KUNDE in EQUI is same as KUNNR in KAN1.
    Regards
    Abhii

  • Value Field not fetching the data

    Dear COPA Experts,
    There has been an addition to the cost component structure for my current client. The cost component has been created and CK11n is showing the correct data for the correct cost component. I had to add value fields to my current COPA report to reflect the figures from the cost component. For that, I had created and activated the Value Fields in KEA6 and assigned it to the Operating concern in KEA0 and activated it. Then, I had assigned the value fields to the cost component structure in KE4R. I had then added the value field in the COPA form through KE95.
    When a new cycle is completed, It does not reflect the valuation in KE30 report. I had crossed checked in KE24 which is a standard report. The result in KE24 and KE30 report is same, i.e the valuation is not even reflected in KE24 report.
    Please guide me to where am I missing something?
    Best Regards...

    Hi,
      "When a new cycle is completed, It does not reflect the valuation in KE30 report". This statement is not clear. Are you expecting KEU5 cycles to populate this value field ? Normally this value field should be populated during billing (VF01) when the value of the cost component is populated in the value field.
    regards
    Waman

  • Web Service Test in SE80 does not work with internal Table

    Hello,
    I have created a web server based on a function module. It works fine when the server is invoked from outside (.Net or SOAPUI).
    However, when I test it in SE80, (open the Server and then F8), it shows error message:
         Access to the table ref. node 'Y02VSI_CAE_CONDITIONITEM' outside a loop
    (Germany Zugriff auf den Tabellen-Ref-Node 'Y02VSI_CAE_CONDITIONITEM' außerhalb einer Schleife )
    The test xml is generated from SAP, I just fill the data as following:
    This XML is absolute correct. Why item ('Y02VSI_CAE_CONDITIONITEM) is outside a loop?
    Is it a bug from SAP?
    Thanks in advance!
    Regards
    Dianlong

    Hi Dianlong,
    Please check if SAP note 1132501 is relevant for your ECC release. If you apply the note, you may have to re-generate the web service from the function module.
    Regards, Trevor

  • HR abap :  how to declare internal table to fetch data from 0585 infotype

    Hi all ,
    I am able to fetch the data from pa0585 infotype for set of employee no , but the problem is as the fields in pa0585 (like Contr to ULIP , NSC , Medical Treatment,Contribution to Certain Pension Funds so on ..) will be changed dynamically and will be displayed based on the amount value in descending order iam not able to store the values of the fileds into internal table . I dont understand how to declare the internal table ..Please help in if u have solved this kind of problem.
    I shld get the output in this way ...
    Emp No     Name    Medical treatment       Contr to ULIP             ....... so on
    101          abc           10000                        150000                      .......so on
    102          xyz           12000                        150000                      .......so on
    My header shld be fixed and I shld display values in this way .... I can use write statement to display directly .
    Thanks ....

    Hi
    Decalre INFOTYPE
    Goto SE37 - Find FM -
    READINFOTYPE*

  • Function Module does not fetch value

    Hi All,
    I am using the fm RV_PRICE_PRINT_HEAD to fetch condition records. When I run this fm in SE37 for a particular document(vbeln) number, the values are fetched correctly into the internal tables TKOMV and TKOMVD.
    The same fm does not fetch values when I run for second time for the same document(vbeln). This means :
    1) I will go to SE37, type RV_PRICE_PRINT_HEAD, supply the export parameters in COMM_HEAD_I, execute it and obtain the condition records (Till this time absolutely fine)
    2) Now, press Back (F3), Let the export parameters in "COMM_HEAD_I" will remain same. Just press Execute (F8). Then condition values are not fetched.
    Could any body help in this regard...
    Thanks
    Thimmappa Hegde

    Hi
       I have given you the other alternative bcoz there is a limitation while calling this FM: RV_PRICE_PRINT_HEAD.
    If you see the comments and code of Include: LV61AA11, you can understand the problem.
    <b>* mechanism to controll which conditions are already part of table TKOMV
    Every time a pricing result is read from database the key is put into
    TABGL. Also TABGL is updated if we've lines in TKOMV assigned to a
    special key but entry in TABGL (case 2).
    Originally TABGL was established to handle following pathological
    case: condition successfully read from DB -> entry in TABGL. Then all
    read conditions where deleted during processing (e.g. manually
    deletion etc.). If we run into this routine again no records should
    be redetermined from DB...</b>
      read table tabgl with table key knumv = komk-knumv
           transporting no fields.
    Case 1:
    conditions have been already read because there is a fitting entry in
    TABGL. Exit immediately if caller doesn't want to force DB access.
      if sy-subrc eq 0. ---><b> First time SY-SUBRC NE 0 so no problem</b>   
         if generell_lesen ne 'X'. <b>--> Later runs SY-SUBRC  eq 0 and generell_lesen value is SPACE</b>.
            exit.
        endif.
      else.
      Hope this clarifies your doubt now.
    Kind Regards
    Eswar

Maybe you are looking for