Problem in BAPI_BILLINGDOC_CREATEMULTIPLE(Create Billing Doc)

Hi,
While using the function module BAPI_BILLINGDOC_CREATEMULTIPLE which is used to create an invoice on providing the sales order as the input , I am able to get only a temporary invoice number called
$00000001 but not able to get a final invoice number.
Can any one suggest any solution to this problem?
Thanks,
sunil sahoo

Hello Suni,
I see that the issue is already marked as "solved" but is not explained in details.
The solution can be found in the hazy documentation of the BAPI:
"...and also in the update run including the update (TESTRUN = ' ')"
So, if you want the BAPI to generate a document number you have to leave field POSTING blank (of course TESTRUN should be blank as well).
BAPI for commit is not required here as this one is making commits based on the import parameters.
hope the explanation is complete now : )

Similar Messages

  • Error while creating Billing doc using VF01 for Debit memo req. from RRB

    Hi,
    I am creating billing doc for my Debit memo req. which is created using RRB(DP90, DP95).
    Error message - Item 000010 does not exist.
    When I debugged and looked into code it seems following lines are causing problem.
    Program
    LV60AA28
    Line u2013 734
      IF  vbap-vkgru EQ vkgru_dyn_posten.
        IF vbap-aufnr IS INITIAL .
    set AUBEL because it was overwritten by VBAP-VBELN
          vbrp-aubel = vbap-vgbel.
          vbrp-aupos = vbap-vgpos.
          vbrp-autyp = vbap-vgtyp.
    This code was not in 4.6 system.
    We have just migrating from 4.6 to 6.0 and facing this issue while testing.

    First of all you should try to learn how to express in a public forum like this. 
    On your comments
    Do some ground work from your end
    why should I ??  if you want you can do ground work or any work.  If you post a question, you have to hear patiently all suggestions and dont scribble whatever you want.
    You should have some basic
       understanding of SAP ABAP.
    You should have posted this question ABAP forum !!!!   Why without any sense you have posted in sales forum ??

  • Cannot generate accounting doc when creating billing doc

    When creating billing doc, no accounting document is generated, the posting status is "Error in accounting interface". I have checked and there is no problem in account determination. Does anyone get idea on this problem? Thanks!

    Check the account determination in Transaction Code VKOA.
    If the data is not maitained to determine G/L, in that case it gives error. Once you maintain the relevant data in VKOA, next go to billing document in change mode VF02 & release the same to accounting.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Authorization problem with VF01 "Create Billing Documents"

    Dear All,
    We face following problem with VF01 "Create Billing Documents".
    Transaction: VF01
    User: Joe
    Authorization of Joe:
         VKORG Sales Organization: A, B (authorization object V_VBRK_VKO)
         FKART Billing Type: 1, 2 (authorization object V_VBRK_FKA)
    The objective for Joe:
       Joe is qualified to create bills in
          sales org A only for billing type 1 and in
          sales org B only for billing type 2.
       Joe should not be able to create bills for
          sales org A with billing type 2 and in
          sales org B with billing type 1.
    How can we solve this problem?
    We already searched for userexits without any success.
    Any help or ideas are very appreciated.
    Regards
    Markus Wilhelm
    Project Manager ERP

    Dear,
    There are standard authority-checks based on Sales organization (authorisation object V_VBRK_VKO) and/or Billing type (V_VBRK_FKA).
    An option would be to create a new billing type, define specific authorisations and use the new billing type for these documents.
    The bad thing is that you would also need a special (new) sales order type, because the billing document type is unique per sales order.
    So maybe it is easier to have a different sales organization.
    Another option would be to create a new authorization object and check it in the billing documents.
    If you wish, you could modify program LV60A005 & LV60A006.
    Then you might check various user/customer exits.
    Some functions to check: EXIT_SAPLV60A_001/002,
    EXIT_SAPLV60B_001 - 008, EXIT_SAPLV60B_010 - 011.
    Regards,
    R.Brahmankar

  • 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

  • Problem creating Billing Doc  VF01

    Hi,
       I am trying to create a billing document and but it shows that the "Accounting Interface error" All the G/l accounts etc entries Have been maintained properly.

    Hi Gutpa,
    So, you only have 2 condition types with an account key and it has found both accounts ?
    Then the problem might be :
    -is the posting period open for the billing date
    -do the G/L accounts exist in the company code to which the invoice is posted
    -the G/L accounts are blocked
    Depending upon the specifics there might be other reasons as well.
    When you do a VF02 / Release to acounting and you double click the error : do you get more information on the type of posting problem ?
    If still doesn't work maybe you can try to simulate an identical direct FI posting to see if it's a FI setup problem or if it's in the transfer from SD to µfi,
    regards
    Dirk

  • BAPI to create Billing DOC for deliveries

    Hi All,
    I am looking for a BAPI to create a billing document based on the Shipment number.
    I found Bapi_BILLINGDOC_CREATEMULTIPLE,  but not working as expected.
    If anyone has used above or another bapi, please inform.
    Thx-Praveen

    Hi Praveen,
        i'm using same bapi and i'm able to create the invoice for the del.doc.
    for your ref. , here i'm attaching the code , please go through once.
              LS_BAPIVBRK-REF_DOC = DELIVERY_NO.
               CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                 EXPORTING
                   INPUT  = LS_BAPIVBRK-REF_DOC
                 IMPORTING
                   OUTPUT = LS_BAPIVBRK-REF_DOC.
               LS_BAPIVBRK-REF_DOC_CA = '8'.  Shipment
               APPEND LS_BAPIVBRK TO LT_BAPIVBRK.
               CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
                 TABLES
                   BILLINGDATAIN = LT_BAPIVBRK
                   ERRORS        = LT_BAPIVBRKERRORS
                   RETURN        = LT_BAPIRET1
                   SUCCESS       = LT_BAPIVBRKSUCCESS.
    after this do commit.
    you might miss the document category .
    Regards,
    Krishna

  • No_TVTA:Error while creating billing doc.

    Hi,
    We are trying to create sales orders (Credit Momo requests) in a report with FM: SD_SALESDOCUMENT_CREATE,
    sales orders are getting created. But when tried to bill these sales order thru VF01, we are getting error log as: Exception NO_TVTA is raised in function module VIEW_KUAGV.
    With the same data when sales orders are created manually thru VA01, Billing is sucessfully done.
    Any help for this issue? Any SPRO settings to be maintained?
    Full reward points guaranteed.
    Regs,
    Agasti

    Hey,
    Just looked at the code of the function VIEW_KUAGV. It writes log for the object SDBFPD.
    Check the application log for object SDBFPD using transacion SLG1.
    Might help...
    -Kiran
    Please mark useful answers

  • CREATE BILLING DOC FOR DELIVERY

    How do I create a billing document for delivery 80000234

    1) for billing,
          make sure that POST GOODS ISSUE has been done on delivery document. (VL02 - Enter the delivery document number & PGI..)
    2)  Go to VF01 - Enter Delivery number in the documents.
    Hit enter - If the delivery document is corrrect then
    save else it will give the error log.
    Reward if useful.

  • Run time error while creating billing doc.

    Hi all,
    While saving a billing document I am facing runtime error every time. Can any one help me what are the possible reasons and possible solution to overcome this. Since it is on high priority, expecting response at the earliest.
    Sunanda.P

    Dear Sunanda,
    Since it is on high priority, expecting response at the earliest.
    You must get in-touch with your BASIS-Admin, for earliest resolution of the error, as he is the only one, who may find the reason and fix the same, at earliest.
    Or,
    If, you could provide System error-log, at the time of Run-time Error, then, some work arounf could be suggested.
    Otherwise, It would be like Hit-n-Trail.
    Best Regards,
    Amit
    Note: This is, what I feel and suggest, in such cases:
    [ABAP/ Runtime Error|Re: update control terminated error]

  • How to create Bills Docs of position

    Hi all
    A help.....
    In my sales order I will bill (invoice) each position.
    Most of the cases the position have different PAYERS (PY).
    Meaning I have to be able to do the billing document by position(item).
    How can I do that?
    Thanks a lot,
    Barbara

    Hello,
    There is one standard COPY CONTROL settings for invoice split if the PAYER is different.
    Just check the copy control ROUTINE from Order to Invoice in VTFA
    Goto that transaction code VTFA and select your combination and then choose the item category and maintain the Vale 0001 in the field VBRK/VBRP
    This will search for the Payer , if it different then automaticaly it will split the Billing per each line item.
    Hope it will work for your requirement.
    regards,
    santosh

  • How to get the value of bill doc after creating it using tc VF01.

    hi,
    i want to get the bill doc no after  creating it using BDC tc VF01.
    with that no i have to update the ztable.

    hi,
    i tried with the above mentioned method to get the created delivery no.but i am unable to get the created billing doc no using bdc tc VF01.any idea about this...
    REFRESH       tt_bdcdata.
      PERFORM bdc_dynpro      USING text-005 text-006.
      PERFORM bdc_field       USING text-008
                                    text-017.
      PERFORM bdc_field       USING text-009
                                    text-011.
      PERFORM bdc_field       USING text-017
                                    wa_worklist-del_no . "wa_created-document_numb.
      PERFORM bdc_dynpro      USING text-006 text-007.
      PERFORM bdc_field       USING text-008
                                    text-018.
      PERFORM bdc_field       USING text-009
                                    text-019.
      CALL TRANSACTION c_t_bill USING tt_bdcdata
                                                MODE c_m
                                                UPDATE c_u
                                                MESSAGES INTO tt_bdcmsgcoll .
      SORT tt_bdcmsgcoll BY msgtyp.
      READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_e.
      IF sy-subrc EQ 0.
        LOOP AT tt_bdcmsgcoll INTO wa_bdcmsgcoll WHERE msgtyp = c_e.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id        = wa_bdcmsgcoll-msgid
              lang      = text-010
              no        = wa_bdcmsgcoll-msgnr
              v1        = wa_bdcmsgcoll-msgv1
              v2        = wa_bdcmsgcoll-msgv2
              v3        = wa_bdcmsgcoll-msgv3
              v4        = wa_bdcmsgcoll-msgv4
            IMPORTING
              msg       = v_msg
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          IF sy-subrc <> 0.
          ENDIF.
          WRITE :/ v_msg.
        ENDLOOP.
      ELSE.
        READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_s.
        IF sy-subrc EQ 0.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id        = wa_bdcmsgcoll-msgid
              lang      = sy-langu
              no        = wa_bdcmsgcoll-msgnr
              v1        = wa_bdcmsgcoll-msgv1
              v2        = wa_bdcmsgcoll-msgv2
              v3        = wa_bdcmsgcoll-msgv3
              v4        = wa_bdcmsgcoll-msgv4
            IMPORTING
              msg       = v_msg
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          MOVE wa_bdcmsgcoll-msgv1 TO v_billno.
         wa_epit-bill_no =  v_billno .
         MODIFY TABLE  tt_epit FROM  wa_epit TRANSPORTING bill_no.
         UPDATE zsd_dt_epit SET bill_no = v_billno where del_no = wa_created-document_numb .
         IF sy-subrc EQ 0.
         ENDIF.
          MOVE: v_billno TO wa_worklist-bill_no .
          READ TABLE tt_epit INTO wa_epit WITH KEY epi_id = wa_worklist-epi_id epi_sr = wa_worklist-epi_sr.
          IF sy-subrc EQ  0.
            MODIFY tt_epit FROM wa_worklist TRANSPORTING bill_no WHERE epi_id = wa_worklist-epi_id AND epi_sr = wa_worklist-epi_sr.
          ELSE.
            APPEND wa_worklist TO tt_epit.
          ENDIF.
        ENDIF.
      ENDIF.
    please suggest me..its urgent

  • Problem in create billing document thr VF01

    Hi,
    I create a billing document for the delivery order number using VF01 through BDC batch input session. Here is the program flow,
    1. perform open_bdc.
    2. perform populate_bdc_data.
    3. perform insert_bdc_session.
    4. perform call_transaction_using_VF01 - only to capture return error messages.
    5. perform event_trigger - trigger an event which starts a job that is defined to run when the event is raised. The job will execute the RSBDCSUB.
    6. perform close_bdc.
    7. perform process_bdc - process the bdc session through
    SUBMIT RSBDCSUB.
    My problem is, when creating billing document, the program not able to capture the return error message if there is any error occurs. The message tab (after CALL TRANSACTION) gives error message with message type as 'S'. so the program was not able to capture/display error records. 
    Is there any way to capture the return error message correctly?
    Or Any suitable BAPI available?
    Pl help me to sort out the issue.
    Thanks in advance.

    use  format_meessage
    CALL TRANSACTION 'PA30' USING IT_BDCDATA MODE 'A'
                                               UPDATE 'S'
                                       <b>MESSAGES INTO IT_MSG.</b>
      LOOP AT IT_MSG WHERE MSGTYP = 'E' .
        PERFORM CREATE_SESSION.
        PERFORM INSERT_INTO_SESSION.
    CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID        = IT_MSG-MSGID
            LANG      = SY-LANGU
            NO        = IT_MSG-MSGNR
            V1        = IT_MSG-MSGV1
            V2        = IT_MSG-MSGV2
            V3        = IT_MSG-MSGV3
            V4        = IT_MSG-MSGV4
          IMPORTING
            MSG       = V_MSG
          EXCEPTIONS
            NOT_FOUND = 1
            OTHERS    = 2.
        IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    plz reward if useful

  • Billing doc referenced by delivery document

    Hi All,
    there is a problem in my scenario that billing doc are created automatically when creating shipment doc that is collective shipment doc type. in stead of this process, ı have not faced on this stuation when i creating it by using individual shippment doc type. I need your help on this issue that why it creates automatically billing doc at the time of creation shipment doc by using collective shipment doc type what is the difference between those doc. types? how can configure them to create billing doc manually?
    Thanks in advance all of you.
    Regards,
    Sinan

    Hi,
    If you are using Collective shipment document and if the billing document is getting created automatically, then, there is a fair chance that a profile (to create automatic billing document) has been assigned to the shipment document type.
    Check SPRO > Logistics Execution > Transportation > Shipments > Define and Assign Activity Profile and remove the profile (if present) for the collective shipment document type (If you desire to)....
    Hope this answeres your question
    Thanks
    Mukund S

  • BAPI FOR BILLING DOC

    hi Gurus,
    I am trying to create billing doc using the following bapi:'BAPI_BILLINGDOC_CREATEMULTIPLE'
    Now, I am not pretty sure how the flat file structure should be and what are the values I should give in the BAPI function module.
    So,If there is any sample program you can send it to me or show it would be great. If you click on my user id,you will get my id.
    Thanks and Regards,
    Vishwa.

    Hi,
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    EXPORTING
    posting = ''
    TABLES
    billingdatain = ti_billingdatain
    errors = ti_errors
    return = ti_return2
    success = ti_success.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = ' '.
    Thanks
    Vikranth

Maybe you are looking for

  • Airport Extreme will not allow me to access settings

    I have an Airport Extreme (the new one with 801n) and wanted to add an USB hard drive to it. The system did not recognize the external drive. I tried to access the router settings using the airport software on my MacBook Pro. The software recognizes

  • My Skype Number is busy continuously

    I am trying to call up the skype number from my mobile number however it is coming busy continously. Please help. Thanks, [Removed for privacy] Team Post transferred to create its own new thread (topic); Subject/title edited accordingly.

  • I recently purchased an ipod touch.

    The pc i was using has internet access, so i was able to d/l itunes. For the next 3 months (with my new pc) i cannot access the net. How can i get itunes onto my pc without internet access? The Apple call centre i contacted told me to burn a copy of

  • SOAP Header Support

    Are SOAP headers supported in OC4J 9.0.3? I notice that in OC4J 9.0.4 the proxy code provide the request header support method _setSOAPReaderHeaders().  Is this method also available in OC4J 9.0.3?                                                     

  • My "update" button won't work in the app store anymore. How can I fix this?

    When I go into the app store, I cannot "update all" of the apps. The color on the button changes when I press there but nothing happens. I also can't go into each app and update them individually. Has this happened to anyone else?