Accounting doc number for a material doc

Hi Experts,
Pls help me to know the accouting document number for a material document.
Is there any functional module for the above or any table fields.
currently we are developing zprogram.
Appreciate for advices.

Hi
u want Accounting document against Material document
means
u done GR through Migo
and ur documennt type is We _ goods receipt - this is ur material document no
u done invoice dopcument againmst Gr - RE Dcoument type - accounting Document No
see when u going to Po , purchase order history
then bothe Gr and IR document u seen
for example :_ gR - 500000123
and             IR 5105601234
but when u double clcik on IR Dcoument , screen will be open
here u also se another accounting no document see 510004563 then clcik on this field and f1 then u see table and field
i can tell u u doing GR 5000000123
at the time of ir two document no genrated
one for document for Mm Point of view and one for Fianance point of view
means 5105601234 is MM Accounting dcouemnt
           510004563 is finance accounting document
i hope u clear that
if any query revert back
Regards
Roobal

Similar Messages

  • 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

  • How to find Ship to party number for a Sale doc.

    Hi,
    Currently, I have a sale doc number with type ZDR (Debit memo request). Could you please let me know how can I get the ship to party number for that document number.
    In General, Could you please show me how to get ship-to party number for a sale doc with all sale doc type ?
    Thanks,

    Hi Krishna,
    Your answer is correct, I just go to table VBPA pass the sale doc number & choose the partner function as ship to party, then I can get the ship-to-party ID.
    Hi Sandipsinh,
    The KUWEV is the customer master data view that is used in standard T-code. However It is not a table, therefore I can't get data from it.
    Hi  senya_1111,
    You know, with a sale order we have only one sold-to-party. However, we can have several corresponding ship-to-partys.
    Moreover, In table VBAK(Sale order header)  we just have sold-to-party not ship-to-party. That means we can get wrong value in case ship-to-party is not the same as sold-to-party.
    Overall, Thank all of you for your opinion.

  • List of Account Doxuments created for a material

    Hi,
    Is there any standard program/ Tcode to list the account documents created for a material in a company code over a period of time? Please help me with this.
    Thanks
    Challa

    hi,
    As per understanding u require accointing document wrt tthe material.
    Generally when movement is happening for a material, material document will be created which inturn will create accountging document
    Eg:  when outbound delivery is created with PGI for movement  type 601, material document will be created & inturn accounting docuemnt will be created.
    1. First get the material document from Table MSEG according to material
    2.With  the material doc number u can get the accounting docuemnt by using table: BKPF Accounting Document Header
    U need to enter the material doc number in the field: XBLNR Reference Document Number of table BKPF
    hope this will be helpful
    regards
    Arun prasad

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

  • How to enter an account assignment category for a material.

    Hi guys:
       I am facing following error prompt,please tell me how to enter an account assignment category for a material.
    thanks
    Account assignment mandatory for material 0000000N6451 (enter acc. ***. cat.)
    Message no. ME062
    Diagnosis
    There is no provision for value-based inventory management for this material type in this plant. Account assignment is thus necessary.
    Procedure
    Please enter an account assignment category.

    HI Shyam :
    Go to transaction type OMS2. Check whether the material type u are using is ticked for Value update.
    If not,
    a. Use a different material type
    b. or Use an account assignment category.
    How to use B,that is hot to enter an account assignment cateogory

  • Revision number for Header material in Production order.

    I have maintained Revision number in material mster  for Header material in Production order and also for components.
    1)Revision number for Header material in Production order is not appearing in AFKO table against production order.
    2)Revision number for components in Production order is not appearing in RESB table against reservation.
    Any settings for that please guide.

    Hi,
    Revision number generation is using ECM only possible. Are you using the ECM with revision levels. Check this.
    Regards,
    V. Suresh

  • Label printing should be only once for a material doc number

    Hi,
    we have a tcode in which if we provide a material doc no. and number of prints..but once we print the labels,
    then again if we have to print for the same material doc no..it should not print..instead it should ask for permission to print that number again..is there any option available in scripts to do like this?

    try to maintain ztable
                     ztable fields document no , printed...
      such that to identify the docu no has been printed previously r not...
    select single printed  from ztable into printed where  docu no = p_document.
        if printed = X
          if it is printed then try to pop up a screen such thst to approve it ....
           else.
         print it strightly.....

  • Report that shows the PO and PR number for each FI doc # of invoice posting

    Hi
    I want a report in SAP for PO and PR no. for each FI doc.
    Thanks & Regards

    There is no standard report. Through development or BI.

  • 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

  • How to assign account assignment category for a material

    Hi All
    I am creating a Purchase order .using tr code /nME21N
    I filled in the columns for materials, qty,deliv date,net price and currency .
    Now it is throwing me an error  "Account Assignment mandatory for each of the materials" (enter accnt asst category) .........
    My question is how and where should i do ACCOUNT ASSIGNMENT for each of the materials i want to include in my PO ?

    Hi,
    The problem you mentioned could be due to one of the two reasons mentioned below:
    1) Material Master you entered is not extended (created ) for the accounting data view in MM01 for the plant you used in the PO line item
    2) It could be a warning message.  This message when you receive, you may double click the message which gives you a pop-up with details.  You may see the message number.  This message number can be controlled to warning or error or information type.  If warning or information type, you can still go ahead and create PO still bypassing that message.   In such a case, even if you have already satisfied by doing step#1, you may encounter message....
    Regards

  • How to find Change number for a Material

    Hi,
    If we know the material number and Revision level then how can we find the Change Number of that material.
    Is there any table in which i can find Change number for a revision level or is there any Function module available.
    Regards,
    Vaibhav

    Hi Vaibhav,
    Is there any table to find the change number and revision level of a material. I have change number and material and revision level coming from external system. But i need to check that with SAP whether it exists or not.
    Is there any table link to find whether a material has change number.

  • Creating more than one serial number for a material upon Goods Receipt

    I am trying to configure the system to create more than one serial number automatically for a material and have the equipment record created at the same time with the same number as the serial number.  For example using MB1C, receiving a material for a quantity of 2, the Maintain Serial number pop up box appears, selecting the 'Create serial number automatically' , I receive an error message ' Number of numbers to be assigned must be 1   
        Message no. NR030        
    Can someone help me with this issue.

    I have tried MIGO and get the same error.  The  Plant data/stor 2. tab of the  material master for this particular material is set as follows
                                                                                    Serial no. profile   NS01 SerLevel   1  Keep equipment number and serial number synchronous.
    Would there be configuration missing?

  • While Creating PO its saying account assignment mandatory for the material.

    Dear All
    I have created a material with Mechanical Engineering as Industry sector and ROH as Material Type.
    For this material i created PR and PO both the time it said account assignment is mandatory.
    Why this happens?
    I don't want to enter any account assignment category.
    Pls help.
    Regards
    Depin

    Hi,
    Normally purchasing ROH with PO needn't to assign the account assignment category, but if don't create accounting view for the ROH material or create the accounting view without valuation class assigned, system can't find the relevant stock account automatically, so will issue the message just like "Account assignment is mandatory".
    So you should check the material master data, if it's fine, then you will not see the message any more!
    Good luck
    Tao

  • ME21N : account assignment mandatory for bulk material

    Dear guru.
    For a raw material used as bulk in production with material type ROH and quantity/value updating I need that when I create purchase order the system send an error message that account assignment is mandatory.
    I know that for an NLAG or UNBW material type the system send this message.
    For internal reason  I need to maintain material type ROH  with quantity/value updating , do you know a solution , any exit , in order to solve my problem  ?
    Thanks for you help.

    CONS  SAP wrote:
    Dear
    > I need that this component in the bill of material must be managed with position type L and I donu2019t want to do consumption movements.
    > I have verified that I can create a purchase order with account assignment for this material , I need only that the system send a message for these bulk materials.
    > Thanks.
    position type L means it is a inventory managed material.
    why do want the material to be inventory managed and at the same time dont want to record consumption movements?

Maybe you are looking for