Idoc(invoic02) genaration
Hi Folks,
My requirement is i want post invoiceIDOC(invoic02) from R3 to bw server, i made all the setting in rfc,partnerprofile, etc..,
after creating the invoce (vf01), the idoc is not genarated and iam not find in idoclist but i tested for vendor(cremas03)by executing bd14.
my query is is there any program/Transaction code is there to genarated this idoc, or i need to write any Zprogram for this.
could please explian on this
thanks in advance
regards
p r i y a
Hi Priya,
Yes, you can use both standard output type (RD00) or create custom one in transaction NACE. Also remember to maintain record conditions as well.
You need to use application V3 (Billing) instead of V1 (Sales).
Regards,
Ferry Lianto
Please reward points if helpful.
Similar Messages
-
Customer Order and confirm number on idoc invoic02
Goodmorning,
in idoc invoic02 at line of invoice is present a field that give:
-customer order number and data of creation
-data of creation of order confirm about customer order
Thanks
Fabrizio T.Hi
go to header-> output in the sales order and u will find the idoc no there
Ranga -
"Standard" mapping between SAP IDOC INVOIC02 and Finvoice
Hello all
We are about to implement invoicing via IDOC (INVOIC02) => XI => mapping to Finvoice (http://www.fkl.fi/verkkolasku/english/index.htm).
Now i am interested in a "standard" mapping between Invoice02 and Finvoice as a starting point for our mapping.
I cannot find anything in the internet, so i wanted to ask you, if you have such a mapping?
Thank you and best Regards
MartinHi Martin,
Now i am interested in a "standard" mapping between Invoice02 and Finvoice as
a starting point for our mapping.
Do you have the XSD or DTD for the Finvoice structure.If you are able to load the XSD structure
then try mapping according to the business requirement.Pls ref link below.
XML definition -> SAP data dictionary structure
Finvoice (http://www.fkl.fi/verkkolasku/english/index.htm).
Not sure if you are trying to use the service by http://www.ebxml.org/.
Please elaborate more on your requirement.
Regards,
Srinivas -
IDOC INVOIC02 in outbound - segment E1EDP05
I'm making some test with the IDOC INVOIC02, i try to generate a invoice idoc for from another SAP system for generate SD invoice with the GN_INVOICE_CREATE.
I view that the idoc created dont generate the segment E1EDP05 with the pricing procedure conditions (necessary for a mirror creation of invoice on the destionation SAP).
Anyone knows why the segment is lost?
Thanks
DavideHi,
Could you please check is there any segment filters are set in the sender system.
Generally we will check any segment filter in BD56 transaction.
Thanks,
shyla -
Extend Idoc INVOIC02 - E1EDKA1 - Syntax error
Hi All,
I have extended Basic idoc INVOIC02 and using exit EXIT_SAPLVEDF_002 to extend custom segment. I am trying to add a custom segment under E1EDKA1. In program I am inserting Z1 segment after parent segment E1EDKA1. I am passing Parent segment reference (INT_EDIDD-PSGNUM) and hierarchy level of custom (INT_EDIDD-HLEVEL) segment. Problem is custom segment still placed under root segment after E1EDKA1 segment, which is incorrect. Idoc error with status 26 Syntax error. Can any one tell me what I am doing wrong or how do I manage to get custom segment under parent segment E1EDKA1, so that I dont get this error. Below code for your reference. Thanks in advance.
Regards,
Tim
Program -
"ZXEDFU02" -
describe table INT_EDIDD lines gv_indes.
read table INT_EDIDD index gv_indes.
if sy-subrc eq 0.
if INT_EDIDD-segnam eq co_e1edka1 and
INT_EDIDD-sdata+0(3) eq 'ZM'.
Now INSERT segment Idoc value and custom extend field
if not gv_email is initial.
INT_EDIDD-PSGNUM = gv_indes.
INT_EDIDD-HLEVEL = '03'.
move: co_z1edka1 to INT_EDIDD-SEGNAM,
'email address' to INT_EDIDD-SDATA.
append INT_EDIDD.
endif.
endif.
endif.Your logic looks ok. I would remove the code to populate the parent segment number and hierarchy level. SAP will determine those on its own.
As for the result you are seeing, if there is a syntax error on an IDoc, the entire hierarchy will be lost so the fact that the custom segment is showing up at the same level as its parent doesn't mean that is actually causing the syntax error.
Did you add your extension in the partner profile?
Program -
"ZXEDFU02" -
describe table INT_EDIDD lines gv_indes.
read table INT_EDIDD index gv_indes.
if sy-subrc eq 0.
if INT_EDIDD-segnam eq co_e1edka1 and
INT_EDIDD-sdata+0(3) eq 'ZM'.
Now INSERT segment Idoc value and custom extend field
if not gv_email is initial.
INT_EDIDD-PSGNUM = gv_indes.
INT_EDIDD-HLEVEL = '03'.
move: co_z1edka1 to INT_EDIDD-SEGNAM,
'email address' to INT_EDIDD-SDATA.
append INT_EDIDD.
endif.
endif.
endif. -
Create Idoc INVOIC02 when a invoice is created
Hi everybody.
Which are the necessary steps to make in order to costumize the Idoc INVOIC02 creation when a invoice is created in R3?
Thanks a lotHi again,
Ive done this steps:
1. create the output type in the nace using the output type RD04 and define the transmission medium as the EDI.
2. configure the newly created output type in the access sequence.
3. create the partner profile in the we20 transaction in partner type LS. I need to send it through Logical Systema
4. In creation of partner profile mentioned the port number to which you want to pass the idoc. define the port in we21 transaction. and in message type mentioned the INVOIC. in basic type mention the INVOIC02.
5. in message control tab define the output type for your EDI.and use the correct process code.
But the output type doesn´t appear in my invoice and if i try to add it I always get an error.
How could I fix this???? Im getting crazy!!!! -
Accounting document creation for sales invoice with IDOC INVOIC02 ?
Hi All,
Our sales invoice are managed in a external system and those Invoice are going to be send in FI with IDOC interface.
is it possible to use the IDOC INVOIC02 to do this operation ?
if yes, what are the customizing points I have to implement ?
if not, what kind of IDOC can I use ?
Thank you in advance for your help
FranckHi Thenna
The accounting document status in the document flow is determined dynamically when you display the document flow,
it's not saved in a specific table.
Here is the relevant logic:
LV05CF01 -> form BUCHHALTUNGSBELEG
IF vbrk-vbeln <> vbfa_tab-vbeln.
PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
REFRESH xbkpf.
CALL FUNCTION 'FI_DOCUMENT_READ'
LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
AND belnr EQ xbkpf-belnr
AND gjahr EQ xbkpf-gjahr
AND ( koart EQ 'D' OR koart EQ 'K' ).
ENDLOOP.
IF NOT sy-subrc IS INITIAL.
SET STATUS TO 'No items are cleared'
l_xdoc_num-status = 'A'. <<<
ELSE.
LOOP AT xbseg WHERE augbl IS initial
AND umskz NE 'A'
AND vorgn NE 'AZUM'
AND ( koart EQ 'D' OR koart EQ 'K' ).
ENDLOOP.
IF NOT sy-subrc IS INITIAL.
Set status to 'All items are cleared'
l_xdoc_num-status = 'C'. <<<
ENDIF.
ENDIF.
Regards,
Alex -
Error in message mapping of IDoC Invoic02
Hi,
i have imported the invoic02 idoc into PI system. i have mapped the required field os idoc with standard XSD which is imported through ED. I'm able to most of the fields with idoc and XSD. however, some of the node in xsd are repaeting.
so here the part of xsd with which i'm mapping.
(first_node)ListOfTaxSummary 0..1
(second_parent_node)TaxSummary 1..unboubed
(child_node) tax 1..1
(element)TaxAmount 0..1
(element)TaxCategoryCoded 0..1
here the i have mapped ListOfTaxSummary with the idoc node E1EDS01
TaxSummary with E1EDS01
tax with E1EDS01.
i tried all possibilities with different mapping. but i'm able to get the tax node under taxsummary with the element. the problem its been repeated as E1EDS01 idoc repeats.
please help us in solving this problem.
Thanks
Kind regards,
Lalitkumar.Could someone tell me is there any relation for the above error in XML messages and to the message mapping?
The error mentions that you have used an IDOC in your mapping program which is not found in the ESR....you need to check if the IDOC is present in the ESR and is present under the correct SWCV.
Once you have done the check do some dummy change to the mapping and activate it (if in DEV) and then check the CACHE. -
we're giong to use INVOIC02 as inbound idoc for the logistics invoice verification.
Does anybody have a clue, how freight costs can be processed? The supplier provides us in a flat input file with separated costs for freight, but my workmates say these costs can't /won't fit in the idoc structure definition.
Any hint is appreciated.Hi Matt Potts,
During creation of Purchase Order, you have to carry out following steps;
(a) Select header condition or relevant PO Line items
(b) Add your Freight condition and add your values in Ammount (based on value or in %)
(c) Select above Freight condition and click condition details (magnifier)
(d) Add your Vendor code in Vendor Field (KOMV-LIFNR)
Bye,
Muralidhara -
IDOC Invoic02 - Segment E1EDP26 (net value) is missing because of val. 0,00
Hello everyone,
I have an idoc of type Invoic02 and the segment E1EDP26 with qualifier 003 (net value) is missing if the net value is 0,00u20AC. If the value is greater than zero, the segment is perfectly there.
Does anyone have an idea how I can achieve that this segment is always there independent of the value?
Thank you!
Best regards
AndreasI'm replying to this old post since it comes up in Search. We had the same issue - E1EDP26 with QUALF 003 would not be in the IDoc, but it was required by the receiving system.
Here is a reply I received from SAP:
This is the standard system behaviour and this is hard coded in the
system.
Please see the following from note 635337 (Conditions are missing in theIDoc):
o The value of the condition must be <> 0.
You may change the code in LVEDFF0F by removing the IF and ENDIF
statements and then E1EDP26 segment 003 will always be output
but this would be a modification and would be subject to the conditions
from note 170183.
*- Absoluter Nettowert
IF NOT tvbdpr-netwr IS INITIAL. <<<
CLEAR int_edidd.
CLEAR e1edp26.
int_edidd-segnam = 'E1EDP26'.
e1edp26-qualf = '003'.
PERFORM get_e1edp26_tcurx_currency USING tvbdpr-netwr.
MOVE tvbdpr-netwr TO h_newr_btrg.
MOVE e1edp26 TO int_edidd-sdata.
APPEND int_edidd.
PERFORM customer_function.
ENDIF. <<<
Since we already had a user exit EXIT_SAPLVEDF_002 implemented for the IDoc extension, instead we resolved it by adding the following code (fragment) there:
DATA ls_e1edp26 TYPE e1edp26. "document item pricing data
DATA lv_kwert TYPE kwert.
CASE int_edidd-segnam.
WHEN 'E1EDP26'.
MOVE int_edidd-sdata TO ls_e1edp26.
IF ls_e1edp26-qualf = '001'.
IF xtvbdpr-netwr = 0.
CLEAR: ls_e1edp26, lv_kwert.
ls_e1edp26-qualf = '003'.
ls_e1edp26-betrg = lv_kwert. " so that decimals/format are the same
SHIFT ls_e1edp26-betrg LEFT DELETING LEADING space.
MOVE ls_e1edp26 TO int_edidd-sdata.
APPEND int_edidd.
ENDIF.
ENDIF. " ls_e1edp26-qualf = '001'
ENDCASE. -
IDOC INVOIC02 tax configuration
Hi All
We're going to use INVOIC02 IDoc to trigger FI vendor invoices. It involves some configuration settings along with Tax configuration. But, functional people they says functionally it's not possible to maintain all the tax codes in configuration level.
So, please help me to avoid config for Tax for INVIOC02 IDoc.
Thanks in advance
Senth.Hi ,
1)We got same senario.You have to inform functional guys to configure the VAT codes in the EDI subsystems for all countrys.
2) Other wise you have to write BDC to update the EDI config.
Thanks. -
E1EDKT1 segment in Idoc INVOIC02
Hi,
Im getting the following error when sending an INVOIC02 Idoc to ECC:
"Error: Segment 'E1EDKT1', segmentnumber '000010' not correct in structure INVOIC02"
I already refreshed the IDoc metadata and I see the segment in the repository and IDX2. The connection to the backend works fine: when I remove this segment the Idoc is processed succesful. What could be causing this problem?Hi Iddo Rijsdijk,
It solved my issue as well. Thanks.
- Netrey -
i have to test the idoc in we19..and never worked before on idocs...
my idoc is invoic02 and FM is idoc_input_invoic_fi
Plz help//i m getting problem in data mapping1.goto we19
2.place the radio button on message type type invoic
3. execute
4 it asks for two idoc types
Which IDoc type?
select invoic02
and execute
now an empty idoc has to be populated from here..
to get the correct details for an idoc
goto we02
in logical message put invoic and execute ,
from the list select a 53 status idoc and try to construct with the same ..
regards,
Vijay. -
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 ? -
Best way to customize IDOC INVOIC02 (outbound)
Hello,
I want to customize the IDOC type INVOIC02 (outbound). Customize means:
- remove segments
- change some values
I tried different ways to achive this, but it does not work as needed. What I tried:
- IDOC extension: can not be used, because I can not remove segments
- IDOC view: not possible for INVOIC02 (see sapnote 185445)
- new IDOC type: I created a new IDOC type and copied all needed segments from INVOIC02. Now I want to use the existing function IDOC_OUTPUT_INVOIC, but it does not work. The IDOC gets status 26 (Syntax error, E1EDK17 does not exist). I do not want to rewrite the existing function. I think this would be the worst.
- new idea (not tried yet): use the existing INVOIC02 and change, remove segments in the user-exit.
Can someone help me and maybe give me hint?
Thanks, best regards
AndreasHi Sasidhar,
I am using EXIT_SAPLVEDF_002 now and it works like a charm. Thanks!
This is my coding right now (maybe it helps someone reading this):
*& Include ZXEDFU02 *
*separate by partner
CASE control_record_out-rcvprn.
* Special customer
WHEN '0000123456'.
* get segment
CASE int_edidd-segnam.
* delete segments
WHEN 'E1EDK17' OR
'E1EDK23' OR
'E1EDK28' OR
'E1EDK29' OR
'E1EDK14' OR
'E1EDP03' OR
'E1EDPA1' OR
'E1EDP28' OR
'E1EDP08' OR
'E1EDP30'.
DELETE TABLE int_edidd.
ENDCASE.
ENDCASE .
Regards,
Andreas
Maybe you are looking for
-
Oracle 11.1.0.6 to 11.1.0.7 on Solaris SPARC experience
Have anyone made this update yet ? Do you have any recommandation ? Should I apply Sun's patch cluster first ? Thanks.
-
Need to know hardware specifics for T410 2522-CP4
NewEgg is selling some reburbished T410s, but they are not able to give complete hardware specs. The list the item as T410 with part number 2522-CP4. What I'm looking to determine is: 1. What the exact processor number is. All I know is "Intel Cor
-
Photoshop CS5 Eating up my system
I'm sorry for using such a broad term but it's the first thing that popped in my head. I really can't figure out what went wrong... One day everything was fine now everything is just completely off the charts.. Naturally this is most likely a user (m
-
Cannot transfer information from imac to Macbook -- please help me! :-)
Hi. I recently got a MacBook and am trying to transfer information from my G3 imac to the MacBook. When I set up the MacBook, I used the Setup Assistant, hooked up the 2 computers with a firewire cable and selected to transfer information from my ima
-
Required help in Partner Determination BADI
Hi, I need to implement a BADI in Transaction CRMD_ORDER, When I Go to transaction CRMD_ORDER - > Business Transaction -> Create, enter a Partner No and press enter, it should fetch the corresponding Owner field for that Partner No, which is maintain