Incorrect cont. number in FBL5N and BSEG

Hi Friends,
I hve created contract>sales order->Debit memo request>Invoice.
Now ; Invoices were created correctly and all SD tables look right. The issue is after creating Invoice in SD while creating FI document the FI table BSEG is updated with wrong contract number and FBL5N  t code is also showing wrong contract number?
Currently we are using one enhancement  and user exit is used to incorporate one customized field as identifier for bill type.
1.     During the billing document release to accounting VFX3, The user exit triggering and it is  update the customized fields  and Net settlement indicator.
2.     Using the Invoice number, get the fields VGBEL(Document number of the reference document) and VGPOS (Item number of the reference item) from VBRP and read table VBAP with VBELN and POSNR, to get DMR number  (Sales Document) that created for the Invoice.
3.     Use fields VGBEL and VGPOS on table VBAP to get the sale order number.
4.     By using the Sales order number, get the Distribution channel to update Net indicator field
      In accounting table BSEG-UZAWE = JF must be updated on the customer line.
5.     Retrieve the sale order number and item level to get customized field from table VBAP
What may be the reason and how can I overcome it
Any pointers
Thanks
Ashu
Edited by: ashutosh p on Dec 3, 2009 4:51 AM

closed

Similar Messages

  • FBL5N t code and BSEG table is showing wrong contract number

    Hi,
    The proces flow is contract number>sales order>DMR-->Invoice
    Now when I am checking the VBFA table it's showing correct contract number against invoices but FBL5N t code and BSEG table are showing wrong contract numbers.
    Why FBL5N and BSEG table is showing wrong contract number?
    Currently we are using one enhancement and user exit is used to incorporate one customized field as identifier for bill type.
    1. During the billing document release to accounting VFX3, The user exit triggering and it is update the customized fields and Net settlement indicator.
    2. Using the Invoice number, get the fields VGBEL(Document number of the reference document) and VGPOS (Item number of the reference item) from VBRP and read table VBAP with VBELN and POSNR, to get DMR number (Sales Document) that created for the Invoice.
    3. Use fields VGBEL and VGPOS on table VBAP to get the sale order number.
    4. By using the Sales order number, get the Distribution channel to update Net indicator field
    In accounting table BSEG-UZAWE = JF must be updated on the customer line.
    5. Retrieve the sale order number and item level to get customized field from table VBAP
    Any pointers.
    Thanks
    Ashu

    Hi Reazuddin,
    Thanks for your reply,
    I am concercerned about BSEG table and using user exit EXIT_SAPLV60B_008 to post the document in FI.
    Now in we have enhanced this user exit  for contracts and included in this way.
      SELECT SINGLE ZZ_CONTRACT FROM VBAK INTO (LC_CONTRACT) WHERE VBELN EQ cvbrp-vgbel.
    Endloop.
    *Moving the values to final accounting table
    loop at xaccit.
    xaccit-vertn = lc_contract.
    xaccit-VBEL2 = xaccit-AUBEL.
    xaccit-xref3 = lc_vbel2.
    MODIFY xaccit .
    ENDLOOP.
    Clear: lc_contract,lc_vgbel,lc_vgpos,lc_vbel2.
    But I am getting correct data when checked other clients( development and quality), this problem I am getting in production.
    Do I need to ask the ABAP'er to debug this enhancement in production?
    Thanks
    Ashutosh

  • Incorrect doc.no.: select document number between 82139259 and 000000000

    Hi Expert,
    When i try to to Release to Accounting t for a Billing Document (VF02)-->Change Billing Document --> Release to Accounting, It is not creating accounting Document instead it Says the Below Error.Pls Help to resolve this.
    Incorrect doc.no.: select document number between 82139259 and 00000
        Message no. F5151
    Diagnosis
        The document number you specified, "&v1", is not in the ap
        number range. The number range is dependent on the documen
        The exception to this rule is formed by recurring entry do
        must use number range 'X1' and sample documents, which mus
        range 'X2'.
        Possible reasons for this error message are:
        o  You have entered an incorrect document number.
        o  An incorrect document number was transferred to this ap
           during an update from another application (e.g. CO).
    System response
        The document cannot be processed any further.
    System response
        The document cannot be processed any further.
    What to do
        o  Enter a document number that is within the specified number interval.
        o  If this error was caused by an update from another application, check
           the type of number assignment in that application (external or
           internal?) as well as the document number transferred.
    Example
        In the CO settlement profile, a document type with external number
        assignment was entered, whereas an internal document number was
        transferred.
    PLs Help
    Zubair
    Edited by: MhdZubair on Mar 22, 2011 10:42 AM

    Hi,
    Please refer the link :
    Incorrect doc.no.: 2. Select document number between 6300000000 and 6399999
    Regards,
    Pramitha.

  • Incorrect doc.no.: 24. Select document number between 0090000000 and 009999

    Hi All,
    I created billing doc, it save and gave the number but with error on account determination, i checked the no range corrected it and got the error: Incorrect doc.no.: 24. Select document number between 0090000000 and 0099999999.
    Please Help.
    Maureen.

    I very much hope you've done it in a test system.
    It seems that your document was given number 24, according to the number range that existed at that time. Then you went and changed the number range to 900000... and, naturally, number 24 is not within the valid range anymore. So what else did you expect?
    If it was (fingers crossed) a test system, just forget about that document and create a new one. Otherwise you'll have to change the range back, then cancel the document 24 (make sure the cancellation does not post to accounting either), then change the range again.

  • Simulair report for FBL5N and FBL1N for new general ledger on segment level

    We are working with segments in new G/L ledger. We want to run a open item report where we can combine customers and vendors by segment. The vendors and customers are linked in the master data. In the "old"  reports FBL5N and FBL1N you can do this but not by segment.I found the following report on segment level:
    - S_PCO_36000218 - Receivables: Segment
    - S_PCO_36000219 - Payables: Segment
    What I'm missing is to run 1 report for Customers and vendors. What I'm missing to is that there are only some fields available on line item level. (I like to have invoice number, documentype,.......)
    Is there a standard report for this in new genaral leger?
    Is it possible to ad additional field to th list viewer.

    What is this user license type?  All financial transactions need professional license.
    Thanks,
    Gordon

  • Please Help! Error message: Incorrect serial number, The serial number you entered is not valid. Click OK to retry serial number.???

    My old PC crashed and died, and I am unable to deactivate the licence of Photoshop Elements 7.
    I re-installed Photoshop Elements 7 via a trial download from Adobe website onto my new PC, Windows 8.1 single language.
    My serial number is not accepted.
    Error message: 'Incorrect serial number, The serial number you entered is not valid. Click OK to retry serial number'.
    Customer help care is not helpful and keep ending my chat before I get a solution.
    Can someone please help me and let me know how I can rectify this problem!!!

    Thank you Benjamin MItchley.  I reviewed the chat log and I can confirm that they are correct we do not provide installation support for Photoshop Elements 7 due to the age of the software title.  Photoshop Elements 7 also does not support activation so there is no risk that you were unable to deactivate the software on your previous computer.
    I am showing the serial number under your account was provided from an equipment manufacturer.  It is possible there may have been a customized installer for that version.  Have you contacted the computer manufacturer to obtain the installation files for the copy of Photoshop Elements 7 included with your computer?
    Since you did not migrate/transfer over any files it is unlikely there is a software issue preventing the installation.  You can try running the CC Cleaner Tool to ensure that no corrupt licensing files may be preventing the installation process.  You can find details of the use of the CC Cleaner Tool at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.

  • Invoice Reduction - Incorrect Document Number Transferred

    I am attempting Total-Based Invoice Reduction on an IDoc that is held up in Invoice Overview.
    As far as I can tell, the document types are correct and the number ranges are correct.
    The RD and RS ranges are pointing to internally assigned numbers beginning with 51 and the RE and (invoice reduction) ZI document types for MR1M are pointing to number range 51 which is external. 
    What can I be missing to get the following error?
    Incorrect doc.no.: $ 2. Select document number between 5100000000 and 5199999999
    Message no. F5151
    Diagnosis
    The document number you specified, "&v1", is not in the appropriate number range. The number range is dependent on the document type.

    It seems that the Invoice Reduction Document Type did not have the correct numbering assignment - it was external when it should be internal.
    In my mind I was thinking the invoice reduction document would be a transfer from MM, but it is not.  It is an internally created financial document so it need an internal document assignment.

  • Query using system parameter LEVEL returns incorrect huge number of records

    We migrate our database from Oracle *9.2.0.6* to *11.2.0.1*
    The query below throws "ORA-01788: CONNECT BY clause required in this query block".
    select * from (
    +select a.BOARD_ID, code, description, is_displayable, order_seq,  board_parent_id, short_description, IS_SUB_BOARD_DISPLAYABLE, <font color=blue>LEVEL</font> child_level, sp_board.get_parent_id(a.board_id) top_parent_id, is_top_selected isTopSelected+
    from boards a, ALERT_MESSAGE_BOARD_TARGETS b
    where a.board_id = b.board_id and is_displayable = 'Y' and alert_message_id = 5202) temp
    start with board_parent_id = 0
    connect by prior board_id = board_parent_id
    ORDER SIBLINGS BY order_seq;
    Based from online resources we modified "*_allow_level_without_connect_by*" by executing the statement.
    alter system set "_allow_level_without_connect_by"=true scope=spfile;
    After performing the above, ORA-01788 is resolved.
    The new issue is that the same query above returns *9,015,853 records in 11g* but in *9i it returns 64 records*. 9i returns the correct number of records. And the cause for 11g returning greater number of records is due to system parameter <font color=blue>LEVEL</font> used in the query.
    Why 11g is returning an incorrect huge number of records?
    Any assistance to address this is greatly appreciated. Thanks!

    The problem lies in th query.
    Oracle <font color=blue>LEVEL</font> should not be used inside a subquery. After <font color=blue>LEVEL</font> is moved in the main query, the number of returned records is the same as in 9i.
    select c.BOARD_ID, c.code, c.description, c.is_displayable, c.order_seq, c.board_parent_id, c.short_description, c.IS_SUB_BOARD_DISPLAYABLE, <font color=blue>LEVEL</font> child_level, c.top_parent_id, c.isTopSelected
    from (
    select a.BOARD_ID, code, description, is_displayable, order_seq, board_parent_id, short_description, IS_SUB_BOARD_DISPLAYABLE, sp_board.get_parent_id(a.board_id) top_parent_id, is_top_selected isTopSelected
    from boards a, ALERT_MESSAGE_BOARD_TARGETS b
    where a.board_id = b.board_id and is_displayable = 'Y' and alert_message_id = 5202
    ) c
    start with c.board_parent_id = 0
    connect by prior c.board_id = c.board_parent_id
    ORDER SIBLINGS BY c.order_seq

  • Reversal voucher for an invoice paid to the incorrect PO Number

    Hi, We have paid some vouchers to the incorrect PO number.  I thought we could do a reversal voucher against the incorrect voucher, then the PO would be open to apply the correct voucher to it.  It appears the receipt is not backed out.  Has anyone used this function and could guide us in what needs to happen. 

    Hi
    I guess you receive different invoices for both the POs. The process of raising a credit memo is the best way to solve this issue. Did you think about cancelling the Invoice document in MR8M if it is feasible,  here this will affect your stock accounts based upon the current stock position for the said Invoice/PO quanity.
    One more additional check you can have is to use to activate the check box "check doubel invoice"  below Tolerance Group  in the Vendor payment Transactions Accounting view of vendor master. This will help you to restrict the entry of wrong PO attached to the invoice if you have already processed the Invoice (provided you are using the reference field in MIRO by entering the INVOICE number of the PO).
    Regards
    SAM

  • How to delete a phone number in "send and receive" imessage option (iOS 6.0) ?

    How to delete a phone number in "send and receive" imessage option (iOS 6.0) ?
    Thks for tip ;-)

    Why? Is the number incorrect? It gets your phone number from the SIM.

  • Relation field between table VBRK/VBRP and BSEG

    Can any body guide on the common fields between VBRK/ VBRP and BSEG, except field "assignment".

    Hi,
    If you know the accounting document number, Goto SE16. enter BSEG table and enter.
    Enter the accounting document number in selection screen. E.g 90000498.
    You will get multiple lines. E.g normal billing document(Not credit memo /debit memo)
    Customer information will be available in posting key 01 line (Header). And Item information will be avilable in Posting key 50 line.
    List of fields available in Header.
    Billing document number
    Customer
    Payment terms
    Amount.
    Company code
    Controlling area
    Reconciliation account number
    Assignment
    Item level information in Posting key 50.
    Material
    Plant
    Amount
    Tax amount
    Tax code
    As per my knowledge for reporting purpose we don't use BSEG  bcoz of performance issue.
    BKPF -  Accounting document Header
    BSID
    BSIS
    Regards,
    Chandra

  • Add Sales Document Number in FBL5N

    How can we add the Sales Order Number in FBL5N. Although we have fields Sales Document Number and Order field but they are not populating.

    I write the following code to get the sales order in function module .
    Firt Try
    FUNCTION ZSAMPLE_INTERFACE_00001650.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    *"  EXPORTING
    *"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    TABLES : VBRP.
    SELECT SINGLE VBRP~AUBEL INTO E_POSTAB-ZSORDER* FROM VBRP WHERE VBRP~VBELN = I_POSTAB-VBELN.*
    Initialize Output by using the following line -
    E_POSTAB = I_POSTAB.
    I addZORDER field in RFPOSX structure and first I use the RFPOSX in into clause but it gives me the error component ZSORDER does not have component ZSORDER although I followed the instruction. (Is append is same thing like I did)
    Second Try
    I change ZSORDER with AUFNR which is RFPOSX FIELD  then ift gives me error report/program statement missing.
    SELECT SINGLE VBRP~AUBEL INTO E_POSTAB-AUFNR* FROM VBRP WHERE VBRP~VBELN = I_POSTAB-VBELN.*
    ENDFUNCTION.

  • Incorrect VAT number - how to change?

    Hello, I have entered incorrect VAT number at registration process, and now I can't see a possibility to change it on dashboard. How to solve this problem? By the way, is a possiblity to get a correction of invoice (the same reason that above)?

    Hello AxilaCapital,
    Please contact
    Dev Center Support for assistance with this.  
    -Miles
    Windows and Windows Phone Dev Center Support
    Send us your feedback about the Windows Platform

  • Use Skype USA number to make and recieve calls fro...

    I am planing to visit india for 2 months and i have Iphone 4S with Skype App.
    Can I use Skype USA number to make and recive calls from India?

    raghava wrote:
    Can I use Skype USA number to make and recive calls from India?
    I've moved your post here as you had used an incorrect board.
    Sorry - you can't. Firstly a Skype OnLine # is for your contacts to call YOU (inbound calls). You can't make calls from an OnLine #. Secondly, the program isn't available in India.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • How can I change the phone number for messaging and FaceTime?

    How can I change the phone number for messaging and FaceTime?

    Unable to make or receive FaceTime calls after April 16, 2014
    http://support.apple.com/kb/TS5419
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Text on the iPad
    http://ipad.about.com/od/ipad_tricks/a/How-To-Text-On-The-Ipad.htm
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

Maybe you are looking for