Enhancement point in billing doc creation at invoice number generation

I need to find an enhancement during billing document creation.
This is my requirement.      Within function module RV_INVOICE_DOCUMENT_ADD, standard SAP determines the invoice number using Function Module NUMBER_GET_NEXT.  now, there is an enhancement point available immediately after the standard SAP invoice number has been determined.
I need to find that enhancement point.
Please advice what enhancement points are available at this point.
Any advice is appreciated. Thanks in advance..

Hi
Here is a little program that when you type in the t-code it will give you all the user exits available.
<Code>
*& Report Z_FIND_USER_EXIT *&
REPORT z_find_user_exit 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.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) text-001.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN END OF LINE.
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) 'Transactie 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 'User exit', 21 sy-vline , 22 'Omschrijving', 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:/ 'Aantal gevonden user-exits:' , sy-tfill.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No user-exit Found'.
  ENDIF.
ELSE.
  FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
  WRITE:/(95) 'Transactie code bestaat'.
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.
<Code>
Hope it helps.
Regards
Vic

Similar Messages

  • Stop the Billing Doc creation for error confirmation

    Hello Experts,
    This is regarding the Billing issue.
    Our Service Process: We create the Service Process and also create the followup confirmations.
    For ex: I have created one SP and also created one followup two confirmations.
    The second Confirmation contained an error and it has generated Billing Document
    Actually The bill should not be generated until all confirmation contain no error and only one billing document should be generated per Service Call.
    Could you help to stop ,the Billing Doc creation for Error Confirmations?
    Regards
    Madhu

    Check the following thread: KEPM valuation K/(834) No standard cost estimate could be found for mat.
    Shail

  • Billing doc creation date in order changing when cancelled

    Hi All,
    In Order, if 'Future Cancelled date' is given, Billing document creation date is being changed automatically to cancellation date (if cancellation date is less than billing date). Is there any way to restrict this?
    Thanks,
    Regards,
    Rajesh.

    Hi Leo,
    When any invoice is cancelled it will automatically pick the original invoice date.
    If you want other date on which the cancelled invoice has to be created can give the date in the billing date field, so that it wil creat cancelled invoice on date you entered when cancelling
    T.code VF11.
    kindly reward points if usefull.
    Regards
    RVK

  • Bugget billing plan-billing doc creation

    Hi experts,
    For a resential customer that is monthy charged for 50$(BBP) a billing doc. is created with different billing lines.
    The tarrif contains differents components: Fixed amount, distirbution cost, transaport cost, energy cost, rental cost, etc..
    I see in the billing lines that the 50$ is split between those differents components.
    How SAP billing engine breaks this amount into differents small amounts corresponding to those components ?
    Can anyone explain how I can debug this when creating the BBP with t-code EA61, in order to follow the creation process ?
    Thank in advance,
    Tierno

    Hi,
    Here is the Documentation on BBP amount, it may be somewhat helpful too.
    The basis for amounts is extrapolation - billing simulation. Try setting breakpoint in Function Module ISU_BUDGET_BILLING_EXTRAPOLATE - it returns the simulated billing document per contract. That should give an initial breakdown of amounts, which then gets distributed over open due dates and rounded. Look into ISU_BBP_EABPS_CREATE - it turns the billing document lines into "internal BBP positions". The entry point to the whole BBP Create, Change, Display Logic is ISU_O_BUDBILPLAN_OPEN.
    Have fun and good luck - the logic is much more complex and *err, how shall I put it..?* convoluted than simple sounding 1) simulate bill, 2) split the result and 3) round it
    cheers,
    Janis

  • BAPI for billing doc. creation with ref to outbound delivery

    Hi,
    I'm looking for BAPI to create pro forma invoice billing doc with red. to outbound delivery.
    I have tried using BAPI_BILLINGDOC_CREATEMULTIPLE entering the outbound delivery as ref. document and all other required data. Pro forma is create but pricing is not copied since the bapi considers the delivery number as external doc.
    It seems that BAPI_BILLINGDOC_CREATEMULTIPLE is designated to billing doc. with ref to sales orders
    Would appreciate any suggestions,
    Assaf

    Hi,
    In Function Module initial screen, there is no input parameter. Directly choose execute.
    system will give the create billing document screen enter delivery document number and execute.
    Why are using BAPI  to create billing document with reference to delivery document.
    you can create background job for billing through VF06.
    Regards,
    Chandrasekhar.S

  • SD - Billing Doc creation

    Hello Friends
    I am trying to create a third party billing doc , but i am getting an error saying " Description of the preference zone." , not sure what this is ???? Please advise.
    Thank's

    Hi ,
    Are using EDI output to send the billing information? if yes Then check the table T618 (T code OMG3) entries and maintain the entries based on the City and Mode of transport with discription.
    Thanks,
    Mauryan.

  • User exit after invoice number generation

    Hello,
    I need to fill the VBRK-XBLNR field with invoice number during creation of invoice.
    Can any one tell me if there is any user exit available after the number generation.
    Thank you!
    Best regards
    Sasi

    Hi Sasidhar,
    You can test whether the following Exit is applicable or not - using break-point --
    Exit Name           = V05N0001
    Function Module = EXIT_SAPLV05I_004
    Include                = ZXV05U04
    Kindly update us also.
    Thanks.
    Kumar Saurav.

  • Invoice Number Generation

    Hi all,
    In APEX with Oracle 10g Express how can be generated the some invoice number more than one record,
    example:
    Order table we would like to load three or four transactions at one time with one invoice number.
    I would appreciate for helping this issue urgently.
    Regards

    create a sequence on the table in question, in your form get the sequencename.nextval when you want to display an invoice/purchase order #. However when saving multiple rows you will be using a different column as a unique primary key, right?
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Invoice cancellation doc picking up billing doc creation date

    hi,
         i am cancelling an invoice document which was created and posted last month(july- mm period closed,fi still open) but the cancelled accounting document  is picking up the invoice creation date rather today's date. help would be appreciated.
    regards
    leo

    Hi Leo,
    When any invoice is cancelled it will automatically pick the original invoice date.
    If you want other date on which the cancelled invoice has to be created can give the date in the billing date field, so that it wil creat cancelled invoice on date you entered when cancelling
    T.code VF11.
    kindly reward points if usefull.
    Regards
    RVK

  • VF01 : "Error in accounting interface" during first billing doc creation

    Hi
    i had done OB52, & OBH2 & VN01 (assigned new no. range to the sd billing documents).
    Now i am able to do PGI & while creating the Billing document i am facing the error that
    Error in accounting interface
    Can any body suggest me , how to proceed.
    Regards
    Manvir

    Hello,
    go to transaction vf02 > environment .Account deternmniation analysis > revenue accout determination
    this would help you to find the accoutn determination errors if any . you can correct accordingly using the transaction code VKOA.
    also read the message for any other hints , you can post the message if the error is not reswolved
    hope this helps
    Thanks
    akasha

  • Billing document and Excise invoice document number should be same

    Dear SD gurus
    kindly help me following client requirement
    in order to cash (domestic & Exports)
    and sto (intra and Inter plant to plant) scenarios the billing document number and excise invoices number should trigger  same number
    Example order- delivery- pgi- commercial invoice (VF01) --- billing document no.1234 here it should create automatically excise invoice no 1234
    in J1iin disply it show ref document no( billing document no: 1234.    & excise invoice no 1234

    Dear All,
    As per the standard it is not possible. But some times client says why two different numbers ranges we require same numbers ranges for both billing doc. & Excise invoice.
    Please go through the following link
    http://saptechsolutions.com/pdf/SDDocumentNumberRangeEnhancements.pdf
    Also check with the Abaper with explicit enhancement by maintaining the number range values in Custom table where we go when ever there is no option for(if client is not convincing) but which is not reccomandable but left out with no choice when client is demanding.
    Regards,
    S.Himavanth.

  • Creating Billing Doc

    Hello Professionals,
    I need some clarification on the copy control and item determination for Billing doc creation.
    Am I right to say that :
    1. Item category determination can be done 2 ways : from setting in SPRO assign item category and the Maintain copy control for Billing doc in SPRO.
    2. Of the 2 places to set item category, the copy control setting for item category will overwrite the Item category determined from assign item category setting in SPRO.
    A question I have is :
    1. In SPRO maintain Copy Control for Billing Doc, I selected the Target Billing Type and the Source Delivery Type and went into   the item screen, In this screen , I see Item category for Delivery Type but there is no corresponding item category below the Target Billing Type area.
    May i know what does this imply?
    Thanks.
    regards
    John

    hi john,
    read it and revert i hope will clear the issue
    system copies the item category from the item category determination rule as specified in the earlier posts,
    on the basis of  item category grp in material master,sales  document.
    this happens ,provided that you are creating the order w/o ref to any quotation or any other preceding document .
    and when the system creates the delivery for this order copying control is used for the data transfer from item category and schedule line data of the order in to the delivery.
    -item cat det is done for the first time when the user punches in the data in any document(sales-delivery).
    -when user creates any subsequent document from this document then system uses the copy control to fetch in the data that is to be copied from the item category of this preceding document's item category inn to the followup or subsequent doc.
    hope this clear your some issues
    revert if helpful
    Mohit Singh

  • Billing doc external number range

    Hi Guys,
    As per my knowledge billing doc uses only Internal number range but when i check table: TVFK i can see No. range external maintained (XX) same maintained my company where shall i config this please give me idea and steps.
    Regards
    JACK

    Hi Jack
    In VN01, number ranges for all will be maintained wherein you can see on the right side a tab "Ext".  If you tick in this box, assign to your billing types in VOFA, then whenever you do billing, external numbers will be generated.
    Reward if this helps you.
    Thanks
    G. Lakshmipathi

  • Details from Billing doc line item in COPA

    Hi,
    We are posting billing docs with multiple ship-to parties on the different line items. In COPA I need to get hold of the ship-to party. There are no sales orders created in the process.
    In neither the derivations (KEDR) nor in the user-exit am I able to get hold of the billing doc line item nr, as that is what I need to determine the ship-to party from the VBRP table.
    Any ideas on how I can pick up the ship-to party from the billing doc?
    Thanks in advance
    Piet Strydom

    HI,
    Thanks for your response.
    Yes, we have ship-to party at the line-item level. Technically it is stored on VBPA, but the access into VBPA is the billing doc and line item number.
    I have not been able to find good (SAP) documentation for exit COPA0005, but what I did find warned against changing characteristics? That should be done in COPA0001. However, the RBELN and RPOSN fields are not populated yet.

  • Some doubts in copy control from billing doc to invoice list

    Dear all,
    The value of allocation number in FI doc can be customized as:  A (PO number), B (Sales order num.), etc.
    But how can I make it to be assigned an alternative value (for example, we have do an add-on "invoice" then we hope our invoice no. be assigned here)? Is there an exit to do so? or how this happen (especially when SO's billed, then the FI doc has been generated already.) or  how a creation of invoice list will changed the value of allocation number in former FI doc created by billing before?
    Thanks to all,
    James

    Hi, thanks for you reply.
    The business scenario as following:
    The users create SO. Then post it (VF01) (billing doc and accounting doc. SO and billing is one-one relationship). But at this time, users doesn't generated the customized invoice to customer (also the customer may like to be invoiced with different SO). In order to do this, the user should do invoice list (VF21) to include former billing doc. At this moment, we hope we can update the allocation value in FI doc generated by billing before.
    SO->Billing (FI doc generated) ->invoice list (Hope can update some fields in the FI doc).

Maybe you are looking for

  • Unable to Access SQL Server 2005 Remotedly

    Not sure if this is the right forum to post this... After going through lot of old posts in various forums and changing lot of settings, i'm still not able to access my Server remotely. This is Windows 2003 Server machine with Sonicwall Firewall, i h

  • Dual Boot : Installing Windows XP on a Power Mac G5?

    I am trying to figure out if it is possible to install Windows XP on a Power Mac G5? There are several Massive Multiplayer games that are only available for Windows/PC users. I need to have access to OSX also it is what I use for everything else. I s

  • How to run a junit test?

    Hi, i have compliled a junit test class (MsgQueueTest extends TestCase). When i try to run it, i get: kostas@home:~/programming/java/SwarmTests/src$ java MsgQueueTest Exception in thread "main" java.lang.NoClassDefFoundError: junit/framework/TestCase

  • Is it possible to remove the delimiting line between Bookmarks bar and Tab bar?

    I place the Tab bar between the Bookmarks bar and the page content area, as the attached image shows. Is it possible to remove the delimiting line between Bookmarks bar and Tab bar? I feel that line is redundant.

  • ATA-186 with overhead paging systems

    Since the ATA-186 supplies 600 Ohms, would I need a seperate device such as a Bogen TAM-B to supplie the audio for overhead paging, or could I just use the ATA-186?