Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hide a Field in Repeating Subform ??

Hi Experts

I ve created a Purchase order which contains a repeating subform. The Subform contain a line item and a delivery Date and tracking number for that line item. What i m trying to achieve is Hide the tracking Number field when there is no data being populated.

Script I am using to do this is form Calc:

if ($record.MAIN.ITEM.DATA[*].BEDNR == null).

then data.MAIN.ItemRow.END.TRACK.presence = "hidden"

endif

The problem i have it works fine with one line item but more line items then one it seems to go wrong. What happens is when there is no data populating in the tracking number binding then all the line items are hidden even if there is tracking number being populated in the second line item.

How can i rectify this issue pls help

Former Member
Former Member replied

Hi Mahesh,

If you want to access the nth record of a table or table binding, you can do it using a FOR loop as given above.

Can I have your e-mail ID?

Regards,

Priyanka

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question