How to retrieve material document no. based on production confirmation no.

Hi Friends,
I am retreiving the production confirmation number(PRTNR) thru bapi BAPI_REPMANCONF_CREATE_MTS. Based on that confirmation number I need to retrieve material document number (MBLNR)
Because multiple users can post finished goods from different locations at same time, I have to complusory retrieve the material document number based on confirmation number only. Tables MKPF and MSEG doesn't have confirmation number fields in them.
I would appreciate if anyone could suggest me good ideas.
Thanks in Advance.

Hi Melih,
Thank you for your valuable response.
My BLPP table gets updated with material document as well as confirmation number.
When I test my FM directly, I get a confirmation number in my export. I don't get a material document number in my export parameter. But, BLPP gets updated with material document number as well as confirmation number.
But, if I debugg the FM with the same data I get the material document number as well as conf. no. populated in my export parameters.
This is what I have done:
Export parameters
MAT_DOC type BELNR_D
CONF type PRTNR
DATA: GS_BLPP               LIKE BLPP,
                      GV_MAT_DOC      TYPE BELNR_D.
CLEAR: GV_MAT_DOC, GS_BLPP.
    SELECT SINGLE *  INTO GS_BLPP
                     FROM BLPP
                    WHERE PRTNR = CONF
                      AND PRTPS = '0001'.
    GV_MAT_DOC = L_BLPP-BELNR.
    MAT_DOC              = GV_MAT_DOC.
Please let me know if I have done something wrong.
Thanks.

Similar Messages

  • How to print material document in header level?

    Hi Guys,
    How to print material document from header level. I can only print them in item level. But i want that in header level. For example, I have 4 movements inside a material document and I want to issue only one output from the header level.
    I can see the option Goto -> Additional Function -> output, but it is disabled. Please let me know hot to acheive this and if you need further info on this. Please throw some light on this.
    Thanks
    Yasin.

    HIi
      Your question is not clear.  What exactly you want to be.
    1.  To print material header in your smart form / Sap Script what is the problem. Itu2019s quite easy you can do it. Let me know what problem you are facing.
    2. The option is disables because of business functionality ask your functional guys to help you on the same.
    Regards
    Swati

  • How to cancell material document in decentralized scenario

    Dear All,
    How to cancel material document in a decentralized WM (WMS)??? I know that in a centralized scenario I should use MBST or VL09. Is there any solution?
    I would be grateful if you help me.
    Piotrek

    Dear Piotr ,
    If you want to cancel/reverse material document posted , you will enter into MBST and reverse it only.
    For goods issues with delivery use VL09 as you have mentioned.
    Other solution is enter material without referente , but you can have problem with traceability if you control receipts in your enterprise, because you have done one receipt without purchase documents.
    And to finish you can adjust your stock doing an inventory document and adjust stock.
    Best regards,
    Carlos Moçatto

  • How the raw material cost is picked in product cost in case of split materi

    how the raw material cost is picked in product cost in case of split material in BOM

    Hi
    In case of Std cost (CK11N), the planned price or MAP that you enter in the Parent accounting View will be considered for the cost calcualtoin purpose
    Parent view means the view which is above the 2 or more valuation types which consists of avg value of all other val types
    Ajay M

  • I want to find out how to retrieve the serial number for my product. i can't find it in my email

    i want to find out how to retrieve the serial number for my product. i can't find it in my email

    Find your serial number quickly

  • HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER

    Hi,
           I want to know how to find the last document details based on material number.
    Is there any Functional modulle or BAPI programe?
    i,e, I want know last goods receipt details (MIGO)  based on material number.
    Can u please anybody tell me.
    Thanks,
    S.Muthu.
    Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AM

    Hello.
    Check the BAPI_GOODSMVT_GETITEMS
    -example--
    Get GRs after a specific date for a specific plant/ storage location and movement types
      wa_budats-sign = 'I'.
      wa_budats-option = 'GE'.
      wa_budats-low = '20071201'.
      APPEND wa_budats TO budats.
      wa_plants-sign = 'I'.
      wa_plants-option = 'EQ'.
      wa_plants-low = '1000'.
      APPEND wa_plants TO plants.
      wa_stlocs-sign = 'I'.
      wa_stlocs-option = 'EQ'.
      wa_stlocs-low = '0001'.
      APPEND wa_stlocs TO stlocs.
      wa_mvts-sign = 'I'.
      wa_mvts-option = 'EQ'.
      wa_mvts-low = '101'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '901'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '123'.
      APPEND wa_mvts TO mvts.
      CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
        TABLES
          plant_ra        = plants
          stge_loc_ra     = stlocs
          move_type_ra    = mvts
          pstng_date_ra   = budats
          goodsmvt_header = header
          goodsmvt_items  = item
          return          = return.
    Reward if helpful.
    Cheers,
    George

  • How to link Material Document with Sales Order

    Hi,
    When we receive stock through MFHU transaction it becomes sales order stock. The movement type used to receive these into stock would be 131 for MTS & 131 E for MTO. My question is how link Material Document (MKPF/MSEG) with Sales Order because later using that sales order and line item I want to get the planned order number in SAP from PLAF table.
    Thanks & Regards,
    Balaji Viswanath.

    Hi,
    To refer to Sales order you have to go to Purchase order .
      Step1 -From MSEG table you can get  the EBELN ( PO)  EBELP 
      BWART (Movement  Type).
      Step2-Now go to EKPO and retrieve all the PO EBELN, LABNR corrresponding
      to the PO  found the MSEG table.
      Step3-Now go to the VBAK for Sales order Header record and compare the field 
      VBELN = EKPO-LABNR+0(10) and to rerive Sales order item go to VBAP and
      copmpare the fields  VBELN = EKPO-LABNR+0(10)  and
       POSNR = EKPO-LABNR+10(5).
    Thanks
    PK

  • HT4859 How to retrieve Numbers documents stolen by Apple and dumped in iCloud?

    Apple has stolen my documents when i loaded the latest version of Numbers. I can see the documents underr icloud but cannot figure how to retrieve them and remove them. Can't understand why I should have to store my documents on someone else's computer.

    A couple days ago I contacted DriveSavers.com and she quoted me the following;
    -SERVICE OPTIONS AND PRICING
    Our pricing is based on the drive capacity, the operating system and
    turnaround time. The final cost is based on the complexity of the
    recovery and the final recovery results.
    The data recovery estimate for the 120GB Hard Drive you described is:
    • Standard Service (1-2 business days): $900-3900 (successful
    recovery will fall between $2800 - $3900)
    $200 attempt fee if the data is unrecoverable
    • Economy Service (5-7 business days): $500-2700 (successful recovery
    will fall between $1800 - $2700)
    $200 attempt fee if the data is unrecoverable
    • Priority Service (24 hrs. / 7 days a week): $1800-8900 (successful
    recovery will fall between $7900 - $8900)
    $800 attempt fee if the data is unrecoverable
    Please Note: DriveSavers will never exceed the amount quoted.
    That's nuts. Im ganna try my luck with DRD.ae in Dubai and see how much they charge, let me give them a call now and will post a comment in a bit.
    -Joey

  • Retrieving Accounting Document number based on PO numbers

    Hey All,
            I have a list of PO numbers(EBELN) for which I am trying to get all Accounting information from BSIS. But before going to BSIS I am trying to determine the Accounting document number(BELNR) from some other table so that my select on BSIS will be efficient.
    What I have tried uptill now is to go to EKBE with the PO numbers and get the Material document numbers. For some cases the material document number is the accounting document number and for others I have to go to BKPF with this material document number to get the accounting document number.
    Is there any other easier and efficeint way of doing this?
    Any input is highly appreciated.
    Thanks

    I am retrieving Large amounts of data, around 1.5 million from BSIS.
    The code related to our discussion looks like this:
    "First I get all related PO's for the last three years and determine the no of packets.
    DO v_no_of_packets TIMES.
          IF v_end_indx GT v_total.
            v_end_indx = v_total.
          ENDIF.
          REFRESH i_ebeln_range[].
          APPEND LINES OF t_ebeln_range FROM v_start_indx TO v_end_indx TO i_ebeln_range.
          v_start_indx = v_end_indx + 1.
          v_end_indx   = v_end_indx + p_pkjsiz.
    IF NOT i_ebeln[] IS INITIAL.
      CLEAR l_bkpf.
      REFRESH l_bkpf[].
      SELECT ebeln ebelp zekkn vgabe gjahr belnr buzei FROM EKBE INTO TABLE t_belnr
                         WHERE ebeln IN i_ebeln_range
                          AND vgabe IN ('1' ,'2').
      IF sy-subrc EQ 0.
        LOOP AT t_belnr.
        l_awkey+0(10) = t_belnr-belnr.
        l_awkey+10(10) = t_belnr-gjahr.
        IF t_belnr-vgabe = '1'.
          l_awtyp = 'MKPF'.
        ELSE.
          l_awtyp = 'RMRP'.
        ENDIF.
        SELECT SINGLE bukrs belnr gjahr blart budat
          FROM bkpf INTO l_bkpf
            WHERE awtyp = l_awtyp
            AND   awkey = l_awkey.
          IF sy-subrc EQ 0.
             APPEND l_bkpf.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
    "Then
      SELECT zuonr hkont gjahr belnr buzei budat blart wrbtr shkzg xblnr
    waers bukrs
       INTO TABLE i_bsis
       FROM bsis
       FOR ALL ENTRIES IN l_bkpf
        WHERE bukrs = l_bkpf-bukrs
                          AND  hkont IN r_hkont   "Contains all Accounts
                          AND  budat = l_bkpf-budat
                          AND  augdt = 0
                          AND  augbl = space
                          AND  gjahr = l_bkpf-gjahr
                          AND  belnr = l_bkpf-belnr
                          AND  blart = l_bkpf-blart
                          AND  gsber = c_zrl1.
      SELECT zuonr hkont gjahr belnr buzei budat blart wrbtr shkzg xblnr
    waers bukrs
       APPENDING TABLE i_bsis
       FROM bsas
        FOR ALL ENTRIES IN l_bkpf
        WHERE bukrs = l_bkpf-bukrs
                          AND  hkont IN r_hkont
                          AND  budat = l_bkpf-budat
                          AND  augdt = 0
                          AND  augbl = space
                          AND  gjahr = l_bkpf-gjahr
                          AND  belnr = l_bkpf-belnr
                          AND  blart = l_bkpf-blart
                          AND  gsber = c_zrl1.
    "Then process this data

  • How to find Material Document respect to incoming excise invoices?

    When stock is transfered from one plant to another,
    in sending plant, material document is created, with respect to this material document out bound delivery is created further out bound excise invoices.
    In receiving plant when the incoming stock reached the plant with incoming excise
    invoice, material document is created .
    how to find the this receiving plant material document with respect to incoming excise invoice.?
    how to get the receiving plant material documents with respect to sending plant material documents?

    when  the material is transferred from the one plant to another.
    before going to transfer the material.
    one material document is created
    with respect to multiple item  of material document delivery documents created.
    for every delivery one invoice is generated.
    when the stock is reached to plant with invoice
    with respect to this invoice one material document is created for quality check.
    I this case we may have multiple invoices may have the multiple material documents in receiving plant .
    how to find for which excise invoice it is creating material document in receiving plant?

  • How to create Material Document using MI10 transaction

    Hi,
    I am posting a differnce of Quantity using the transaction MI10. My requirement is to make the inventory 0 for all the materials whose inventory is negative. This should create a physical inventory document and a Material document with movement type 702.
    However when I am trying to do so I am able to get the Physical Inventory document but not the Material document.
    Please let me know how can I create the Material document simultaneously.
    Also please let me know if there is a BAPI which does the work of MI10 transaction.
    Thanks,
    Abhishek

    hi,
    You shd check the PI posting document for the reference to see the qty diff. which is posted....
    Internally system will auto call the 702 and make the settlements and will update book inventory..
    Regards
    Priyanka.P

  • How to cancel Material document for a Return PO

    Hi,
    I need to cancel a material documet for a retun PO. Can you please tell me how to do it?
    Regards,
    Prasanna.

    Hi,
    If the material document has been created through SD documents.
    For Ex: For an stock transfer between 2 plants using 2 step procedure, Goods Issue document is posted when you complete the shipment in VT02N. This material document can only be reversed using T-code VL09.
    Thanks and Regards,
    Maheshwari

  • How to track material consumption before closing of Production Order

    Hi all,
    My customer needs to track online material consumption in Profit & Loss statment.
    Now when we take trials, we found that if we do not close a production order then Change in stock a GL under Expenditure drawer is not updated, and also the cost of good sold is only updated when we post sales delivery transaction.
    Now the issue is that my customer wants to track online material consumption, meaning once material is issued for a production order then it should appear in P & L  under expenditure.
    We are using default valuation method as Standard for the Finished Good Item group, due to which WIP Inventory variance GL (we are using Change in Stock under Expenditure drawer of COA) gets updated on closing of work order. Second GL Cost of Goods Sold gets update on posting Sales Delivery.The difference of these two GL shows correct Material consumption, but for this we need to post Production Order close and Sales Delivery transactions.
    I wish  to know that
    1.Is it possible to track online material consumption in SAP B1 ?
       (Here online meaning if we post only material issue transaction, and we do not have posted production order close and sales delivery transactions )
    2.If yes, how to achive it?
    Best regards,
    Samir Gandhi
    Edited by: Samir Gandhi on Nov 5, 2008 2:33 PM
    Edited by: Samir Gandhi on Nov 5, 2008 4:43 PM
    Edited by: Samir Gandhi on Nov 5, 2008 7:23 PM

    Is your BOM's set to backflush? Yes
    Have you specified seperate WIP accounts for each item group? Yes
    Answer to your both question is Yes.
    Thanks for your interest in the message.
    Best Regards,
    Samir Gandhi
    Edited by: Rui Pereira on Dec 9, 2008 4:32 PM

  • How to retrieve complete Document list using RESTful webservice

    Hi,
    I want to retrieve the complete list of documents from the CMS. When made the below call, I am getting only 10 documents(which is default). If included the parameter 'limit' I am getting a max of 50. How can I get the complete list if my CMS contains huge list (may be some thousands)?? Plz help.
    http://<serverName>:6405/biprws/raylight/vx/documents
    Thanks,
    Rekha.

    Hi Anthony,
    Thanks for the reply.
    As per my understanding, 'offset' is something which filters the first xx(offset value) documents in the result value. The result list starts from the (offset +1) th element.
    'Offset' is helpful if I know the position of the desired document
    Plz correct me.
    My requirement is - to fetch a single docId based on the name of the document from the ENTIRE list.
    I am not aware of the position of my document in the result list. In this scenario , how will the 'offset' help me?
    .Thanks,
    Rekha

  • How to retrieve TXT document attached to the document (CV03N)

    Hi,
    Can some one share their knowledge on how an attached document is retreived using CV03N->doc. data tab.I want to know the logic behind the attachment retrieval. Is ther a function module that pulls the file or any standard tables that conatin them.
    I'd appreciate your help.
    Thanks
    Kris T

    Hi Mangesh,
    We are trying to develop a program to get a list of all documents of certain doc. type from DRAW table,retrieve all the attachments for these docs ,read these attachment files- to validate data, merge them into a single file.
    from some analysis I've done to achieve this, I think we'll have to use BAPIs :BAPI_DOCUMENT_GETLIST2  and BAPI_DOCUMENT_CHECKOUTVIEWX to get the docs list and read the files.But, I am not really sure how to proceed further once we get the attachments, Can you plz share your thoughts on this . I'd appreciate your help.
    Thanks
    Kris T

Maybe you are looking for

  • V12 (GA) switch issues. DB is stuck in creation state, automated backup issues, no monitoring data 1h

    Hi, On Friday we have switched databases to V12 version as it was announced that they are now generally available, but I have doubts that everything was tested by Microsoft, as immediately we have several issues: 1. We had automated backups scheduled

  • Error  ORA-02019: while selecting table from oracle10g to SQL Server 2005

    Hi all, our oracle 10g database is on AIX 5.2 and i configures heterogeneous service and install oracle 10g cleint on windows 2003 server where SQL Server reside . i configured the following things but i got the error ORA-02019. please help me its ve

  • Help with PSE12 after download

    I started with a free trial and than bought PSE12 had a IT guy install it cause after i bought it I could never find a place to put my serial number. He had all kind of trouble so he installed the trial to save all my stuff used the dvd and reinstall

  • Oracle OVM 3.1 Manager Server Discovery WARNING Message.

    I am getting this warning trying to run [ Discover Servers ] in my OVM Manager. Can someone help figure out what is that I am missing here. [root@ovmserver1 log]# [root@ovmserver1 log]# cat ovs-agent.log [2011-11-23 09:05:09 18587] DEBUG (OVSCommons:

  • Permission to delete resources?

    Once a resource has been made Inactive, is it only someone with Administrator group permissions that can then fully delete the resource or can that permission be enabled for another group? rgds Steve