Impuestos en la BAPI
Hola, te contesto acá la pregunta que dejaste en el otro post.
Te mando las declaraciones y como se llena la tabla de retenciones, si necesitas mas datos avisame por correo privado, ya que no siempre se ven los post.
DATA:
bapi_header LIKE bapi_incinv_create_header,
bapi_item LIKE bapi_incinv_create_item OCCURS 0 WITH HEADER LINE,
bapi_account LIKE bapi_incinv_create_account OCCURS 0 WITH HEADER LINE,
bapi_gl_account LIKE bapi_incinv_create_gl_account OCCURS 0 WITH HEADER LINE,
bapi_material LIKE bapi_incinv_create_material OCCURS 0 WITH HEADER LINE,
bapi_tax LIKE bapi_incinv_create_tax OCCURS 0 WITH HEADER LINE,
bapi_withtax LIKE bapi_incinv_create_withtax OCCURS 0 WITH HEADER LINE,
bapi_vendor LIKE bapi_incinv_create_vendorsplit OCCURS 0 WITH HEADER LINE,
bapi_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
SELECT *
FROM lfbw
WHERE lifnr EQ ekko-lifnr AND "Proveedor
bukrs EQ p_bukrs AND "Sociedad
wt_subjct EQ 'X'.
bapi_withtax-wi_tax_type = lfbw-witht.
bapi_withtax-wi_tax_code = lfbw-wt_withcd.
* Acá va el Importe Base para la Retención
bapi_withtax-wi_tax_base = '0'. "Yo lo quiero en 0 pero podes traer el valor
APPEND bapi_withtax.
ENDSELECT.
Saludos-
|