Function module to read all the views of material data

Dear all ,
       Is there any function module to read all the views of material data ?
       Like we have MATERIAL_MAINTAIN_DARK for updating all the views of material data , I need a function module to read all the views of material master.
Thanks & Regards
Shivanand

Hello,
Check these BAPI'S
<b>BAPI_MATERIAL_DISPLAY          Display Material
BAPI_MATERIAL_GET_DETAIL       Determine Details for a Material</b>
Regards,
Vasanth

Similar Messages

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

  • Function Module To read all the Files in a Given UNIX directory.

    Can anyone provide me with a FUNCTION MODULE which reads all the files available in a UNIX directory?
    I have the UNIX directory given. I need to find all the files available in that particular Directory so that I can choose and process accordingly. Probably I can store all files in an Internal Table.
    Thanks in advance.
    Sunil

    Hi Nick,
    Thankyou very much for the response.
    The Function Module /SAPDMC/LSM_F4_SERVER_FILE is interactive wherein we can select only one file.
    But my requirement is I need to collect (probably in an internal table) all the files exixting in the given UNIX directory.
    Can you please find in that direction. I would be very grateful.
    Thanks.
    Sunil

  • Function module to retrieve all the personnel numbers in the eval path

    Hi all,
    I want to retrieve all the personnel numbers that fall in the evaluation path.
    Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
    if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
    any help??
    regards
    Sam
    regards
    Sam

    Hi
    U can use FM  RH_STRUC_GET to get the pernr in the evaluation path
    data : IT_RESULT_TAB     TYPE STANDARD TABLE OF SWHACTOR .
                CALL FUNCTION 'RH_STRUC_GET'
                  EXPORTING
                    ACT_OTYPE  = C_OTYPE
                    ACT_OBJID  = W_POSIT
                    ACT_WEGID  = C_WEGID (relation B002 like )
                    ACT_BEGDA  = W_BEGDA
                    ACT_ENDDA  = W_BEGDA
                   ACT_TDEPTH = 1 ( depath 1, 2, etc )
                  TABLES
                    RESULT_TAB = IT_RESULT_TAB .
    Nb : Give points if it worths

  • Is there a Function Module to read all BOM Variants

    Hi,
    I have a requirement to read all the BOM variants of Engineering BOM through a Function Module and pass this information to Third Party Application.
    Is there any such Function module/BAPI?
    Need your expert advice.
    Thanks and Regards,
    OmPrakash

    Hi ,
    If you want to use 'CS_BOM_EXPL_MAT_V2' funtion to get the BOM components, you need to give the importing parameter mtnrv( material number).
    the components are stored in TABLES : stb.
    I am doing this way.
    but werks, date , and capid are optional .
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
           EXPORTING
             mtnrv                 = i_matnr
             werks                 = i_werks
             datuv                 = i_date
             capid                 = l_capid
           IMPORTING
             topmat                = ms_cstmat
           TABLES
             stb                   = lt_stpox
           EXCEPTIONS
             alt_not_found         = 1
             call_invalid          = 2
             material_not_found    = 3
             missing_authorization = 4
             no_bom_found          = 5
             no_plant_data         = 6
             no_suitable_bom_found = 7
             conversion_error      = 8.
    Please give it a try.
    BR,
    Ovidiu

  • Function Module to delete all the red requests in Info Cube

    Dear Friends,
    Is there any standard FM which can delete all the red requests in the infocube ?
    Thanks & Regards,
    Ashutosh Singh

    you can use RSDD_INFO_REQUID_DELETE.
    you've got to create a program in which you first read table rsbkrequest (where you can find the status of the request)
    then you can use these id's in the function module.
    as a lead check this paper (other objective but same principle)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a7ba9523-0b01-0010-18ab-cf8b3b8c374a?quicklink=index&overridelayout=true
    M.

  • Function Module for finding all the users in an org unit?

    Hi,
    is there a function module or a table by which we can find all the users within a purchasing group of purchasing organisatiopn unit.
    Looking for a quick response.
    Regards,
    Neha

    Please use the function module BBP_OM_STRUC_GET_USER_FROM_ORG.  You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
    Note:
    OTYPE = 'O'.
    OBJID = <Org Id say 50002323>.
    Regards
    Kathirvel
    Edited by: Kathirvel Balakrishnan on Sep 24, 2008 2:25 PM

  • Account Hierarchy : Function Module to get all the nodes of a hierarchy

    Hi Experts,
    Is there a function module which will give as output all the Node GUIDs for a particular account hierarchy in SAP CRM,when the Node GUID of any single node in the same tree is given as input?
    Best Regards,
    Ashish Dhagat

    Thanks mate.
    Edited by: pankaj kandhare on Aug 14, 2011 7:56 AM

  • Function module to find get the  Fiscal period using date

    Hi Experts,
    I am need of getting fiscal period and year from the given date. Is there any function module exists. Please advise.
    Thanks in advance,
    Viven

    DATA: I_FYV1 LIKE T009-PERIV.
      CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
        EXPORTING
         COMPANY_CODE           = i_billno-bukrs
         COMPANY_CODE           = S_BUKRS-LOW
        IMPORTING
          FISCAL_YEAR_VARIANT    = I_FYV1
       EXCEPTIONS
         COMPANY_CODE_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.
      CALL FUNCTION 'ME_DETERMINE_GJAHR'
       EXPORTING
      I_BSTYP         =
          I_BEDAT         = P_DATE
         I_PERIV         = I_FYV1
      IMPORTING
      E_H_MONAT       =
        E_H_GJAHR       = GJAHR1
      E_H_DATUM       =

  • Which Function Module can find all direct and indirect subordinate.

    Hi,
        I have a employee number(Chief of a organizational unit A). Do you know which function module can get all the direct and indirect subordinate of this chief? Indirect subordinate means that this chief can also view the Organizational unit(for example, Org. unit B) that under Org. Unit A. Further more, this chief can also view all the employees in other org unit that under Org. Unit B. If there is no such function module, do anyone of you have the example coding to get it? Your help is greatly appreciated. Thanks.

    use RH_STRUC_GET
    ~Suresh

  • Function Module to show all jobs in that Org Unit.

    Does any one know is there any Function Module which gives all the jobs that comes under that Org Unit. for example if org unit 10 has 2 Sub Org Units(11 and 12) and 3 jobs(20, 21 and 22) under it. and the Sub Org Unit 11 and 12 has 1 job each( 30 and 40). When you run for org unit 10 it should give all 5 jobs (20, 21, 22, 30 and 40).

    Hi Fayyaz
    Well you use a FM RH_READ_INFTY_1001 to discover the relationships between an ORG Unit and Jobs.
    Alternative, you can write a simple query to extract data from HRP1001 to find the jobs under an Org Unit. Because Jobs are related to an Org Unit and this relationship is stored in Infotype 1001/HRP1001.
    Reward Points, If helpful.
    Regards
    Waz

  • 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

  • Function module to read the directory list and also run in background

    Hi All,
    I need to read few files from a folder in the server and upload the data in the file using a BDC. This process has to happen in the background as I am going to schedule the program. I had used the function module "EPS_GET_DIRECTORY_LISTING" to list the file names, it is working properly but when I schedule the program this function module does not work, the jobs gets finished in 0 secs. I am suspecting that it is not running in back ground. Can any one suggest me the function module which runs in background to read the files or an alternate method.
    Ajeetha

    Thanks for the reply.
    Sorry, this function module is working properly, why I assumed it is not working is that the background job got completed in 0 secs which made me feel that the function module is not working. Also I am subsequently copying the file to another folder and deleting it from the source folder, actually thiese two functionalities are not working in background. which added to my conclusion that all the function modules are not working in background. I am using two methods to copy and delete files, they are
    CL_GUI_FRONTEND_SERVICES=>FILE_COPY,
    CL_GUI_FRONTEND_SERVICES=>FILE_DELETE.
    as these are not working in background, now I need to replace them with a method or function module which will run in background.
    As I have mentioned earlier, my main objective is to upload the data in the file using a bdc. If I am not able to delete the file in the source folder,  then duplicate upload will happen which I have to avoid. So, if someone could help me to find a way to delete the file will be of great help to me.
    Ajeetha

  • Function module to read the pdf document.

    Hi guys ,
       I need to know the function module which is used to read all the documents(pdf).?
    Regards,
    vinothkumar.G

    Hi
    If you need to open and show a pdf file you can use the method EXECUTE of class CL_GUI_FRONTEND_SERVICES.
    CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
    document = 'MY_FILE.pdf'
    APPLICATION =
    PARAMETER =
    default_directory = path
    MAXIMIZED =
    MINIMIZED =
    SYNCHRONOUS =
    OPERATION = 'OPEN'
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    bad_parameter = 3
    file_not_found = 4
    path_not_found = 5
    file_extension_unknown = 6
    error_execute_failed = 7
    synchronous_failed = 8
    not_supported_by_gui = 9
    OTHERS = 10
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  • Function module to read the expired useful life of asset

    Hi,
    Is there a function module to read the expired useful life of asset. We are using the depriciation start date to calculate the expired useful life of asset, but the fiscal year shift and matching the calendar year with fiscal is causing the logic to give a month difference between the calculated value and the value in the asset.
    Please let me know if there is a Function module or BAPI for getting the values. Kindly provide example for the function module call too.
    Regards,
    Prabaharan.G

    Hi,
      Check the following function modules.
    AISC_CALC_EXPIRED_USEFUL_LIFE.
    Check the following link it might be of some help to you.
    Re: asset useful life
    Regards,
    Ram.

Maybe you are looking for

  • How much macbook pro ram on new quad 2.4 17"?

    how much macbook pro ram can be supported on a new quad 2.4 17"?

  • Little things that make Linux more secure

    So after reading a post about rm -rf /home mishap I've decided to make my Arch a bit more safer and share it with you. So if you have some useful things that make your Arch safer as it is share it here. So first thing I've did I've decided to add thi

  • Client copy using SAP_CUST profile

    Hi I have a requirement to copy the Production client (customization only) to Dev-100 customization client (Already existing with customization). Since the production system is having the latest customization settings,my func team wants to copy the p

  • MOVED: Re: Improvement & Suggestions

    This topic has been moved to MSI Notebooks & Netbooks. https://forum-en.msi.com/index.php?topic=163389.0

  • Proportional fonts in SAP MII Workbench

    It was whose idea to use proportional fonts (characters with variable-width) in the SAP MII Workbench?? Is it possible at least to change it to courier or something..?