Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good afternoon.
I'm working with Mapping function to display the name of the seller, supervisor and manager.
I have a formatted table as follows.
[Note]:
LOAD AutoNumber (F2_FILIAL & '|' & if (F2_FILIAL = '02', Text (Right ('000000' & F2_CLIENTE, 6)), Text (Right ('0000' & F2_CLIENTE, 4))) & "|" & F2_LOJA & '|' & F2_DOC) the NotaFiscal,
[F2_DOC]
Date (Date # (F2_EMISSAO, 'YYYYMMDD'), 'MMM-YYYY') the date,
F2_VEND1 the Vend, // vendor field
F2_VEND2 the Geren, // Supervisor field
F2_VEND3 the Super // Manager field
[F2_CHVNFE]
FROM [lib: //QVDs/Nota.qvd]
(QVD);
I have a master table of vendor / supervisor / manager.
Seller:
LOAD A3_COD the CodVen,
A3_NOME the NomeVend
FROM [lib: //QVDs/Vendedor.qvd]
(QVD)
WHERE
D_E_L_E_T_ <> '*';
Based on the above context I'm creating a map to display the name of the manager / supervisor / seller.
MapVen:
Mapping LOAD CodVen,
NomeVend;
Apply the map in the fields I encounter the following error.
MAP Vend, Geren, using Super MapVen;
Error:
The following errors occurred:
Mapping not found
The error occurred here:
MAP Vend, Geren, using Super MapVen
Has anyone experienced this situation, know tell me where I am going wrong.
Thank You Very Much!
Translated with Google Translate - Qlik Community Administrative Team
Boa tarde.
Estou trabalha com a função Mapping para exibir o nome do vendedor, supervisor e gerente.
Tenho uma tabela formatada da seguinte forma.
[Nota]:
LOAD AutoNumber(F2_FILIAL &'|'& if(F2_FILIAL='02',Text(Right('000000' & F2_CLIENTE, 6)) ,Text(Right('0000' & F2_CLIENTE, 4))) &'|'& F2_LOJA &'|'& F2_DOC) as NotaFiscal,
[F2_DOC],
Date(Date#(F2_EMISSAO,'YYYYMMDD'),'MMM-YYYY') as Data,
F2_VEND1 as Vend, // campo vendedor
F2_VEND2 as Geren, // campo Supervisor
F2_VEND3 as Super, // campo Gerente
[F2_CHVNFE]
FROM [lib://QVDs/Nota.qvd]
(qvd);
Tenho uma tabela de cadastro de vendedor / supervisor / gerente.
Vendedor:
LOAD A3_COD as CodVen,
A3_NOME as NomeVend
FROM [lib://QVDs/Vendedor.qvd]
(qvd)
WHERE
D_E_L_E_T_ <> '*';
Com base no contexto acima estou criando um mapa para exibir o nome do gerente / supervisor / vendedor.
MapVen:
Mapping LOAD CodVen,
NomeVend;
Aplicar o mapa nos campos abaixo me deparo com o seguinte erro.
MAP Vend, Geren, Super using MapVen;
Erro:
Ocorreram os seguintes erros:
Mapping not found
O erro ocorreu aqui:
MAP Vend, Geren, Super using MapVen
Alguém já passou por essa situação, saberia me falar onde estou errando.
Muito Obrigado!
Hola no hablo portugues, pero podrías probar los siguiente:
Olá, eu não falar Português, mas você pode tentar o seguinte:
Vendedor:
MAPPING
LOAD A3_COD as CodVen,
A3_NOME as NomeVend
FROM [lib://QVDs/Vendedor.qvd] (qvd)
WHERE D_E_L_E_T_ <> '*';
[Nota]:
LOAD AutoNumber(F2_FILIAL &'|'& if(F2_FILIAL='02',Text(Right('000000' & F2_CLIENTE, 6)) ,Text(Right('0000' & F2_CLIENTE, 4))) &'|'& F2_LOJA &'|'& F2_DOC) as NotaFiscal,
[F2_DOC],
Date(Date#(F2_EMISSAO,'YYYYMMDD'),'MMM-YYYY') as Data,
ApplyMap('Vendedor', F2_VEND1, Null()) as Vend, // campo vendedor
ApplyMap('Vendedor', F2_VEND2, Null()) as Geren, // campo Supervisor
ApplyMap('Vendedor', F2_VEND3, Null()) as Super, // campo Gerente
[F2_CHVNFE]
FROM [lib://QVDs/Nota.qvd] (qvd);
Hola no hablo portugues, pero podrías probar los siguiente:
Olá, eu não falar Português, mas você pode tentar o seguinte:
Vendedor:
MAPPING
LOAD A3_COD as CodVen,
A3_NOME as NomeVend
FROM [lib://QVDs/Vendedor.qvd] (qvd)
WHERE D_E_L_E_T_ <> '*';
[Nota]:
LOAD AutoNumber(F2_FILIAL &'|'& if(F2_FILIAL='02',Text(Right('000000' & F2_CLIENTE, 6)) ,Text(Right('0000' & F2_CLIENTE, 4))) &'|'& F2_LOJA &'|'& F2_DOC) as NotaFiscal,
[F2_DOC],
Date(Date#(F2_EMISSAO,'YYYYMMDD'),'MMM-YYYY') as Data,
ApplyMap('Vendedor', F2_VEND1, Null()) as Vend, // campo vendedor
ApplyMap('Vendedor', F2_VEND2, Null()) as Geren, // campo Supervisor
ApplyMap('Vendedor', F2_VEND3, Null()) as Super, // campo Gerente
[F2_CHVNFE]
FROM [lib://QVDs/Nota.qvd] (qvd);
Muito Obrigado!
Perfeito