Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
here is my script
the Problem is that in SAP_IST_F20 i have to replace the values [Wert/BWähr], wirth Kostenstelle 1011746 with the values from LV_Projekte
in is the way to find the right Kostenstelle over the PROJEKT_ID but i dont get the different Kostenstellen values in my Pivot
can someone help me??
SAP_IST_F20:
LOAD Geschäftsjahr,
Periode,
AddMonths(makedate(Geschäftsjahr,2), Periode) as Date1,
// Month(Periode,+2) AS Month,
// Year(Date) AS Year,
Kostenstelle,
Kostenartengruppe,
Kostenart,
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
Buchungsdatum,
Bezeichnung,
[Nr Referenzbeleg],
Einkaufsbeleg
FROM
qvd)
(
Where Kostenstelle<>1011747 and Kostenstelle<>1011746 and [Konto Gegenbuchung]<>10010;
Concatenate(SAP_IST_F20)
LOAD Rechnungsfirma,
Projekt_Rechnung,
Prod,
Bezeichnung_Produkt,
Projekt_ID,
Bezeichnung_Projekt,
Anteil_Projekt,
Projektstatus,
Leistung_ID,
Bezeichnung_Leistung,
Zusatzinfo,
Kontierung_Kunde_I,
Kontierung_Kunde_II,
SummevonMENGE,
Einheit,
Preis_EUR,
EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Abrechnungsmonat AS Date1,
// Year(Abrechnungsmonat) AS Geschäftsjahr,
// Month(Abrechnungsmonat) AS Periode,
Leistungsmonat,
Rechnungsnummer,
1011747 AS Kostenstelle,
2581500000 AS Kostenart,
'Aufwand Weiterbelastung IT- und EDV-Kost' AS Kostenartenbeschr.
FROM
qvd);
(
Concatenate(SAP_IST_F20)
LOAD Rechnungsfirma,
PROJEKT_RECHNUNG,
PRODUKT,
BEZEICHNUNG_PRODUKT,
PROJEKT_ID,
BEZEICHNUNG_PROJEKT,
ANTEIL_PROJEKT,
PROJEKTSTATUS,
LEISTUNG_ID,
BEZEICHNUNG_LEISTUNG,
ZUSATZINFO,
KONTIERUNG_KUNDE_I,
KONTIERUNG_KUNDE_II,
MENGE,
EINHEIT,
PREIS_EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Abrechnungsmonat AS Date1,
Leistungsmonat,
Rechnungsnummer,
2581500000 AS Kostenart
FROM
qvd);
(
Concatenate(SAP_IST_F20)
LOAD [PROJEKT_ID (Rechnung)] AS PROJEKT_ID,
Kostenstelle,
[FB Kostenstelle],
[Beschreibung Projekte],
[BEZEICHNUNG_PROJEKT (Rechnung)]
FROM
qvd);
(
Hello Andreas,
As your tables (and certainly your last one with the Kostenstelle) are not similar, they will not concatenate. I'd insert your needed variable into the table through a mapping.
sorry can u please explain me in a Little bit more Detail how i can solve thsi Problem?
Hi Andreas, and how is your pivot table?
When you use concate you are creating a table like:
| PROJEKT_ID | BEZEICHNUNG_PROJEKT | Kostenstelle |
|---|---|---|
| 1 | BEZEICHNUNGValue | Null() |
| 1 | Null() | KostenstelleValue |
So there is no relation between BEZEICHNUNGValue and KostenstelleValue
Is your pivot using something like this?
Maybe loadin Plexo in another table (not concatenated) can solve the problem
can you please elaborate bit more about your requirement
Hello Andreas,
If I understand you correct, then the Kostenstelle variable from is incorret, and you want to insert the correct one that can be found in
.
If so, then please try the below script. Still I fear that the 3 tables you try to concatenate will not concatenate, as they do not have the same variables in them. Could you show what you have behind this button (middel one)?
Map_Kostenstelle:
MAPPING LOAD [PROJEKT_ID (Rechnung)] AS PROJEKT_ID,
Kostenstelle,
//[FB Kostenstelle],
//[Beschreibung Projekte],
//[BEZEICHNUNG_PROJEKT (Rechnung)]
FROM
qvd);
(
SAP_IST_F20:
LOAD Geschäftsjahr,
Periode,
AddMonths(makedate(Geschäftsjahr,2), Periode) as Date1,
// Month(Periode,+2) AS Month,
// Year(Date) AS Year,
// Kostenstelle,
Kostenartengruppe,
Kostenart,
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
Buchungsdatum,
Bezeichnung,
[Nr Referenzbeleg],
Einkaufsbeleg
FROM
qvd)
(
Where Kostenstelle<>1011747 and Kostenstelle<>1011746 and [Konto Gegenbuchung]<>10010;
Concatenate(SAP_IST_F20)
LOAD Rechnungsfirma,
Projekt_Rechnung,
Prod,
Bezeichnung_Produkt,
Projekt_ID,
Applymap('Map_Kostenstelle', Projekt_ID) as Kostenstelle,
Bezeichnung_Projekt,
Anteil_Projekt,
Projektstatus,
Leistung_ID,
Bezeichnung_Leistung,
Zusatzinfo,
Kontierung_Kunde_I,
Kontierung_Kunde_II,
SummevonMENGE,
Einheit,
Preis_EUR,
EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Abrechnungsmonat AS Date1,
// Year(Abrechnungsmonat) AS Geschäftsjahr,
// Month(Abrechnungsmonat) AS Periode,
Leistungsmonat,
Rechnungsnummer,
//1011747 AS Kostenstelle, // why you do this?
2581500000 AS Kostenart,
'Aufwand Weiterbelastung IT- und EDV-Kost' AS Kostenartenbeschr.
FROM
qvd);
(
Concatenate(SAP_IST_F20)
LOAD Rechnungsfirma,
PROJEKT_RECHNUNG,
PRODUKT,
BEZEICHNUNG_PRODUKT,
PROJEKT_ID,
BEZEICHNUNG_PROJEKT,
ANTEIL_PROJEKT,
PROJEKTSTATUS,
LEISTUNG_ID,
BEZEICHNUNG_LEISTUNG,
ZUSATZINFO,
KONTIERUNG_KUNDE_I,
KONTIERUNG_KUNDE_II,
MENGE,
EINHEIT,
PREIS_EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Abrechnungsmonat AS Date1,
Leistungsmonat,
Rechnungsnummer,
2581500000 AS Kostenart
FROM
qvd);
(
u ask for //1011747 AS Kostenstelle, // why you do this?
in my first table SAP_IST_F20 there is the row with Kostenstelle 1011747 i have to replace this row with the rows from LV_Betrieb1747 in sum its the exact equal value
the same prob is with the Kostenstelle 1011746 but more difficult because i only can reach the kostenstelle for the rows in table LV_Projekte over the Projekt_ID of the plexo table and then i have to replace it like the first Task. here is the Problem of more than one Kostenstelle
its very tricky
so i solved the first replace with 1011747 AS Kostenstelle so with concatenate i get the value for the Kostenstelle 1011747 and i can open it with Pivot and see all rows from this kostenstelle.
the same i want with the rows in LV_Projekt.
i know its a Little bit difused but i hope not hopeless