Function Module to get Active Serial Numbers of Material Stock

Hi Experts,
Do we have any function module to get all the active serial numbers of Material Stock? Or any suggestions on how to get these through SQL Queries?
Thanks a lot for your help!

GET_SERNOS_OF_DOCUMENT

Similar Messages

  • Function Module Not Getting Activated

    Hi,
    We are using a customised function module which we are calling in a user exit. We would like to call this function module in update task in the user exit to populate data in a custom table.
    We have given the following parameters to the function module
    Import Parameters
    ITAB     LIKE     ZPRUNDAT
    Export Parameters
    l_subrc     TYPE     sy-subrc
    On the attributes tab of the function module, Update Module has been selected under processing type.
    When we try to activate this function module we get the following message
    EXPORTING parameters are not allowed in the update task.
    and the function module does not get activated. What should we change to get the function module activated?
    Mick

    Hi,
    Please try this....
    In function module
    In tables Section add this...
    RETURN TYPE BAPIRET2 and then activate.
    if its useful reward points

  • Function module to get the sequence numbers based on PERNR & payroll period

    Hi,
        Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
    Thanks
    Satya

    I think thats the only way
    CALL FUNCTION 'CU_READ_RGDIR'
        EXPORTING
          persnr          = p0001-pernr
        TABLES
          in_rgdir        = it_rgdir
        EXCEPTIONS
          no_record_found = 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.
    check whether "Pay date for payroll result" with in Start Date and
                  End date, and "Reason for Off-Cycle Payroll" is initial
      LOOP AT it_rgdir WHERE paydt >= v_begda
                             AND paydt <= v_endda AND
                             void IS INITIAL
                             AND ocrsn IS INITIAL
                             AND srtza = 'A'.
        v_seqnr = it_rgdir-seqnr.
    ENDLOOP.
    Hope this helps.
    Thanks
    Kiran

  • BAPI function module to get process orders for certain material

    Dear experts ,
    kindly , I need my vb application to get all CRD , but not DLV Process orders for Material X.
    Into SAP , I use the COIO , then set material to X , then display flag CRTD included , and Exclude DLV.
    Question now , What is the function module that does this. what is the table name , and how to set search parameters.
    my code will be like this
    theFunc = functionCtrl.Add("BAPI_PO_GETDETAIL") ' get po data
       theFunc.exports("purchaseorder") = t.Text
                 returnFunc = theFunc.call
            returnParam = theFunc.imports("po_header")
            retTab = theFunc.tables("po_items")
            For Each rr In retTab.Rows
                tt1.Text &= (rr("MATERIAL")) & vbTab
            next
    Thanks
    Waleed

    Hi,
    Check if the below helps:
    1.  BAPI_SALESORDER_GETLIST for VA05
    2. BAPI_QUOTATION_GETDETAILBOS for VA25.
    Regards,
    Vivek

  • Function module to get Conditions based on Customer & Material

    Hi,
    Is there any function module such that the list of conditions are displayed, based on Customer & Material given?
    Thnx in advance,
    Shivaa.....

    actualy Jan this report is based on GL account no..GL acount no.s dat we required are not there in bsid n bsad...we need bank related GL account no..IN BSID n BSAD all GL account no. are customer GL account no.s...

  • Program or function module to get active Batch jobs

    Hi Experts,
                     I need a program or a FM that would give me the list of active batch jobs and also the time they were running
    for.
    Plz help me out

    You Just follow the below code, It is exactly same as your requirement.
    TYPES:   BEGIN OF ty_itbl,
               jobname   TYPE   tbtcp-jobname,
               jobcount  TYPE   tbtcp-jobcount,
               stepcount TYPE   i,"tbtcp-stepcount,
               sdldate   TYPE   tbtcp-sdldate,
               sdltime   TYPE   tbtcp-sdltime,
               sdluname  TYPE   tbtcp-sdluname,
               status    TYPE   tbtco-status,
               END OF ty_itbl.
      DATA :   wt_itbl TYPE TABLE OF ty_itbl,
               wa_itbl TYPE ty_itbl.
    SELECT     a~jobname
                   a~jobcount
                   a~stepcount
                   a~sdldate
                   a~sdltime
                   a~sdluname
                   b~status
                   INTO CORRESPONDING FIELDS OF TABLE wt_itbl
                   FROM tbtcp AS a
                   INNER JOIN tbtco AS b
                   ON    b~jobname    EQ    a~jobname
                   AND   b~jobcount   EQ    a~jobcount
                   WHERE a~progname IN wp_prog
                   AND   a~sdldate  IN wp_date
                   AND  b~status eq <STATUS>. "<-Give the Active Status here

  • Function module to get list from CDHDR for MATERIAL

    Hello,
    I am searching for the function to get a list of CDHDR-entries for a material in transaction MM03.
    My debugging was not successful. So I hope someone here has the answer.
    What is the name of the function that SAP uses in TA MM02/MM03 to get the list of CDHDR-entries for a material number and from where (include) is it called?
    I found already the function to get the related CDPOS entries, starting from the list with CDHDR entries in the transaction.
    This is CHANGEDOCUMENT_READ_POSITIONS.
    But here I am definitely too late, because I am searching for the reasn why one of my changes entered in CDHDR is not selected!
    Thank you in advance for the answer!
    Best regards
    Dirk

    Hello Suhas,
    yeah, I used MM04 from your answer and found the same!
    Thank you! This will help me!
    It is    PERFORM relevanz_pruefen
    called after the FM which kills some of my entries.
    Now I can find a solution for my issue!
    Best regards
    Dirk

  • Function module to get md04 data

    I need function module to get below data of the material as per the mrp area.
    Thanks,
    Kiran

    Hello Kiran and Kumar
    As I have explained in the following thread, BAPI_MATERIAL_STOCK_REQ_LIST should be used instead of MD_STOCK_REQUIREMENTS_LIST_API.
    Material shortage report after mrp run.
    BR
    Caetano

  • Any function module for getting fiscal year week numbers

    can any one provide me function module for getting fiscal year week numbers ? if no function module please let me know work around.
    Thanks!
    Lakshmikandh

    hi,
    Use FM <b>'DATE_GET_WEEK'</b>...
    parameter D1 LIKE SCAL-DATE.
    Data w like scal-week.
    CALL FUNCTION <b>'DATE_GET_WEEK'</b>
    EXPORTING
    date = D1
    IMPORTING
    WEEK = W
    EXCEPTIONS
    DATE_INVALID = 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.
    write W+4(2).
    Regards,
    Santosh

  • Standard FM to get the Serial Numbers associated with the PO

    Hi,
    I'm using the Standard FM "BAPI_PO_GETDETAIL1" to get the details of the PO which I have created. The FM is returning the details such as PO HISTORY, POITEM, POHEADER etc. I want the serial numbers associated with the PO.
    Please help me to get the serial numbers which are issued to the PO since the material assigned to the PO is serialised material. Another Standard FM "BAPI_PO_GETDETAIL" also I have tried but there is no serial number collection in that FM.
    Thanks in Advance,
    Mohan.

    These function modules will not return you the serial number. May be you can use following logic.
    You can use table ser03 where in you wll input material document number and find out obknr. Pass this obknr to objk table and find out seril number.
    And to find the material document number for the relevant purchase order number you can use table EKBE.
    So for EKBe-BEWTYP= E and EBELN= purchase order find EKBE-MBLNR(belnr).
    The material document number and year  found above pass it to SER03-MBLNR and SEr03-mjahr and find SEr03-obknr.
    The obknr number found above pass it to OBJK and find serila numbers..
    Regards
    Sangeeta

  • How to get the serial Numbers issued for an STO

    Hi,
    I created my own STO and mapped a serialised material for the same using transaction. I increased the stock by issuing serial numbers. The /SYCLO/MM_DOPURCHASEORDER_GET BAPI returns the PO header, item and longtext details. I want the serial numbers which are issued to the STO and the list of serial numbers for which the receipts has been done.
    I want to know how to get the serial numbers which are issued to the STO throught the standard function module. I want only the issued serial numbers not the one for which the receipts has been done.
    I tried using the standard BAPI, "BAPI_PO_GETDETAIL1" to get the serial number collection. But the FM is not returning the issued serial number as well as the list of serial numbers for which the receipts has been done. It is returning only the PO history in which the list of document number are present.
    Thanks in Advance,
    Mohan.

    Hi,
    Using the transaction "MB1C" and movement type "561", I filled the required details such as Material Number, Quantity, Storage Location and Batch. After filling all these details, when I press enter, it will ask for me to enter the serial numbers equal to the quantity specified. I entered the serial numbers by selecting the available serial numbers for that particular material by pressing F4 help.
    Please let me know if you need any more inputs in this regards.
    Thanks,
    Mohan.

  • Function module to get the configuration of Individual objects

    Hi all,
    Is there is any std function module to get the data of individual object configuration.
    In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by using the PRODUCT_GUID.
    Pl  through some light on this.
    Regards
    A.Sureshbabu.

    Hi,
    You can get the item configuration using FM CRM_CONFIG_READ_OW.
    This is used to read the product configurations for IPC calls.
    Just pass the configured item guid and it will return the configuration data.
    Use FM CRM_PRODUCT_I_READ_OW to get the product configurations but this FM checks whether any item has this product guid.
    Regards,
    Arun Kumar
    Edited by: Arun Kumar on May 12, 2010 10:20 AM

  • Function module to get components

    Hi,
    Anyone knows of a function module that gets the components attached to an activity?

    Hi Jackie,
    Please consider BAPI_NETWORK_COMP_GETDETAIL and BAPI_NETWORK_GETDETAIL
    Thanks
    Martina

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 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.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • Function module for getting the open qty

    HI experts,
                      I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
    Can you suggest any function module to get this open PO quantity.

    Hello,
    Hope this link can help you.
    [Po Open Quantity;
    Thanks
    Jayant

Maybe you are looking for