How to Get PO from Material Document by MB1B!

Hi,
I created a PO for subcontracting. When I send
the goods to vendor with trx MB1B and mvt type 541, Material Document Number will be generated (option: to Purchase Order) . When print out this Material Document Number by MB90, I want to get this PO number. Please let me know how to get the relation bw this PO and Material Document.(I have checked in MKPF-XBLNR, but it is blank).
Thanks in advance.

there's no relation. the process how you have implemented it leaves no relation between PO and GM except for your doing so 'artificially' by filling field XABLN (for example) or any other.
if you would adjust the process to use deliveries (tx. ME2O) the prospect would not be much better but there would at least be a chance to find the relation.
as it is, SAP designed this to be a 'transfer posting' - to do it entering a PO-number is only in order to make typing easier but does not mean, items, quantities or anything else has to be entered as it is in the PO. you can add as many line items as you like ... as long as there's available stock you get your movement.

Similar Messages

  • How to get  invoice via material document

    HI,
    How to  get  invoice via material document is there any table or any inderect way?
    thanks
    pandu

    Hi Lakshimipathi,
    thanks for your reply.
    i have checked in vbfa but it's not showing anything.
    my client is providing below information and asking that invoice number.
    material,
    plat,
    material doc,
    movement type,
    posting date.
    i have ran the mb59 by giving material , plant , movement type and Archive info struct as Z_MM_MATBE. here i got the material doc and same doc i have checked at table levle but it's showing.
    and how can i get invoice number by using this information..
    please letme know if you have any idea.
    thanks in advance.
    pandu.

  • How to get the Next Material Document Number

    Hi,
    Please let me know How to get the next Material Document Number using Functional Module,
    Material Document number are  in MSEG table.
    Regards,
    Ganesh

    Hi Ganesh,
    if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
    now you can use your number range by calling the function module
    CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = '01' " here you have to give the number range number which you have defined in number range
            object                  = 'ZPRODLOG' " Number Range
          IMPORTING
            number                  = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
          EXCEPTIONS
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            OTHERS                  = 8.
    each and every time next number will get generated .
    i hope this will help you.
    Thanks,
    Tanmaya

  • How to get relationship between material document no and accounting documen

    Hi Experts !!
                     I want to create a report displaying accounting document no and GL account no buy providing PO No and material document no (MIGO No).
    I want a database table from where I can get  material document no (MIGO No)(MBLNR/BELNR) and accounting document(BELNR) no both.Currently I am using
    BSEG for getting HKONT,EBELN,BELNR
    MSEG for getting MBLNR by using EBELN (P.O. NO)
    BKPF for getting BUDAT.
    the problem came with EBELN (P.O. NO) as repeated entries are there.
    I am unable to write query for getting MBLNR and  BELNR for same EBELN (P.O. NO).
    Is there any table where MBLNR and  BELNR are related to each other??????
    Thanks in advance !!!!

    Check this thread, if this helps.
    [url] Link between MKPF table and EKKO or RBKP table [url]
    I've done this as well earlier to create a custom document flow for archived documents where from the EBELN i've found all the related documents. Hope this helps.

  • How can I get Notification Number from Material Document?

    Can you please tell me that how can I get Notificatin Number(QMEL-QMNUM) from Material Document(MSEG-BELNR)?
    Regards,
    Subhasish

    This question is closed but unanswered.

  • How to get the unoccupied material number in a number range

    How to get the unoccupied material number in a number range.for example, I wang to get a number between 1500000 and 1599990 which is unoccupied as my material number to be created. Is ther any FM or codes?

    Dear,
    You can get this information from Tcode SNUM or you can access database table NRIV.

  • How to get the list of documents

    Hi everyone
    Can anyone help me How to get the list of documents residing in a folder of KM repository of SAP Netweaver using a simple java program
    Thanks in ADV.
    Rupesh Khemka

    Hi Rupesh,
    I have written the code for you and it works with WebDynpro, no seperate java program is required.
    Just try to paste it in your application code and run it.
    try{
         // Will check the user athentication for EP
                    IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
         IUser sapUser = wdClientUser.getSAPUser(); 
         com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
         ResourceContext context = new ResourceContext(ep5User);
                    // The path in which your folder resides
         RID rid1 =RID.getRID("/documents/Public Documents/SCAP/");
         IResourceFactory factory1 = ResourceFactory.getInstance();
         ICollection icollection = (ICollection)factory1.getResource(rid1, context);
         IResourceList resourcelist = icollection.getChildren();
         int size1 = resourcelist.size();
         for(int s=0; s<listOfDocuments.getLength(); s++){
              IResource resource = resourcelist.get(i);
              InputStream input = new InputStream();
              input = resource.getContent().getInputStream();
    }catch(Exception e){
         e.getMessage();
    Once you get the InputStream everything else is possible....
    This will surely help you in reading the documents from KM.
    Regards,
    Rekha Malavathu

  • Challan material is different from material document----Message no. 8I572

    Hi,
    I am getting the following error in subcontracting process when reconciling through J1IFQ.
    Challan material is different from material document----Message no. 8I572
    After P.O. creation and issued the materials through 541 and created a subcontract challan 57f4 and G.R has been done when reconciling through J1IFQ i am getting the above mentioned error.
    Thanks,
    Kiran Bodla

    Hi,
    In spro --> taxon goods movemnt > indiac> business transaction --> subcontrcating --> maintain movement type grp
    here miantain
    0002     101
    0002     542
    0002     543     O
    Hope help U !
    Regards,
    Pardeep Malik

  • How to get string from jtextpane along with its attributes

    sir,
    How to get string from jtextpane along with its attributes
    i,e font,size,style,color etc.
    please help me out.
    my mail id is [email protected]

    JTextPane extends JTextComponent
    JTextComponent.getDocument()
    a Document is a set of Element, see Document.getRootElements(). Each Element has attributes, stored within an AttributSet object see Element.getAttributes()
    a Document can also be rendered as a String, see Document.getText( offest, length ), use it with 0 and Document.getLength() as parameters.

  • How to get coordinates from Google Map

    I wonder how to get coordinates from Google Map to JavaFX application when click has occured. Here is an example of code:
    public class JavaFXApplication extends Application {
    public void showCoordinates(String coords)
            System.out.println("Coordinates: " + coords);
        @Override public void start(Stage stage)
            final WebView webView = new WebView();
            final WebEngine webEngine = webView.getEngine();
            webEngine.load(getClass().getResource("googlemap.html").toString());
            webEngine.getLoadWorker().stateProperty().addListener(
                    new ChangeListener<State>() {
                        @Override
                        public void changed(ObservableValue<? extends State> ov, State oldState, State newState) {
                            if (newState == State.SUCCEEDED) {
                                JSObject window = (JSObject) webEngine.executeScript("window");
                                window.setMember("java", new JavaFXApplication());
            BorderPane root = new BorderPane();
            root.setCenter(webView);
            stage.setTitle("Google maps");
            Scene scene = new Scene(root,1000,700, Color.web("#666970"));
            stage.setScene(scene);
            stage.show();
       public static void main(String[] args){
            Application.launch(args);
    // googlemap.html file
    <!DOCTYPE html>
    <html>
        <head>
            <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
            <style type="text/css">
                html { height: 100% }
                body { height: 100%; margin: 0px; padding: 0px }
                #map_canvas { height: 100%; background-color: #666970; }
            </style>       
            <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
            </script>
            <script type="text/javascript">           
                function initialize() {
                    var latlng = new google.maps.LatLng(40.75089, -73.93804);
                    var myOptions = {
                        zoom: 10,
                        center: latlng,
                        mapTypeId: google.maps.MapTypeId.ROADMAP,
                        mapTypeControl: false,
                        panControl: true,
                        navigationControl: true,
                        streetViewControl: false,
                        backgroundColor: "#666970"
                    var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);    
                    document.map = map;
            google.maps.event.addListener(map, 'click', function(event) {
                //java.showCoordinates(event.latLng); ???
            map.setCenter(location);
            </script>
        </head>
        <body onload="initialize()">
            <div id="map_canvas" style="width:100%; height:100%"></div>
        </body>
    </html>Edited by: krbltik on 03.10.2012 22:59

    Hi, welcome!
    You may also have a look at GPS Info Qt, available for free at Ovi Store: http://store.ovi.com/content/165671
    GPS Info Qt is a nice Qt app. I have it on my C6-01 and I like it.
    Regards.

  • Challan material is different  from material document

    Dear All,
       When i going to reconciliation of subcontracting challan on t-code J1IFQ
    *material document -MIGO  Number(which was created at the time of MIGO)*
    *Year-2009*
    when i feel the detail like
    year            challan no             Item
    2009           00000001
    it also show a warning message *material document MIGO  Number(which was created at the time of MIGO) 2009 is allocated a challan during GR**
    im getting a error message
    challan material is different  from material document
    Pls Guide me
    Thanks
      Amin
    Edited by: sekh amin on Jul 9, 2009 8:16 AM

    M also facing the same problem and getting the same error message.
    "Chalan material is different from material document"
    But when I checked material and challan, everything was OK.
    Can anyone guide me to solve the issue.
    Regards
    Edited by: sapsarang on Jul 13, 2009 8:14 AM

  • Challan Material is Different from Material Document Message No. : 8I 572..

    Dear All,
    Good afternoon. In my company, after version upgrade from ECC5.0 to ECC6.0, facing one peculiar issue i.e in MIGO for subcontract order : When I enter challan number for reference in pop-up, We are getting the below error
    "Challan Material is Different from Material Document Message No. : 8I 572..."
    Creation of preliminary activites before migo in one user login and if i try migo for the same in same login, no errors reported. but if I do the MIGO from different user login, i have noticed with above error and vice versa.
    For this as a abaper, if I debug for trouble shooting from MIGO, no error noticed from any logins for the same activity.
    Kindly help us.
    Arunachalam S

    Dear Hema,
    Thanks for your reply.
    As you mentioned, every thing has been checked and found okey.
    The observation is with same authorization, User A can able to inward the sub-contracting material but User B coud'nt do so and noticed error of  "Challan Material is Different from Material Document Message No. : 8I 572.."
    Even thought,the input information for the both logins are same.
    have a nice day.
    Arunachalam S

  • "challan material is different from material document " error in GR

    hi all..
    when i am trying to do GR with respect to challan that i have created its showing
    "challan material is different from material document "
    if i didn choose the option "Refer sub-con challan" and tried to post it shows dump error of
    "Exception condition "T681Z_MISSING" raised.".
    dont we get the values while creating sun con challan in J1IF01 ?
    can you suggest where i have missed the steps.
    Thanks
    r.Kannan.

    Whenever inwarding the material against the Sub contracting , challen no to be given, but can you tell , which version you r working,
    Its this problem continue for all the sub contracting & for only on login or many logins
    Regards,
    Suresh.P

  • How to find a cancelled material document - Urgent

    Please help me how to find a cancelled material document in a pool of marerial documents.
    I am trying to dig in tables MSEG, MKPF,EKBE but not able to get with.
    <b>In brief, how will I find a document is cancelled or not?</b>
    please hlep me.
    Regards,
    Anbu

    Dear Anbu,
    In table MSEG fields:
    SMBLN - Number of Material Document
    MBLNR - Number of Material Document.
    Regards,
    Naveen.

  • How to find whether a material document(MSEG-MBLNR) is reversed or not

    Hi All,
      How can we identify a material document which is created by MB1B transaction is reversed or not. is there any field like reversal indicator in any material document table.
    Regards
    Ramana

    Hi Ramana,
    Check MBSM Transaction.
    If the Material document is reversed, and if their is some linkage between the Material document and its reversal document, you will get in this transaction.
    generally only those material document have reversal linkage which are reversed through MBST Transaction.
    Say Generated Material Document 12345 was reversed using MBST Transaction and its reversal document number is 12346. then
    Check the MSEG Table with the MBLNR value 12346. You will find their is one more field 'SMBLN' which shows your original doc i.e 12345.
    Just check it out in your test server.
    Regards,
    S Anand

Maybe you are looking for

  • Small photo's in the top of the finder (correction)

    Dear all, on top of the finder pop-up you can put small photo's. But how can I get them away? Or when I -by mistake- deleted the original, how can I get rid of the original? sorry I mean: how van I get rid of the question-mark? Thank you in advance.

  • PDEPath element.

    Hi, I have pdf document, which contains PDEText, PDEPath, and other element, using SDK functions, Numchars = PDETextGetNumChars((PDEText)pdeElement); PDETextGetBBox((PDEText)kPDETextChar,pdeElement, charindex, bboxP); PDETextGetText((PDEText)pdeEleme

  • Missing flash.utils.* in code complete upgrade from 3.3 to 3.5 framework

    Hi All, I upgraded my 3.3 framework to 3.5 today, and for some strange and inexplicable reason, I've lost all code completion in Flex Builder 3 for flash.utils.* classes. I am thus missing Dictionary Timer and a few other important classes. I'm hopin

  • Is it possible to install a discrete GPU into my old 2007 MacBook?

    I have an old 2007 MacBook which I recently installed Snow Leopard on before finding out several of the applications (mostly games) that I want to run don't support my integrated graphics. I want to know if it is possible to switch, how I would go ab

  • No use for tuner - Is MSI PVS necessary?

    I have decided not to use the TV tuner on my TV@nyshere-Master card.  Do I need to have MSI PVS installed for other capture programs to work off the composite or SVHS inputs? Can the Radio be installed without the TVtuner part of the software? I have