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

Similar Messages

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

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

  • Canceling a billing doc for which accounting doc not yet generated

    Hello,
    I have strange issue in canceling billing doc. What happened user created Intercompany billing doc IV against a delivery and accounting doc also released to FI. After that he found that value in that IV doc is not correct so he went and cancelled that doc IV and he created internal credit memo IG .But for this IG the accounting doc not generated due to FI period closing. Because the IV is created in the month of Oct and IG is created in the month of Nov'07.Due to this issue Accounting document not generated for this IG doc.
    But unfortunately by mistake he went cancelled the IG doc and it created IV again. Now what happened both IG and new IV created are showing in cancelled status. This is because if we cancel a billing doc for which accounting doc not created, then both doc will turning into cancelled status in doc flow. This is confirmed similar situation in my quality box and confirmed.
    Now can anybody come across this kind of issue and tell me what is the best approach to handle this kind of situation.
    Thanks
    Mathi

    Hi Nina
    As you are doing Delivery and then billing  with the service item category ZTAD , so go to VOV7 and check wheather the Billing Relevance ( Delivery related billing ) has been maintained or not .
    Also check wheather in VTLA & VTFL copy controls  ,  ZTAD item category has been maintained or not
    Regards
    Srinath

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

  • FM or  BAPI to  create 1001  IT   for Central Person

    Hi Friends
    I need FM or BAPI  to create 1001  relationship for  OTYPE  CP  ' Central Person ' .
    FM     HR_CENTRALPERSON_INSERT   is  there to create IT 1000 for CP   i  need for  1001 IT
    anybody pls guide me.
    Regards
    Meeta

    Hi 
    Thanks for your response 
    i have to create CP for  B209   relations type ( subtype )
    but prog giving me error   ( Relationship CP B 209 P cannot be maintained  using basic trainsaciton )
    CALL FUNCTION 'RH_RELATION_MAINTAIN'
                           EXPORTING
                             ACT_FCODE                 = 'INSE'
                             ACT_PLVAR                 = '01'
                             ACT_OTYPE                 = 'CP'
                             ACT_OBJID                 = '01119840'
                             ACT_ISTAT                  =  '1'
                             ACT_RSIGN                 = 'B'
                             ACT_RELAT                 = '209'
                             ACT_SCLAS                 = 'P'
                             ACT_SOBID                 = '01119840'
                             ACT_BEGDA                 = SY-DATUM
                             ACT_ENDDA                 = '99991231'
                           ACT_PRIOX                 =
                           ACT_PROZT                 =
                           REL_ENDDA                 =
                          EXCEPTIONS
                            MAINTAINANCE_FAILED       = 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.
    Regards
    Meeta

  • Create posting docs for recurring docs - Settlement period

    Hi Gurus,
    I am trying to run F.14 to create posting docs for recurring docs. What is the settlement period field used for? For a recurring doc that was created in May, i was able to run that during may end but now i want to run this for this month end and if give June month as settlement period, it's says batch session couldn't be created.
    Also, to which date does the posting doc get posted to? Does that depend on settlement period?
    All answers will be duly rewarded.
    Thanks
    N

    Settlement date is used for restricting selection of documents that are due.
    If you run for 1 day and documents are due to be created that day u will have a batch for that. If you run for a month the system checks the documents due in that month and creates a batch.
    This can be at any time and does not need to be during that period or at the end, posting possible depending on whether OB52 allows it.
    Note that the system checks which documents have been already processed so you cannot run multiple times.

  • Which BAPI can Create handling Unit for VL02N.

    Dear All,
         Which BAPI can Create handling Unit for VL02N.
    The Business is: VL02N, click head toolbar PACK, then call up handling Unit.
    Thanks

    Hi sun!
    I'm facing the same requirement since three days and i'm not able to get it workin.
    Did you resolve the problem and if yes which function modules did you use?
    Thanks in advance!
    Florian
    Edited by: Florian Visintin on Sep 17, 2009 10:21 AM
    Edited by: Florian Visintin on Sep 17, 2009 10:22 AM

  • 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

  • SD:Create Billing Wrt Inbound Deliveries - third party Order

    Customer sends his Order forecast, From Interface it comes to SAP System through IDocs SO will be generated,that SO triggers purchase requistion and we have a batch job runs every hour to create purchase orders for Vendor. When the Vendor Sends goods to Customer and the same has notified to the Company, based on that we create Inbound Deliveries(VL31N) and Goods Receipt(MIGO or VL32N PGR) in our SAP System.
    We have batch jobs running every hour to create Goods Receipt for inbound deliveries and Billing due(RV60SBAT) list to generate Billing documents.This Billing is created based on the sales order quantity(Since it is Order Related Billing).Now the Customer wants billing based on the delivery quantity they received from vendor.Here we are not doing any Outbound Delivery.
    We used one Data Transfer Routine from Order to Billing in item category TAS at data VBRK/VBRP level(We copied the standard routine 003 and done modifications to get the inbound delivery no) This routine navigates from the sales document table(vbep) to the Purchase Requisition table(eban) to the Purchase Order history table (ekbe) and to the Material Document no to obtain Inbound Delivey Number
    We are successful to some extent in creation of billing document.but the problem is when there are 3 inbound deliveries for one purchase order, it is creating only one invoice for 1 of 3 inbound deliveries.but we need 3 different invoices for 3 inbound deliveries.
    For example
    Previous scenario: SO quantity is 100. Delivey quantity is say 20,30,50. Billing Quantity is 100
    Present scenario : SO quantity is 100. Delivey quantity is say 20,30,50. Billing Quantity is 20,30,50
    Customer wants billing for the quantitiies 20,30,50 not for 100

    Pradeep,
    Whats is your billing qty based on Order- GR qty? or Order - Inbound delv qty. How did you get this?.
    The problem lies because it is an order related billing.
    Try this make it a Delv related billing w/o any movement type.
    The moment you create an inbound delivery and O/P should be send which in turn will create a delivery document and PGI.(you can use this O/p type to do the dirty work)
    And after this complex process life becomes simple.
    Ravi

  • FM/BAPI to creating billi and the use of pos_sa_get_document_st?

    Hi all,
    I can found a function called in one of my reference program, it's purpose is for creating billing. However, I cannot find any any BAPI/FM which is used for creating the billing document, but here is a function named: "pos_sa_get_document_status".
    What's the use of this function?
    and also what function/bapi should I use when I creating the billing record?
    Please Note there will be no Sales Order.
    Regards,
    Mandy

    Have you looked at BAPIACCBILLINGPOST (Please search with this string).
    Thanks,
    Srihari

  • Creating Billing document for WBS Element(Transaction: CJ02 )

    Hi Guys,
    I am using FM BILLING_SCHEDULE_MAINTAIN to create billing document with milestone data,
    it is giving sy-subrc eq 0. but billing document is not saving in  FPLA table,
    I am using FM GRSV_UPDATE_GRPGA_FROM_CJDW to update project.
    and more over iam using COMMIT WORK.
    Thansk in advance
    Regards
    Peram Srinivas

    Kindly refer following Links:
    Excise modvat accounts not defined for DLFC transaction and  excise group
    STO Account Determination
    j1iin error message
    Accounting document for Excise Invoice
    Regards,
    Ashutosh

  • BAPI to create tax classification for business partners

    Hi all,
    I'm trying to create tax classification for a business partner (situated in the tab Control) from a BAPI.
    I tried to use BAPI BUTX_FRG0010_CREATE, but I always receive an error...
    Does someone know how to implemnt this ? Or do I need to use another fm ?
    Thanks in advance !
    kr,
    Björn

    Hello,
    I should have mentioned that I'm creating Business partners in ERP, and not in CRM
    The error I receive is this one :
    Tax classification     does not exist
    The data I specify in the table is the same dataI fill in when creating a business partner manually.

  • 1 order max 2 delivery billing doc  for each material (10 billing DOC)

    hai sap gurus
    this is my customer senario . in that sd process max sale order 1 & max delivery two , but customer required multible billing documents
    EXMPLE:
    sale order : 10 pcs
    delivery allowed ; 2(two)
    billing doc ; 10 billing doc foe each pcs
    plz help me to solve the issue
    with advance thanks

    In the Masters Customer Enter Max Partial delivery as 2 and then in the copy control of the Delivery to Invice :
    VTFL
    Assign the Invoice Spilt 001 (Data VBRK/VBRP )
    Or you can ask you ABAPER to customize a Routine Such that :
    Loop : {
    If VBAP_POSNR = "variable"
    Create Invoice :
    regards,
    SAP SD

  • BAPI to create Purchase Requisition for selective BOM Material

    Dear Experts,
    I need ur help, Actually I am developing a module Pool prg to create Purchase Requisition for selective Bom Material .
    Actually, standard T.Code (ME21N) create PR for a multiple BOM Materia lwhich are used to create a prepared material. But my requirement is PR should be generate for selective BOM material .
    Multiple BOM Material is used to prepared a complete Material .
    I have checked a particular BOM Material, for this matrial Purchase Requisition should be genrate.
    Please suggest me the related code and Bapi which helps me .
    Thanks & Regards,
    Swapnika

    Hi
    you can Use BAPI   BAPI_REQUISITION_CREATE
    Hope Its  help You.
    Regards
    Ajit

Maybe you are looking for

  • Fbl1n and fbl5n line item wise display the cutomer and vendor name

    Hi, My user is asking report for fbl5n and fbl1n line itemwise dispaly vendor and customer.See the report for one time vendor and customer name displaythe line item wise display in FBL!N/FBL5N. but not the display the regular vendors/customer.So one

  • Please help a Noob

    heya guys i just recently purchased the Creative USB gaming headphones HS1000, i also got XFI elite Pro sound cards, basically what i did, i just loaded Up the usb drivers that came with my headphones and plugged them in, most off the stuff that came

  • How to import the xml file into bcc?

    My input file to atg is xml which contain category or products assets. I want the scheduler to run in such a way that it should auto create a project and send an email to client for approval. When the client approves the xml file,then run the schedul

  • Keyboard Shortcut not working

    I turn on my iBook one day and the Command/Apple + T keyboard shortcut doesn't work. The t button works fine, but in every application, this shortcut is broken. All of the other shortcuts work, but in Photoshop, iMovie, and multiple web browsers, thi

  • Accepting input from user

    Can anyone tell me that once a program has prompted a user for input (causing the program to pause), is there a way for the user to enter input and hence restart that program. I know that it can be done in JBuilder simply enough. cheers p.s. other th