How to get FI Doc number for a MM posted document number

Hi Friends,
I need info on how to retrieve FI Document number that gets generated for a MM posted document.
MM Posted document is available in table RBKP-BELNR and FI document number created for this is in table BKPF-BELNR but for a given RBKP-BELNR how to find BKPF-BELNR. I need the relation.
Any help on this is highly appreciated.
Thanks,
Simha

hi,
you can get accounting details from  material document in this way.
DATA: BEGIN OF it_rbkp OCCURS 0,
      belnr LIKE rbkp-belnr,
      bldat LIKE rbkp-bldat,
      xblnr LIKE rbkp-xblnr,
      gjahr LIKE rbkp-gjahr,
      awkey LIKE bkpf-awkey,
      END OF it_rbkp.
DATA: BEGIN OF it_bkpf_we OCCURS 0,
      belnr LIKE bkpf-belnr,
      awkey LIKE bkpf-awkey,
      END OF it_bkpf_we.
DATA: BEGIN OF it_mkpf OCCURS 0,
      mblnr LIKE mkpf-mblnr,
      blart LIKE mkpf-blart,
      bldat LIKE mkpf-bldat,
      mjahr LIKE mkpf-mjahr,
      awkey LIKE bkpf-awkey,
      END OF it_mkpf.
  IF NOT it_ekbe[] IS INITIAL.
    SELECT mblnr
           blart
           bldat
           mjahr
           INTO TABLE it_mkpf
           FROM mkpf
           FOR ALL ENTRIES IN it_ekbe
           WHERE mblnr = it_ekbe-belnr
           AND   blart = c_we.
  ENDIF.
  LOOP AT it_mkpf.
    CONCATENATE it_mkpf-mblnr it_mkpf-mjahr INTO it_mkpf-awkey.
    MODIFY it_mkpf TRANSPORTING awkey.
  ENDLOOP.
IF NOT it_rseg[] IS INITIAL.
    SELECT  belnr
            bldat
            xblnr
            gjahr
            INTO TABLE it_rbkp
            FROM rbkp
            FOR ALL ENTRIES IN it_rseg
            WHERE belnr = it_rseg-belnr.
              ENDIF.
  LOOP AT it_rbkp.
    CONCATENATE it_rbkp-belnr it_rbkp-gjahr  INTO it_rbkp-awkey.
    MODIFY it_rbkp TRANSPORTING awkey.
  ENDLOOP.
  IF NOT it_mkpf[] IS INITIAL.
    SELECT belnr
           awkey
           INTO TABLE it_bkpf_we
           FROM bkpf
           FOR ALL ENTRIES IN it_mkpf
           WHERE awkey = it_mkpf-awkey.
  ENDIF.

Similar Messages

  • How to get the version no. for service po?

    Hi,
    How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank.
    Regards,
    Rachel.

    Hiee,
    It is not like service PO does not have revision.
    REVNO will only exists for any document if amendment is made after releasing it. If in EKKO for all service PO revision number is blank then test if version management is active for document type
    MM->Purchasing->Version management -> External documents
    Here check for your doc type and purchase org version management is active.
    Regs,
    Appie

  • How to get mobile model name for different types mobile devices

    Hi,
    I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
    HttpConnection connection = null;           connection = (HttpConnection)Connector.open(url);          connection.setRequestMethod(HttpConnection.POST);          connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    i retrieve the header information from servlet like below :-
    String userAgent = request.getHeader("User-Agent");
    How to get mobile model name for different model devices , not by manually adding the model name in midlet?
    Thanks in advance :-)

    Hi,
    In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get title templates library for CC?

    How to get title templates library for CC?  Do you have to download and install PP 6 to get them?

    Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore

  • How to get balance sheet report for profit centers

    hi
    how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for this

    Hi,
    You can use T. code KE5Z for actual line items.
    More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
    The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
    In selection, you can give ledger name which is generally 8A for profit center ledger.
    Reg

  • I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?

    I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
    anyonr know how I can get my money back????????

    Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to get 64 bit version for premiere elements 12

    How to get  64-bit version for Premier Elements 12 ? 
    I download from ADMISY site.
    Click on win 64 bit and download it.
    When I try to install ther is a error  this download version is not for 64 bit I have try many times but same result

    Hello
    I have been away some days
    ADMISY is a software partners for Adobe
    I running Win 7 Home Edition
    I have received a card with a code when I bought the program and the I
    download from ADMISY
    Sending serial and installation warning
    PhotoshopElements_12_WWEFDJ.7z
    PhotoshopElements_12_WWEFDJ
    PremiereElements_12_WWEFDJ_win32.7z
    PremiereElements_12_WWEFDJ_win32
    I can not find a 64 bit version of 32-bit or 64-bit version of downloads
    This is information I have
    Best regards
    Erling Magnusson
    2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
        How to get 64 bit version for premiere elements 12  created by A.T.
    Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
    Elements* - View the full discussion
    <https://forums.adobe.com/message/7162950#7162950>

  • How to get the depreciation areas for an asset in particular period

    Hi frndz,
      how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
    Thanks and regards.
    Harisumanth.Ch

    Try table ANLB, then read ANLC.
    Regards.

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • How to get count of rows for a table?

    Hi,
    How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
    Regards,
    Devashish

    Hi Devashish,
    WdContext.node<Your_node_name>().size() will give you the no: of rows.
    This should be the node that is bound to the table's datasource property.
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
    You can access an attribute of a particular row as
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get subordinate org units for a given org unit within specific dates

    hi,
    How to get subordinate org units for a given org unit within specific dates

    Use the following Func module ..
    HRWPC_RFC_STRUCTURE_GET
    *--Get the sub org.unts for the given selection.
        CALL FUNCTION 'HRWPC_RFC_STRUCTURE_GET'
          EXPORTING
            ROOT           = root_org   <-- Give the Org unit 
            EVPATH         = 'O-O_DOWN'
            BEGDA          = s_date-low
            ENDDA          = s_date-high
          TABLES
            T_OBJEC        = t_objec
            T_STRUC        = t_struc
          EXCEPTIONS
            NOTHING_FOUND  = 1
            INTERNAL_ERROR = 2
            OTHERS         = 3.
        IF SY-SUBRC <> 0.
          MESSAGE i000 WITH 'No Sub Orgunits for ' s_objid-low.
        else.
    *--Prepare final sub org.units tabl.
          loop at t_objec.
            if t_objec-objid ne s_objid-low.
              it_orgunit = t_objec-objid.
              it_orgunit-begda   = t_objec-begda.
              it_orgunit-endda   = t_objec-endda.
              APPEND it_orgunit.
            endif.
          endloop.
        endif.

  • How to get the baselinegrid position for a line?

    Hi All,
    How to get the baselinegrid position for a line in a paragraph?

    Hi,
    2nd line baseline grid for yourPara paragraph is:
    yourPara.lines[1].baseline;
    last line baseline is:
    yourPara.endBaseline;
    Jarek

  • How to get File type icon for files store on Amazons3

    Hi,
    i want to know about how to get file type icons for files that we store on Amazons3.i am a devloper ,i want to make gui for accessing amazons3.
    so ,i want to know about how to get file type icons for files that we store on Amazons3.
    thanx in advance.

    hi,
    have u heard amazon simple storage service,that provides storage space for
    storing files, i am a devloper,i want to know the files that we store on amazon,how we can get file type icon for that files.
    i want to sample code in java for this.
    thanx in advance.

Maybe you are looking for

  • Transfer Customer Master records from one company code to another company.

    hi ,     working on a rollout project , needed to transfer Customer Master records from one company code to another company code. is there any sap standard BDC/T-code as in case of Vendor Master FK15,Fk16(T-CODE) . thanks in advance. rahul Edited by:

  • Cannot access class java.nio.ByteBuffer

    Hi All - I'm trying to compile a java sample code. I keep getting the error described in the subject line cannot access class java.nio.ByteBuffer; file java\nio\ByteBuffer.class not found I have un-ziped the java sdk 1.4.1 src.zip to a directory unde

  • PLs Help - IPod Updater cant see Ipod but its mounted

    please help me guys ! My New 5th is shown on desktop and itunes but it wont see the ipod updater I have tried everything and its just new out of the box. The option in import photos in ipod/itunes is not showing up either. I have software 1.0 on the

  • Internet Explorer Flash Problems

    Hey guys, I'm  putting an swf on a website and it's working great except for IE.  (Although it works great in IE 9). In some versions of IE  it will start to play then stop as if the video was never load and in  others it will just go white. It works

  • Encrypted document using Apple File Security won't open

    Back in 2000 I was using an iMac G3 with OS 9. I created a MS word document with MS 2000 and encrypted it using the Apple File Security. Since then I have upgraded to an iMac G5 with OS 10.4 and OS 9 for older applications. Since this is a legal docu