on 12-01-2014 5:37 PM
Bom tarde pessoa,
Estava analisando um problema que levantaram sobre uns campos que não estavam mais sendo carregados pela badi,
Analisando vi que após algumas notas aplicadas pela resolução 13, a forma como era carregada a vbfa antes do methodo fill_item, foi alterado.
Antes era apenas verificado se it_vbfa[] era vazio ou nao e carregava.
Agora vejo que antes desse processo, existe uma chamada de uma função:
'J_1BNF_FILL_ADDITIONAL_FIELDS'
O retorno dessa função é passado uma flag X para uma variável: lv_fill_add_fields = 'X'.
ai no ponto que carregava a vbfa, é verificado se essa variável esta carregada, para carregar a vbfa que será usada de parametro na fill_item.
** ITEM
IF lv_fill_add_fields IS NOT INITIAL. "1844621
* it_vbfa needs to be filled if PO number and item are not filled
* in Billing or if the old BAdIs are still active.
IF it_vbfa[] IS INITIAL. "1122294
PERFORM fill_vbfa tables lt_vbfa[] "1122294
wk_item[] "1122294
using lv_vbeln. "1122294
ELSE. "1710983
* if decoupling is switched off, gtab_vbap is empty "1710983
IF gtab_vbap[] IS INITIAL. "1710983
PERFORM fill_gtab_vbap "1710983
TABLES it_vbfa[] "1710983
wk_item[] "1710983
lt_vbfa[]. "1710983
ENDIF. "1710983
ENDIF. "1122294
ENDIF. "1844621
Porém nos processos aqui em nenhum momento entra na primeira função, pois a condição seria
IF wk_header-cnpj_bupla IS INITIAL. "1844621
CALL FUNCTION 'J_1BNF_FILL_ADDITIONAL_FIELDS' "1844621
O cnpj da filial sempre esta carregada!
Alguém teve o mesmo problema?
Existe alguma configuração para resolver isso, ou terei que carregar no methodo fill_item os valores da VBFA?
obrigado
Felipe MArtin
Bom dia Felipe,
Dê feedback ao SCN encerrando á thread caso já esteja tudo ok.
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.
Oi,
Por favor implemente a nota abaixo:
2054197 | Parameter IN_VBFA from CL_NFE_PRINT-> FILL_ITEM method is not filled after impl |
Isso irá resolver esse problema!
att,
Renan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.