AR Invoice creation with BP Consolidation
Hi,
I have a number of deliveries.The customers for these deliveries have a consolidating BP.Now I want to create an AR Invoice from these deliveries to that consolidating BP.How this can be done by code?Can anybody give me a sample code?
Deepesh
Hi Deepesh,
I haven't done this, but I guess you just have to create the invoice based on the delivery, using the fields BaseEntry, BaseType, BaseLine in the Documents_Lines object.
Hope this helps,
Ian
Similar Messages
-
Sales to Billing Invoice Creation with Split that Shouldn't Occur
Good Morning,
First of all, let me tell you i've started doing some ABAP development last week, so i have a lot of things to yet understand.
I received a request to implement a change in the creation of a billing document.
Context:
I have a order - Order 132098723 - with the following header data:
VBAK-VBELN = 0132098723
VBAK-VBTYP = C
VBAK-AUART = ZCV
VBAK-VKORG = 0100
VBAK-VTWEG = T1
VBAK-SPART = 00
VBAK-KNUMV = 0000223615
VBAK-FKARA = ZF3
VBAK-KUNNR = 0010135306
VBAK-TAXK1 = <empty>
VBAK-TAXK2 = <empty>
VBAK-TAXK3 = <empty>
VBAK-TAXK4 = <empty>
VBAK-TAXK5 = <empty>
VBAK-STCEG_L = <empty>
VBAK-LANDTX = <empty>
The items for this Order - Order 132098723 are:
Item
Material
Order Quantity
Un
Description
ItCa
10
0,000
ZATX
20
1400008183
1
UN
<Description>
ZTAS
I have a delivery - Delivery 811128713 - with the following header data:
LIKP-VBELN = 0811128713
LIKP-VBTYP = J
LIKP-KUNNR = 0000223615
LIKP-FKARV = ZF3
The items for this Delivery - Delivery 811128713 are:
Item
Material
Delivery. Qty
Un
Description
ItCa
10
1400008183
1
UN
<Description>
ZTAS
A copy control was created in transaction VTFA - Sales to Billing Document:
Header
Tgt Billing Type Source SalesDoc Type
ZF3 Invoice ZCV Standard Order
Copy Requirements 001 Header/order-related
Determ.export data <empty>
Assignment Number E
Reference number A
Copy item number checked
Item
Target Billing Type ZF3 Invoice
From SalesDoc Type ZCV Standard Order
ItmCt Description
TAD Invoice
ZATX Text Item
ZSCV <Description>
ZTAD <Description>
Step by Step of the process:
I call transaction VF01 and i input two docs to be processed:
132098723 - Order
811128713 - Delivery
Before i Execute i will do a Billing Document Overview (F5) and in the Billing Document Overview two invoices are generated:
Invoice - <Name> - <Net_Value>
Invoice - <Name> -<Net_Value>
THE PROBLEM:
INSTEAD OF TWO INVOICES, ONLY ONE INVOICE SHOULD BE GENERATED. When i do a split analysis the system informs me that the reason for the split is happening because of different header data:
Fld Name
$000000001
$000000002
Tax classification 1 for customer (TAXK1)
1
Tax classification 2 for customer (TAXK2)
1
Tax classification 3 for customer (TAXK3)
1
Tax Classification 4 Customer (TAXK4)
1
Tax classification 5 for customer (TAXK5)
0
Tax departure country
PT
I've spoken with my colleague who requested the correction of this and he told me that what he wants is that, in this case, only one invoice should be created.
He also told me that in this case only happens when a item with category ZATX exists in the Order (in this case item category ZATX exists in the first item of Order 132098723).
Debugging, i've found out that the reason for the split is that in program SAPLV60A, in include LV60AA95, form VBRK_VBRP_DATENTRANSPORT, the VBRK-TAXK* values are populated with values from KURGV-TAXK* and VBRK-STCEG_L is populated with values from KURGV-LAND1 or KURGV-STCEG_L (conditional). The problem is that the program goes through the section of code where KURGV is changed twice (as far as i've understood it's related with the fact that there are two items in the Order 1320987239 and on the first pass the KURGV-TAXK* and KURGV-LAND1 are empty, and in the second they have values and i think that's why the split occurs.
I'm also attaching a document with screenshots of the debug which i think they can help.
Please let me know if you need specific information.
Can you please help me in finding how can i prevent this split to occur?
All help is welcome
Best Regards,
Pedro GasparHola Pedro
First of all, see SAP Note 11162 - Invoice split criteria in billing document as a checklist.
Second, look for posts in this site with the string or keyword ZUKRI or ZUK. The question is populate the field ZUKRI and force the split according this field. It could be made with a custom VOFM subruoutine, taking any standard as a template.
f you are using values from SO and delivery for populating values in VBRK and VBRP, populate them in SO, doing them mandatories (incomplete schemes,...) or populating data in master data (material, partners,...).
I hope this helps you
Regards
Eduardo -
MIRO invoice creation with the Personnel Number in account assignment
I am using BAPI_INCOMINGINVOICE_CREATE for creating an Invoice using MIRO transaction.
In MIRO transaction-> PO reference-> Multiple account assignment-> we have the personnel number: In BAPI table-parameter ACCOUNTINGDATA and ITEMDATA is used to populate the account assignmet data but this structure doesn't have the Personnel Number field (PERSON_NO).
How can i create an Invoice with the Personnel Number in Account assignment, Is there any Userexit or BADI is available ?
Thanks,
Fract
Edited by: fract_get on May 23, 2011 6:49 PMYou can use EXTENSIONIN parameter from tables. There are BADI's related to this but don't know the name of badi. Please search forum for or use transaction code SE84 to search the BADI's/
you can check the badi: INVOICE_UPDATE and method 'before_save or something similar to map to db table fields.
See this thread to understand how extension parameters works.
bapi_salesorder_simulate extension bape_vbap standard field
Edited by: Sampath Kumar on May 23, 2011 11:28 AM -
Invoice creation with reference to quotation
Hi,
I have a specific requirement where my client want invoice can be created with reference to quotation.
What kind of configuration is required in copy control?
Please guide.
Regards,
BalajiHii
First of all make copy control in VTFA with ur Quotation type to Invoice type
and set the Item category AGX at item level
Then go to VOV8 t-code and double click on your quotaton type, Go to billing section and make entry in Order relevant billing with your billing type
Regards
Shambhu Sarkar -
Single invoice creation with reference two sales document type
Hi,
I have created Sales contract & Sales Order.I want to create single Invoice with reference to both sales contract & sales order.
Please give me the solution how to do that???????????
Thanks,
Miku.Hello Dear,
Invoice normally is not created directly Contract but from Sales order. And Sales order is created wrt to contract then delivery & billing.
If u have Service & Maintenance contract then u do billing from it and there is no Sales order.
Hope this clarify.
Thanks,
Dilip Sadh -
BAPI for invoice creation with reference SalesOrder
hi Mr Anjireddy,
i am able to create invoice with the bapi BAPI_BILLING_CREATEMULTIPLE, here i'm giving the RefDocNo of the SalesOrder, the invoice is generated but i'm not gettting the NetValue, TaxValue.
plz give the information for that prob,
eswarHi Vinod,
This is just idea.
Get Purchase Requisition details using
<b>BAPI_REQUISITION_GETDETAIL</b> and then use <b>BAPI_PO_CREATE1</b>. I think there is no Direct BAPI.
*******Poorna********* -
FB01 invoice creation with IDOC INVOIC02 - Profitability Analyses
Hello All
I currently use INVOIC02 Idoc to create invoices (FB01).
FM : IDOC_INPUT_INVOIC_FI
I use the E1EDP30 segment with QUALF = 046 to fill CO-PA Object.
I don't manage to fill imputation fields of this object like sales order number or customer number.
Must I use an exit ? fill other fields of INVOIC02 idoc ? duplicate and arrange IDOC_INPUT_INVOIC_FI function ?
Can you help me ?
Thanks
Message was edited by: Jean-CharlesHi I've progressed :
I've used exit EXIT_SAPLIEDI_101 :
* Process 1 time only
CHECK idoc_data_index = 1.
DATA :
* Segments IDOC
s_e1edk02 LIKE e1edk02,
s_e1edka1 like e1edka1,
s_e1edk14 LIKE e1edk14,
s_e1edp01 LIKE e1edp01,
s_e1edpa1 LIKE e1edpa1,
s_e1edp30 LIKE e1edp30,
* Variables
w_kunwe TYPE kunwe, " Client livré
w_kunag type kunnr, " Donneur d'ordre
w_bukrs TYPE bukrs, " Société
w_ekorg TYPE ekorg, " Organisation commerciale
w_posnr TYPE posnr_va, " Poste Commande
w_belnr TYPE vbeln_va, " N° Commande
i(6) TYPE n.
* Récupération des informations souhaitées
* Le premier poste à renseigner est le poste 2 car
* le 1er est réservé au créditeur
i = 1.
LOOP AT idoc_data.
CASE idoc_data-segnam.
WHEN 'E1EDKA1'.
MOVE idoc_data-sdata TO s_e1edka1.
* Récupération Donneur d'ordre
IF s_e1edka1-parvw = 'AG'.
w_kunag = s_e1edka1-partn.
ENDIF.
WHEN 'E1EDK02'.
MOVE idoc_data-sdata TO s_e1edk02.
* Récupération N° Commande
IF s_e1edk02-qualf = '002'.
w_belnr = s_e1edk02-belnr.
ENDIF.
WHEN 'E1EDK14'.
MOVE idoc_data-sdata TO s_e1edk14.
* Récupération N° Société
IF s_e1edk14-qualf = '003'.
w_bukrs = s_e1edk14-orgid.
ENDIF.
* Récupération N° Org Commerciale
IF s_e1edk14-qualf = '008'.
w_ekorg = s_e1edk14-orgid.
ENDIF.
WHEN 'E1EDP01'.
i = i + 1.
MOVE idoc_data-sdata TO s_e1edp01.
* Récupération poste de commande
w_posnr = s_e1edp01-posex.
WHEN 'E1EDPA1'.
MOVE idoc_data-sdata TO s_e1edpa1.
* Récupération Client livré
IF s_e1edpa1-parvw = 'WE'.
w_kunwe = s_e1edpa1-partn.
ENDIF.
WHEN 'E1EDP30'.
MOVE idoc_data-sdata TO s_e1edp30.
* Remplissage uniquement pour imputation CO-PA
IF s_e1edp30-qualf = '046'.
CLEAR document_data.
document_data-stype = 'P'.
document_data-count = i.
document_data-fnam = 'COBL-PAOBJNR'.
document_data-fval = s_e1edp30-ivkon.
APPEND document_data.
document_data-fnam = 'BSEG-RKE_BUKRS'.
document_data-fval = w_bukrs.
APPEND document_data.
document_data-fnam = 'BSEG-RKE_VKORG'.
document_data-fval = w_ekorg.
APPEND document_data.
document_data-fnam = 'BSEG-RKE_KNDNR'.
document_data-fval = w_kunag.
APPEND document_data.
document_data-fnam = 'BSEG-RKE_KUNWE'.
document_data-fval = w_kunwe.
APPEND document_data.
document_data-fnam = 'BSEG-RKE_KAUFN'.
document_data-fval = w_belnr.
APPEND document_data.
document_data-fnam = 'BSEG-RKE_KDPOS'.
document_data-fval = w_posnr.
APPEND document_data.
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
In WE19 when I process my IDOC :
- in background mode : IDOC has status 51 'Field COBL-PAOBJNR doesn't exist in dynpro SAPLKACB 0002'
- at screen : status 53 => OK
Have you an idee of my problem ? -
Invoice creation with out PO and Item using BAPI_INCOMINGINVOICE_CREATE
Hello,
I have a requirement to create the invoce with out PO number. Is there any chance to create the invoice through BAPI_INCOMINGINVOICE_CREATE with out using PO number and item ( ITEMDATA table ).
Thanks for your support.
Regards
NagsHello Burak,
Now i am able to post the docuemnt through BAPI_ACC_DOCUMENT_POST, unable to post the parking docuemnt.
WIth this Function module PRELIMINARY_POSTING_FB01 it very big process to map the fields, because SAP it self
filling lot of fields.
Mean while i have tried the BDC to park the document, but i am getting an error that 'Parking is not possible through batch input'.
RECENTLY ADDED
Now i am getting an issue when we post with the function moduel :PRELIMINARY_POSTING_FB01 , after executing the function module it is giving the document number, but if it fails there is no return table or exeptions to catch the errors . is there any way to over come the problem.
I need to post the document and park the docuemnt.
please suggest.
Thanks & Regards
Nags -
Invoice creation with reference to Sales Order no in IDoc
Hi Guys,
Is it possible to create a Invoice with reference to the sales order no in IDOC
Regards
Sathis.Hi,
Use FM rv_invoice_create.
BR,
Lokeswari. -
Vendor Invoice creation through EDI (Transaction MIRO)
Dear All,
We want to implement Vendor Invoice creation thro EDI .(Transaction
MIRO)
We are not finding any suitable EDI Function Module in SAP which
would take care of more than 20 items and run a MIRO or any
equivalent transaction .
Can any one please advise if any Function module exists ? We need it for
Invoice creation with GR reference as well as without GR reference .
Thanks
Sanjay.Thanks Naren,
I will come back after checking the fn module.
- Sanjay -
Func module/bapi for invoice creation
Any function module for invoice creation WITH REFERENCE TO A SALEORDER. ??
Hi,
check this FM:GN_INVOICE_CREATE or BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE
check this link also.
BAPI for creating sales invoice
Regards
Appana -
Duplicate Invoice Creation MIRO
Hi All,
Our client has an special requirement. Currently we have an issue with duplicate invoice creation with MIRO transaction. The 'Check doub inv' check box in the vendor master data is already checked. For MM, there are three configurable check boxes i.e. T-Code OMRDC (Co.Cd, Ref. No. and Check Inv. Date.). Per our system configuration, we have the first two boxes checked and the 'Check Inv. Date' unchecked. The Ref. No. field is used to capture the invoice number. This way, if a vendor invoice has already been entered, when trying to enter another vendor invoice with same invoice number, amount, currency, company code and vendor number, irrespective of the date, the system displays a message as "Check if the invoice has already been entered...". As per our requirement, the client basically wants to distinguish between the two invoices purely based on Invoice Number (Reference Number-XBLNR). That is if an invoice has already been entered with a 'Reference Number = 123' for example, the user should not be able to post another invoice with same 'Reference Number = 123', for same vendor, same company code, irrespective of the invoice date and invoice amount. I really appreciate if someone could help me ASAP.
Thank you,
JiteshDear
Please set the following in MM Logistics Invoice Config so that when MIRO/MIR7 is done twice then qty of MIGO exceeds then you get an error message.
T.Code : OMRM
Material Management>Logistics Invoice Verification>Define Attribute of System Messages
In the above node keep message number 504 Quantity invoiced greater than goods receipt quantity and keep online and batch as error and standard as W.
Hope this solves your problem.
Regards -
Excise Invoice creation error -Billing document does not exists
Dear Experts,
I have created supplementary sales order, billing with refernece through sales order by VF01.
Now I want to create Excise Invoice but system gives error Billing Document does not exists
I have checked billing document in VBRK table & it is showing in table.
My item categroy is L2N -and set it to C
I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
Pl. guide me.
Thanks
TruptiResolved my problem.
Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
outbound delivery.
So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
Thanks to all.
Trupti. -
Excise invoice reversal with J1IS..
Dear All,
I have created excise invoice for stock transfer (with 351 mat document ) by using J1IS in which registers are getting
debited and cenvat clearing account is getting credited....the process is correct
Now i want to reverse this excise invoice due to some wrong doing....how i can reverse this excise invoice?
I tried doing cancel excise invoice in J1IS ...invoice is canceled but i am not able to post it in accounting so that
registers will get credited and cenvat clearing account gets debited (Reverse of previous entry)
Please tell me correct process of excise invoice reversal in this case so that all a/c entries will be reversed accordingly.
Also i tried canceling 351 document and tried excise invoice creation by using 352 material document but my excise group is
different for different plants so it is not accepting 352 mat document.
please help me out..
Thanks,
NarenHi,
The J1IS is the JV to adjust the Excise values if you had canceled J1IS then Release to accounting using J1IV
Again try to post J1IS for 351 Movt type document type or else you can pass JV to adjust the worng entries. Hope this helps. -
Excise invoice creation incase of price increase
Dear all,
I am facing a problem in case supplementary billing scenario at my client's place.
Some times price of the material increases and that price will be effected from past date.Then a supplementary excise is created with values consisting of
Differential value + 16% excise on differential price + 2 % Ecess + 1%Hecess + sales tax against all the effected invoices previously created.
" Differential value = (New Price - Old Price)*(total invoiced quantity of the material from effected date to till now ) "
How can i create excise invoice in sap for this case, where there would be no goods movement..
With the help of my abaper i can create debitmemo with this pricing structure with some modifications in program for VFRB - Retro-Billing by individual invoice wise.
But my client is asking for excise invoice creation for this scenario but not debit memo.
Pls guide me the way to do this scenario.
Thanks in advance
Kartheek NHi,
We also have same scenario and we done work around for this solution.
Suppose i have
Base Price 1000
ED 160
ECESS 32
SECC 16
Based on the above we made Billing document VF01 and Excise Invoice through J1IIN. After sending the material there is price change and you require to raise suplementary invoice for the same, in that wat you required to do is
1. Create Sales Order with referene to main billing document
2. Create Billing document with refernce to sales order and note that the Billing category is M becasue as per standard SAP billing category M and U are only relevent for Exicse Invoice cration.
Through the above you can rraise the invoice.
If it helps provide rewards
Rgds
Gautam
Maybe you are looking for
-
I build a dylib and link with FTDI's libftd2xx.1.1.12.dylib. However when I then use dlopen to load my library I get the "Thread registered implicitly" exception thrown. This is on Mountain Lion 10.8.2, using Xcode 4.5.2. I've checked FTDI, and the v
-
Converting CSV file coming as string in one of the field of xml to XML
Hi , we have the below requirement where the dat type is : DT_MESSAGE field1 Data field2 DataString the csv file of the below format will be sent in the DataString field of xml . Source;EIX3;Date;080526;Charge;70199;Si;.42 ;Fe;.20 ;Cu;.00
-
Dear expert, What is exactly the main function of Down payment interim account in AP Down Payment Request? if there's any problem if i do not use this account for down payment transaction? As we know that Down Payment interim account is located on BP
-
Upgrading to iTunes v6 - Advice
Sometimes I get prompted by iTunes to upgrade to v6 and from previous experience (v4.8 to v5)I think I'm right in saying that simply clicking on "OK" from the friendly dialogue box the install occurred over the top of my existing v4.8. Reading the ex
-
I can't run YouTube from whatsapp masseges
I receive a massage on whatsapp obtain a link of YouTube video, I noticed all the vedio of YouTube from whatsapp massages do not work.