cancel
Showing results for 
Search instead for 
Did you mean: 

Hide table columns from ABAP Workbench

flvia_s
Participant
0 Kudos

Dear all,

I have a requirement to create a layout showing all lines of a internal table based on two types of document, let's assume type A and type B. In document type A, I will show all existing columns in my table, but to type B I will show a few number of columns.

So, my question is: once I'm calling my adobe form from a abap report (not using webdynpro), is it possible to set some table columns hidden/invisible dynamically?


Thanks in advance,

Alm.

Accepted Solutions (1)

Accepted Solutions (1)

sandeep_katoch
Contributor
0 Kudos

Dear Alm,

You can do it in many ways and one way can be from a report itself

http://saptechnical.com/Tutorials/AdobeForms/Alternative/page1.htm

From the report prepare two separate tables and declare both tables in adobe form also.

Based on the tutorial above call the respective subform conditionally.

BR,

Sandeep Katoch

flvia_s
Participant
0 Kudos

Dear Sandeep.

Thanks for your reply.

Yes, the link you sent is really an alternative for my solution, but would you know how to dynamically hide columns instead of declare multiple tables? This way should be easier to my requirement, once I have several types of documents to handle.

Best regards,

Alm.

sandeep_katoch
Contributor
0 Kudos

Dear Alm,

yes of course you can hide columns based on certain condition

You just need to write a script in the header of the table

Here is the script snippet to do so

http://scn.sap.com/thread/3362425

BR,

Sandeep Katoch

Answers (0)