Trace PO number from TP material doc number of sub contractor

Hi,
How to trace PO number from transfer posting material document number of subcontractor?
Regards
Kantha

You can trace in MSEG table.
For MSEG-MBLNR and MSEG-MJAHR =  transfer posting material document number and  material document year find MSEg-EBELN.
Also in the customizing under SPRO->materials management> Inventory management andn physical inventory> goods issue/transfer posting--> define screen layout
Under this node for movement type 541 make purchase order as required entry.
Regards
Sangeeta

Similar Messages

  • Rejected material sent back to Sub-contractor.

    Friends,
    Scenario.
    Finished Goods : X
    Components: X1 and X2
    Received X from subcontractor After assembly.
    101 Mvt for X
    543 Mvt for X1 and X2
    X is recived in Quality stock and put them in blocked stock and later rejected and sent back to Subcontracting Vendor with 122 Movement.
    X: Mvt: 122
    Now my question is what will happen to component X1 and X2 which  logically should effected with 544 Movement. It says insufficient stock and it says the value is negative..
    Can you please guide me if my process is wrong anywhere and what is the right solution for this.
    Regards

    You are absolutely right Csaba. Thanks for your response.
    When the Finished Assembly is rejected and sent back with 122 Mvt, even the child components will have to be ticked and it has to do a 544 movement right ?
    In my case it is not happening and the system shows the following error.
    The goods movement value is negative
    A subcontracting order contains negative components ( by-products). The value of these by-products is sufficiently high that the goods receipt value value of the material ordered is negative.
    Reduce the quantity of the negative components until the goods receipt value is positive. Then enter a subsequent adjustment for the remaining by-products using transaction MB04.
    In the case of negative delivery costs:
    It would be great if you can help me understand this and resolve the issue.
    Thanks

  • Label printing should be only once for a material doc number

    Hi,
    we have a tcode in which if we provide a material doc no. and number of prints..but once we print the labels,
    then again if we have to print for the same material doc no..it should not print..instead it should ask for permission to print that number again..is there any option available in scripts to do like this?

    try to maintain ztable
                     ztable fields document no , printed...
      such that to identify the docu no has been printed previously r not...
    select single printed  from ztable into printed where  docu no = p_document.
        if printed = X
          if it is printed then try to pop up a screen such thst to approve it ....
           else.
         print it strightly.....

  • How to find Material Doc number.

    Hi experts,
    Is there a way we can identify the Material Doc number<MBLNR> from PP tables?
    Given only the following table-fields:
    afpo-kdauf
    afpo-kdpos
    afpo-aufnr
    afpo-charg
    I will be needing the Matdoc num so i can extract data from MSEG.
    Thanks,
    FAA

    hi..
    u have these fields in MSEG.
    afpo-aufnr = mseg-aufnr
    afpo-posnr = mseg-aufps
    apart from above, the following is also there..
    PS_PSP_PNR - WBS element
    NPLNR - Network Number - same as aufnr
    AUFPL - Routing number of operations in the order
    regards,
    Padma
    Edited by: Padmashree RamMaghenthar on Oct 15, 2008 1:57 PM

  • How to find work center in REM from the material Documnet number

    Hi ,
    We want to develop a Z report for the repetitive manufacturing cycle. Please let me know the logic how to get the work center from the material document that is posted after backflushing MFBF tranaction.
    I will elaborate it little further. From the material document number that is genearted out of confirmation from that document no how can I find the work center so that we can so show the throughput of each work center.
    Please avoid standard transaction of MCRP etc.
    Thanks & regards

    Dear Kumar,
    I'm not sure whether you can get the work center details,but you can get the production version number from you can get the
    rate routing details.
    Give a try by passing the document no to table BLPP and get the document log number and pass on the document log number to
    table BLPK,by which you can identify the production version.
    Also give a try using this FM,RM_DISPLAY_AFRU_REM,I guess you can get the exact work center details from here.
    check and revert back.
    Regards
    Mangalraj.S

  • Table Required to trace Confirmation of EBP based on Material Doc inR3

    Hi,
    can any one suggest the procedure to get the confirmation of EBP in R3 by giving the input parameter as Material document(GR).
    i can find through Query also let me know the procedure
    regards
    subhash

    Hi Subhash,
    It is not possible to get the EBP confirmation number from R3 material document number as of standard.
    However you can use the field 'Reference' of table MKPF in R3 to get the 'Reference document' field value of corresponding Confirmation in EBP. Then in EBP, use the table bbp_pdhgp to get the confirmation number  by passing  ref_doc_no field.
    Regards,
    Sanjeev

  • Material doc, accounting doc, and profit center doc in vl03n

    Hi All,
    In VL03N how can i see Material doc, Accounting doc, and Profit Center doc.
    thanks in advance,
    kumar.

    yes he meant the exact same thing which you have understood my friend, you can have any sales document number with you f& rom that you can trace all the documents relavant to that, say you have inquiry which lead to quotation then to order, delivery, invoice & finally the accounting document so by simply entering VA13 you will get the inquiry display screen where you enter your inquiry number & click on the document flow, you will get all the details which i just mentioned, double click on the particular document number which you want to see in details
    Reward Points if it helps
    Regards,
    N

  • 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

  • Material Description in SO from Customer-Material Info Record

    Hi,
    Currently whenever user is entering the customer material number in SO item, system is bringing the SAP internal material corresponding to that.  But the material description is coming from the material master only.
    I want the material description in the SO item to be populated from Customer-Material Info Record whenever user entered the Customer material number.
    Any possibilities for the same by standard configuration without going for any enhancements.
    Thanks in advance,
    Mallik

    Hello
    Go to T code VD52 choose that customer and material combination and click on to its details blue lens on application tool bar
    In the screen which is coming ,enter your description in the CUSTOMER DESCRIPTION tab the second one and save
    Now create a sales order and see
    Your requirement will be fulfilled
    If  a material is pen description is ball pen in material master and for customer A you have defined it as Pen 1 and description as Super ball pen in VD51
    Now in sales order the description will appear as  Super ball pen
    Hope you have checked the field info record in VOV8
    I have tried this tested this and getting it
    Regards
    Raja
    Edited by: ramanathan raja on Dec 2, 2008 10:43 PM

  • Material doc in AFRU table

    Hi Guys,
    Need a little help, Can any body tell me why sometimes there are enteries in AFRU table with material doc number (WABLNR) and some time material doc number field came as blank. Even though in MSEG i see material doc number (MBLNR) but its blank in AFRU-WABLNR?? Any help be appreciated.

    >
    samiaalis wrote:
    > Hi Guys,
    >
    > Need a little help, Can any body tell me why sometimes there are enteries in AFRU table with material doc number (WABLNR) and some time material doc number field came as blank. Even though in MSEG i see material doc number (MBLNR) but its blank in AFRU-WABLNR?? Any help be appreciated.
    AFRU table is for order confirmation
    Material document will create if the material is subjected to goods movement
    In case if you use auto GI and GR, then at the time of confirmation, system will post the goods movement
    at the time of operation confirmation, if the operation is linked to goods movement( if raw material is assigned to operation or final operation related to GR, that means auto GI or GR, then along with confirmation, material document will create.
    In case for particular operation , consider you have n't assign any raw material for the operation , at that time, for that confirmation, No material document is posted, for that confirmation, material document field in AFRU, will be blank

  • How to shift valuation class from one material type to another material type ?

    I have came across following weird scenario:
    We already created huge no.of materials of material type say ZABC with two valuation classes say 1100 and 1200(GL accounts for these VCs for different posting keys in OBYC settings are same). Account category reference for this material type is 0010.
    After that we created new material type say ZPQR  with new Account category reference 0025, and valuation class 1200 is linked with this ACR 0025. Because of this, valuation class 1200 disappeared from material type ZABC. In order to avoid inconsistency, we need to have valuation class 1200 linked with older material type i.e.ZABC.How we can do this ? What impacts must have happened in this period (from MM/FI) in the system, where valuation class get shifted from one material type(ZABC) to another material type(ZPQR)....please help us in this scenario.

    Thanks Sana,
    We are also looking for the solution provided by you i.e. reassign ACR 0010 to Valuation class 1200.
    Your are also correct in terms of  statement "config doesnt allow me to assign same valuation class to 2 different AREF (Account reference number/Account category reference).
    I wanted to know, what are the possible impacts in the system during this re-assignment of ACR to old material type ZABC.
    Regards,
    Sudarshan.

  • Extractor for Acc Doc . Material Doc/Invoice Ref

    Hi All
    I am looking for an extractor which provides the following information.
    Purchase Doc --> Material Doc / Invoice --> Acc Doc number
    Is there any extractor that i can enhance or use which gives me the following information.
    Thanks
    Vanaja

    Hi,
      Try 0FI_AP_4. It will give accounting doc and purchasing doc. I am not sure abour material doc.
    Regards,
    Raghavendra.

  • Invoice referening reversed GR material doc

    Hi All,
    Our client is using a scenario, where the invoice will check delivery note on the GR document and will add the material doc number as 'Reference Doc' in IR doc. It is working fine for a single GR scenario. When a GR is revered due pricing reason and a new GR has been done with a reference to the same delivery note, the incoming EDI invoice is still picking the first GR, which is actually reversed and sitting in the system with blocked state with pricing difference. Is there anyway we can make changes in the system by config or ABAP to make the invoice point to the right material doc?? Please help.
    -Tirumala

    Hi,
    The answer is there in your question only.Since you used  a proram for doing the iv with the reference document ,have a debug for the prog while posting and find the problem for the same and fix the same.
    Regards,

  • 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

  • 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

Maybe you are looking for

  • Creating a datasource that sits on a table

    Hello All, I have to create a datasource that sits on a table and reads certain fields. I have found the relevant table via the data browser "RSPCLOGCHAIN". I am now in transaction sbiw - please advise further. Thank you and kind regards, Keith

  • Issue with mapping XML to Java using SAX API

    I am using SAX API to Map XML Documents To Java. Is it possible to differentiate the elements based on the attribute rather than localname or element name in SAX API? because I am having the below xml structure. In SAX API we are processing the eleme

  • Windows Server Essentials 2012 error code: 2147942403 The system cannot find the path specified

    Running Windows Server 2012 Essentials with an external usb 3 drive as a backup device.  Using a Vantec hx enclosure with a WD Red drive. Last night the Dashboard saw the drive with about half the 4TB available for backup. A.M., I get "error code: 21

  • New Wireless Keyboard Function Keys Not Working

    I recently got an Apple Wireless keyboard- the newest one, with only 2 batteries. I connected it to my MacBook Pro (10.5.8) just fine, and everything seemed to have been working. But the function keys don't work for their functions (F7 as previous, F

  • Magic mouse 0% battery level - But batteries are new!

    I just received my Magic Mouse today. It paired fine,connected fine and worked fine until I downloaded the software. Then the tracking became extremely slow and jerky. Tthe worst part is that the Battery level says 0% and I keep getting a pop-up wind