cancel
Showing results for 
Search instead for 
Did you mean: 

Defining ABAP variables in update rules

Former Member
0 Kudos

Hello,

How can I define a variable in ABAP of the same type as an InfoObject? I know it's easy as long as the InfoObject is a part of the communication structure. But this InfoObject is not present neither in the source ODS nor in the target cube. It is a custom InfoObject, not BC.

Regards,

Christoffer Owe

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christoffer.

You just use:

variable LIKE /bic/infoobjectname

Hope it helps.

BR

Stefan

Former Member
0 Kudos

Hello,

I have not succeeded with that. Trying

DATA: TmpYearWeek LIKE /BIC/ZWKCLSDT.

where ZWKCLSDT is my InfoObject, results in

"E:Field "/BIC/ZWKCLSDT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."

Regards,

Christoffer

Former Member
0 Kudos

Sorry. Forgot a P.

DATA: TmpYearWeek LIKE /BIC/<b>P</b>ZWKCLSDT.

Hope it helps.

BR

Stefan

Former Member
0 Kudos

Yes, of course!

Thank you very much. Points assigned.

Regards,

Christoffer

Answers (1)

Answers (1)

Former Member
0 Kudos

DATA: i_var type DATAELEMENT.

where DATAELEMENT the Data element field from the General Tab of the infoobjects details