Reg. Getting Equipment No.(EQUNR) using Material Doc.(MBLNR)

Hi all,
In my ABAP program program, I need to fetch the Equipment No.(EQUNR) using Material Doc(MBLNR).
I have only the Material Document as the input & I need to find the Equipment Numbers using that for further processings.
Please guide me in this regard.
Regards,
Anbarasan K

Hi
Pass the Material document into MSEG table and fetch the EQUNR Field
Better pass the document year also as the input along with the Document number
Regards
Amuthan M

Similar Messages

  • Issue using material document number as dynamic bin for purchase orders

    Hi...
    We are currently using the material document number as a dynamic bin at receiving because we expect to have multiple receipts of the same purchase order.  The current setup has everything going into quality inspection, and an inspection lot creates for each goods receipt.
    When QM rejects parts to return to vendor, a 122 movement is automatically generated.  When this 122 movement generates, the WM stock overview shows a negative balance using the material document number of the 122 movement as the dynamic bin.  The positive balance still shows as the material document from the 101 movement.
    Is there any configuration that can be set up to fix this issue or will SAP always take the most recent material document as the dynamic bin?
    Thanks for the help!

    I've tried the following configuration with movement type configuration:
    Quality stock in 902 storage type with material document as dynamic bin (requirement type configuration updated).  When a return to vendor is completed, there is a positive balance in 902 with the GR material doc number as the bin and a negative balance with the 122 material doc # as the bin. 
    I also tried configuring this with using GR-DOCK as a bin, and had the issue with the quant record being updated by the most recent inspection lot #. 
    I also tried using the PO as dynamic bin, and have the same error as above with the quant.
    Error:
    Error during creation of transfer orders for material document 0026001535
    Date: 05/16/2008
    Time: 10:52:23
    Post.chge not. HR1 2000000011
    No quants exist for posting changes
    So as according to the OSS note I should use material doc # as dynamic bin to avoid this...but when I set this up I get the issue with positive and negative balances in my stock overview because SAP uses the most recent material document number for each posting.

  • How to get equipment number and type for given PM order

    hello all,
    i know the PM order number and corresponding object number (like OR9100000175),
    now using these how do i get equipment number and equipment type..
    do i need to use any function module...
    thanks in advance...

    From VBAK table with order number AUFNR, get notification no - QMNUM.
    From QMIH table with this notification no QMNUM, get equipment no - EQUNR.
    And then from equipment master EQUI, you can get the equipment categeory EQTYP from EQUNR

  • Material Docs as Bin Co-ordinate

    Dear all,
    I want to use Material docs as bin co-ordinate for interim storage Bin.
    So please can anyone help me to configure the above requirement.
    Please help me out.
    Regards,
    Rock

    Dear Jurgen,
    I am little bit confuse.So what is setting for bin cordinate which will give PO number as bin co-ordinate.
    Because when we ticked SRC check box(dynamic) PO number will be a Bin co-ordinate.
    But you said it will give material doc as bin co-ordinate.
    Please clear my doubt.
    Regards,
    Rock

  • Any Funtion module to get equipment no. (EQUNR) using functional location?

    Hi Guys,
    Can anyone tell me the function module to get equipment (EQUNR) using functional location (TPLNR) ?
    regards
    Rahul

    Hello Rahul
    Perhaps the following function modules are helpful:
    - ALM_ME_FUNCLOC_INSTALLED_EQUI
    - INSTALLED_EQMTS_ON_LOCATION
    - INSTALLED_EQMTS_ON_LOC_READ
    Regards
      Uwe

  • BAPI /FM for getting Transfer Order details based on Material Doc No.

    Is there any FM or BAPI with which I would be able to get directly Transfer Order details, status etc based on Material Doc No without going into the tables?
    Thanks for your help
    Usha

    Yes, you can use BAPI_WHSE_TO_GET_DETAIL.
    You can find bapis using transaction BAPI and following functionnal nodes.
    Regards,
    Christophe
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 30, 2008 11:37 AM

  • In QA16 i given material doc no ,i am not getting inspection lots for UD

    iam using QA16 for quality inspection .
    Iam given material doc no in QA16,but iam not getting inspection lots for UD(usage decession).its comming empty screen in QA16.
    iam using multiple UD at a time.

    Dear check this below points.
    1. Check if Material Master Auto usage decision has been checked.
    2.All characteristics should be optional if not make all the char as "Optional " through control indicator This can be done for next lots only.
    3.All chracteristics must be calculated and status should be 5 completed and no defect recording done.
    4. Check mic indicator activated in material master and you have to do RR for this inspection lot or u can force fully complete all MICs and male IL status INSP and check again in QA16
    5.Did you selected releavant UD selected set for inspection lot in QA16.
    Cheers
    KK

  • Is there any function module to get vc characteristics and its value using material number?

    Hi Experts,
    I am using BAPI_CLASS_GET_CHARACTERISTICS, BAPI_OBJCL_GETCLASSES to get characteristics description and its values.
    Is there any other Function module to pull this values using material number?
    Thanks in Advance.
    Ramkumar

    Have you tried this BAPI_OBJCL_GETDETAIL
    Import parameters
    MATNR value in the OBJECTKEY
    MARA in OBJECTTABLE
    Class name in CLASSNUM
    '001' in CLASSTYPE
    You will get the Class Characteristics data into these tables:
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    Jogeswara Rao K

  • Get inbound delivery number by using material serial number

    is anyfuction module to get inbound delivery number by using material serial number?
    input---material serial number.
    output--inbound delivery number.

    Hi,
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_GOODSMVT_CREATE
    it's ok with the Function module
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
    EXPORTING
    VBKOK_WA = LWA_VBKOK
    SYNCHRON = ' '
    NO_MESSAGES_UPDATE = ' '
    COMMIT = 'X'
    DELIVERY = P_ITEM-VBELN
    IT_SERNR_UPDATE = LT_SERIALS
    IMPORTING
    EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
    <b>Reward points</b>
    Regards

  • How to create material doc using bapi

    hi all,
    pls tell me how to create material doc using bapi ,
    if i give po no , it will create material doc no .
    advance thanks ,

    Hi venu,
    Please go thru this example, it will help u.
    REPORT ZBAPIMM01 LINE-SIZE 255 NO STANDARD PAGE HEADING
    LINE-COUNT 065(001).
    TABLES: T001L, "Storage Locations
    MARA, "General Material Data
    MAKT, "Material Descriptions
    MBEW, "Material Valuation
    MARC. "Plant Data for Material
    DATA: BAPI_HEAD LIKE BAPIMATHEAD,
    BAPI_MAKT LIKE BAPI_MAKT, "Material Description
    BAPI_MARA1 LIKE BAPI_MARA, "Client Data
    BAPI_MARAX LIKE BAPI_MARAX,
    BAPI_MARC1 LIKE BAPI_MARC, "Plant View
    BAPI_MARCX LIKE BAPI_MARCX,
    BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX,
    BAPI_RETURN LIKE BAPIRET2.
    DATA: BEGIN OF INT_MAKT OCCURS 100.
    INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF INT_MAKT.
    DATA: BEGIN OF INT_MAT OCCURS 100,
    WERKS(4), "Plant
    MTART(4), "Material type
    MATNR(18), "Material number
    MATKL(9) , "Material group
    MBRSH(1), "Industry sector
    MEINS(3), "Base unit of measure
    GEWEI(3), "Weight Unit
    SPART(2), "Division
    EKGRP(3), "Purchasing group
    VPRSV(1), "Price control indicator
    STPRS(12), "Standard price
    PEINH(3), "Price unit
    SPRAS(2), "Language key
    MAKTX(40), "Material description
    END OF INT_MAT.
    SELECT-OPTIONS:
    PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
    MATERIAL FOR MARA-MATNR MEMORY ID MAT,
    MATLTYPE FOR MARA-MTART MEMORY ID MTY,
    DIVISION FOR MARA-SPART MEMORY ID DIV.
    PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
    DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
    GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
    UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
    IF GETDATA = 'X'.
    PERFORM DOWNLOAD_DATA.
    PERFORM DOWNLOAD_FILE.
    ENDIF.
    IF UPDDATA = 'X'.
    PERFORM UPLOAD_FILE.
    PERFORM UPDATE_MM.
    ENDIF.
    FORM DOWNLOAD_DATA.
    SELECT * FROM MARC WHERE LVORM EQ ' '
    AND WERKS IN PLANT
    AND MATNR IN MATERIAL.
    CLEAR MARA.
    SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR.
    CHECK MATLTYPE.
    CHECK DIVISION.
    CLEAR MBEW.
    SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
    AND BWKEY = MARC-WERKS.
    CLEAR MAKT.
    SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
    AND MATNR = MARC-MATNR.
    WRITE:/ MARC-WERKS, "Plant
    MARA-MTART, "Material type
    MARA-MATNR, "Material number
    MARA-MATKL, "Material group
    MARA-MBRSH, "Industry sector
    MARA-MEINS, "Base unit of measure
    MARA-GEWEI, "Weight Unit
    MARA-SPART, "Division
    MARC-EKGRP, "Purchasing group
    MBEW-VPRSV, "Price control indicator
    MBEW-STPRS, "Standard price
    MBEW-PEINH, "Price unit
    MAKT-SPRAS, "Language key
    MAKT-MAKTX. "Material description
    INT_MAT-WERKS = MARC-WERKS. "Plant
    INT_MAT-MTART = MARA-MTART. "Material type
    INT_MAT-MATNR = MARA-MATNR. "Material number
    INT_MAT-MATKL = MARA-MATKL. "Material group
    INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
    INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
    INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
    INT_MAT-SPART = MARA-SPART. "Division
    INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
    INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
    INT_MAT-STPRS = MBEW-STPRS. "Standard price
    INT_MAT-PEINH = MBEW-PEINH. "Price unit
    INT_MAT-SPRAS = MAKT-SPRAS. "Language key
    INT_MAT-MAKTX = MAKT-MAKTX. "Material description
    APPEND INT_MAT.
    CLEAR INT_MAT.
    ENDSELECT.
    ENDFORM.
    FORM DOWNLOAD_FILE.
    call function 'WS_DOWNLOAD'
    EXPORTING
    FILENAME = F_FILE
    FILETYPE = 'DAT'
    FILETYPE = 'WK1'
    tables
    data_tab = INT_MAT
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_WRITE_ERROR = 2
    INVALID_FILESIZE = 3
    INVALID_TYPE = 4
    NO_BATCH = 5
    UNKNOWN_ERROR = 6
    INVALID_TABLE_WIDTH = 7
    GUI_REFUSE_FILETRANSFER = 8
    CUSTOMER_ERROR = 9
    OTHERS = 10.
    IF SY-SUBRC = 0.
    FORMAT COLOR COL_GROUP.
    WRITE:/ 'Data Download Successfully to your local harddisk'.
    SKIP.
    ENDIF.
    ENDFORM.
    FORM UPLOAD_FILE.
    call function 'WS_UPLOAD'
    EXPORTING
    FILENAME = F_FILE
    FILETYPE = 'DAT'
    FILETYPE = 'WK1'
    tables
    data_tab = INT_MAT
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_WRITE_ERROR = 2
    INVALID_FILESIZE = 3
    INVALID_TYPE = 4
    NO_BATCH = 5
    UNKNOWN_ERROR = 6
    INVALID_TABLE_WIDTH = 7
    GUI_REFUSE_FILETRANSFER = 8
    CUSTOMER_ERROR = 9
    OTHERS = 10.
    IF SY-SUBRC = 0.
    FORMAT COLOR COL_GROUP.
    WRITE:/ 'Data Upload Successfully from your local harddisk'.
    SKIP.
    ENDIF.
    ENDFORM.
    FORM UPDATE_MM.
    LOOP AT INT_MAT.
    Header
    BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
    BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
    BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
    BAPI_HEAD-BASIC_VIEW = 'X'.
    BAPI_HEAD-PURCHASE_VIEW = 'X'.
    BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    Material Description
    REFRESH INT_MAKT.
    INT_MAKT-LANGU = INT_MAT-SPRAS.
    INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
    APPEND INT_MAKT.
    Client Data - Basic
    BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
    BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
    BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
    BAPI_MARA1-DIVISION = INT_MAT-SPART.
    BAPI_MARAX-MATL_GROUP = 'X'.
    BAPI_MARAX-BASE_UOM = 'X'.
    BAPI_MARAX-UNIT_OF_WT = 'X'.
    BAPI_MARAX-DIVISION = 'X'.
    Plant - Purchasing
    BAPI_MARC1-PLANT = INT_MAT-WERKS.
    BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
    BAPI_MARCX-PLANT = INT_MAT-WERKS.
    BAPI_MARCX-PUR_GROUP = 'X'.
    Accounting
    BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
    BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
    BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
    BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
    BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
    BAPI_MBEWX-PRICE_CTRL = 'X'.
    BAPI_MBEWX-STD_PRICE = 'X'.
    BAPI_MBEWX-PRICE_UNIT = 'X'.
    WRITE:/ BAPI_HEAD, BAPI_MARC1.
    call function 'BAPI_MATERIAL_SAVEDATA'
    exporting
    HEADDATA = BAPI_HEAD
    CLIENTDATA = BAPI_MARA1
    CLIENTDATAX = BAPI_MARAX
    PLANTDATA = BAPI_MARC1
    PLANTDATAX = BAPI_MARCX
    FORECASTPARAMETERS =
    FORECASTPARAMETERSX =
    PLANNINGDATA =
    PLANNINGDATAX =
    STORAGELOCATIONDATA =
    STORAGELOCATIONDATAX =
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    WAREHOUSENUMBERDATA =
    WAREHOUSENUMBERDATAX =
    SALESDATA = BAPI_MVKE1
    SALESDATAX = BAPI_MVKEX
    STORAGETYPEDATA =
    STORAGETYPEDATAX =
    IMPORTING
    RETURN = BAPI_RETURN
    TABLES
    MATERIALDESCRIPTION = INT_MAKT
    UNITSOFMEASURE =
    UNITSOFMEASUREX =
    INTERNATIONALARTNOS =
    MATERIALLONGTEXT =
    TAXCLASSIFICATIONS =
    RETURNMESSAGES =
    PRTDATA =
    PRTDATAX =
    EXTENSIONIN =
    EXTENSIONINX =
    IF BAPI_RETURN-TYPE = 'E'.
    WRITE:/ 'Error Message ', BAPI_RETURN.
    ENDIF.
    ENDLOOP.
    ENDFORM.
    *---End of Program
    Reagrds,
    Kumar

  • J1IS - same material doc can be used twice

    Hello
    Their is no check in the system for using the single material doc twice or n number of times in J1IS
    How can we control the same.
    Regards
    Niti Narayan

    hi
    check is there any standard user exit available for this and activate.

  • Getting components of equnr in nested IBAUs

    Dear experts,
    I have to get the BOM components of a equipment number (equz-equnr).
    The problem is how do I get the data if there are nested IBAUs?
    I dont even know what IBAUs are?
    can some body please give me some info on IBAUs and how to get the components if they are nested.
    Thank you all in advance.
    goldie.

    Hello Goldie,
    IBAUs are "Instandhaltungsbaugruppen". IBAU (Maintenance assemblies) is a material type delivered by SAP. This material type will often be used for header materials of material BOM in plant maintenance). You have to use the following tables, to get the informations:
    EQST - equipment bom header
    MAST - material bom header
    STKO - bom header
    STPO - bom items
    For each bom item you have to check, if this material has a bom too.
    Best regards
    Stephan

  • Transfer posting with reference to Material Doc and PO

    Dear all,
    Any Idea on how to use this function Transfer Posting wrt Material Doc/PO.
    Basically there is a genuine requirement from client which seems quite logical. There are two PO to different Vendors. Goods are receipt and sent to Quality Inspection. Once visual inspection is done, material from one Vendor is sent to Unrestricted and other still lying to be inspected. Material is transferred to Unrestricted. How does we tag that Stock of Vendor 1 is sent to unrestricted and Stock from vendor 2 is still on Inspection.
    There may be multiple Vendor in this case.
    Secondly, there are more than 50 line items in the PO, I have checked all the items and decide to sent it to unrestricted. And, to save time and confusion, I need to refer the GR/PO.
    No batch
    Any input. And how does this new function (attached image) is helpful. It is not possible to refer the PO/Mat doc during TP though the option is there.
    Regards,
    Lakhya

    Hello ,
    Case 1- Remining quantity will not be taken and sent back to vendor.
    you can just reject the quantity if you don`t want it any more.So only one invoice will be happened for the quantity which you have transfer
    if you will be returning the remaining quantity then do the config for auto return in  SPRO.
    So steps will be like this,
    1) create po for 100
    2) do GR in Quality
    3) post 90 in unrestricted and 10 in return while doing the UD in QA11
    4) do the invoice it will be done for 90.
    case 2 - remaining quantity will be taken in afterwards
    if you want partial UD then it wont be possible , And you have to either plan your receipts to accommodate full quantity of item in single lot .
    you can either do a enhancement to restrict the MIRO before UD is done using LMR1M001
    hope this help.Search on net you will get thread for this requirement.
    Thanks
    Kunal

  • Whats the link between Migo ( Material Doc no ) & resp Accounting doc no

    In order to generate one development in MM. I need to know Link between Material Doc number ( MIGO ) transaction & Accounting document generated for that particular Material doc number which we browse thru Follow on Doc.
    In case the Number range for both is same the solution is easy but we have No ranges for both these are different.
    Can experts help me to identify link at Table / Field level which is critical for our Abap Development.
    Regards
    Umesh Bagul

    Hi Umesh,
    The link between the Material document & Accounting document is  Movement type.
    Goods movement such as Goods receipt /Goods Issue /Stock transfer is always based on the type of " Movement type " which we are using and 2ndly the type of material that we are procuring and receiving or issuing or posting the goods movements. Because based on the Material only the properties of material depends.  For eg. for Raw material stock updation is possible for Quantity & also for Value.  That means whenever you receive the goods of Raw material agains the external vendor (these goods are received against the PO with r.to. 101 Mvt type), then both Quantity updated (for this Evidence is Material document) and Value is also gets updated (for this Evidence is Accounting document), when you receive the whole stock into Unrestricted use stock /storage location. 
    Note::  The movement type is linked with Value string:   101 - Stock updation - by Quantity -  by Value -  Stock indicator - account modifier with the help of Valuation class - A/c category reference - Material type.
    For example: If its receiving of goods against PO is through MIGO using 101 Mvt type.
    and also 
    Simply can say that, Movement type plays the majour role in every goods movements and further that shows with the evidnece of material document and subsequent accounting document depending upon the movement type. And this is the link between the Material document and accounting document.
    Hope that clarifies you,
    Regards,
    Sapsrin

  • How Material Doc is linked to Invoice?

    Hi All,
    I have a query.I want to know how the Material Document is linked to the Invoice in case of mutiple Material docs. & multiple invoices(where in Invoice is cancelled & recreated again & VL09 is done).
    Is there any table where we can see the direct linkage between Material Document & Invoice.
    I checked in VBFA, but we are not able to identify which Material Doc is linked to which Invoice.
    Regards,
    Manjunath.

    Hello,
    As in the earlier mail, there is no direct link between the material documents created during PGI and accounting documents created using invoice creation.
    When you do PGI, the material documents will be created along with the same an accoutnign document also will be generated for Debiting the COGS and crediting the Inventory.
    When the accounting document is created during invoice creation, the customer get debited and sales revenue get credited. This is done using the VOKA setting (revenue accoutn determination).
    Prase

Maybe you are looking for

  • How do I remove images viewed using preview?

    Hi, I'm new to this forum and not very computer savvy, so please bear with me if in the wrong place or asking dumb questions or using wrong jargon! Still not quite understanding preview except that it seems the only way to see a bigger image of photo

  • Setting System Date for the Deadline branch of a block

    Hi, We have a IDocs->XI->File scenario. We need to collect the idocs coming from ISU system and do a N:1 mapping into a single file. We need to end the collection process everyday at a particular time... In ABAP workflows if we are using a block for

  • Temporary securefile LOB

    Is it possible to create a securefile lob in PL/SQL to use the new dbms_lob procedures Following block gives: "ORA-43856: Unsupported LOB type for SECUREFILE LOB operation" DECLARE l_clob clob; BEGIN l_clob := '1234'; dbms_lob.fragment_replace(lob_lo

  • MM losing preferences

    Hey all, not a huge deal overall but this seems to be happening more often than ever. Have got the mighty mouse scroll ball 'click' set for Expose, and side buttons for 'Dashboard' . Both preferences seem to be reset back to default every now and aga

  • Sun light effect

    How can I create a background with the sun light effect like the one found at http://www.caribeno.com.br/english/img/topo_cadastro.jpg Does anyone know what it the title font used on it too? Best regards, Erico Vasconcelos