on 2015 Jun 03 3:49 PM
Ola a todos,
Temos um programa que faz o lançamento de CTe por meio da BAPI_INCOMINGINVOICE_CREATE1. Ao lançar um documento no sistema temos o seguinte resultado.
Na imagem destacada como "Erro" temos o resultado ao lançar pela BAPI sendo que o "Correto" foi Lançado de forma manual direto na MIRO.
Nosso problema esta em identificar uma maneira de modificar o tipo de operação de entrada realizada pela BAPI que por default é sempre como "Operação de entrada da Fatura", modificando para "Operação Custo Complementar".
O campo que modificamos na MIRO ao lançar manualmente que define este tipo de operação é o "XWARE_BNK".
Já li alguns tópicos sobre este problema, mas nenhum deles apontava uma solução para este caso.
Agradeço antecipadamente aos colaboradores de plantão.
Abraços.
Marco Aurélio
Request clarification before answering.
Marco,
Se você for na SE37, informar a BAPI_INCOMINGINVOICE_CREATE e clicar em "function module documentation", você verá, entre outras coisas, o seguinte texto explicativo:
This example shows the header data that you need to enter in the HeaderData table, the item data that you need to enter in the ItemData table, and the tax information that you need to enter in table TaxData to post an invoice containing planned delivery costs.
Purchase Order: 100 pc of material A @ 1.00 USD
Goods receipt: 100 pc of material A
For this purchase order, you receive an incoming invoice referencing PO no. 4500006986, PO item 10, for a quantity of 100 pc of material A and an amount of 136.00 USD incl. 16% VAT and 20.00 USD planned delivery costs. You enter the following data:
HeaderData table
ItemData table
Line 1: Posting the purchase order item
Line 2: Posting the planned delivery costs
TaxData table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Marco Aurélio,
Na BAPI da MIRO eu seto os seguintes campos:
CASE vorgang.
WHEN 1 OR 5.
wv_header-invoice_ind = 'X'. "Fatura
wt_item-de_cre_ind = ' '.
WHEN 2.
wv_header-invoice_ind = ' '. "Nota de crédito
wt_item-de_cre_ind = ' '.
WHEN 3.
wv_header-invoice_ind = 'X'. "Débito posterior
wt_item-de_cre_ind = 'X'.
WHEN 4.
wv_header-invoice_ind = ' '. "Crédito posterior
wt_item-de_cre_ind = 'X'.
ENDCASE.
Tente aí..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Obrigado a todos que tentaram me ajudar a resolver este problema.
Marco Aurélio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bom dia Marco Aurélio,
Não sei se trará solução ao seu problema específico, mas acredito que a BAPI localizada BAPI_J_1B_NF_CREATEFROMDATA dará melhor suporte à sua necessidade Brasil.
Atenciosamente, Fernando Da Rós
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 34 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.