Skip to Content
1
Jul 12, 2016 at 01:57 PM

Fill in an specific empty field in transformation

357 Views

Hello Experts,

Here's my data table:

Z_INVOICE Z_ITEM Z_DESCRIPTION Z_TYPE Z_PLANT Z_VALUE 100022 1 AAA E W233 R$ 20,00 100022 2 BBB E W233 R$ 35,00 100022 3 CCC E R$ 57,00 100022 4 DDD E W233 R$ 68,00 100022 5 EEE E R$ 14,00 100022 6 FFF E W233 R$ 99,00 100022 7 GGG E W233 R$ 25,00

I'll transfer this table to my ODS.

Z_INVOICE, Z_ITEM, Z_DESCRIPTION, Z_TYPE, Z_PLANT and Z_VALUE are my InfoObjects.

I need a simple ABAP code to fill in the empty Z_PLANT, for this example with W233, but in another Invoice this value changes. So this ABAP routine needs to check the Z_PLANT filled in and fill in the empty with the same value.

Important: I only have one value for Z_PLANT per Invoice. (tks God).

Could you please help me?

Tks,

Flávio Thomazetti