Reg:function module to retrive the ekko table data

Hi all,
Is there any function module to retrive the ekko table data for the given select-options and parametrs.
could you provide that.
Thanks & regards,
S.chaitanya.

dear chaitanya,
may be you can use this function module ME_READ_EKKO_MULTIPLE which can be used to pass the select options to retrieve the desired EKKO data.
OR the best way would be to do a SELECT Query which would retrieve the data faster and in an effective manner.
Hope this helps you.
Help Children of U.N World Food Program by rewarding and enocourage others to answer your queries
Thanks
Venugopal

Similar Messages

  • Need a function Module to retrive the weekly absence data from PNP logical

    hi all,
    i have generated a report for absence data according to my report when u enter the start date and end date and absence type it will give u the list of employees and starting date and end date and absence hours.
    But my client wants the report in following format:
    YEAR    week number      number of absence hourse in that week
    2006  -
        WEEK  -
                  HOURS
    infotype is pa2001.
    thx in advance.
    Sunil

    Hi Sunil,
    I think you have to use zreport.
    Regards,
    kumar

  • Reg: function module to fetch the overall taxs for  a sales order

    Hi Experts,
    I need a fuction module which fetches all the taxes for a sales order with the tax values.
    (i.e) i need a function module with displays the overall tax values and not line itemwise..
    Regards,
    Vikram.S

    Hi,
    Check if it works
    POS_SALES_DOCUMENT_HEAD_TAXES

  • Function module to modify the vendor confirmation data

    Hi,
    I am using ME_CONFIRMATION_UPODATE to add a new record to table EKES, ie I am able to see the vendor confirmation in purchase order. Can I use the same function module to modify the same record in above table EKES or anyother function module is there? My requirment is to change the delivery date once again in confirmation tab in purchase order.
    Please help,
    Thanks,
    Vengal Rao.

    Hi All,
    I could use the same function module and change the delivery date, i thing I changed is the data in field KZ , instead of 'I'  used 'U'.   to update the existing data.
    Thanks,
    Vengal Rao.

  • Function Module to find the Last Execution date of Back ground Job

    Hi,
    Is there any function module to find the <b>last execution date of back ground job</b>.
    So that I can transfer the data from SAP to Legacy system based on the document creation date should be in between last execution date and current date.
    thanks in advance.
    Eswar.

    Don't know of a function module, but you should be able to use the information in table TBTCO to get the last start date and time of the job you are interested in.

  • Function module to get the difference of dates ..

    Hi ,
    Can somebody pls help me with the function module to get the difference between two dates?
    I need to find the difference value and delete records if >1.
    Thanks in advance.
    Regds,
    Leeza.

    Leeza,
       When I tested the FM in my Program, it is <b>working</b>!!!!!
       Note that the Two Input Dates are to be in the format of <b>DATS</b> type (Eg: <b>vimimv-dmibeg</b>).
      U can want the Day which u have specified in the parameter I_DATUM_BIS (eg: 20050101) to be included for
    the calculation , then put X in the parameter I_KZ_INCL_BIS.
    Sample Code :
    report zkam01.
    data:           
    <b>sav_nlaufz like rf60v-nlaufz, 
    date1 type vimimv-dmibeg,
    date2 type vimimv-dmiend.</b>
    date1 = '20050101'.
    date2 = '20051001'.
    call function 'MONTHS_BETWEEN_TWO_DATES'
         exporting
             i_datum_von   = date1
             i_datum_bis   = date2
             i_kz_incl_bis = 'X'
         importing
             e_monate      = sav_nlaufz.
    write:
    date1,
    / date2,
    / sav_nlaufz.
    Please allot points if the problem is solved.
    Thanks
    Kam
    Message was edited by: Kam

  • Function Module to get the MMBE transaction Data

    Hi All,
    My requirement is to calculate the open stock of a given part number in all the plants. I was told that the MMBE transaction in SAP can give me the data. So, I was searching for a function module or Bapi which could get this data which I can call in my program. Can anyone help me out?? Thanks.

    Hi Mohan,
    You can try this code..with slight modifications.. (to work for all PLANTS)
    Regards,
    Raj
    FUNCTION ZMM_ISSUES_PER_YEAR_POWER.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_MATNR) LIKE  MARA-MATNR
    *"     REFERENCE(I_PLANT) LIKE  T001W-WERKS
    *"     REFERENCE(I_GJAHR) LIKE  MSEG-GJAHR
    *"  EXPORTING
    *"     REFERENCE(E_STK_OPBAL) LIKE  BSIM-MENGE
    *"     REFERENCE(E_STK_VAL) LIKE  BSIM-DMBTR
    DATA : V_STK_OPBAL LIKE BSIM-MENGE,
           V_STK_VAL   LIKE BSIM-DMBTR,
           V_GJAHR     LIKE MSEG-GJAHR.
    DATA : BEGIN OF IT_BSIM OCCURS 0,
              MATNR LIKE BSIM-MATNR,
              SHKZG LIKE BSIM-SHKZG,
              MENGE LIKE BSIM-MENGE,
              DMBTR LIKE BSIM-DMBTR,
           END OF IT_BSIM.
    TYPES: BEGIN OF ST_MSEG,
              MATNR LIKE MSEG-MATNR,
              SHKZG LIKE MSEG-SHKZG,
              MENGE LIKE MSEG-MENGE,
              DMBTR LIKE MSEG-DMBTR,
              BWART LIKE MSEG-BWART,
              LGORT LIKE MSEG-LGORT,
           END OF ST_MSEG.
    DATA : IT_MSEG  TYPE ST_MSEG OCCURS 0 WITH HEADER LINE,
           TMP_MSEG TYPE ST_MSEG OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF IT_MBEW OCCURS 0,
              MATNR LIKE MBEW-MATNR,
              LBKUM LIKE MBEW-LBKUM,
              SALK3 LIKE MBEW-SALK3,
           END OF IT_MBEW.
    *V_KEYDT = I_KEYDT + 1.
    SELECT MATNR
           SHKZG
           SUM( MENGE )
           SUM( DMBTR )
      INTO TABLE IT_BSIM
      FROM BSIM
    WHERE MATNR EQ I_MATNR
       AND BWKEY EQ I_PLANT
       AND GJAHR EQ I_GJAHR
       AND BLART IN ('RE','WE','WA','PR')
    GROUP BY MATNR SHKZG.
    *SELECT MATNR
          SUM( LBKUM )
          SUM( SALK3 )
    INTO TABLE IT_MBEW
    FROM MBEW
    WHERE MATNR EQ I_MATNR
      AND BWKEY EQ I_PLANT
      AND VPRSV EQ 'V'
      AND BWTAR EQ ''
    GROUP BY MATNR VPRSV.
    SELECT A~MATNR
           A~SHKZG
           SUM( A~MENGE )
           SUM( A~DMBTR )
           A~BWART
           A~LGORT
      INTO TABLE IT_MSEG
      FROM MKPF AS B
      JOIN MSEG AS A
        ON BMBLNR EQ AMBLNR
       AND BMJAHR EQ AMJAHR
    WHERE A~MATNR EQ I_MATNR
       AND A~WERKS EQ I_PLANT
       AND A~KZBEW IN (' ','B')
       AND A~BWART NOT IN ('541','542','321','322','121')
       AND A~KZVBR NOT IN ('A')
       AND A~GJAHR EQ I_GJAHR
    GROUP BY AMATNR ASHKZG ABWART ALGORT.
    LOOP AT IT_MSEG WHERE BWART EQ '544' AND LGORT EQ ''.
       TMP_MSEG = IT_MSEG.
       APPEND TMP_MSEG.
    ENDLOOP.
    DELETE IT_MSEG WHERE ( BWART EQ '309' AND DMBTR EQ 0  ).
    DELETE IT_MSEG WHERE ( BWART NE '543' AND LGORT EQ '' ).
    LOOP AT TMP_MSEG.
       IT_MSEG = TMP_MSEG.
       APPEND IT_MSEG.
    ENDLOOP.
    *READ TABLE IT_MBEW WITH KEY MATNR = I_MATNR.
    *V_STK_OPBAL = IT_MBEW-LBKUM.
    *V_STK_VAL   = IT_MBEW-SALK3.
    LOOP AT IT_MSEG.
       IF IT_MSEG-SHKZG EQ 'H'.
          V_STK_OPBAL = V_STK_OPBAL  - IT_MSEG-MENGE.
          V_STK_VAL   = V_STK_VAL    - IT_MSEG-DMBTR.
      ELSE.
         V_STK_OPBAL = V_STK_OPBAL  + IT_MSEG-MENGE.
       ENDIF.
    ENDLOOP.
    LOOP AT IT_BSIM.
       IF IT_BSIM-SHKZG EQ 'H'.
         V_STK_OPBAL = V_STK_OPBAL  - IT_BSIM-MENGE.
         V_STK_VAL   = V_STK_VAL    - IT_BSIM-DMBTR.
      ELSE.
         V_STK_OPBAL = V_STK_OPBAL  + IT_BSIM-MENGE.
         V_STK_VAL   = V_STK_VAL    + IT_BSIM-DMBTR.
       ENDIF.
    ENDLOOP.
    E_STK_OPBAL = V_STK_OPBAL.
    E_STK_VAL   = V_STK_VAL.
    ENDFUNCTION.

  • Function module to display the time and date in the report-sy-udate And s

    Hi.
    wish to have a function module which can display the system time and date through function module.
    the format that this function module should display should be like this:
    if its today-date and time then:
    05-Jan-08 01.25.57 PM
    please note that i want them to be in one single row in the top-of page
    kinldy help on this.
    thanks!

    hi,
    check this.
    https://forums.sdn.sap.com/click.jspa?searchID=19175181&messageID=4628668
    Thanks

  • Function module to retrieve the material master data

    Hi all,
    creating material master dta i am using BAPI_MATERIAL_SAVEDATA .is there any f.m with same structures as BAPI_MATERIAL_SAVEDATA to retrieve the materi master data.

    Hi,
    Not sure if there is any function module to get material master data with the same structure..
    But..
    You can select the data from MARA, MARC, etc...and convert it to the BAPI structures using the following function modules..
    CFX_MAP2E_MARA_TO_BAPI_MARA
    CFX_MAP2E_MARC_TO_BAPI_MARC
    Thanks,
    Naren

  • FM to upload the Internal table data into application server.

    Hi,
      Could you please give me Function module to Upload the Internal table data into Application server ie., in Tcode AL11.
    I know for downloading the Application server file into itab is "SUBST_GET_FILE_LIST" FM and using open dtaa set we get the data.
    Regards,
    deepthi.

    Hi Deepthi
    Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.
    Here's the code snippet:
    IF tb_alvdisplay[] IS INITIAL.
        MESSAGE e999(/dcsea/zais_msg) WITH text-e01.
      ELSE.
        IF  NOT cb_ufile IS INITIAL  "Download to file
         AND sy-pagno = 0.            "Only down page headers for first page
          PERFORM fm_concatenate_path_name USING    p_path
                                                    p_file
                                           CHANGING v_file.
    *Open file for download.
          PERFORM fm_open_file USING v_file .
        ENDIF.
        LOOP AT tb_alvdisplay.
          IF  NOT cb_ufile IS INITIAL.
    *Passing the values of the respective headings to the structure.
            ws_rec-vend_no     = tb_alvdisplay-vendno.
            ws_rec-vend_nm     = tb_alvdisplay-vendnm.
            ws_rec-title       = tb_alvdisplay-vendtl.
            ws_rec-add         = tb_alvdisplay-add.
            ws_rec-city1       = tb_alvdisplay-city1.
            ws_rec-region      = tb_alvdisplay-region.
            ws_rec-country     = tb_alvdisplay-country.
            ws_rec-pobox       = tb_alvdisplay-po.
            ws_rec-phone       = tb_alvdisplay-telf1.
            ws_rec-extn        = tb_alvdisplay-extn.
            ws_rec-fax         = tb_alvdisplay-telfx.
            ws_rec-zterm       = tb_alvdisplay-zterm.
            ws_rec-remark      = tb_alvdisplay-remark.
            ws_rec-email       = tb_alvdisplay-email.
    *Passing the separator 'PIPE' to the structure.
              ws_rec-sep01  = co_sep.
              ws_rec-sep02  = co_sep.
              ws_rec-sep03  = co_sep.
              ws_rec-sep04  = co_sep.
              ws_rec-sep05  = co_sep.
              ws_rec-sep06  = co_sep.
              ws_rec-sep07  = co_sep.
              ws_rec-sep08  = co_sep.
              ws_rec-sep09  = co_sep.
              ws_rec-sep10  = co_sep.
              ws_rec-sep11  = co_sep.
              ws_rec-sep12  = co_sep.
              ws_rec-sep13  = co_sep.
            TRANSFER ws_rec TO v_file.
          ENDIF.
          AT LAST.
            IF NOT cb_ufile IS INITIAL.
    *Closing the DATASET file.
              CLOSE DATASET v_file.
              IF sy-subrc <> 0.
    *Failure Message.
                MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.
              ELSE.
    *Success message.
                MESSAGE s999(/dcsea/zais_msg) WITH text-t05.
              ENDIF.
            ENDIF.
          ENDAT.
        ENDLOOP.
      ENDIF.
    Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.
    FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.
    Hope this helps.
    Harsh

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • Function module to find the columns in Internal table

    Hi Group,
    Is there any function module which displays the columns of the internal table. I guess there is one cos when we debug any program and select the "Tables" button while debugging and enter an internal table and then do a "Find" the pop up which comes up shows the internal table columns. As this functionality is in the debugger which I cannot debug hence was wondering if some one has come across any such function module. Thanks in advance.
    Regards,
    Ankur Bhandari
    [email protected]

    Hi again,
    1. In the above FM
       Pass Program as SY-REPID (U cann pass other prg name also)
    in FieldName Pass the name of the internal table
       eg. 'ITAB'
    2. This FM will give u the details of the
       internal table.
       The u can display the COMPONENTS table
       using ALV or anyother method u like.
    Regards,
    Amit M.

  • Function module to update the values in STPO table :   VERY URGENT!!!!!!!!!

    Hi All,
    Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
    Please do the needful..
    Regards
    Yathish

    For material bom: CSAP_MAT_BOM_CREATE
    and CSAP_ORD_BOM_CREATE for Order BOM.
    Regards,
    Ravi

  • Function Module to know the Acc doc no for a Material document.

    Dear Friends,
    What is the Function Module to know the Acc doc no for a Material document? Please help. Thanks in advance.
    Regards,
    RAMAN

    Hi Raman,
    I am not sure about your requirement,
    But i remember when i required the same like you i went to vrpma table to get the account document,
    I just did like a blind fold,
    as my company does all the billing accounts in the same month, my search criteria was blind.
    Also try with MKPF-XBLNR with the VBRK-XBLNR and get VBRK-VBELN
    from there goto BSEG.
    Thansk & regards,
    Dileep .C

  • Creation of function module for updating the ztable

    Hi,
    I am sending the requirement for ceation of function module for updating the ztable.
    Requirement----
    Table Updation rule (New record)
    While creating a new record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO------->     Sales Delivery no in case of sales orderShipment no in case of transfer order
    UNAME----
    >     User ID
    ZORDTYPE----
    >     SALEOR in case of sales orderTRANSF in case of transfer order
    ZREFDOCNO----
    >Sales Order no in case of sales orderPurchase Order no in case of transfer order
    ZREFDOCNO1----
    >Delivery no in case of transfer order
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZREQNO----
    >Running serial number (incremented by 1 for each new record)
    ZREQDAT     -
    >System date
    ZREQTIME----
    >     System time
    ZSTATUS----
    >OPEN (for all new records)
    Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
    Table Updation rule (Status Update)
    While updating a record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO----
    >Sales order no in case of sales orderShipment no in case of transfer order
    ZSTATUS----
    >CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZSTATDAT----
    >System date
    ZSTATTIME----
    >     System time

    Do you have to create/update new record in Ztable through Function Module ?
    or you need to write FM only for validation?
    Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
    Let me know clearly what exactly u need ?
    Regards,
    Kiran

Maybe you are looking for

  • Takes a long time for the status of the dshboard to go from unknown to display the information

    been trouble shooting a issue with this server where its running fine for a few weeks then it will slow down shares will stop working or print services, eventually has to reboot it, a few times it wouldn't reboot and would just hang and had to be har

  • It is asking for a router name and password???

    The sales person told me how easy this would be to set up..."just plug it in" he said...right.  Anyhoo - I disconnected my ancient wireless router and put the cd in - started doing its thing and then it asks for a router name and password...the only

  • Can a SAP report output by email in excel format?

    we have some batch jobs for SAP reports running  & sending the result to user by email every month, currently the format only in PDF file, is it possible to send the reports as mail attachments in xls format? Edited by: hcy h on Feb 3, 2010 4:11 PM

  • Text data source for the field Position(PLANS)

    Hi Experts, I have an infoobject ZPOSITION which i am using in a cube for this i can able to display key values but i want to display text for this ZPOSITION. The source for this field is Position(PLANS) which i have tacken from pa0001 table. I have

  • Copy client 000 to 001 in preview abap

    I am trying to copy client 000 to 001 in preview abap without success. Can someone help me if it is possible? How can I activate HELP in preview abap? Mat