on 04-07-2017 3:47 PM
Bom dia,
Quando faço a entrada através do GRC Inbound de um cenário onde há partição de lotes, a nota fiscal fica com o campo lote em branco e apenas uma linha com o valor total do material:
Quando faço o mesmo cenário através da MIRO, ele traz os todos lotes. Se são, por exemplo, 3 lotes, o SAP cria a nota com 3 linhas do mesmo material.
Alguém saberia se há alguma SAP note referente à esse assunto?
Oie,
Creio que essa pergunta já foi respondida no fórum da NFe do antigo SCN... https://archive.sap.com/discussions/thread/3792332
att,
Renan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oi Edson,
Pelo que vi no Include LJ1BIF01 no form READ_MARA é onde o programa mapeia o lote de acordo com a regra abaixo. Recomendaria realizar um debug neste ponto para identificar o porquê o campo não é mapeado:
*--- Batch number -----------------------------------------------------
*delIF NOT MARC-XCHPF IS INITIAL. "note 585529
*--> batch in lineitem maybe already filled "note 585529
*--> for NF items from MSEG "note 585529
* several batches in one line: do not fill charg 1653630
IF gv_collect_batch = ''. "1653630
IF NOT marc-xchpf IS INITIAL AND "note 585529
lineitem-charg IS INITIAL. "note 585529
READ TABLE st_mseg INTO ls_mseg "note 585529
WITH KEY mblnr = xlfbnr "note 585529
mjahr = xlfgja "note 585529
zeile = xlfpos. "note 585529
IF sy-subrc IS INITIAL. "note 585529
MOVE ls_mseg-charg TO lineitem-charg. "note 585529
ELSE. "note 585529
SELECT SINGLE * FROM mseg INTO ls_mseg
WHERE mblnr = xlfbnr
AND mjahr = xlfgja
AND zeile = xlfpos.
IF sy-subrc IS INITIAL.
MOVE ls_mseg-charg TO lineitem-charg.
APPEND ls_mseg TO st_mseg. "note 585529
ENDIF.
ENDIF. "note 585529
ENDIF.
ENDIF. "1653630
User | Count |
---|---|
15 | |
4 | |
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.