How to fetch accounting document number from known material document number

Hi,
Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
My question is how to fetch the accounting document number present in MIGO to add in my report program.
I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
But the query is running for a long time.
Is there any other method  to extract the values in a simpler way.
Kindly advise.
Thanks and Regards,
Sanjeev

I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
I created a new internal table i_xblnr and got down those values.
And then created a new internal table i_belnr and tried to get values of belnr in it.
The code I wrote is given below:
IF not wi_item[] is initial.
loop at wi_item.
   at new xblnr.
    ws_xblnr-xblnr = wi_item-xblnr.
     append ws_xblnr to i_xblnr.
   endat.
endloop.
  select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
ENDIF.
Kindly look after it.Thank you.
Regards,
Sanjeev

Similar Messages

  • 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

  • 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

  • How do I restore text erased from a .txt document, named and saved frequently, and on Yosemite OSX?

    How do I restore text erased from a .txt document, named and saved frequently, and on Yosemite OSX?

    1. I have no reason to doubt it, the task is pretty simple.
    2. You should realise that these are not rewrites but progressions. PDF 1.7 adds just a little to PDF 1.6, and so on. Early versions of Acrobat would always update the version number to the latest version, whether or not they needed to do so. More recent versions have got smarter. Sounds as if XI is smarter still and is writing the version number actally needed rather than just the highest number it knows. People have strange ideas about PDF version numbers and sometimes want to do things like "open and save in the latest version" but this is not just useless but meaningless.
    3. In many cases the first line of the PDF contains the version number (but not the extension number), but this need not be accurate as a later piece of information (much later and harder to find) can override it.

  • How can I print an envelope from a Pages document ?

    How can I print an envelope from a Pages document?

    Not from a document, but there are envelope templates in Pages you can use.

  • CreatePDF Desktop Printer will no longer be available so how do I print a PDF from a scanned document????

    CreatePDF Desktop Printer will no longer be available so how do I print a PDF from a scanned document????

    Hi jwlaunch,
    This document describes some alternatives to CreatePDF Desktop printer: Adobe CreatePDF Desktop Printer is no longer available
    Please let us know if you have additional questions.
    Best,
    Sara

  • How can I remove a page from a PDF document and save it as a new PDF document?

    How can I remove a page from a PDF document and save it as a new PDF document?

    Tools - Pages - Extract and tick the option to delete the extracted page from the original file.

  • Getting valid idoc number from the sales document

    hi,
    Iam sending the code for getting the idoc number from sales document.
    but iam not getting the result.
    please see the code and correct the code so that i will get the idoc number from the sales document.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input         = p_vbeln
    IMPORTING
       OUTPUT        = p_vbeln
    select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    it is very urgent..............
    thanks in advance......

    See the below code :
    report zxyz.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    <b>data sdata like edid4-sdata.</b>
    start-of-selection.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    IMPORTING
    OUTPUT = p_vbeln
    <b>concatenate '%' p_vbeln '%' into sdata.</b>
    select single docnum from edid4 into l_docnum
                  where sdata like <b>sdata.</b>
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    Thanks
    Seshu

  • How do I copy a page from one pdf  document to another?

    I am a newbe!

    That was easy.Thank you.
         Re: How do I copy a page from one pdf document to another?
    created by George Johnson in Creating, Editing & Exporting PDFs - View the full discussion
    If you open both documents, you can drag a page from the Pages panel (on the left of the window) of one document and drop it into the Pages panel of another.
    You can also extract one or more pages from a document to create a new document, and then insert the pages from this new document into another. In Acrobat 11 you 'd do this by doing:
    Tools > Pages > Extract
    and then:
    Tools > Pages > Insert from File
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6163925#6163925
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6163925#6163925
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6163925#6163925. In the Actions box on the right, click the Stop Email Notifications link .
    Start a new discussion in Creating, Editing & Exporting PDFs at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0 .

  • How to fetch only WebI reports from the repository

    How to fetch only WebI reports from the repository, where in we have Deski reports also in the repository.. any macro??

    here is the query to fetch only webi reports:
    Open Administration Launchpad (.Net / Java) from:
    Start >> All Programs >> BusinessObjects XI Release 2 >> BusinessObjects Enterprise >
    Click on the 'Query Builder' under 'Administration Tools' on the left pane.
    Logon to Query Builder using Enterprise Administrator credentials.
    Run the following query for Web Intelligence Reports:
    SELECT SI_ID, SI_NAME, SI_OWNER FROM CI_INFOOBJECTS WHERE SI_KIND='WEBI'
    Thanks,
    Srikanth.

  • How to fetch delivery note fiedl from MIGO

    Hi,
    how to fetch delivery note field from MIGO.
    Regards
    Mave

    see it is not the exact field.
    Regards
    Mave

  • HOW CAN I BLOCK SMS MESSAGES FROM AN SPECIFIC PHONE NUMBER ON MY IPHONE 5

    HOW CAN I BLOCK SMS MESAGES FROM AN SPECIFIC PHONE NUMBER ON MY I PHONE5, THANKS

    You can't. Contact your carrier and ask them if they provide such a service. Most carriers do not, unless the text messages are threatening or harassing, but you can ask.
    Regards.
    Message was edited by: varjak paw; fixed typo.

  • How to setup number range for Material Documents created by goods movement

    Hi Experts,
    Good day!
    Would you know what table or transaction code we could setup or configure the number range for Material Documents number created by goods movement?
    Thanks. Have a wonderful day!
    Rockz

    Hi,
    Tcode - OMBT
    Regards,
    Vivek

  • Delivery number for a material document posted

    Hi experts,
    I need to delivery number for the material document number posted,
    I tried to use the field XBLNR from the table MKPF
    but i see that the feild is empty in the case of inbound delivery
    why is it so.
    How ever i can get the data from VBFA ,but can any one tell me the reason why XBLNR is empty in case of inbound delivery.
    Thanks a lot in Advance.

    Hi,
    If you do GR w.r.t. Inbound Delivery No in MIGO then it will not update "Reference" field i.e. XBLNR.
    To update same with Inbound Delivery No, you have to do "Post Goods Receipt" from Inbound Delivery Document itself in VL31N or VL32N.

  • OMX4 - FBN1 - Number range for Material document and FI document

    47 - is for FI document number range in Material ledger FBN1.  OMX4 gives number range for Material document.  My question is how big the number range must be?  Since thousands of Materials involved, I couldn't imagin this?
    Anybody knows, how to determine the size of no. ranges in Material Ledger configuration?  SAP simply says, check no. ranges whether it meets the requirement....
    I don't expect an answer again, just check your business, how many transactions would be in a period, which is not quantifiable now?
    I would like to understand this from somebody's experience of using insufficient or excessive no. ranges, especially in this area.
    Cheers,
    Ashok

    What is the number range you are using? Year Dependent or Independent?
    When you don't know the document number consumption pattern you should use Year dependent number range in both OMX4 & FBN1. Observing this for a month will give a rough Idea and observing for a Quarter will give you a fair Idea and the result for a year gives almost near to accurate consumption of number ranges.
    The generation of documents is dependent on the number of materials and Profit centers involved. As much as possibe use Summarization at profit center level when posting to FI. This will reduce the number of documents and line items that are getting generated.

Maybe you are looking for

  • My Iphone 4S no longer connects to wifi networks

    My  smart-phone is not so smart and hasn't been since the last OS update. I've  tried to decipher where the problem is and it appears it occurs on  networks where there is a "pop-up" asking you your log-in credentials  (ie. airport hotspots, cable ho

  • What is the right way to do a sysprep Image for Windows 7 and 8

    Hi, i´d like to know which way is the right one to do a sysprepp from an System with Windows 7/8. Is it ok when I install the system with all drivers/patches etc. and after that I will open a command prompt with admin rights and choose the settings O

  • Pricing for freegoods

    hai SAP SD experts. can any body explain about this problem with suitable example  pls.... in free goods we have R100 and NRAB standard condition types. but they don't have any access sequences. since they don't have access sequence they don't have a

  • How to install and use the Khmer unicode Khmer MEF1 and Khmer MEF2?

    How to install and use the Khmer unicode Khmer MEF1 and Khmer MEF2? from www.mef.gov.kh in the bottom of the page, you can get the unicode for the ms office

  • Interface Mapping Not found in ID

    hi all, I am not getting the Interface mapping in interface detemination. I have cleared all the cache. My inbound mapping and interface mapping in IR are corret and activated. Please suggest me possible cause for the problem.I have to give a demo by