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

Similar Messages

  • Report is not fetching the data from Aggregate..

    Hi All,
    I am  facing the problem  in aggregates..
    For example when i  am running the report using Tcode RSRT2, the BW report is not fetching the data from Aggregates.. instead going into the aggregate it is scanning whole cube Data....
    FYI.. Checked the characteristcis is exactely matching with aggregates..
    and also it is giving the  message as:
    <b>Characteristic 0G_CWWPTY is compressed but is not in the aggregate/query</b>
    Can some body explain me about this error message.. pls let me know solution asap..
    Thankyou in advance.
    With regards,
    Hari

    Hi
    Deactivate the aggregates and then rebuild the indexes and then activate the aggregates again.
    GTR

  • MDM Change tracker iView not fetching the data?

    Hello Experts,
    we have MDM Change tracker application deployed and assigned to some role in portal. However, the problem is fields like "Table" etc are blank. I am not able to fetch any data in it. I have activated change tracking for the required table in MDM backend as well.
    I was following this blog: /people/balas.gorla/blog/2006/09/08/change-tracking-in-mdm
    It is mentioned that some DB setting have to be done and some query to be written. I am confused, I have an iView in portal so do I still need to write the query? Or what is that I am missing?
    Please help.
    Ameya

    Hi Ameya,
    The SQL query written in the mentioned blog is just to recheck the data.
    Please recheck the settings using these documents:
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/c7b20339ee570ae10000000a114a6b/content.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/807861ac-f941-2c10-8f8d-c57f9d421b99?quicklink=index&overridelayout=true
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/49/a42bc834de1b93e10000000a42189b/content.htm
    Also on resetting change tracker:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10cbe10c-0654-2c10-3d8b-ff99dadc402e?quicklink=index&overridelayout=true
    The error can also occur if Database userid used has expired.
    Hope this helps!
    Thanks,
    Ravi

  • WD iView not fetching the data

    Hi,
         I developed some WD (Java) application.But certain iView like sales order,delivery order not displaying the sales order number & delivery order number. Fuction module is working fine in backend.How to resolve this,can anyone help me for the same?
    Thanks,
    Kundan
    Edited by: Kundan 2009 on Mar 8, 2010 12:04 PM

    Hi Kundan,
    Please display text message on screen whether correct sales order number & delivery order number coming or not model node/attribute.
    >For certain iView like sales order,delivery order not displaying the sales order number & delivery order number?
    Check your binding properly and context node/model node.
    Hope this will helps you.
    Regards,
    Arun Jaiswal

  • Linking the fields to fetch the data

    Hi friends,
    on my selection screen i have 3 fields
    S_BSTNK  =  Customer Purchase Order number
    S_TKNUM = Shipment
    S_KUNNR = Ship to
    Now my requiremnt is
    when the user enters the value in S_BSTNK , i should get all the invoices fromVBRK table.
    and later for those all invoices i should get the deliveries from VBFA table.
    Now for all those deliveries i should  get the SHIPMENT & SHIPTO  and should check for the values entered in S_TKNUM and S_KUNNR   ( ie : if the user enters shipment and shipto in S_TKNUM and S_KUNNR  it should get only those values which are entered ).
    now later i should get Customer purchase order number ( BSTNK )  Shipment (TKNUM ) and shipto ( KUNNR ) in one internal table .
    Can any one tell me how to link it.
    Regards,
    Priyanka.

    Hi Priyanka,
    Write like this.
    If s_BSTNK is not initial.
    CONCATENATE  l_cond 'BSTNK IN S_BSTNK'  INTO  l_cond SEPARATED BY space."#EC NOTEXT
        l_flag = 'X'.
    select *from vbrk into it_vbrk where (l_cond).
    endif.
    if s_BSTNK is not initial.
      if flag = 'X'.
    select * from VBFA into table it_VBFA for all entires in it_vbrk where (l_cond)
    endif.
    endif.
    if S_TKNUM is not initial.
    if l_flag = 'X'.
    CONCATENATE  l_cond 'AND' INTO  l_cond SEPARATED BY space.
    endif.
    CONCATENATE  l_cond 'TKNUM IN s_tknum'  INTO  l_cond SEPARATED BY space.
    select * from vtfa into table it_vtfa where (l_comd).
    endif.
    if S_KUNNR is not initial.
    if l_flag = 'X'.
    CONCATENATE  l_cond 'AND' INTO  l_cond SEPARATED BY space.
    endif.
    CONCATENATE  l_cond 'KUNNR IN s_KUNNR'  INTO  l_cond SEPARATED BY space.
    select * from kna1 into table it_vtfa where (l_comd).
    endif.
    This how you have to write dynmic selection.
    Id on't which tables and fields u want to get
    jsut i have written using * u can write u r own fields.
    I think it will solve u r pblm.
    If not please let me know i will help you.
    Thanks,

  • Column is not fetching the data

    This is one of the column in the insert statement which inserts the value to om_flag when i execute the procedure error is too many values
    (select third_party_flag from sfa_order_extended soe,sfa_order_booked sob,rep_admin.oe_order_headers_all f
    where soe.SFA_ORDER_ID = sob.SFA_ORDER_ID
    and f.header_id = sob.OF_HEADER_ID) om_flag
    i changed the statement by adding the rowid but after insertion the column om_flag only shows 'N' no value found with status 'Y' (which some order have the status 'Y'(--for reference)
    (select third_party_flag from sfa_order_extended soe,sfa_order_booked sob,rep_admin.oe_order_headers_all f
    where soe.SFA_ORDER_ID = sob.SFA_ORDER_ID
    and f.header_id = sob.OF_HEADER_ID and rownum<2 ) om_flag
    what is the issue can any one suggest

    is this an inline view for your SELECT COLUMN or for your FROM clause?
    maybe if you add DISTINCT?
    (select distinct third_party_flag
       from sfa_order_extended soe,
            sfa_order_booked sob,
            rep_admin.oe_order_headers_all f
      where soe.SFA_ORDER_ID = sob.SFA_ORDER_ID
        and f.header_id = sob.OF_HEADER_ID) om_flag

  • Not able to fetch the data by Virtual Cube

    Hi Experts,
    My requirement is I need to fetch the data from Source System (From Data base table) by using Virtual Cube.
    What I have done is I have created Virtual Cube and created corresponding Function Module in Source System.
    That Function MOdule is working fine, if Data base table is small in Source System.But If data base table contains huge amount of data (millions of record), I am not able to fetch the data.
    Below is the code I have incorporated in my function module.
    c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = '0PARTNER'.
      l_s_map-fldnm  = 'PARTNER'.
      insert l_s_map into table l_th_mapping.
    create object l_r_srv
        exporting
           i_tablnm              = '/SAPSLL/V_BLBP'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    In the above function Module,Internal table L_TH_MAPPING contains Info Objects from Virtual Cube and corresponding field from Underlying data base table.
    The problem where I am facing is, in the method FETCH_PACK_DATA, initially program is trying to fetch all the recordsfrom data base table to internal table.If Data base table so lagre, this logic is not working.
    So would you please help me how to handle these kind of issues.

    Hi Experts,
    My requirement is I need to fetch the data from Source System (From Data base table) by using Virtual Cube.
    What I have done is I have created Virtual Cube and created corresponding Function Module in Source System.
    That Function MOdule is working fine, if Data base table is small in Source System.But If data base table contains huge amount of data (millions of record), I am not able to fetch the data.
    Below is the code I have incorporated in my function module.
    c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = '0PARTNER'.
      l_s_map-fldnm  = 'PARTNER'.
      insert l_s_map into table l_th_mapping.
    create object l_r_srv
        exporting
           i_tablnm              = '/SAPSLL/V_BLBP'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    In the above function Module,Internal table L_TH_MAPPING contains Info Objects from Virtual Cube and corresponding field from Underlying data base table.
    The problem where I am facing is, in the method FETCH_PACK_DATA, initially program is trying to fetch all the recordsfrom data base table to internal table.If Data base table so lagre, this logic is not working.
    So would you please help me how to handle these kind of issues.

  • Sys_refcursor not fetching any data although query returns value

    hi!!!
    I am using sys_refcursor to return columns,and using below procedure to do so.Although data is there in table_1 and table_2.
    PROCEDURE test_pro(abc_date N DATE,
    cur_get_data OUT sys_refcursor
    OPEN cur_get_data
    for
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    IF cur_get_data%rowcount=0
    then
         raise e_error;
    END if;
    EXCEPTION
         when e_error
         then
              ------no_data_found;
         when others
         then
    --------(giving SQL error with error code);
    END      test_pro;
    while running below sql in sql window of pl/sql developer fetching
    data
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    so can somebody please put some ideas what cud be the possible reason for this??

    Welcome to the forum!
    Unfortunatley you posted to the wrong forum. This question belongs in the SQL and PL/SQL forum.
    PL/SQL
    >
    sys_refcursor not fetching any data although query returns value
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    >
    A cursor doesn't fetch data - your code has to do that. The code you posted doesn't have any FETCH statements so no data will be fetched.
    There is no problem using 'IF cur_get_data%rowcount=0' but it will always be 0 in your code because you are not fetching any data.
    I'm guessing that you are trying to determine if there are any rows for the query. That isn't going to work since a cursor doesn't fetch rows.
    You just have to return the cursor to the caller and the caller will have to perform at least one fetch to see if there are any rows.
    If the above answers your question the just mark the question ANSWERED. Otherwise, since you have posted in the wrong forum
    1. repost the question in the SQL and PL/SQL forum
    2. Edit this post to add a link to the new thread in the other forum
    3. Mark this question ANSWERED so people will follow up in the other forum.
    Thanks.

  • Could not convert the data value due to reasons other than sign mismatch or overflow. ADSI Provider

    I'm trying to run the following query against Active Directory using the ADSI Provider using SSMS 2012 SP1:
    SELECT
    TOP901
    *FROMOpenQuery
      ADSI
    'SELECT description
      FROM  ''LDAP://OU=MMICorporate,DC=mmis,DC=mi,DC=com''
      WHERE objectClass =  ''User''
    and objectcategory = ''Person''
    and ''userAccountControl:1.2.840.113556.1.4.803:''<>2
    )AStblADSI
    Msg 7346, Level 16, State 2, Line 2
    Cannot get the data of the row from the OLE DB provider "ADsDSOObject" for linked server "ADSI". Could not convert the data value due to reasons other than sign mismatch or overflow.
    I only have this issue querying the Description Field. 
    I also found a hotfix KB: 887474 for this but it is for Windows 2003.  SQL Server OS I have is Server 2008 R2.  Is there a fix for 2008 R2?
    Thanks

    Thanks for the quick response.
    I checked out the link and I can only convert to Ul8 and when I try I get the same error:
    SELECT
    TOP901
    *FROMOpenQuery
      ADSI
    'SELECT name, convert(UI8, description)
      FROM  ''LDAP://OU=MMICorporate,DC=mmis,DC=mi,DC=com''
      WHERE objectClass =  ''User''
    and objectcategory = ''Person''
    and ''userAccountControl:1.2.840.113556.1.4.803:''<>2
    )AStblADSI
    Am I missing something?
    Thanks

  • How to fetch the data & display the data if fields got the same name in alv

    hi frnds, i need ur help.
    how to fetch the data & display the data if fields got the same name in alv grid format.
    thanks in advance,
    Regards,
    mahesh
    9321043028

    Refer the url :
    http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
    Go thru the guide for OOPs based ALV.
    Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
    CALL METHOD grid->set_table_for_first_display
     EXPORTING
    I_STRUCTURE_NAME = 'SFLIGHT'     “Structure data
    CHANGING
    IT_OUTTAB = gt_sflight.          “ Output table
    You can also implement
    Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY. 
    For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
    1. Selection of data.
    2. Prepare Layout of display list.
    3. Event handling.
    4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
    Regd,
    Vishal

  • Error the entered value does not match the specified field type

    Hi,
    When I try to insert a null value to a field of the User Defined Table I am getting the error "The entered value does not match the specified field type" in SAP Business One version 2007 PL 42.
    Any help would be appreciated.
    Thanks in advance.
    Sudha.

    Hi Sudha,
    It probably have to do with how you defined the field.
    Is Null value allowed?
    What are the field definitions?
    Thanks,
    Jesper

  • EVCVW - Not Fetching the Dimension data

    Hi Friends,
    I designed a inut schedule where I used, EVCVW ($H$2,G11) to fetch the data of Dimension ex.. project.. I am unable to get the data. When I tested other page through EVDRE(), it is showing all the data for project ($H$2,G11), when I refresh, selct othe project, this is working, this is not working on the input schedule page.
    Pls send me your thoughts..
    Regards
    CSM Reddy

    Hi Friends,
    It is solved. I used EVCVW ( "APPLICATION","PROJECT") insted of EVCVW ($H$2,G11) ..
    Will be back for any other queries..
    Regards
    CSM Reddy

  • DI: Stock Transfer error (Unique field value does not match the system ...)

    Hi
    I made an add-on that makes stock transfers via DI API. The add-on has been running for two months with more than 10,000 stock transfers with almost no problems.
    The company that is using the add-on have all their products managed by serial/batch numbers.
    But just with one transfer Im getting the error in the stock transfer Add() method:
    "Unique field value does not match the system serial number [(----)29-52]"
    And I tried to debug it without success, I checked that the system serial numbers exists in the origin warehouse and are available. And I really can't find where is the problem.
    If somebody knows what this error means, please let me know.
    Thanks in advance,
    Regards,
    Allan

    Hi János, thanks for your answer.
    I found what was the problem, it was not exactly what you told me, but you gave me some insights to found the problem.
    The thing is that Im using UDT's to store the information of stock transfers (before creating a real SAP stock transfer), because of the funcionality of the add-on. After some user have done some steps or validations, the add-on actually does the real SAP stock transfer.
    The problem here was that my tables had some InternalSerial for some Item, for example the serial A-234, and before the real SAP stock transfer was made, they changed the serial from A-234 to A234 (in the serial number management). So the add-on was trying to create the transfer with the serial A-234, but the serial A-234 no longer exists.
    I have to create a validation that if they change the serial number for an item, I have to change it in my UDT's.
    On the other hand, Im not sure, but I think that I read before that you made a Warehouse Management add-on. This add-on that Im working now is a kind of warehouse management.
    Im having a lot of headaches because the poor accessibility to the user fields in the OSRI and OIBT tables. Im sure that you have faced problems with this. If you have any tips or advices about this it would be greatly appreciated.
    Thanks again,
    Regards
    Allan

  • 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

  • Tables or fm to fetch the data for idoc type WMMBID01

    hi
    i have to create function module in whish i have to fill segments of  idoc type
    WMMBID01.
    is there any fm which can fetch the data for the required fields of segment based on the document no.
    or which tables i can use to fetch the required data for goods issued ie transaction migo.
    regards
    vijay

    HI
    GOOD
    TRY WITH THESE FM
    DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read the values from a report's selection screen too (Another example).
    HELP_START Display help for a field. Useful for doing AT SELECTION SCREEN ON VALUE REQUEST for those fields that do not provide F4 help at the DDIC level.
    RPY_DYNPRO_READ Read dynpro, including screen flow
    RPY_TRANSACTION_READ Given a transaction, return the program and screen or given a program and screen, return the transactions that use the program and screen.
    THANKS
    MRUTYUN

Maybe you are looking for