BAPI needed to create invoice and creditmemo

Hi all,
      Is there any BAPI available to create invoice and creditmemo when material no is not given.
      My requirement is to create credit memo and  invoice through FB75 or FB70 transaction. I am able to achieve the same through BDC. Is there any BAPI availabe for the same to create credit memo or invoice to avoid BDC.
      Input given to the program is a excel file in which i have the following fields
      Transaction -- which separates credit memo or
                     invoice
      Company code, purchase order number, GL account
      number, cost center, profit center, amount etc...
Please let me know some pointers.
Regards,
Karthik.

GN_INVOICE_CREATE or BAPI_BILLINGDOC_CREATEMULTIPLE
Please find the sample code for Billing document BAPI.
t_billing-salesorg = vbak-vkorg.
t_billing-DISTR_CHAN = vbak-vtweg.
t_billing-DIVISION = vbak-spart.
t_billing-DOC_TYPE = vbak-auart.
t_billing-ref_doc = vbak-vbeln.
t_billing-ref_item = vbap-posnr.
t_billing-doc_number = vbak-vbeln.
t_billing-ITM_NUMBER = vbap-posnr.
t_billing-ordbilltyp = 'BILLING TYPE'.
t_billing-price_date = sy-datum.
t_billing-ref_doc_ca = vbak-vbtyp.
t_billing-sold_to = vbak-kunnr.
t_billing-material = vbap-matnr.
t_billing-plant = vbap-werks.
APPEND t_billing.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
billingdatain = t_billing
return = t_return
success = t_success.
commit work.
Regards

Similar Messages

  • Need to enter invoice and payment in the system after a manual check issued

    Client Need to enter invoice and payment in the system after a manual check is issued for some urgent transactions.
    Please suggest few ways to do this .

    Hi,
    If client can maintain a separate check book sequence for manual issue, we can configure a separate payment document with the same sequence and later record the invoice and generate payment ....
    Regards,
    Ivruksha

  • HOW TO CREATE INVOICES AND BOOK RECEIPTS FOR THE SERVICE CUSTOMERS

    whenever a customer approaches our Customer Service Officer he create a
    customer account from "Contact Centre" but he does not check "Create account"
    checkbox so the client is not created as customer in Oracle Receivables.
    How to create invoices and receipts for service customers whose reciprocal
    accounts are not created in Oracle Receivables?
    Regards
    Ahmad Bilal
    Message was edited by:
    user531507

    I am on EP7.0 with NWDS 7.0 SP8, i am getting the exact same error though my Webservices are hosted on PI 7.1 ESR. Where to define the logical destinations of the WSDLs.

  • I need to create Arabic and Farsi brochures in InDesign CS6. Does anyone know where I can get a plug-in to make Middle Eastern languages work correctly from right to left?

    I need to create Arabic and Farsi brochures in InDesign CS6. Does anyone know where I can get a plug-in to make Middle Eastern languages work correctly from right to left?

    With CS6 you have to pay extra for these plugins.
    With the CC you can download different ME versions to add their functionality.

  • Need help with creating invoice and list of invoices

    Hello everybody,
    I need to create Credit / Debit memo invoices and for this I try to use FM GN_INVOICE_CREATE in my Z program, please let me know if it is correct way to go?
    As well I need to create list of Credit / Debit memo invoices, how to achieve this?
    Thanks in advance.
    Usefull answers will be awarded.
    Regards, M.

    You can use RV_INVOICE_CREATE for credit memo and debit memo
    list of credit and debit memo - use this FM - RV_INVOICE_LIST_CREATE
    see the below sample code
    refresh: XKOMFK, XKOMV,
               XTHEAD, XVBFS,
               XVBPA,  XVBRK,
               XVBRP,  XVBSS.
      clear  : XKOMFK, XKOMV,
               XTHEAD, XVBFS,
               XVBPA,  XVBRK,
               XVBRP,  XVBSS,
               VBSK_I.
      VBSK_I-SMART = 'F'.
      XKOMFK-VBELN =  v_deliv.
      XKOMFK-VBTYP = 'J'.
      APPEND XKOMFK.
      CALL FUNCTION 'RV_INVOICE_CREATE'
           EXPORTING
                VBSK_I       = VBSK_I
                WITH_POSTING = 'C'
           TABLES
                XKOMFK       = XKOMFK
                XKOMV        = XKOMV
                XTHEAD       = XTHEAD
                XVBFS        = XVBFS
                XVBPA        = XVBPA
                XVBRK        = XVBRK
                XVBRP        = XVBRP
                XVBSS        = XVBSS.
      if sy-subrc eq 0.
        COMMIT WORK.
       flag = 'X'.
      else.
      message i011 with p_vbeln.
      endif.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Creating invoice and posting  with FB60 (Without PO reference)

    Hi All,
    I need to create vendor invoice (without PO reference) as we do using FB60.
    How it can be done?
    Is there any BAPI which can be used ?
    I have used BAPI_INCOMINGINVOICE_CREATE to create vendor invoice with PO reference.
    Is the same BAPI we can use for creating invoice without PO reference? how to use ? or any other solution.
    Thank you very much....

    Hi Ashvender,
    Thanks for Replying....
    You are right we create IV with PO reference using MIRO and
    We create FI invoice by FB60 i.e without PO reference. But i want to upload data from excel sheet for without PO reference for FB60 as per given template below
    <b>Invoices with no reference to PO - FB60 format</b>
    Vendor       Date         reference        header txt    Bus area    G/L account    
    tax code   TAX amnt   Amount     WBS code                  Cost centre   Value 
    5000000    20.09.06    reference123     headertxt      1001          418002             v2             17.50         117.5        0506-PR-000001-CAP   4100             117.5
    Apart from BDC is there any BAPI we can use?

  • Performance of BAPI's to create Leads and Activities

    Hi,
    I'm using the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI to create Leads and Activities.
    The scenario is:
    1) The input file has 3 types of records coming in
       (a) Leads only
       (b) Activities only (Prospect Lead activities)
       (c) LEad + Activity (rescheduled activities)
    2) Depending on the type of record, I'm required to create the relevant order and if required link the lead and activity (scenario - C)(using the FM CRM_DOC_FLOW_MAINTAIN_OW).
    3) In addition to this, I'm also required to link campaign elements to both Leads and Activities (done within the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI in the doc_flow structure).
    ISSUE:
    The issue that I am facing is that it is taking a lot of time to create these. I'm basically running a custom conversion program for LEads and Activities. The rate is almost 6-8 secs for each record, and we have about 500,000 records to be converted.
    Also, I'm having to use the following function modules after the creation of Leads and Activities:
    1) CRM_MA_ACT_SAVE - to set the status of the activity to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_ACTIVITYCRM_CREATEMULTI seems to always default the status to OPEN.
    2) CRM_ORDER_CHANGE_STATUS - to set the status of the LEad to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_LEAD_CREATEMULTI seems to always default the status to OPEN.
    3) BAPI_LEAD_ATT_CHANGE - to set the STATUS SINCE field for a Lead. This is being done because I'm unable to set the STATUS_SINCE field using the BAPI BAPI_LEAD_CREATEMULTI.
    The logic being used within the code is to process a batch of records (500/1000 records - value is an input selection parameter) from the input file in one go, and then commit all of them after their creation. After this, the next batch of records is again processed and committed.
    We've also tried to create LEads and Activities record by record and not in batches... but the performance still remains the same.
    I'm not sure what is slowing down the process. If whether it is all the commits, or if it is the additional use of the FM's to change the 'status' and 'Stauts-since' values after having committed the leads and activities.
    When we look at the LEads and Activities that are created, everything looks fine. It is only that the performance is really slow.
    Thanks for all your patience and suggestions,
    - Akarsh

    In order to improve the performance you could use several processes. Just start you conversion-program with several variants at the same time.
    Last time I converted 80.000 contracts it took me 6 hours with 5 processes.
    Hopes this helps.

  • Performance of BAPI's to create Leads and Activities in CRM

    Hi,
    I'm using the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI to create Leads and Activities.
    The scenario is:
    1) The input file has 3 types of records coming in
    (a) Leads only
    (b) Activities only (Prospect Lead activities)
    (c) LEad + Activity (rescheduled activities)
    2) Depending on the type of record, I'm required to create the relevant order and if required link the lead and activity (scenario - C)(using the FM CRM_DOC_FLOW_MAINTAIN_OW).
    3) In addition to this, I'm also required to link campaign elements to both Leads and Activities (done within the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI in the doc_flow structure).
    ISSUE:
    The issue that I am facing is that it is taking a lot of time to create these. I'm basically running a custom conversion program for LEads and Activities. The rate is almost 6-8 secs for each record, and we have about 500,000 records to be converted.
    Also, I'm having to use the following function modules after the creation of Leads and Activities:
    1) CRM_MA_ACT_SAVE - to set the status of the activity to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_ACTIVITYCRM_CREATEMULTI seems to always default the status to OPEN.
    2) CRM_ORDER_CHANGE_STATUS - to set the status of the LEad to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_LEAD_CREATEMULTI seems to always default the status to OPEN.
    3) BAPI_LEAD_ATT_CHANGE - to set the STATUS SINCE field for a Lead. This is being done because I'm unable to set the STATUS_SINCE field using the BAPI BAPI_LEAD_CREATEMULTI.
    The logic being used within the code is to process a batch of records (500/1000 records - value is an input selection parameter) from the input file in one go, and then commit all of them after their creation. After this, the next batch of records is again processed and committed.
    We've also tried to create LEads and Activities record by record and not in batches... but the performance still remains the same.
    I'm not sure what is slowing down the process. If whether it is all the commits, or if it is the additional use of the FM's to change the 'status' and 'Stauts-since' values after having committed the leads and activities.
    When we look at the LEads and Activities that are created, everything looks fine. It is only that the performance is really slow.
    Thanks for all your patience and suggestions,
    - Akarsh

    In order to improve the performance you could use several processes. Just start you conversion-program with several variants at the same time.
    Last time I converted 80.000 contracts it took me 6 hours with 5 processes.
    Hopes this helps.

  • BAPI needed to create Settlement Order through IW52..

    HI All...
    Is there any BAPI available for creating Settlement Order/Credit Memo Request through IW52 Transaction..???
    Regards
    Pavan

    Hi,
    check these BAPI/Function Modules
    BAPI_SETTLEMENTREQSLIST_CREATE
    MAT_ORDER_SETTLEMENT_CREATE
    Read the corresponding function module documentation.
    Feel free to revert back.
    --Ragu

  • Reg. Bapi FM for creating invoice

    Hi Friends
    If any body tell me how to create an invoice with reference number and maintain our external invoice number.
    Advance Thanks
    Krishna

    Hi,
    use this BAPI
    BAPI_INCOMINGINVOICE_CREATE
    or
    BAPI_ACC_INVOICE_RECEIPT_POST
    hope helpful
    Raghunath.S

  • How to write error log while creating invoice and avoid implicite commit

    Hi,
    I've have written code in exit RV60AFZZ in which I check for some possible errors while invoicing via VF01/VF04. If conditions are met then we create error message and display it to the user. As result we had a lot of missing SD invoices in FI when we did batch/mass invoicing. I've opened OSS note and SAP support team wrote that using statement MESSAGE is forbidden in UE. It can lead to implicite commits.
    Do you have some example how to write error log for invoincing in VF01/VF04 transactions?
    Thanks

    @ sri nath. Please read post before answering. I wouldn't be posting trivial questions. As I wrote before it doesn't work.  Also SAP support would not answer to the question in my OSS.
    In VOFM, SAP is using routine  VBFS_HINZUFUEGEN_ALLG to write to error log.
    Mine is something like this in ue:
          PERFORM ZVBFS_HINZUFUEGEN_ALLG
                     USING VBAP-VBELN VBAP-POSNR  'ZSD' 'E '600'
                           SPACE SPACE SPACE SPACE.
    (we have custom message class)
    As result  XVBFS and VBSK are filled with error, but posting is also done.  Error log is filled but invoice is created and posted in FI.
    That is not OK.
    thanks

  • Hi ,BAPI Needed to create sales order

    Hi,
    i want to create  a salesorder by giving quotation number as an input.
    whenever sales quotation is saved it should check for some conditions and finally it should automatically create the sales order of type ZMS without user intervention.
    Please can any one help in finding the BAPI .Please explain me how to implement same...
    regards
    manju

    Check the Program -
    REPORT ZCREATE_SO.
    DATA : ORDER_HEADER_IN1 TYPE BAPISDHD1.
    DATA: ORDER_PARTNERS1 TYPE BAPIPARNR OCCURS 0 WITH HEADER LINE.
    DATA: ORDER_ITEMS_IN1 TYPE BAPISDITM OCCURS 0 WITH HEADER LINE.
    DATA : SALESDOCUMENT1 TYPE BAPIVBELN-VBELN.
    DATA : RETURN1 TYPE BAPIRET2 OCCURS 0.
    DATA : RETURN2 TYPE BAPIRET2.
    DATA: WA_RETURN1 TYPE BAPIRET2.
    start-of-selection.
    Fill the Header Details
    order_header_IN1-DOC_TYPE = 'TA'.
    order_header_IN1-SALES_ORG = '1001'.
    order_header_IN1-DISTR_CHAN = '10'.
    order_header_IN1-division = '10'.
    Fill the Partner Details
    ORDER_PARTNERS1-PARTN_ROLE = 'WE'.
    ORDER_PARTNERS1-PARTN_NUMB = '0000000008'.
    append ORDER_PARTNERS1.
    Fill the Item details
    ORDER_ITEMS_IN1-MATERIAL = 'A0900002'.
    ORDER_ITEMS_IN1-TARGET_QTY = '10'.
    append ORDER_ITEMS_IN1.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    EXPORTING
    SALESDOCUMENTIN =
    ORDER_HEADER_IN = order_header_IN1
    ORDER_HEADER_INX =
    SENDER =
    BINARY_RELATIONSHIPTYPE =
    INT_NUMBER_ASSIGNMENT =
    BEHAVE_WHEN_ERROR =
    LOGIC_SWITCH =
    TESTRUN =
    CONVERT = ' '
    IMPORTING
    SALESDOCUMENT =
    TABLES
    RETURN = RETURN1
    ORDER_ITEMS_IN = ORDER_ITEMS_IN1
    ORDER_ITEMS_INX =
    ORDER_PARTNERS = ORDER_PARTNERS1
    ORDER_SCHEDULES_IN =
    ORDER_SCHEDULES_INX =
    ORDER_CONDITIONS_IN =
    ORDER_CONDITIONS_INX =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CFGS_BLOB =
    ORDER_CFGS_VK =
    ORDER_CFGS_REFINST =
    ORDER_CCARD =
    ORDER_TEXT =
    ORDER_KEYS =
    EXTENSIONIN =
    PARTNERADDRESSES =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = space
    IMPORTING
    RETURN = return2
    loop at return1 into wa_return1.
    endloop.
    Also go through the Documentation in SE37 it is very helpful.

  • Need to create subdomain and mail boxes for that subdomain

    Hi
    I need help  on the below mentioned scenario much appreciated if I get immediately. thanks in advance.
    I am created the domain ABC.com and installed the Exchange 2010  working properly. now my management want  to  create a subdomain like xyz.ABC.com. and  also they want to create the mail id like @xyz.ABC.com. Any body suggest the solutions
    for  this much appreciated.
    Jags

    See the below few links might helpful for you.
    http://social.technet.microsoft.com/Forums/exchange/en-US/ab35e257-0050-420e-b4c7-e9680ebf210d/exchange-2013-how-to-create-mailbox-on-subdomain-with-subdomain-administrator
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/630c25dc-54f0-443c-87e1-4cd890ac0529/exchange-2013-how-to-only-manage-mailbox-on-subdomain-with-subdomain-administrator
    http://exchangeby-arun.blogspot.in/2012/02/how-to-configure-mailboxes-for-child.html
    Akshay Pate

  • I need to create public and private keys for security certificate and I can't find the certificate. Where is it?

    I purchased a security certificate, and the site tells me that it was successfully installed. I need to export the certificate so that I can create the public and private keys, but I cannot find the certificate to do so.

    Thank you.

  • Need to create PDF and Spreadsheet file from RDF file when user passes the parameters

    Hi Everyone,
    I am beginner as report developer ,i came across one  issue when the requirement came from the client regarding generating EXCEL FILE and PDF FILE from same RDF file .
    I was able to generate the PDF file but i when i tried to create excel file it does not include the margin in it, also the cell border are not seen( file comes with data but with no CELL borders), I have also attached screenshot for reference .
    View image: problem
    or
    http://i43.tinypic.com/2mq017k.jpg
    Software Used :
    Oracle reports Developer : 11g 1.2.3.0
    Thanks ,
    Harshil

    Dear  Olga12,
    Thanks a lot for your quick reply.
    When i suggested the solution to my client  for creating two separate templates attached to same data definition , they declined and argued that  we cant create 2 separate templates for all reports( more than 200 reports).
    Is there any way to create the PDF/EXCEL from same RDF other than creating two separate templates ?
    Thanks ,
    Harshil

Maybe you are looking for

  • Firewire issues with DV camera

    When connecting a Samsung VP-D305i mini DV camera to the firewire port (4pin to 6pin cable) Mac OS fails to recognise it. I know this is an issue that has been covered in this forum a few times, but none of the answers seem to work for me. Furthermor

  • Fbl1n and fbl5n display at time line item wise name for vendor and customer

    Hi Could you tell me how can I include Customer or Vendor names for each line items in transaction FBL5N and FBL1N, please? Customer Accounts are displayed well, but in several cases we also need the name of the certain Customer or Vendor account nam

  • Exported photos too dark

    When I export my files for print they are dark and dull and don't look anything like the screen. I have the quality set to 100 and the ppi to 300, exporting as a jpeg.  I took my disk to a professional printer and he stated he also found this problem

  • After 7.0.2 long delay for menù showing up after restart

    Good morning , after upgrading to 7.0.2 my ATV 3 restart with only family sharing and configuration menù....i think it was a fault on the fw upgrade so i reset to default configuration. after restart everythings goes well and i restart configuring AT

  • Is there a way to change the primary computer for iphones?

    I have been using managing my iphone through my itunes on my home PC, but just recently bought a new laptop and would like to make my laptop the primary computer for my iphone. How do I change it?