Task->Description Loop a multi-line table.

Kjetil Kilhavn list.sap-wug at vettug.no
Mon Jun 10 04:22:21 EDT 2013


Torsdag 6. juni 2013 12.40.12 skrev Sample, Rick:
> For some reason, I can't seem to get the below to work in the Tasks
> Description. I want to check the table. If not initial, display all lines.
> 
> /:	 	READ TABLE &ZNONVMIMRP_MSGS_2& INDEX 1.
> /:	 	IF &ZNONVMIMRP_MSGS_2& IS INITIAL.
> *	 	 initial
> /:	 	ELSE.
> *	 	 not initial
> /:	 	ENDIF.
> 
> Displays "intialnot initial".
> Required: When not initial, display text between IF/ENDIF and all lines.
> &ZNONVMIMRP_MSGS_2##&. I can get all lines to display but the 	IF/ENDIF is
> not working.

Keep it simple… The following works for me in TS20000166:
/:	IF &_WI_Object_ID.zReleaseNewItems& EX
/ 	Items added after the previous release:
  	&_WI_Object_ID.zReleaseNewItems[]&
/:	ENDIF

As you probably understood already, zReleaseNewItems is a virtual attribute in 
BOR object type zBUS2012 to which BUS2012 is delegated.

> 
> Thanks,
> Rick
-- 
Kjetil Kilhavn / Vettug AS (http://www.vettug.no)



More information about the SAP-WUG mailing list