How to get Follow on documents

Hi All,
I need to find follow on documents for sales orders, e.g, I need to find all accounting documents created for a sales order. I know we have document numbers for Invoices and Credit Memos in VBFA but how do we link them to accounting tables like BKPF and BSEG. Does anyone know how to link them or if there is any Function Module availavle for this. I have tried FM  RV_ORDER_FLOW_INFORMATION and BAPI_ACC_DOCUMENTS_RECORD but they only seem to give whatever is in VBFA and not the accounting documents posted in FI.
Any ideas/suggestions will be greatly appreciated.

Try to plug in the SD document number into <b>BKPF-XBLNR</b>. This works for me.
<i><b>Points are always welcome!!</b></i>

Similar Messages

  • How to get Folder or document service permissions  by using  KM API's

    Hi,
    Any help how to get Folder or document service permissions  by using  KM API's  
    Any help or hint is greatly appreciated.
    Thanks,
    Costa.

    Hi,
    I have tested it here and it works for me (this code lists the service permissions settings for folder /documents/temp/):
        RID rid = RID.getRID("/documents/temp");
        try {
          IUser user = (IUser) request.getUser().getUser();
          IResourceContext context = new ResourceContext(user);
          IResource res = ResourceFactory.getInstance().getResource(rid, context);
          IResourceFactory resourceFactory = ResourceFactory.getInstance();
          IRepositoryServiceFactory serviceFactory = resourceFactory.getServiceFactory();
          IAclService aclService = (IAclService) serviceFactory.getRepositoryService(res, IWcmConst.ACL_SERVICE);
          IResourceAclManager aclResourceManager = aclService.getAclManager();
          IResourceAcl resourceAcl = aclResourceManager.getAcl(res);
          boolean inheritedAcl = false;
          if (resourceAcl == null) {
            resourceAcl = aclResourceManager.getInheritedAcl(res);
            inheritedAcl = true;
          response.write("<strong>SERVICE PERMISSION OWNERS</strong><br>");
          IUMPrincipalList ownerList = resourceAcl.getOwners();
          IUMPrincipalListIterator ownerListIt = ownerList.iterator();
          while (ownerListIt.hasNext()) {
            IUMPrincipal ownerPrincipal = ownerListIt.next();
            String strPrincipal = ownerPrincipal.getId();
            response.write(strPrincipal + "<br/>");
          response.write("<br><strong>SERVICE PERMISSIONS</strong><br>");
          IResourceAclEntryList el = resourceAcl.getEntries();
          IResourceAclEntryListIterator it = el.iterator();
          while (it.hasNext()) {
            IResourceAclEntry entry = it.next();
            String strEntryPerm = entry.getPermission().getDescription();
            String strPrincipal = entry.getPrincipal().getId();
            response.write("<strong>" + strEntryPerm + "</strong> - principal: " + strPrincipal + "<br/>");
            IAclPermissionList plList = entry.getPermission().getMembers();
            IAclPermissionListIterator plListIterator = plList.iterator();
            while (plListIterator.hasNext()) {
              IAclPermission perm = plListIterator.next();
              response.write(perm.getDescription() + "<br/>");
        } catch (Exception e) {
          response.write(LogWriter.extractCallStack(e));
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
    Romano

  • How to get the final document number?

    Hi,
    How do I retrieve the document number of a document (e.g. delivery note) that is just added?
    Currently, I use the following event listener:
    [B1Listener(BoEventTypes.et_FORM_DATA_ADD, false)]
    in which I retrieve the document number by reading out the text field on the form:
    EditText text = (EditText)form.Items.Item("8").Specific;
    string deliveryNoteNumber = text.Value;
    This works perfect if only one person is adding documents.  But if two persons are posting a document, they both see the same (temporary) document number in the form while entering the data.  The latest person who finalizes his document, will get another number than the one that was displayed in the form (because the first person already used that number).  So, how can I retrieve the number of a document that is just finalized?
    Thank you very much for your help.
    Regards,
    Pieter Verhaeghe

    You can use the "ObjectKey" property of the BusinessObjectInfo object returned by the form_data_add.
    Catcth the event with BeforeAction = false - after the add event has successfully happened. Then you will see the ObjectKey property of the BusinessObjectInfo object will have an XML string in it. Inside that XML you can find the DocEntry of the newly added document, you will just need to parse it properly!

  • How to get a pdf document out of a Document form

    Hi all,
    I have a question of how to get the actual PDF out of a Document Form, when I take the @document value I only get some xml representation of the form, but I need to get the actual PDF.
    Thanks in advance
    Sincerely
    Kim

    The @document is the way to get the PDF out from the DocumentForm varibale. If you get just the data, it's because the DocumentForm was populated with just the data in the first place.
    Make sure you submit PDF from your form and not just the data.
    Jasmin

  • How to get the PDF Document version when using Digital Signature

    Hi,
    I have a form which contains two signature fields.
    When i sign the form the pdf document is saved as a version which can be seen by clicking the Signature Panel.
    I need to get the binary of the versions stored in the form.
    Please suggest me the how to get the version data from the form.
    Regards,
    S.V.atish Kumar

    Hi Mithun:
    I think I have run into a similar issue and have not been able to find a resolution.
    I have been trying to place three groupings of data and limit them to 15 rows; additional rows would print on a void check on a next page using the rtf template.
    Earnings .............. Pre-Tax Deductions .........Taxes
    <line 1 earnings> <line 1 pre-tax deductions> <line 1 tax dedcutions>
    <line 2 earnings> <line 2 pre-tax deductions> <line 2 tax dedcutions>
    <line 3 earnings> <line 3 pre-tax deductions>
    <line 4 earnings> <line 4 pre-tax deductions>
    <line 5 earnings>
    <line 6 earnings>
    The template works fine with these lists as nested tables until I add in the restriction and filler for the 15 rows for the first table. The data in the 2nd two lists does not appear once the limitation is added.
    Check Writer (XML)  - Issues with payroll check stub in rtf
    As an alternative, I have been thinking adding the remaining line totals (over 15 rows) and adding a 16th row. However I have been running into an error when trying to use the code for-each-group.
    *** XML-22056: exactly one of four group attributes must be present in xsl:for-each-group
    Can you send me your template to review? My email is: Karen.Lacey(AT)paetec(DOT)com
    Thanks!
    Edited by: RedLacey on Dec 17, 2009 11:48 AM

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • How to get a Reversal document number from Original Document Number ?

    Hi,
    Say I have a Original Document number. This document has been reversed.
    I am using table BSEG. Original Document Number for any Reversal Document is stored in field "BSEG-REBZG"
    My query is that now I have the Original Document Number. How can I get the Reversal Document from this Original Document number ??
    OR in simple words, Is there any possible way to find out if my original document has been reversed ?
    I need help to write a select query i.e the tables and fields.
    Please help.
    Thanks.

    Hello,
    Check the fields:
    BKPF-XREVERSAL: Reversal Indicator (1: Reversed Document, 2: Reversal Document)
    BKPF-STBLG: Reverse Document Number.
    BR,
    Suhas

  • How to get vbrk_vbeln (Billing Document) from VF02 to userexit RV61AFZB

    I am using USEREXIT_PRINT_HEAD to check if a document has been cancel or not.
    But I need to get the Billing Document from transaction VF02 to the userexit.
    How can I get the Billing Document?
    I have tried to use screen field vbrk-vbeln, but it give me Field 'VBRK-VBELN' is unknown.
    Please advice, help needed urgrently. Thanks

    Rupali,
    In USEREXIT_PRINT_HEAD, i'm using both fksto and vbeln from vbrk.
    So I need to get these data inorder to execute my code.
    Below is my code:
    IF fksto EQ 'X'.
            MESSAGE e901(V1) WITH vbeln.
    ENDIF.

  • Indesign CS3: How to get the current document name?

    Hallo!
    How do I get the name of the current document loaded in Indesign?
    Thanks,
    Alois Blaimer

    ...Plese Ignore the last post...<br /><br />docRef is the UIDRef of the document. Plese consider the following code<br /><br />IDocument *docFrom = Utils<ILayoutUIUtils>()->GetFrontDocument(); <br />if (docFrom == NULL ) <br />    break; <br />UIDRef  docRef = GetUIDRef(docFrom )); <br /><br />InterfacePtr<IDocument> iDocument (docRef, IID_IDOCUMENT); <br />if(iDocument == nil) <br />   break; <br /><br />PMString docName; <br />iDocument->GetName(docName);

  • How to get all open document?

    I want to replace some elements through all open documents in
    dreamweaver.
    eg. replace <b> to <strong> and </b> to
    </strong>
    I know i can do this by using "replacing all", but i want to
    replace a lot of things together. it's boring to replace them one
    by one :P
    Anyone know how to make it?
    Thank you for your help! ^^

    "xsiren" <[email protected]> wrote in
    message
    news:f1v1o5$333$[email protected]..
    > the "dreamweaver.getDocumentList()" is only for get all
    the list of open
    > documens, istn't it?
    > i tried to alert the value of it, and it show something
    like
    > "file://D:\develop\1.html" "file://D:\develop\2.html"
    And then you are supposed to get the DOM out of the url,
    passing it as an
    argument to dreamweaver.getDocumentDOM()
    Massimo Foti, web-programmer for hire
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com

  • How to get a pdf-document out of a function module

    hy,
    we want to create a wd-application which imports a function module. The function module creates a pdf-document. We are planning to deliver the function-module output as a table to webdynpro. The table includes the pdf-document.
    How can we display this pdf within the browser ?

    Hi,
    at first your Function Module should deliver your PDF as an XSTRING in ABAB.
    This is mapped to a byte[] in Java Model. This byte array you can bind for example to a FileDownload Element in the GUI. If you click on it the PDF opens.
    On the context element of type byte[] you have to do the following:
    IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("<byte[]contextElement>");   
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setFileName("<yourname>".pdf");
    binaryType.setMimeType(WDWebResourceType.PDF);
    Then it should basically work
    Frank

  • How to get the Material-Document-Number wie the delivery-Number+Position???

    Hi,
    we want to connect mseg and likp+lips.
    But therefore we need the Material-Document-number concerning this
    delivery and in likp+lips isn't a Material-Document-Number!
    Could anybody help me to connect likp+lips with mseg!

    ok, NICE!!! But how should I get with these information a unique Material-Document-Number for a delivery+deliveryposition?

  • How to get the PDF documents that are currently opened in Adobe Reader?

    When a PDf file is opened in adobe reader, how can we know the details of the file which is currently opened.
    If I want a copy the PDF document to get saved on desktop automatically without asking to user, How can I do this in c#?
    If there are many PDF files opened, then also, I have to get all the details of PDF documents  which are opened.
    Thank You...

    Reader Forum http://forums.adobe.com/community/adobe_reader_forums

  • How to get the held documents

    Hi Experts,
    How can we get held documents without knowing temporary number?
    Please suggest.

    Hi,
    You can see the list of held documents with help of user ID also if you dont have temprory number.
    In case you want to see held vendor or customer invoice go to t code FB60 or FB70 respectively and turn on the navigation.
    There you can see the held documents.

  • How to get orientation of document?

    hi,
    Anybody suggest me APIs that can get/set the orientaton of document.
    i.e How can I change the doc's orientation from portrait to landscape or vice - versa programmatically.
    Thanks,

    I believe that oritentation is largely a fallacy as of CS4 (CS3 even?). The artboards (or crop areas if you're using an old enough API) are iterable -- just see if the width is longer than the height. If so, its landscape. Otherwise, its portrait. To set, just flip the dimensions.
    I don't think there's an actual 'orientation' flag. There might have been once, but it doesn't make much sense any more.

Maybe you are looking for

  • Best approach -To create RTF template having more than 50 tables.

    Hi All, Need your help.I am new to BI publisher. Currently we are using BIP 11g. I want to develop.rtf template having lots of layout and images. Data is coming from different tables (example : pulling from around 40 tables). When i tried to pull dat

  • Create default operation & phase in process order

    Dear PP Guru, We used PP-PI and have a production type for simple production that there is no recipee for them. We used auto generate order for this kind of production. But in order, only operation is created and no phase is generated. Hence this pro

  • Solution manager 4.0 error

    Hi I am installing solution manager 4.0 on windows 2003 with oracle 10g. I am getting the error stage "RUN ABAP REPORT". The error massage is ERROR 2006-12-01 08:07:26 FRF-00007  Unable to open RFC connection. ERROR 2006-12-01 08:07:26 MUT-03025  Cau

  • Leave to scren ( ABAP list)

    hi friends .. i have a selection screen based on which a list is displayed.. on its pf status i have a print button.. when i press it a new screen regarding printing setting comes and <b>then i want that after printing screen of list output shud be d

  • "media not present" error when burning blu ray in PE12

    I have two systems, both ground-up builds, identical Win 7 Home Premium and Premiere Elements 12 installs.  Both systems have internal blu-ray burners.  One burner is an ASUS BW-12B1AT and the other is a Pioneer burner (don't recall the model number)