Get Billing Doc using acc doc

Hi all,
I need Billing Doc using the accounting Doc..
need table flow.
actually i need Customer PO Numer to display for an Accounting Doc ..
any sol..?
regards,
PP
Edited by: P.P on Jun 4, 2009 11:24 AM

Hi,
Check
CALL FUNCTION 'AC_DOCUMENT_RECORD'
EXPORTING
I_AWTYP = 'VBRK'
I_AWREF = VBRK-VBELN
I_AWSYS = VBRK-LOGSYS
I_BUKRS = VBRK-BUKRS
TABLES
T_DOCUMENTS = DOC_NUM
EXCEPTIONS
NO_DOCUMENT = 1.
Also, Check BSEG table for field VBELN.
Instead of BKPF and BSEG you can use BSIK, BSAK, BSID, BSAD etc for better performance.
Hope it helps,
Sumana

Similar Messages

  • How to find out SD billing doc # using accounting doc number ?

    Hi Experts,
    Using accounting doc tables such as BKPF , BSEG and BSID , I need to find out respective SD billing doc no when I have accounting doc number.
    The issue is I cannot use either 'reference number' or assignment number' because the same numbers are not flowing to accounting doc from SD ( enabled by a enhacement ).
    Regards
    Mahesh.

    Hi,
    In BKPF : AWKEY / XBLNR  with these fields we can identify the SD billing document number.
    In BSEG table VBELN field is Billing document number
    Or
    Goto T.Code FB03 enter the accounting document number,company code and fiscal year and press enter.
    select the line and choose details, choose addtional data tab, here we can see the billing document number.
    Regards,
    Chandrasekhar.S

  • 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.

  • Get Material Doc based on Acc Doc

    Hi All,
    Please guide me how to get the Mat Doc (MSEG-MBLNR)  based on the Acc Doc (BSIK-BELNR).
    I already tried --> MSEG-BELNR = BSIK-BELNR, but can't.
    Kindly advise.
    Best Regards,
    Victor.

    Hi Vic ,
    just see  the logic of  this FM , if u give MBLNR it will get A/c Document, so see how tthis FM is getting thatA/c ,thereafter u can bulid the same logic.
    1.first u have to get MBLNR.
    2.Next u have to call FM
    AC_DOCUMENT_RECORD
    I_AWTYP                         MKPF--->Constant
    I_AWREF                         4900003215--->MBLNR
    I_AWORG                         2004--->Year
    I_AWSYS
    I_AWTYP_INCL
    I_AWTYP_EXCL
    I_BUKRS
    I_VALUTYP                       0
    X_DIALOG                           X
    then u will get the Accounting Documents.
    Regards
    Prabhu

  • Looking up the Std. Invoice Number (Billing Doc#) using the Outbound Del.#

    Hi,
    I have a list of Outbound delivery #s that I collected by running T-Code:VL06O.  I am trying to get the Invoice value associated with these Delivery #s..i.e. I am trying to see what did we charge the customer for a particular delivery.  I can dbl-click my way through the line items in VL06O and eventually see the Standard Invoice Doc # and $$ Value.
    However, I am looking at hundreds of Outbound Delivery numbers.  Is there a report in SAP that I can run that will give me the following information when I specify the Outbound Delivery #s:
    Ship-To, Standard Invoice Numbers, Invoice value
    Thanks for your help.
    Regards,
    Sam.

    Moved from MM forum to sales forum.
    Coming to your requirement, in VBRK table itself, you can find two fields, viz.XBLNR & ZUONR.  Pass those DA references in any of these two fields and execute so that you can get billing value.
    G. Lakshmipathi

  • 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

  • Function Module to know the Acc doc no for a Material document.

    Dear Friends,
    What is the Function Module to know the Acc doc no for a Material document? Please help. Thanks in advance.
    Regards,
    RAMAN

    Hi Raman,
    I am not sure about your requirement,
    But i remember when i required the same like you i went to vrpma table to get the account document,
    I just did like a blind fold,
    as my company does all the billing accounts in the same month, my search criteria was blind.
    Also try with MKPF-XBLNR with the VBRK-XBLNR and get VBRK-VBELN
    from there goto BSEG.
    Thansk & regards,
    Dileep .C

  • Assignmnt num population(BSEG-ZUONR) in all line of Acc doc for Cr Memo(G2)

    Hi,
    Our business process is we create Credit memo request with reference to Returns Sales order and create Credit memo with reference to Credit memo request.
    When creating Accounting document from Invoice Assignment number(VBRK-ZUONR) is copied to BSEG-ZUONR of customer line item as well as GL Account line items in the Accounting document.
    When creating Acc Doc from Credit memo Assignment number(VBRK-ZUONR) is copied to BSEG-ZUONR of Customer line item only but not GL Account line items in the Accounting document.
    The same Customer & GL Account is used in both cases.
    Please hlep us to resolve the issue.
    Thanks in advance.
    Regards,
    Rahul

    Dear Rahul,
    I think It's SAP standard behaviour that field BSEG-ZUONR is not filled in     
    accounting item lines when you transfer a billing document to          
    accounting. Please have a look at program LV60BF00,                    
    form accounting_item:                                                  
    Felder, die nur in den Steuerzeilen vorkommen                        
      clear xaccit-kbetr.                                                  
      if vbrk-vbtyp ca vbtyp_reli.                              "WIA       
        clear xaccit-stceg.                                                
      endif.                                                    "WIA       
      clear xaccit-vbeln.                                                  
      clear xaccit-xblnr.                                                  
      clear xaccit-zuonr.                               ' <    here !!!    
      clear xaccit-gjahr.                                                  
    If you want to have this field filled for all item lines in accounting,
    then you have to use userexits to fill XACCIT-ZUONR. E.g. you can use  
    FUNCTION EXIT_SAPLV60B_004 to set XACCIT-ZUONR = VBRK-ZUONR in the     
    line items.                                                            
    I hope this helps.
    Balazs

  • I have 2? How do I sync selected photos from my IPad to my IMac w/o losing all photos on my IPad and getting the phoos o my IMac. ou see I have two IMacs with different sets of photos. Also want to convert all Apple works docs to pages docs on my IMac.

    I have 2? How do I sync selected photos from my IPad to my IMac w/o losing all photos on my IPad which will be replaced with the photos on my IMac.You see I have two IMacs with different sets of photos. Also want to convert all Apple works docs to pages docs on my IMac. Is there and app available to do the former. many thanks. b

    The iPad and related software is designed to sync with only one computer. I suggest transferring the photos from one of your iMacs to the other so that all photos are on one Mac. Same for all other files you want to sync over.
    To get those AppleWorks files to the iPad you'll have to determine if Pages will open them. If it will then use the file sharing feature of iTunes to copy them to Pages on your pad.
    If Pages will not open the AppleWorks files directly you'll have to save them in some format that Pages will read. These include but may not be limited to Pages and Word formats.

  • Tax invoice not show in assignment field of billing doc & ref doc of FI doc

    Dear Gurues
    Does anyone know how to able to display Tax invoice numbering at the assignment field of Billing doc and reference doc header field in FI doc generated by posting billing doc. Also post through POS IDoc?
    I have change SD config to correct the existing non vat billing to be able to record vat billing.  The result seem ok when I enter regular billing, system generate FI doc with Psk01 customer, Psk50 Revenue acc, output tax.  This shows Tax invoice number at reference doc header and assignment field at output tax line item.  Assignment field of billing doc is also display.  
    But when entering to billing with a dummy article (same meaning as material master) that was set up to GL acc, I found that the FI doc after posting billing show a billing doc number instead of Tax invoice number at reference doc header field.  This result is same when post thru POS IDoc as well. (FI doc is Psk40 Cash on hand, Psk50 Revenue acc, output tax)
    Out put tax acc has sort key as 009 - external doc number
    Your suggestion is mostly appreciated.
    Yours sincerely,
    Kulsri K.

    OK I can clear it now.  Just set tax category to Dummy Article to be Full tax then Tax sequence number is running.

  • Profit Center Document not getting generated when direct FI doc is posted

    Dear Experts,
    Profit Center Document not getting generated when direct FI doc is posted. However CO Document is generated for Line Item 1 mentioned below.
    Accounting Entry
    Line 1 -Debit Expense ( Cost Center) 1000
    Line 2 - Credit Bank                             1000    
    Advance Thanks
    Sanjai

    Hi,
    Pls check profit center configuration.... Some config might have missed.....
    Use the t.code 1KE1 For analysing the profit center configuration.
    Regards,
    RAM
    Edited by: Ram000 on Oct 7, 2011 10:45 AM

  • Why same item number were getting assigned to same Procurement Doc#

    We are using B1 (V8.82). From sales order item level, we found that items with same item number were getting assigned to same Procurement Doc#. However, it expects items should be assigned to independent Procurement Doc# (even they are with same item number) so that CDD can be handled seperately. Not sure if this is a setup issue ? or system bug ? or ..
    (please also see attachment)

    Thanks Nagarajan, for your reply.
    In that case, wonder how it gets handled under one procurement document for both items with different "requested delivey date"  ?

  • Using Google Docs Freezes or goes grayscale and makes me restart

    I'm using a 21in iMac 3.6i5 with 8gb ram. I've had the mac for just over a month and it's frozen like 6 times in the past two days.
    It's only frozen using google docs, though it's gone grayscale and made me restart at least twice without google docs being up, I'm not sure what the issue is but I have to use google docs for work so I'd really like to get this figured out as soon as possible, anybody have any ideas?
    Thanks.
    Message was edited by: suzaku

    TRy finding a solution in Dr Smoke's Resolving Kernel Panics, which is what you are having.
    Also, try running Apple Hardware Test from the install DVD. http://support.apple.com/kb/ht1509

  • How to view Word DOC using Word Viewer

    I am a new administrator for a SharePoint 2010 farm with 10s of GB of Microsoft Word documents, most of which are in Word 97-2003 DOC format.  I have recently configured the Word Viewing service and can of course view Word 2010 documents saved
    to the farm, but how to get the legacy archive of DOCs viewable using Word Viewing as well?
    From all that I have read, OWA only works for Office 2010 documents.  Is there any tweak available to get it to be able to view older formatted Word documents also in the browser?
    Baring this, are there batch conversion utilities available?  I have searched and found some
    here and here, but am seeking more robust solutions.
    I would be interested in learning about what other administrators have done to resolve similar problems.
    Sincerely,
    Steve

    Hi Steve,
    I understand that the error occurred when you open the word files.
    I recommend to delete the cache files for the corresponding web aaplication using PowerShell.
    Go to Central Administration > Application Management > View all site collections > select the web application and then check for site collection with URL /sites/Office_Viewing_Service_Cache and make sure it is there. Then open http://{webapp url}/sites/Office_Viewing_Service_Cache
    and you will see the cached
    files of this web application.
    You can also add the entry below in web.config to see if the issue still occurs:
    <compilation optimizeCompilations="true">
    More information:
    http://kancharla-sharepoint.blogspot.in/2013/08/sharepoint-word-web-app-cannot-open.html
    I also recommend to check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to print a doc using  Reader 11.0.3.37

    I am unable to print a document using Adobe Reader 11.0.3.37.
    Any ideas about how to do so?

    When I try to print the doc, I selected the particular doc to print (copy), the ckicked on to "view document", and a gray screen populates without any graphics.
    The error message that I got, after one try, was to the effect that a problem existed in my security set-up. 
    I checked the security system software file and read that the Adobe Reader was installed and "running", yet I have not discovered what I need to do to get a print of the doc. 

Maybe you are looking for