Está en la página 1de 83

I J C

IDOC Segment IDOC Field Field Description


Idoc IDOC Field Campo
Identificación del
Comprobante

E1EDK14 015 ORGID Tipo CFE

ZE1EDK01_UY XBLNR_FIRST
Serie del Comprobante

XBLNR_LAST
ZE1EDK01_UY Número de Comprobante
E1EDK02 009 DATUM
Fecha del Comprobante

E1EDK01 ZTERM Forma de Pago

Z1E1EDK01_UY-INV_DUE_DATE Fecha de vencimiento

E1EDK17 001 LKOND Claúsula de Venta

Modalidad de Venta

Vía de Transporte

Emisor
ZE1EDKA1_UY BK (Wrong) is ZJ1AIDN (wrong)
E1EDKA1 BK Z1E1EDKA1_UY ZSAPI14
RUT Emisor
E1EDKA1 BK NAME1
Name2
Nombre o Denominación
Emisor

ZE1EDKA1_UY BK EXTENSION1
Giro del negocio del Emisor

ZE1EDKA1_UY BK EXTENSION2
Código Casa Principal
/Sucursal

E1EDKA1 BK STRAS Domicilio Fiscal


E1EDKA1 BK ORT01 Ciudad
E1EDKA1 BK REGIO_DESC
Z1E1EDKA1_PE Departamento

Receptor
ZE1EDKA1_UY STCDT_DESC

Código Tipo Documento


Receptor

E1EDKA1 RE LAND1
Código País

ZE1EDKA1_UY STCD1
Nº Documento Receptor
Uruguayo

ZE1EDKA1_UY STCD1
Nº Documento Receptor
Uruguayo

E1EDKA1 RE NAME1
NAME2 Nombre o Denominación
NAME3 Receptor

E1EDKA1 RE STRAS Dirección Receptor


E1EDKA1 RE ORT01 Ciudad Receptor
E1EDKA1 RE REGIO
Dep/Prov/Estado Receptor
E1EDKA1 RE LAND1
País Receptor
E1EDKA1 RE PSTLZ
Código Postal
E1EDKA1 WE PARTN
E1EDKA1 WE STRAS
E1EDKA1 WE ORT01
E1EDKA1 WE REGIO
E1EDKA1 WE LAND1
E1EDKA1 WE PSTLZ

E1EDK02 001 BELNR N° Identificación Compra

Totales Encabezado
E1EDS01 012 WAERQ
Tipo moneda transacción

E1EDK01 WKURS
Tipo de Cambio

Total Monto - Exportación y


E1EDS01 005 ZE1EDS01_UY NETWR asimiladas

E1EDS01 005 ZE1EDS01_UY NETWR Total Monto - No gravado

E1EDS01 005 ZE1EDS01_UY NETWR Total Monto Neto - IVA Tasa


mínima

E1EDS01 005 ZE1EDS01_UY NETWR Total Monto Neto - IVA Tasa


básica

E1EDS01 005 ZE1EDS01_UY KBETR Tasa Mínima IVA

E1EDS01 005 ZE1EDS01_UY KBETR Tasa Básica IVA

E1EDS01 005 ZE1EDS01_UY KWERT Total IVA – Tasa Mínima

E1EDS01 005 ZE1EDS01_UY KWERT Total IVA – Tasa Básica

E1EDS01 011 SUMME Total Monto Total


E1EDS01 011 SUMME Monto total a pagar

E1EDK01 ZTERM
Código del Medio de Pago

ZTERM_TXT
E1EDK18 005 Glosa

Líneas

NroLinDet

E1EDP01 E1EDP19 010 IDTNR Tipo de código

ZTXCOND_UY KSCHL Indicador de facturación


E1EDP01 E1EDP19 006 IDTNR
E1EDP01 E1EDP19 002 IDTNR

Código del ítem

E1EDP01 E1EDPT1 0001 E1EDPT2 TDLINE Descripcion del sales text


Or
E1EDP01 E1EDP19 002 If TDLINE, is not available
KTEXT send KTEXT.

E1EDP01 E1EDP19 002 KTEXT Descripcion CMIR

E1EDP01 MENGE
Cantidad

E1EDP01 MENEE
Unidad de medida

E1EDP01 VPREI

Precio unitario

E1EDP01 NETWR

Monto Ítem

Hasta 40 lineas
NroLinRef

TpoDocRef

ZE1EDK01_UY REF_XBLNR_FIRST SerieRef

ZE1EDK01_UY REF_XBLNR_LAST NumeroRef

E1EDK02 002 BELNR OrdenVenta

E1EDKT1 E1EDKT2 TextoCabecera

Linea de Personalizado

E1EDP01 E1EDP19 010 IDTNR Batch

Z1E1EDP01_CL SLED Fecha vencimiento

E1EDPT1 ZCUS E1EDPT2 TDLINE TextoDetalle


E1EDP01 E1EDP19 001 IDTNR Customer Material Code

Billing quantity in stock


Z1E1EDP01_UY SKU_QTY keeping unit

Z1E1EDP01_UY SKU_UOM Base Unit of Measure


H K
Source Field Extraction Logic
Logic XML Path

<CFE> <eFact> <Encabezado> <IdDoc>


Or
Invoice If E1EDK14 015-ORGID = ZF21 or ZFR then value is 111. <CFE> <eFact_Exp> <Encabezado> <IdDoc>
Credit Note If E1EDK14 015-ORGID = ZCR then value is 112. Or
Debit Note If E1EDK14 015-ORGID = ZDR then value is 113. <CFE> <eTck> <Encabezado> <IdDoc>
Boleta o e-tickets If E1EDK14 015-ORGID = ZF25 then value is
211. Then 211 = 101. If Drop If E1EDK14 015-ORGID = ZF24 then value
Expo If E1EDK14 015-ORGID = ZF23 then value is 121. is 211. Then 211 = 101.
Credito Expo If E1EDK14 015-ORGID = ZCRE then value is 241. Credito Drop If E1EDK14 015-ORGID = ZCRD then
Then 241 = 242. Then 242 = 122. value is 212. Then 212 = 102.
Drop If E1EDK14 015-ORGID = ZF24 then value is 211. Then 211 Then change tag from
= 101. <ns0:eFact> Will be <ns0:eTck> open and close
Credito Drop If E1EDK14 015-ORGID = ZCRD then value is 212.
Then 212 = 102.
If E1EDK14 015-ORGID = ZF23 or ZCRE then
change tag to <ns0:eFact_Exp> open and close

First digit field VBRK-XBLNR


For example A. <CFE> <eFact> <Encabezado> <IdDoc>

Last digit the field VBRK-XBLNR


<CFE> <eFact> <Encabezado> <IdDoc>

DD-MM-YYYY <CFE> <eFact> <Encabezado> <IdDoc>

If VBRK-ZTERM = o001 then this fiels is = 1 else 2. <CFE> <eFact> <Encabezado> <IdDoc>

YYYYMMDD <CFE> <eFact> <Encabezado> <IdDoc>

If E1EDK14 015-ORGID = ZF23 or ZCRE, add this tag, else not add <CFE> <eFact_Exp> <Encabezado> <IdDoc>

If E1EDK14 015-ORGID = ZF23 or ZCRE, add this tag, else not add
<CFE> <eFact_Exp> <Encabezado> <IdDoc>
Send number 1

If E1EDK14 015-ORGID = ZF23 or ZCRE, add this tag, else not add
<CFE> <eFact_Exp> <Encabezado> <IdDoc>
Send 1 or 2 or 3 or 9.

Find T001Z When BUKRS = Company Code and Party = SAPI14,


display PAVAL.
Maintain J1AIDN value in a constante table. <CFE> <eFact> <Encabezado> <Emisor>
Find V_T001 When BUKRS = Company Code display
ADDR1_DATA-NAME1 and ADDR1_DATA-NAME2

WM will concatenate NAME 1 and NAME2 <CFE> <eFact> <Encabezado> <Emisor>

Find V_T001 When BUKRS = Company Code display


ADDR1_DATA-EXTENSION1 (Data line)
<CFE> <eFact> <Encabezado> <Emisor>

Find V_T001 When BUKRS = Company Code display


ADDR1_DATA-EXTENSION2 <CFE> <eFact> <Encabezado> <Emisor>

<CFE> <eFact> <Encabezado> <Emisor>


<CFE> <eFact> <Encabezado> <Emisor>

<CFE> <eFact> <Encabezado> <Emisor>

ZE1EDKA1_UY STCDT_DESC = RUT then value is 2


ZE1EDKA1_UY STCDT_DESC = RUC then value is 2
ZE1EDKA1_UY STCDT_DESC = CI then value is 3.
Else 4 <CFE> <eFact> <Encabezado> <Receptor>

From Bill-To Adress


<CFE> <eFact> <Encabezado> <Receptor>

If ZE1EDKA1_UY STCDT_DESC = RUT or RUC or CI Display


ZE1EDKA1_UY STCD1,else don’t send this tag
<CFE> <eFact> <Encabezado> <Receptor>

If ZE1EDKA1_UY STCDT_DESC <> RUT or RUC or CI Display


ZE1EDKA1_UY STCD1,else don’t send this tag
<CFE> <eTck> <Encabezado> <Receptor>

WM Will concatenate NAME1 2 3


<CFE> <eFact> <Encabezado> <Receptor>

<CFE> <eFact> <Encabezado> <Receptor>


From Bill-To Adress <CFE> <eFact> <Encabezado> <Receptor>
From Bill-To Adress

From Bill-To Adress

From Bill-To Adress


<CFE> <eFact> <Encabezado> <Receptor>
From Ship To
WM concatenate the fields

<CFE> <eFact> <Encabezado> <Receptor>

From Bill-To Adress


Customer Purchase Order <CFE> <eFact> <Encabezado> <Receptor>

<CFE> <eFact> <Encabezado> <Totales>

Format <CFE> <eFact> <Encabezado> <Totales>


XXXX.XXX

If E1EDK14 015-ORGID = ZF23 or ZCRE, add this tag, else not add <CFE> <eFact_Exp> <Encabezado> <Totales>

If ZE1EDS01_UY KBETR = 0 and (E1EDK14 015-ORGID <> ZF23


or ZCRE) display ZE1EDS01_UY NETWR <CFE> <eFact> <Encabezado> <Totales>

If ZE1EDS01_UY KBETR = 10.00 and (E1EDK14 015-ORGID <> <CFE> <eFact> <Encabezado> <Totales>
ZF23 or ZCRE) display ZE1EDS01_UY NETWR

If ZE1EDS01_UY KBETR = 22.00 and (E1EDK14 015-ORGID <> <CFE> <eFact> <Encabezado> <Totales>
ZF23 or ZCRE) display ZE1EDS01_UY NETWR

If ZE1EDS01_UY KBETR = 10.00 display E1EDS01 005


ZE1EDS01_UY KBETR, else Blank <CFE> <eFact> <Encabezado> <Totales>

If ZE1EDS01_UY KBETR = 22.00 display E1EDS01 005 <CFE> <eFact> <Encabezado> <Totales>
ZE1EDS01_UY KBETR, else Blank

If ZE1EDS01_UY KBETR = 10.00 display ZE1EDS01_UY KWERT <CFE> <eFact> <Encabezado> <Totales>

If ZE1EDS01_UY KBETR = 22.00 display ZE1EDS01_UY KWERT <CFE> <eFact> <Encabezado> <Totales>

<CFE> <eFact> <Encabezado> <Totales>


<CFE> <eFact> <Encabezado> <Totales>

<CFE> <eFact> <Encabezado> <Totales>

<CFE> <eFact> <Encabezado> <Totales>

Count of the detail line that we are sending. For example if the
invoice have five detail lines this field is = 5. If the invoice have
15 detail lines this field is = 15.
Número de líneas de detalle: <CFE> <eFact> <Encabezado> <Totales>
- e-Ticket y sus NC/ND: Hasta 700
- Otros CFE: Hasta 200

It is the Sequence number of Line itme

If E1EDP01 PSTYV = ZKIC, suppress in the XML (don’t send this


lines). <CFE> <eFact> <Detalle> <Item>

Fix value INT

If E1EDK14 015-ORGID = ZF23 or ZCRE then display 10.


Or
E1EDP01 PSTYV = TANN then display 5.
Or
For BUNDLE 1st item (SEQ_NUMBER= 000001) and all non
BUNDLE invoices:
If ZTXCOND_UY KBETR = 0% then display 1.
If ZTXCOND_UY KBETR = 10.00% then display 2. <CFE> <eFact> <Detalle> <Item>
If ZTXCOND_UY KBETR = 22.00% then display 3.

For BUNDLE all other Items:


If Z1E1EDP01_UY REGULAR_BUNDLE = YES, and E1EDP01
Z1E1EDP01_UY SEQ_NUMBER not equal 000001 then display 5

If above rule does not work, then set 4


CFN
UPN
WM Will concatenate
<CFE> <eFact> <Detalle> <Item>

Long must be not longer than (x80)

<CFE> <eFact> <Detalle> <Item>

<CFE> <eFact> <Detalle> <Item>

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display


Z1E1EDP01_CL HEADER_QTY
<CFE> <eFact> <Detalle> <Item>

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display


Z1E1EDP01_CL HEADER_UOM
<CFE> <eFact> <Detalle> <Item>

Condition for Bundle need to be calculated from first line


E1EDP01, qty will be always => 1.

If BUNDLE = NO then E1EDP01 VPREI

If Z1E1EDP01_UY REGULAR_BUNDLE = YES, and E1EDP01


Z1E1EDP01_UY SEQ_NUMBER = 000001 then display E1EDP01
VPREI else 0.
<CFE> <eFact> <Detalle> <Item>
If Z1E1EDP01_UY SPECIAL_BUNDLE = YES, then display
Z1E1EDP01 HEADER_PRICE.

Condition for Bundle need to be calculated from first line


E1EDP01, qty will be always => 1.

If BUNDLE = NO then E1EDP01 NETWR

If Z1E1EDP01_PE REGULAR_BUNDLE = YES, and E1EDP01


Z1E1EDP01_PE SEQ_NUMBER = 000001, display E1EDP01 <CFE> <eFact> <Detalle> <Item>
NETWR else = 0
CFE/eFact/Referencia/Referencia
WM number of the ref line we are sending should be 1.
WM need to apply the logic
Credit Note If E1EDK14 015-ORGID = ZCR, then = 111 (factura
electronica)

Debit Note If E1EDK14 015-ORGID = ZDR, then = 112 (Nota de CFE/eFact/Referencia/Referencia


credito)

if VBRK-VBTYP = O or P ( Credit Memo or Debit Memo ).


REF_XBLNR = GET XBLNR from Invoice (VBFA and VBRK )

if VBRK-VBTYP = M ( Invoice or Boleta). REF_XBLNR = GET XBLNR


from Delivery (VBFA and LIKP)

CFE/eFact/Referencia/Referencia

if VBRK-VBTYP = O or P ( Credit Memo or Debit Memo ).


REF_XBLNR = GET XBLNR from Invoice (VBFA and VBRK )

if VBRK-VBTYP = M ( Invoice or Boleta). REF_XBLNR = GET XBLNR


from Delivery (VBFA and LIKP)

CFE/eFact/Referencia/Referencia

<adenda>

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display


Z1E1EDP01_CL HEADER_CUST_MSG
<adenda>

Number of the line that we are making reference from the detail <Personalizados><ImpresionDetalle><PersonNroL
inDet>

<Personalizados><ImpresionDetalle><DetPerson
AFN_01>

DD-MM-YYYY <Personalizados><ImpresionDetalle><DetPerson
AFN_02>

<Personalizados><ImpresionDetalle><DetPerson
AFN_03>
<Personalizados><ImpresionDetalle><DetPerson
AFN_04>

<Personalizados><ImpresionDetalle><DetPerson
Cantidad de venta AFN_05>
VBRP-FKLMG

<Personalizados><ImpresionDetalle><DetPerson
AFN_06>
VBRP-MEINS
L
Example TR1
XML Field 4110028945

IdDoc

TipoCFE 112

Serie 113A

Nro 8

FchEmis 14-05-2018

FmaPago 2

FchVenc

ClauVenta

ModVenta

ViaTransp

Emisor

RUCEmisor 215437870015
RznSoc Covidien Uruguay S.A.</

GiroEmis

CdgDGISucur 4

DomFiscal Cebollati 1474 301


Ciudad Montevideo

Departamente Uruguay

Receptor

TipoDocRecep
2

CodPaisRecep UY

DocRecep
SAP

DocRecepExt

RznSocRecep HOSPITAL BRITANICO

DirRecep AV.ITALIA 2402


CiudadRecep MONTEVIDEO

DeptoRecep

PaisRecep

CP 11600
LugarDestEnt 0001634148 AV.ITALIA 2402 MONTEVIDEO UY 11600

CompraID 45

Totales

TpoMoneda UYU

TpoCambio 1.000

MntExpoyAsim

MntNoGrv Blank

MntNetoIvaTasaMin Blank

WM

MntNetoIvaTasaBasica Blank

IVATasaMin Blank

IVATasaBasica 22

MntIVATasaMin Blank

MntIVATasaBasica Blank

MntTotal 34641.90
MntPagar 34641.90

CodMP N019

GlosaMP 90 días fecha factura

CantLinDet 1

Item

NroLinDet 1

TpoCod INT

IndFact 3
Cod FT900 10884521128729

FT900 FORCE TRIAD MOUNTING CART X1


NomItem

DscItem FT900 FORCE TRIAD MOUNTING CART X1

Cantidad 1.000

UniMed EA

PrecioUnitario

28395

MontoItem

28395
Referencia
Referencia
NroLinRef

TpoDocRef

Serie

NroCFERef

OrdenVenta 0071161533

TextoCabecera 41100306902019

C000272729
CUST MAT 07898429110607
M N C
IDOC Segment IDOC Field Field Description
Idoc IDOC Field
Description

C – Identificación del Documento (CPE)


TipoEmision

TBD (Header level Z segment) Tipo

ZE1EDK01_PE XBLNR_FIRST Serie

ZE1EDK01_PE XBLNR_LAST Numero

E1EDK02 017 BELNR NumeroInterno

E1EDK02 009 DATUM FechaEmis

E1EDK01 ZTERM FormaPago


E1EDK18 005 ZTERM_TXT
Z1E1EDK01_PE INV_DUE_DATE FechaVenc

D – Identificación del Emisor del Documento Tributario Electrónico (CPE)


ZE1EDKA1_PE ZPE_TID IDEmisor

E1EDKA1 BK NAME1 NmbEmisor


Name2
E1EDKA1 BK STRAS Calle

E1EDKA1 BK REGIO_DESC Ciudad


Z1E1EDKA1_PE
E1EDKA1 BK LAND1 Pais

E1EDKA1 BK PSTLZ CodigoPostal


GLN

ZE1EDKA1_PE BK EMAIL eMail

E1EDKA1 BK TELF1 Telefono

E – Identificación del Receptor del Documento Tributario Electrónico (CPE)

ZE1EDKA1_PE RE STCDT_DESC TipoDocRecep

ZE1EDKA1_PE RE STCD1 NroDocRecep

E1EDKA1 RE NAME1 NmbRecep


NAME2
NAME3

E1EDKA1 RE PARTN

ZE1EDKA1_PE RE EMAIL Contacto

E1EDKA1 RE STRAS Calle

E1EDKA1 RE ORT01 Ciudad

E1EDKA1 RE REGIO Municipio

E1EDKA1 RE LAND1 País

E1EDKA1 RE PSTLZ CodigoPostal


LugarRecep
E1EDKA1 WE STRAS Calle

E1EDKA1 WE PARTN NroInterior


E1EDKA1 WE ORT01 Ciudad

E1EDKA1 WE REGIO Municipio

E1EDKA1 WE LAND1 País

E1EDKA1 WE PSTLZ CodigoPostal

ContactoReceptor
ZE1EDKA1_PE WE EMAIL eMail

G – Montos Totales del CPE


E1EDS01 012 WAERQ Moneda

E1EDK01 WKURS FctConv

E1EDS01 010 SUMME MntBase

E1EDS01 005 SUMME MntImp

E1EDS01 011 SUMME VlrPagar

SUMME_WORDS VlrPalabras

E1EDS01 005 Z1E1EDS01_PE KBETR <Tipo>

E1EDS01 KSCHL <TipoRet>


E1EDS01 KBETR <TasaRet>

<MontoBaseRet>

E1EDS01 KWETR <MontoRet>

E1EDS01 010 SUMME <MontoConcepto>

Tipo

E1EDP01 NETWR MontoConcepto

H – Impuestos Globales Aplicables al CPE


Z1TXCOND_PE KSCHL TipoImp

Z1TXCOND_PE KBETR TasaImp

E1EDS01 005 SUMME MontoImp

Retenciones

TipoRet
TasaRet

MontoBaseRet

MontoRet>

M– Detalles de los Productos y Servicios del CPE


NroLinDet

TpoCodigo

E1EDP01 E1EDP19 006 IDTNR VlrCodigo


E1EDP01 E1EDP19 002 IDTNR

E1EDP01 E1EDPT1 0001 TDLINE Descripcion del sales text


E1EDPT2 Descripcion CMIR
E1EDP01 E1EDP19 002 KTEXT

E1EDP01 MENGE QtyItem

E1EDP01 MENEE UnmdItem


E1EDP01 VPREI PrcBrutoItem
Precio Unitario

PrcNetoItem
Precio Unitario con IGV (IVA)

ZTXCOND_PE KSCHL TipoImp

Z1TXCOND_PE KSCHL CodTasaImp

ZTXCOND_PE KBETR TasaImp


E1EDP05 + BETRG MontBaseImp

E1EDP04 PD MWSBT MontoImp

E1EDP01 NETWR MontoTotalItem

Tipo

E1EDP01 NETWR MontoConcepto

O – Referencia o Información Adicionales del CPE

NroLinRef

TBD REF level Z segment) TpoDocRef


ZE1EDK01_PE REF_XBLNR_FIRST SerieRef

ZE1EDK01_PE REF_XBLNR_LAST NumeroRef

CodRef

RazonRef

E1EDK02 002 BELNR OrdenVenta

E1EDK02 001 BELNR Orden Compra

E1EDKT1 E1EDKT2 TextoCabecera

Linea de Personalizado

E1EDP01 E1EDP19 010 IDTNR Batch

Z1E1EDP01_CL SLED Fecha vencimiento


E1EDPT1 ZCUS E1EDPT2 TDLINE TextoDetalle

E1EDP01 E1EDP19 001 IDTNR Customer Material Code

Z1E1EDK01_PE-USER User

Z1E1EDK01_PE-PRINTER User Printer


L
Source Field Extraction Logic
Logic

umento (CPE)
Mandatorio para UBL 2.1
Código de tipo de operación - Catálogo No. 51
WM: Add value XXXX
Invoice If E1EDK14 015-ORGID = ZF21 or ZCCL then value is 0101 .
Credit Note If E1EDK14 015-ORGID = ZCR or ZCRE or ZCRB then value is 0101.
Debit Note If E1EDK14 015-ORGID = ZDR or ZDRB then value is 0101.
Boleta If E1EDK14 015-ORGID = ZF25 then value is 0101.

any other condition send blank

Invoice If E1EDK14 015-ORGID = ZF21 or ZF23 or ZFR or ZCCL then value is 01.
Invoice No afecta If E1EDK14 015-ORGID = ZF22 then value is XX
Credit Note If E1EDK14 015-ORGID = ZCR or ZCRE or ZCRB then value is 07.
Debit Note If E1EDK14 015-ORGID = ZDR or ZDRB then value is 08.
Boleta If E1EDK14 015-ORGID = ZF25 then value is 03.
WM will apply the logic

XBLNR_FIRST = from character five until eight

XBLNR_LAST = from character ten until the end.

WM will concatente both ZTERM and ZTERM and ZTERM_TXT

WM: straight forward from the source field.


Must be in spanish format like DD-MM-YEAR

sor del Documento Tributario Electrónico (CPE)


Find T001Z When BUKRS = Company Code and Party = PE_TID, display PAVAL.
Maintain PE_TID value in a constante table

Find V_T001 When BUKRS = Company Code display ADDR1_DATA-NAME1 and


ADDR1_DATA-NAME2

WM will concatenate NAME 1 and NAME2


Region Description

WM: Código de Ubicación Global, Add a fix value = 150131

If E1EDKA1 BK is presented in the Idoc we need to add this field too.

Find V_T001 When BUKRS = Company Code display SMTP_ADDR

ptor del Documento Tributario Electrónico (CPE)

ZE1EDKA1_UY STCDT_DESC = RUT then value is 6


ZE1EDKA1_UY STCDT_DESC = RUC then value is 6
ZE1EDKA1_UY STCDT_DESC = CI then value is 1.
ZE1EDKA1_UY STCDT_DESC = D.N.I. then value is 1
ZE1EDKA1_UY STCDT_DESC = Passport then value is 7
Else 4

From Bill-To Adress find KNA1-STCD1

WM Will concatenate NAME1 2 3


leave space in the middle when concatenate.

eMail Customer.
From Bill-To Adress find KNA1 SZA1_D0100-SMTP_ADDR

From Bill-To Adress

From Bill-To Adress

From Bill-To Adress


From Bill-To Adress
From Ship-To Adress SZA1_D0100-SMTP_ADDR

Display VBRK-KURRF
Only If Billing Type E1EDK14 015 – ORGID = ZCCL then pull data from here.

Ricef:
Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto
Neto base amount.
At header level
Find the condition type KOMV-KOAID = D (taxes), and from this condition
type pull the KOMV-KAWRT (Condition base value)

Ricef:
Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto Neto
base amount.
At header level
Find the condition type KOMV-KOAID = D, and from this condition type pull the
KOMV-KAWRT (Condition base value) + KOMV-KWERT.

E1EDS01 011 SUMME in letter not numbers

if Z1TXCOND_PE KBETR = 18 then = 1001

IF Z064 THEN 62
KBETR/100

Sames as <VlrPagar>

Only If Billing Type E1EDK14 015 – ORGID = ZCCL then pull data from here.

WM: map straight forward from new field E1EDS01 005 Z1E1EDS01_PE KAWRT.

WM: If any detail line in the Idoc have E1EDP01 PSTYV = TANN then add this tag. Then
add value of 1004

WM: If any detail line in the Idoc have E1EDP01 PSTYV = TANN then add this tag.
WM: Sum E1EDP01 NETWR for all the detail line with E1EDP01 PSTYV = TANN

plicables al CPE
if ZTXCOND_PE KBETR = 18 then = 1000
else = 9999.
tos y Servicios del CPE
It is the Sequence number of Line itme.

If E1EDP01 PSTYV = ZKIC or YROC or ZBN1, suppress in the XML (don’t send this lines).

Tipo de Codificación
Código producto de SUNAT
catálogo N° 25 del Anexo V de la Resolución de Superintendencia N° 340-2017/SUNAT
y modificatorias.

WM: Add fix value = 42291500 From constant table.

CFN
UPN
WM Will concatenate CFN (Customer Number), CFN Medtronic and IDTNR, leaving
space in the middle between both field

If E1EDP01 E1EDPT1 0001 E1EDPT2 TDLINE = Blank send E1EDP01 E1EDP19 002
KTEXT

Long must be no longer than (x250)

Not special character allow. (see list)

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display Z1E1EDP01_CL HEADER_QTY

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display Z1E1EDP01_CL HEADER_UOM


If Z1E1EDP01_PE REGULAR_BUNDLE = YES, we need to supress all the components
line and dont send in the XML.

Only If Billing Type E1EDK14 015 – ORGID = ZCCL then pull data from here.

Add a new custom segment


Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the
Monto Neto base amount.
At item level
Find the condition type KOMV-KOAID = B (Price), and from this
condition type pull the KOMV-KAWRT (Condition base value)
WM: If E1EDP01 PSTYV = TANN then = 0 (Display Zero)

What we need here is the unit price plus VAT. Since we don’t have this value in the
Idoc:

E1EDP01 VPREI x 1.Z1TXCOND_PE KBETR = display this value.


Example 2200 (E1EDP01 VPREI) x 1.18 (Z1TXCOND_PE KBETR) = 2596.00
Use this field PSTYV to identify if we are talking about component bundle if it beging
with ZB is a component bundle and we supress.

If Z1E1EDP01_PE REGULAR_BUNDLE = YES, we need to supress all the components


line and dont send in the XML.

Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto
Neto base amount.
At item level
Find the condition type KOMV-KOAID = B (Price), and from this condition type
pull the KOMV-KAWRT (Condition base value) + KOMV-KWERT.

WM: If E1EDP01 PSTYV = TANN then = 0 (Display Zero)

if ZTXCOND_PE KBETR = 18 then = 1000


else = 9999.
Del catalogo 05

Only WM: if ZTXCOND_PE KBETR = 18 and E1EDP01 PSTYV = ZCC1 or ZCC2 then = 13,
then if, ZTXCOND_PE KBETR = 18 and E1EDP01 PSTYV<> ZCC1 or ZCC2 then = 10, then
if ZTXCOND_PE KBETR = 18 and E1EDP01 PSTYV = TANN then = 31,
else = 9999.

Del catalogo 07
Asign first one available

Only If Billing Type E1EDK14 015 – ORGID = ZCCL then pull data from here.

Ricef:
Find the condition type KOMV-KOAID = B (Price), and from this condition type
pull the KOMV-KAWRT (Condition base value)
WM: map straight forward from new field. E1EDP01 Z1TXCOND_PE KAWRT.

WM: If E1EDP01 PSTYV = TANN then = 0 (Display Zero)

E1EDP04 PD MWSBT Or E1EDP04 PF MWSBT


If Z1E1EDP01_PE REGULAR_BUNDLE = YES, this field will be empty, so we need to SUM
those fields (E1EDP04 PD MWSBT) from the components of the bundle.
Use this field PSTYV to identify if we are talking about component bundle if it begging
with ZB is a component bundle.

if UEPOS = POSEX, means a relation between components and header

Only If Billing Type E1EDK14 015 – ORGID = ZCCL then pull data from here.

Find the condition type KOMV-KOAID = B (Price), and from this condition type pull
the KOMV-KAWRT (Condition base value) + KOMV-KWERT.
WM: If E1EDP01 PSTYV = TANN then = 0 (Display Zero)

WM: If E1EDP01 PSTYV = TANN then add this tag


WM: display fix value NOO

WM: If E1EDP01 PSTYV = TANN then add this tag

ción Adicionales del CPE

WM:
Invoice If E1EDK14 015-ORGID = ZF21 or ZF23 or ZFR or ZF25 or ZCCL then value is
09.
Credit Note If E1EDK14 015-ORGID = ZCR or ZCRE or ZCRB then value is 01.
Debit Note If E1EDK14 015-ORGID = ZDR or ZDRB then value is 01.
if VBRK-VBTYP = O or P ( Credit Memo or Debit Memo ). REF_XBLNR = GET XBLNR from
Invoice (VBFA and VBRK )

if VBRK-VBTYP = M ( Invoice or Boleta). REF_XBLNR = GET XBLNR from Delivery (VBFA


and LIKP)

LIKP
REF_XBLNR_FIRST = first digit + Fifth + sixth + seventh.
VBFA
XBLNR_FIRST = from character five until eight

if VBRK-VBTYP = O or P ( Credit Memo or Debit Memo ). REF_XBLNR = GET XBLNR from


Invoice (VBFA and VBRK )

if VBRK-VBTYP = M ( Invoice or Boleta). REF_XBLNR = GET XBLNR from Delivery (VBFA


and LIKP)

LIKP
REF_XBLNR_LAST = from Nine until the end.
VBFA
XBLNR_LAST = from character ten until the end.

Credit Note If E1EDK14 015-ORGID = ZCR or ZCRE or ZCRB then = 09


Debit Note If E1EDK14 015-ORGID = ZDR or ZDRB then = 02

Credit Note If E1EDK14 015-ORGID = ZCR or ZCRE or ZCRB then = Disminucion en el


valor
Debit Note If E1EDK14 015-ORGID = ZDR or ZDRB then = Aumento en el valor

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display Z1E1EDP01_CL


HEADER_CUST_MSG
Find User that create the invoice.
Printer associated with Printer Profile of Invoice created user who performed the
Pick<Pack function and retrieved from the table V_LEDRUCKPROF1).
Example TR1

XML PATH and Field

<Encabezado><IdDoc>TipoEmision

<Encabezado><IdDoc>Tipo

New change new billing type ZCCL

<Encabezado><IdDoc>Serie

<Encabezado><IdDoc>Numero

<Encabezado><IdDoc>NumeroInterno

<Encabezado><IdDoc>FechaEmis

<Encabezado><IdDoc>FormaPago
N01990 DIAS FEC

<Encabezado><IdDoc>FechaVenc

<Encabezado><Emisor>IDEmisor

<Encabezado><Emisor>NmbEmisor
<Encabezado><Emisor>Calle

<Encabezado><Emisor>Ciudad

<Encabezado><Emisor>Pais

<Encabezado><Emisor>CodigoPostal
<Encabezado><Emisor><DomFiscal><GLN

<Encabezado><Emisor>eMail

<Encabezado><Emisor>Telefono

<Encabezado><Receptor>TipoDocRecep

<Encabezado><Receptor>NroDocRecep

<Encabezado><Receptor>NmbRecep

<Encabezado><Receptor>NombreRecep

<Encabezado><Receptor>Contacto

<Encabezado><Receptor>Calle

<Encabezado><Receptor>Ciudad

<Encabezado><Receptor>Municipio

<Encabezado><Receptor>País

<Encabezado><Receptor>CodigoPostal

<Encabezado><Receptor>Calle
AV. EDGARDO RE
<Encabezado><Receptor>NroInterior
<Encabezado><Receptor>Ciudad

<Encabezado><Receptor>Municipio

<Encabezado><Receptor>País

<Encabezado><Receptor>CodigoPostal

<Encabezado><Receptor>eMail

<Encabezado><Totales>Moneda
PEN
<Encabezado><Totales>FctConv
1.00000

<Encabezado><Totales>

Run an example

<Encabezado><Totales>MntImp
198.00
<Encabezado><Totales>VlrPagar

1298

<Encabezado><Totales>VlrPalabras
VEINTISIETE MIL SEISCIENTOS CIN

<Encabezado><Totales><TotSubMonto>Tipo

Ok

<Encabezado><Retenciones><TipoRet>
<Encabezado><Retenciones><TasaRet>

<Encabezado><Retenciones><MontoBaseRet>

<Encabezado><Retenciones><MontoRet>

<Encabezado><Totales><TotSubMonto>Monto
Concepto

1100

<Encabezado><Totales><TotSubMonto>Tipo

<Encabezado><Totales><TotSubMonto>Monto
Concepto

<Encabezado><Impuestos>TipoImp

<Encabezado><Impuestos>TasaImp

<Encabezado><Impuestos>MontoImp

<Encabezado><Retenciones>

<Encabezado><Retenciones><TipoRet>
<Encabezado><Retenciones><TasaRet>

<Encabezado><Retenciones><MontoBaseRet>

<Encabezado><Retenciones><MontoRet>

<Detalle>NroLinDet

<Detalle><CdgItem><TpoCodigo

<Detalle>VlrCodigo

<Detalle>DscItem

<Detalle>QtyItem

<Detalle>UnmdItem
<Detalle>PrcBrutoItem

logic

<Detalle>PrcNetoItem

send logoc

<Detalle>TipoImp

1000

<Detalle>CodTasaImp

10 or 13 or 31

<Detalle>TasaImp
18
<Detalle>MontBaseImp

<Detalle>MontoImp

198.00

<Detalle>MontoTotalItem

<Detalle>Tipo

<Detalle>MontoConcepto

<Referencia>NroLinRef

<Referencia>TpoDocRef

Ok
<Referencia>SerieRef

<Referencia>NumeroRef

<Referencia>NumeroRef

<Referencia>NumeroRef

<Personalizados>
<OrdenVenta>

<Personalizados>
<OrdenCompra>

<Personalizados>
<TextoCabecera>

<Personalizados><ImpresionDetalle><PersonNr
oLinDet>

<Personalizados><ImpresionDetalle><DetPerso
nAFN_01>
<Personalizados><ImpresionDetalle><DetPerso
nAFN_02>
<Personalizados><ImpresionDetalle><DetPerso
nAFN_03>

<Personalizados><ImpresionDetalle><DetPerso
nAFN_04>

<Personalizados><ImpresionDetalle><DetPerso
nAFN_05>
<Personalizados><ImpresionDetalle><DetPerso
nAFN_06>
Bundle
ECR

RITM3681751

F001

1770

4110075218

11<10<2018

N01990 DIAS FECHA FACTURA

20502853750

Covidien Peru S.A


6

20131257750

AV. EDGARDO REBAGLIATI 490


PEN

23432.25

4217.81

27650.06

NTISIETE MIL SEISCIENTOS CINCUENTA CON 06<100 SOLES

1001

RITM3316675
RITM3316675

RITM3316675

RITM3316675

23432.25

4217.81

RITM3681751

RITM3681751

RITM3681751
RITM3681751

RITM3681751

RITM3681751
110169.49
I J C
IDOC Segment IDOC Field Field Description
Idoc IDOC Field Campo
Encabezado
AREA IDENTIFICACIÓN DEL
DOCUMENTO
E1EDK14 015 ORGID Tipo Documento Tributario
Electrónico

E1EDK02 087 BELNR Folio Documento

E1EDK02 009 DATUM Fecha de Emisión

ZE1EDK01_CL DISC_IND Indicador de No Rebaja

E1EDK01 ZTERM Forma de Pago

E1EDK01 ZTERM Medio de Pago


E1EDK18 005 ZTERM_TXT

Z1E1EDK01_CL-INV_DUE_DATE Fecha de vencimiento (pago)

AREA EMISOR
E1EDKA1 BK Z1E1EDKA1_CL ZSAPI14 Rut Emisor

E1EDKA1 BK NAME1 Nombre o Razón Social


Name2 Emisor

Z1E1EDKA1_CL EXTENSION1 Giro del negocio del Emisor

E1EDKA1 BK TELF1 Teléfono Emisor

Z1E1EDKA1_CL BK EMAIL Correo Emisor

E1EDKA1 BK STRAS Dirección Origen

E1EDKA1 BK ORT01 Comuna Origen

E1EDKA1 BK REGIO_DESC Ciudad Origen


Z1E1EDKA1_PE
AREA RECEPTOR

E1EDKA1 RE Z1E1EDKA1_CL STCD1 Rut Receptor

E1EDKA1 RE PARTN Código Interno del Receptor

E1EDKA1 RE NAME1 Nombre o Razón Social


NAME2 Receptor
NAME3

ZE1EDKA1_CL EXTENSION1 Giro del negocio del Receptor

Contacto receptor

Z1E1EDKA1_CL RE EMAIL Correo Contacto receptor

E1EDKA1 RE STRAS Dirección Receptor

E1EDKA1 RE ORT01 Comuna Receptor


E1EDKA1 RE REGIO_DESC Ciudad Receptor
Z1E1EDKA1_CL

E1EDKA1 WE STRAS Dirección Postal Receptor


E1EDKA1 WE ORT01
E1EDKA1 WE REGIO

AREA TRANSPORTE

E1EDKA1 WE STRAS Dirección Destino


E1EDKA1 WE ORT01

E1EDKA1 WE REGIO Ciudad Destino

Sub-Area
TRANSPORTE.ADUANA
Modalidad de Venta

E1EDK17 001 LKOND Cláusula de venta Exportación

Incoterms

E1EDS01 011 SUMME Total Cláusula de venta Exportación

Monto Total
Vía de Transporte

Shipping type

E1EDKT1 Z101 E1EDKT2 TDLINE Nombre o Identificación del Medio


de Transporte

Sales Text header, Invoice


Texts

E1EDK14 017 ORGID Puerto de Embarque

Unloading Point

Puerto Desembarque

Receiving point

new custom segment ricef will add


Total Bultos

new custom segment ricef will add


E1EDKA1 WE LAND1 Código País Receptor
AREA TOTALES
E1EDS01 012 WAERQ Tipo Moneda Transacción

E1EDS01 010 SUMME Monto neto

E1EDS01 012 SUMME Monto no afecto o exento

ZTXCOND_CL KBETR Tasa IVA

E1EDS01 005 SUMME IVA

E1EDS01 011 SUMME Monto Total

DETALLE DE PODUCTOS Y
SERVICIOS (Max. 25 Líneas)

TBD (Item level Z segment) N° de Línea o N° Secuencial

E1EDP01 E1EDP19 006 IDTNR Código del Ítem


E1EDP01 E1EDP19 002 IDTNR

E1EDP01 E1EDPT1 0001 TDLINE Descripcion del sales text


E1EDPT2 Descripcion CMIR
E1EDP01 E1EDP19 002 KTEXT
E1EDP01 MENGE Cantidad

E1EDP01 MENEE Unidad de Medida

E1EDP01 VPREI Precio Unitario del Ítem

E1EDP01 NETWR Monto Item (Valor por línea


de detalle)

INFORMACION DE
REFERENCIA (Max. 15 Líneas)

Linea 1

E1EDK14 015 ORGID Tipo de Documento de


Referencia
FOLIO- de referencia
E1EDK02 001 BELNR
E1EDK02 009 DATUM FECHA de la Referencia

Linea 2

E1EDK14 015 ORGID Tipo de Documento de


Referencia

ZE1EDK01_CL REF_DOC FOLIO- de referencia


ZE1EDK01_CL REF_RUT RUT Otro contribuyente

ZE1EDK01_CL REF_DOC_DATE FECHA de la Referencia

DD-MM-YYYY

E1EDK14 015 ORGID Código de referencia


1 Anula
2 Modifica Monto
3 Modifica Texto

E1EDK02 002 BELNR OrdenVenta

E1EDK01 BELNR Internal Invoice Number

E1EDKT1 E1EDKT2 TDLINE TextoCabecera


Linea de Personalizado

E1EDP01 E1EDP19 010 IDTNR Batch

Z1E1EDP01_CL SLED Fecha vencimiento

E1EDPT1 ZCUS E1EDPT2 TDLINE TextoDetalle

E1EDP01 E1EDP19 001 IDTNR Customer Material Code

Z1E1EDK01_CL-USER User

Z1E1EDK01_CL-PRINTER User Printer


H
Source Field Extraction Logic
Logic

Invoice If E1EDK14 015-ORGID = ZF21 or ZFR or IV then value is 33.


Invoice No afecta If E1EDK14 015-ORGID = ZF22 then value is 34.
Credit Note If E1EDK14 015-ORGID = ZCR or IG then value is 61.
Debit Note If E1EDK14 015-ORGID = ZDR then value is 56.
Boleta If E1EDK14 015-ORGID = ZF25 then value is 46. Then from 46 to 39.
Export If E1EDK14 015-ORGID = ZF23 then value is 110.
Export Credito If E1EDK14 015-ORGID = ZCRE then value is 112.
WM: Invoice If E1EDK14 015-ORGID = ZCCL then value is 33.

DD-MM-YYYY

Credit Note If E1EDK14 015-ORGID = RE or G2 then find VBRK-VBELN, from this one find
Preceding Document in VBFA when VBFA-VBTYP_V = M, if VBRK-FKDAT have more than > 90
= yes, else Blank.

If E1EDK01 ZTERM = O001XX then 1 (Contado)


If E1EDK01 ZTERM = N032 then 3 (Entrega Gratuita), else 2 (Credito).
Add values in constant table.

WM will concatente both ZTERM and ZTERM and ZTERM_TXT

Fecha de vencimiento (YYYY-MM-DD)


Find T001Z When BUKRS = Company Code and Party = SAPI14 display PAVAL.
Maintain J1AIDN value in a constante table

Find V_T001 When BUKRS = Company Code display ADDR1_DATA-NAME1 and


ADDR1_DATA-NAME2

WM will concatenate NAME 1 and NAME2

Find V_T001 When BUKRS = Company Code display ADDR1_DATA-EXTENSION1

Find V_T001 When BUKRS = Company Code display SMTP_ADDR

Need the description not de code

From Bill-To Adress find KNA1-STCD1

WM Will concatenate NAME1 2 3


leave space in the middle when concatenate.

From Bill-To Adress SZA1_D0100-SMTP_ADDR

eMail Customer.
From Bill-To Adress find KNA1 SZA1_D0100-SMTP_ADDR
Need the description not de code

Add those fields only if Export If E1EDK14 015-ORGID = ZF23 (export invoice. New
scenario)
Or If Export Credito If E1EDK14 015-ORGID = ZCRE

WM: concatenate two field leave space in the middle.

WM: Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

WM: Add 1

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

Cross Reference

WM: do a cross reference:


CIF = 1
FCA = 10
CPT = 11
CIP = 12
DAT = 17
DAP = 18
CFR = 2
EXW = 3
FAS = 4
WM: Add those fields only if Export If E1EDK14 015-ORGID = ZF23
Or If Export Credito If E1EDK14 015-ORGID = ZCRE
Add those fields only if Export If E1EDK14 015-ORGID = ZF23
Or If Export Credito If E1EDK14 015-ORGID = ZCRE

Ricef: Add custom segment from sales order, From Sales order at header level
VBKD-VSART.
WM Cross Reference:
04 = 1
05 or Z2 = 4
02 = 5
03 = 6
01 or Z6 = 7

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

WM: KUWEV-ABLAD

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

Ricef: Add custom segment from sales order, VBKD-EMPST

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

Ricef: Add custom segment from DELIVERY, LIKP-ANZPK

Add those fields only if Export If E1EDK14 015-ORGID = ZF23


Or If Export Credito If E1EDK14 015-ORGID = ZCRE

WM Cross reference:
CO = 202
PA = 210
MX = 216
EC = 218
PE = 219
BR = 220
BO = 221
AR = 224
US = 225
IT = 504
BE = 514
NL = 515
Ricef:
Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto Neto base
amount.
At header level
Find the condition type KOMV-KOAID = D (taxes), and from this condition type pull the
KOMV-KAWRT (Condition base value)

If Billing Type E1EDK14 015 – ORGID = ZF22 then send E1EDS01 012 SUMME, else leave
Blank

Same logic as ZFOFIDD0226, display KBETR

E1EDS01 005 Z1E1EDS01_CL

Ricef:
Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto Neto base
amount.
At header level
Find the condition type KOMV-KOAID = D, and from this condition type pull the KOMV-
KAWRT (Condition base value) + KOMV-KWERT.

It is the Sequence number of Line itme.

Qty must be always => 1, else dont send.

If E1EDP01 PSTYV = ZKIC, suppress in the XML (don’t send this lines).

Concatenate values with space in the middle

If E1EDP01 E1EDPT1 0001 E1EDPT2 TDLINE = Blank send E1EDP01 E1EDP19 002 KTEXT

Concatenated all TDLINE available.

Long must be not longer than (x80).

Not special character allow. (see list)


If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display Z1E1EDP01_CL HEADER_QTY

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display Z1E1EDP01_CL HEADER_UOM

Add logic to adjust

Dont send anything when is a Kit component. PSTYV = ZKIC.

For Bundle componnet send Blank:


If UEPOS = POSEX, and REGULAR_BUNDLE = Yes, mean is a bundle component in this case
send Blank.
Boleta If E1EDK14 015-ORGID = ZF25 =E1EDP01 VPREI x 1. Z1TXCOND_CL KBETR = display
this value. Example 620000 (E1EDP01 VPREI) x 1.19 (Z1TXCOND_CL KBETR) = 737800

Add a new custom segment


Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto
Neto base amount.
At item level
Find the condition type KOMV-KOAID = B (Price), and from this condition type pull
the KOMV-KAWRT (Condition base value)

Dont send anything when is a Kit component. PSTYV = ZKIC.

For Bundle componnet send Blank:


If UEPOS = POSEX, and REGULAR_BUNDLE = Yes, mean is a bundle component in this case
send Blank.

Boleta If E1EDK14 015-ORGID = ZF25 =E1EDP01 NETWR x 1. Z1TXCOND_CL KBETR = display


this value. Example 620000 (E1EDP01 NETWR) x 1.19 (Z1TXCOND_CL KBETR) = 737800

Only If Billing Type E1EDK14 015 – ORGID = ZCCL, we need to finde the Monto
Neto base amount.
At item level
Find the condition type KOMV-KOAID = B (Price), and from this condition type pull
the KOMV-KAWRT (Condition base value) + KOMV-KWERT.

Number of reference line we are sending could be 1 or 2

value is 801
DD-MM-YYYY

Number of reference line we are sending could be 1 or 2

Credit Note If E1EDK14 015-ORGID = ZCR or IG


then display 33 (Factura).

Invoice If E1EDK14 015-ORGID = ZF21, ZFR, IV or WM add ZCCL then = 52 (guia de


despacho electronica)

Invoice No afecta If E1EDK14 015-ORGID = ZF22 then = 52 (guia de despacho electronica)

Debit Note If E1EDK14 015-ORGID = ZDR then = 33 (factura electronica)

Credit Note Expo If E1EDK14 015-ORGID = ZCRE then = 110 (factura electronica expo).

If VBRK-VBTYP = O or P ( Credit Memo or Debit Memo) and IF IHREZ_E <= 5 digitst hen
With VBRK-VBELN, search in VBFA-VBELN find VBFA-VBELV when VBFA-VBTYP_V = H.
With VBFA-VBELV find VBKD-IHREZ_E.
If IHREZ_E <> blank populate this value.

If Not
Keep existing logic that is:

If VBRK-VBTYP = O or P ( Credit Memo or Debit Memo) then


With VBRK-VBELN, search in VBFA-VBELN find VBFA-VBELV when VBFA-VBTYP_V = M.
With VBFA-VBELV find VBRK-XBLNR.
REF_DOC = VBRK-XBLNR (without zero at left).

if VBRK-VBTYP = M ( Invoice or Boleta) then


With VBRK-VBELN, search in VBFA-VBELN find VBFA-VBELV when VBFA-VBTYP_V = J.
With VBFA-VBELV find LIKP-XBLNR.
REF_DOC = LIKP-XBLNR (without zero at left).
Ricef:
if VBRK-VBTYP = O or P ( Credit Memo or Debit Memo ) and IHREZ_E <= 5 digits insert value
ZSM_INVOIC02_CL_RUT placed in TVARVC.

If IHREZ_E is empty or >5 digit this condition does not apply and the field should not be
informed.

If VBRK-VBTYP = O or P ( Credit Memo or Debit Memo) and IF IHREZ_E <= 5 digitst hen
then
With VBRK-VBELN, search in VBFA-VBELN find VBFA-VBELV when VBFA-VBTYP_V = H.
With VBFA-VBELV find VBKD-BSTDK_E.
If BSTDK_E <> blank populate this value.

If Not
Keep existing logic that is:
If VBRK-VBTYP = O or P ( Credit Memo or Debit Memo) then
With VBRK-VBELN, search in VBFA-VBELN find VBFA-VBELV when VBFA-VBTYP_V = M.
With VBFA-VBELV find VBRK-XBLNR.
REF_DOC = VBRK-XBLNR (without zero at left).

if VBRK-VBTYP = M ( Invoice or Boleta) then


With VBRK-VBELN, search in VBFA-VBELN find VBFA-VBELV when VBFA-VBTYP_V = J.
With VBFA-VBELV find LIKP-XBLNR.
REF_DOC = LIKP-XBLNR (without zero at left).

ue la

If Z1E1EDP01_CL SPECIAL_BUNDLE = YES, then display Z1E1EDP01_CL


HEADER_CUST_MSG.

Send E1EDKT1 E1EDKT2 TDLINE TDFORMAT = * and TDFORMAT = =


Number of the line that we are making reference from the detail

Find User that create the invoice.

Printer associated with Printer Profile of Invoice created user who performed the Pick/Pack
function and retrieved from the table (V_LEDRUCKPROF1).
K M

XML Path XML Field New

<IdDoc>
Example Invoice export in RR1 ZF23 4110066864
<Encabezado><IdDoc> <TipoDTE>
Or
Encabezado/SiiDte:IdDoc

33

<Encabezado><IdDoc> <Folio>

<Encabezado><IdDoc> <FchEmis>

<Encabezado><IdDoc> <IndNoRebaja>

<Encabezado><IdDoc> <FmaPago>

<Encabezado><IdDoc> <MedioPago>

<Encabezado><IdDoc> <FchVenc>

<Emisor>
<Encabezado><Emisor> <RUTEmisor>

<Encabezado><Emisor> <RznSoc>

<Encabezado><Emisor> <GiroEmis>

<Encabezado><Emisor> <Telefono>

<Encabezado><Emisor> <CorreoEmisor>

<Encabezado><Emisor> <DirOrigen>

<Encabezado><Emisor> <CmnaOrigen>

<Encabezado><Emisor> <CiudadOrigen>

<Receptor>

<Encabezado><Receptor> <RUTRecep>

<Encabezado><Receptor> <CdgIntRecep>

<Encabezado><Receptor> <RznSocRecep>

<Encabezado><Receptor> <GiroRecep>

<Encabezado><Receptor> <Contacto>

<Encabezado><Receptor> <CorreoRecep>

<Encabezado><Receptor> <DirRecep>

<Encabezado><Receptor> <CmnaRecep>
<Encabezado><Receptor> <CiudadRecep>

<Encabezado><Receptor> <DirPostal>

<Encabezado><Transporte> <DirDest>

<Encabezado><Transporte> <CiudadDest>

<CodModVenta>

<Encabezado><Transporte><Adu
ana>
<CodClauVenta>

<Encabezado><Transporte><Adu
ana>
<TotClauVenta>

<Encabezado><Transporte><Adu
ana>
<CodViaTransp>

<Encabezado><Transporte><Adu
ana>
<NombreTransp>

<Encabezado><Transporte><Adu
ana>
<CodPtoEmbarque>

<Encabezado><Transporte><Adu
ana>
<CodPtoDesemb>

<Encabezado><Transporte><Adu
ana>
<TotBultos>

<Encabezado><Transporte><Adu
ana>
<CodPaisRecep>

<Encabezado><Transporte><Adu
ana>
<Totales>
<Encabezado><Totales> <TpoMoneda>
CLP
<Encabezado><Totales> <MntNeto>

55.000 (1)

<Encabezado><Totales> <MntExe>

<Encabezado><Totales> <TasaIVA>
19

<Encabezado><Totales> <IVA>
551000

<Encabezado><Totales> <MntTotal>

55.000 + 10.450 = 65.450 (2)

<Detalle> <NroLinDet>

<Detalle> <VlrCodigo>
ETLW1610C156EE 00643169780484

<Detalle> <NmbItem>

STENT GRAFT ETLW1610C156EE ENDUR II LIMB


<Detalle> <QtyItem>

<Detalle> <UnmdItem>

EA

<Detalle> <PrcItem>

551000.0000-

<Detalle> <MontoItem>

551000.0000-

<Referencia> <NroLinRef>

<Referencia> <TpoDocRef>
801
<Referencia> <FolioRef>
muestra demo sample 2
<Referencia> <FchRef>

<Referencia> <NroLinRef>

<Referencia> <TpoDocRef>

ZCCL

<Referencia> <FolioRef>

If VBRK-VBTYP = O or P ( Credit Memo or


Debit Memo) then
With VBRK-VBELN, search in VBFA-VBELN
find VBFA-VBELV when VBFA-VBTYP_V = H.
With VBFA-VBELV find VBKD-IHREZ_E.
If IHREZ_E <> blank populate this value.
<Referencia> <RUTOtr>

New Tag in the XML

76.309.869-9

<Referencia> <FchRef>

BSTDK_E

<Referencia> <CodRef>

<Personalizados><ImpresionDeta
lle> OrdenVenta 6157403074

<Personalizados><ImpresionDeta OrdenCompra 4110035012


lle>

<Personalizados><ImpresionDeta
lle> TextoCabecera
<Personalizados><ImpresionDeta PersonNroLinDet
lle>

<Personalizados><ImpresionDeta DetPersonAFN_01
lle> V07805858

<Personalizados><ImpresionDeta DetPersonAFN_02
lle> 02-04-2020
<Personalizados><ImpresionDeta
lle> DetPersonAFN_03

<Personalizados><ImpresionDeta
lle> DetPersonAFN_04

<Personalizados><ImpresionDeta
lle> DetPersonAFN_05

<Personalizados><ImpresionDeta
lle>
DetPersonAFN_06
23 4110066864
ENDUR II LIMB

También podría gustarte