Skip to Content

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

Hidding a column

Hello,

I would like to know whether it's possible to hide an object when the result of a query is empty.

Let's take an example.

I have statically set 2 objects associated to 2 separate queries which are displayed closely like this:

PRODUCT NAME.....PRICE | PRODUCT NAME........PRICE

PRODUCT 1..............10.00 | PRODUCT 1................10.00

PRODUCT 2..............10.00 | PRODUCT 6................40.00

PRODUCT 3..............50.00 | PRODUCT 7................20.00

PRODUCT 4..............40.00 | TOTAL.......................70.00

TOTAL....................110.00

Let's say now that the result of the second query is empty, I will get:

PRODUCT NAME.....PRICE | PRODUCT NAME........PRICE

PRODUCT 1..............10.00 | TOTAL........................0.00

PRODUCT 2..............10.00 |

PRODUCT 3..............50.00 |

PRODUCT 4..............40.00 |

So, I would like to hide the second column (the header of the column and the total) so it is not displayed when query is empty.

Like this:

PRODUCT NAME.....PRICE |

PRODUCT 1..............10.00 |

PRODUCT 2..............10.00 |

PRODUCT 3..............50.00 |

PRODUCT 4..............40.00 |

thanks you for your help

Ahmed

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