Getting incoming invoice reference key

Hi experts,
i have one small problem with my VAT register report.
i got the data from bsis from that i fetched the data from bseg with same doc.no. after that i used bkpf table and fetched 'awkey' field from it and i had taken offset of first 10 digits from it. with this offset i fetched data from rseg table.
But friends for some doc. nos im getting problem  like im getting key (awkey) from bkpf table from which i got number which doesnt matching data with rseg table. So for that doc. no. i couldnot able to access to rseg table.
can anyone help me in finding solution.
thank you,
regards,
vijay

Dear Krishna,
Lot of document numbers are available not only "belnr" , so try all document nos(xblnr..etc) and pass it to resb table.
Hope it will be helpful.
Regards,

Similar Messages

  • Intercompany Sales Incoming Invoice references

    Hi,
    We have customized intercompany sales delivery related process.
    We have completed SD steps successfully.
    1.       Sales Order Creation
    ( Sales Org. 0001 in comp Code 0001, are delivered to customer from plant LY02 in comp code 002)
    2.       Delivery
    3.       Customer billing document
    4.       Intercompany billing document
    5.       Auto Incoming Invoice creation with RD04 output type
    Now, what I do not understand is purchasing process that company code 0002 should create Purchase order, statistical goods receipt and incoming invoice.
    I have searched oss notes and forums they all talk about incoming invoice creation with RD04.
    I also completed EDI steps successfully that are triggered after RD04.
    But it is not working now because I don’t have PO document yet.
    I have 3 questions about this process.
    Is it possible to create PO automatically?
    If it is not how can I create PO document manually with reference to intercompany sales order? so RD04 finds PO and posts incoming invoice.
    when should I create PO?  (after creating sales order or delivery document).
    Should we create statistical goods receipt document with PO reference ?
    Thanks…

    I have not completed the process yet.
    I need an advice who have achived this before.
    As I said before I customized delivery related intercompany process.
    All SD steps are working fine
    I have one sales order, one delivery, one billing document in delivering company
    I have one billing document in selling company.
    Now, I need a PO and Incoming Invoice in sales company.
    how should I create PO?
    which acc. assingment category should be assigned?
    Should I set Goods Receipt Indicator?

  • Invoice reference on Payment advice

    Hi Gurus',
    I  am printing payment advice through T-Code F-58 where I am getting the invoice reference (which is a long text from Vendor invoice) but its not coming for one business area.
    Please inform if any futher settings need to be done.
    Regards,
    Abhishek

    Hi
    Please note check the following points:-
    Point1:- Are you using the payment print program standard one or customized one.
    Point2:- Customized program means please check whether they would have hardcoded some business areas.
    Point3:- Please check the variant which you are using.
    regards
    N.Kumar

  • Park Incoming Invoice

    Hello,
    When creating a Park Incoming Invoice reference to a PO, I need to prevent entering more than 1 Park incoming invoice/PO. (except the cases of partial delivery) How could I do that?
    Thanks in advance,
    Irem

    hi
    use Validation for line item.

  • How to get vendor name and invoice reference details in asset register

    Hi Experts,
    My client requirement is he want to see Vendor name and invoice reference filed in asset register.
    Is there any standard reports relating this requirement.
    Kindly Provide valuable information relating to this issue.
    Regards
    Madhan

    Hi Madhan,
    Let me know the t.code which you are getting asset data.
    Thanks

  • Populating FI reference key 2 field during invoice verification

    Hi,
    During invoice verification, I need to populate invoice document line items reference key 2 with information. 
    I have tried substitution rule but it does not work.  BSEG-XREF2 field is not updated.
    Would anyone be able to advise on this?
    Thanks & rgds.

    Thanks for your reply.  It works for substitution called at line item (not complete document). Thank you!

  • Incoming invoice not get posted through workflow

    Hi Experts,
    I am working on workflows for incoming invoice used by bus2081. i am facing the problem when the user clicks on post button after verifying the invoice the workitem not posted .and is it showing debit and credit miss match . while posting it with out workflow the document was posted with out error even debit credit miss match
    please give me the solution to overcome from this problem .
    Thanks
    Sreenath

    Hi,
    It seems to be authorisation issue.
    Compare the invoice values which user is able to approve and not.
    Maybe he doesn't have enough authorisation limit to post those invoices.
    Ask him to do it from SBWP backend inbox.
    If it is not going from his inbox means, check the SU53 t code after he clicks on post button.
    Then see in SU53 whether any authorisation is missing.
    It's not a workflow issue. If there is an issue in workflow means, he should not be able to post any invoices.
    Cheers,
    Raja.D

  • Linking invoice reference (REBZG) with incoming payment F-28

    Dear All:
                    I have a query, while receiving collection from customers through F-28 we want to link Number of the Invoice  the Transaction Belongs. The field is enabled but it doesnt populate the invoice reference for partial payments against a particular invoice. Please guide how this can be linked.
    Regards

    i could not find solution so i am closing the query.

  • Posting incoming invoice

    Hi,
    I defined a new "Terms of Payment" in configuration and defined the appropriate cash discount percentage rate.  I also created a customer master record and assigned the newly created terms of payment.  Using this new master record, I successfully posted an invoice in AR using FB70.  Now, I am trying to post an incoming invoice using F-28.  But for some reason unknown to me, the terms of payment (that I just created and assigned to the customer master record) is not being shown in the "Post Incoming Payments Process Open Items" screen in the Cash discnt field. 
    I have no problems posting the invoice without the cash discount percentage rate.  However, when I manually try to give a discount rate, I get a warning message that says Cash discount-relevant amount is zero; check entry at the bottom left corner of the screen.  When I click this warning, I get a pop-up screen with the same message and message no. F5073.
    I am sure I am missing a key configuration step in this process, but am not able to understand where.  Any light you can throw on this situation is greatly appreciated.
    Thanks,
    Vijay.

    Hi,
    In the FB70 you can see the payment term in the tab Payments in the header data.
    In F-22, the payment term is displayed in the screen where you enter the amount for customer invoice.
    For payment transaction F-28 is not relevant as payment term is entered in invoice and the discount etc for that invoice is calculated based on that payment term. In F-28 you are just making the payment for the net amount. However you can change the discount amount here.
    ( Also check that in transaction OB41, Payment term is maintained as optional field in field status group Payment Transactions for posting key 31.
    Also go to FS00 for the reconciliation account assigned to your vendor, the go to tab 'Create/bank/interest" and double click on the field status gorup.Check that in group Payment Transactions, the field Payment term is marked as optional field.)
    Regards,
    Gaurav

  • Avoid posting mm-incoming invoice with when special account is used

    Hi,
    during the creation of the (parked) incoming invoice we use a dummy account that needs to be changed later. For our process it is not simply done by customize the account in the way that posting is not allowed.
    Therefore I am searching a possibilty to reject the posting of an mm incoming invoice if one special account is used. For the FI-incoming invoices I solved the problem with validation rules (User exits to avoid posting of invoices)
    But how can I do this with the mm invoices? Is it extension LMR1M005 or LMR1M004? (Didn't get it with them because I don't know how a "posting" switch should look like in the coding)
    Regards, Vanessa

    Hi,
    Your PO created for real  vendor/account and Why you parked incoming invoice to a dummy account ?
    Purchase order considered as committed document by business and you are doing invoice verification( parking and posting) WRT purchase order for a vendor and respective accounting documents are created during goods receipt  and invoice verification-why you want to post to dummy account/vendor!
    Instead of development , you can try with following:
    1.Create Main Vendor (A)in t.code:XK01
    2.Go for creating a new vendor master(B) for dummy vendor in XK01 , keep alternate payee as main vendor(A) as Alternat.payee field in Payment transaction view and keep partner function as Invoicing Party(PI) only in  Partner function view.
    3. Assign this dummy vendor code(B) in Main vendor(A) in t.code:XK02  with partner function of Invoicing Party in Partner function view.
    4.Now create PO for Main vendor(A)
    5.Do invoice verification for PO, your invoice posted to dummy vendor code(B)
    6.Do payment for PO where you will pay for vendor code (A)
    Also you can think following options:
    Better create assign a blocking key in field of Payment block in Payment transaction view of your vendor master and after invoice verification, the invoice document created will be blocked for vendor.Later you can release the invoice with MRBR t.code or FB02 t.code.
    OR
    You can use tolerance limit as ZERO for tolerance keys for invoice verification for your company code. Create PO for vendor and after invoice verification for PO, the invoice document created will be blocked for vendor.Later you can release the invoice with t.codes MRBR  or FB02.
    Regards,
    Biju K

  • User exit for incoming invoice - MIRO/MB60

    Hi,
    Can anybody suggest me the user exit to set the payment block during the creation of incoming invoice document through MIRO(With PO reference) / FB60 (With out PO reference).
    Kindly dont run the program and send the list of the exists.
    Thanks
    Suri

    HI Suresh,
      Just execute this report and enter input value as FB60 then it will display alll the user exits related to this  t-code.
    report zuserexit no standard page heading.          
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.          
             tables : tstct.          
    data : jtab like tadir occurs 0 with header line.          
    data : field1(30).          
    data : v_devclass like tadir-devclass.          
    parameters : p_tcode like tstc-tcode obligatory.          
    select single * from tstc where tcode eq p_tcode.          
    if sy-subrc eq 0.          
       select single * from tadir where pgmid = 'R3TR'          
                        and object = 'PROG'     
                        and obj_name = tstc-pgmna.     
       move : tadir-devclass to v_devclass.     
          if sy-subrc ne 0.     
             select single * from trdir where name = tstc-pgmna.     
             if trdir-subc eq 'F'.     
                select single * from tfdir where pname = tstc-pgmna.     
                select single * from enlfdir where funcname =     
                tfdir-funcname.     
                select single * from tadir where pgmid = 'R3TR'     
                                   and object = 'FUGR'     
                                   and obj_name eq enlfdir-area.     
                move : tadir-devclass to v_devclass.     
              endif.     
           endif.     
           select * from tadir into table jtab     
                         where pgmid = 'R3TR'     
                           and object = 'SMOD'     
                           and devclass = v_devclass.     
            select single * from tstct where sprsl eq sy-langu and     
                                             tcode eq p_tcode.     
            format color col_positive intensified off.     
            write:/(19) 'Transaction Code - ',     
                 20(20) p_tcode,     
                 45(50) tstct-ttext.     
                        skip.     
            if not jtab[] is initial.     
               write:/(95) sy-uline.     
               format color col_heading intensified on.     
               write:/1 sy-vline,     
                      2 'Exit Name',     
                     21 sy-vline ,     
                     22 'Description',     
                     95 sy-vline.     
               write:/(95) sy-uline.     
               loop at jtab.     
                  select single * from modsapt     
                         where sprsl = sy-langu and     
                                name = jtab-obj_name.     
                       format color col_normal intensified off.     
                       write:/1 sy-vline,     
                              2 jtab-obj_name hotspot on,     
                             21 sy-vline ,     
                             22 modsapt-modtext,     
                             95 sy-vline.     
               endloop.     
               write:/(95) sy-uline.     
               describe table jtab.     
               skip.     
               format color col_total intensified on.     
               write:/ 'No of Exits:' , sy-tfill.     
            else.     
               format color col_negative intensified on.     
               write:/(95) 'No User Exit exists'.     
            endif.     
          else.     
              format color col_negative intensified on.     
              write:/(95) 'Transaction Code Does Not Exist'.     
          endif.     
    at line-selection.     
       get cursor field field1.     
       check field1(4) eq 'JTAB'.     
       set parameter id 'MON' field sy-lisel+1(10).     
       call transaction 'SMOD' and skip first   screen.
    Hope this helps you. reply for queries.
    Regards,
    Kumar.

  • LSMW of INCOMING INVOICE (MIRO)

    Hi,
    I'm gonna do the conversion of Invoices from one SAP to an other SAP and I need to use an LSMW of Incoming Invoices for SAP Material Management (transaction MIRO???).
    Anyone knows if it's possible and if it's exists?
    Thank you
    Andrea

    you want migrate historical data?
    There is nothing really impossible with computer programs, but I feel this would need so much effort and cost more than the whole rest of your migration project.
    you would have to redo anything in the sequence as it was dont in the old system, otherwise you will get wrong values.. You cannot migrate movements by its own, or invoices by its own.
    You would need to create this old (and probably closed)  PO again, receive the goods to create the   movement, post the invoice... which would mean that you might have an open item and you would need to pay the vendor again.......
    Dont forget to post all the goods issues otherwise your stock will be incorrect.
    And .. do you really think that you can get the data with the same numbers, if you have 2 SAP systems, then you might have overlapping number ranges.
    No , to be honest, I have not seen that such was done anywhere.
    You usually transfer open business process (and create cross reference lists, to see what old number has got which new number). means you transfer all POs that have not been received yet.
    You will post the invoices that belong to a PO that was received in the old system using the FI transactions (no 3 way match for a short period of time)
    You might want to ask that question to SAPs SLO team.

  • FI_GL_4 reference key 1 & 2

    Dear Experts,
    We are here working on BI 3.5 and the user has asked me to get reference key 1 & 2 in GL report which is made on FI_GL _4
    datasource
    but the datasource does not has this field.
    So Do i need to create a new generic datasource as the user requres a new cube without enhancement of FI GL4.
    i know BSEG &BKPF is used so is it recommended to go for generic DATASOURCE CREATION
    please suggest if there is other way out

    Thanks Atif,
    I myself  am a SD consultant. My Invoice type is same. Eg: I have a invoice type zbill, for company code 9000. Now when the invoices are released to accounting in 90% of accounting documents ref keys are reflecting properly and in 10% of accouning entries ref keys are not reflecting. I checked in BSEG also. BSEG has also not been updated.
    1. Could you please tell me where to tell the system that my ref key1 is sales group, like wise ref key2 also
    2. Why is that happening for few invoices only. Whereas all the characteristics of my invoices are same.
    Regards,

  • Invoice reference

    In credit memo entry how do you get a list of invoice for which the corresponding credit memo has to be made. Normally when we click F4 in the invoice reference  field we get a message input list is not available. I want to get the list of invoice when i press F4 in invoice reference field. Is it possible?

    ...wasteful...
    you need a search help - that's no problem
    but you need a table with all invoice-no. and a dialog or interface. Who shall maintain this table?
    A.

  • Reteiving Accounting Document number  by passing the reference key

    Hi All,
    I have the reference key (bkpf-awkey), fiscal year(gjahr) and bukrs and I need to retreive the Accounting doc number(Belnr).
    Right now, I am writing a select statement to retreive belnr from bkpf  and passing bukrs, gjahr and awkey in the where clause (for all entries in another internal table containing these fields).
    But the performance is pretty poor. Pls help.

    Hi,
    you have to go for index 4 of BKPF (with fields MANDT, AWTYP, AWKEY, AWSYS).
    Your select does not contain AWTYP, so this index is not used. You are filling BUKRS and GJAHR - but you don't have BELNR (that's what you want to get), so primary key won't help (unless you have thousands of BUKRS, unlikely picture).
    So select some entries to figure out, which AWTYP you use, maybe you can even specify AWSYS. Then index 4 should be nearly as fast as the primary key. To not confuse the DB optimizer, don't fill BUKRS and GJAHR - this won't speed up your select in case index 4 is used, but might prevent the system to use index 4.
    Regards,
    Christian

Maybe you are looking for