on 03-22-2012 2:15 AM
Hi,
How would you resize the column in smartforms dynamically? example if i have a text field, i don't want the whole char60 to be the fixed value of the column instead get the maximum size (probably looping the field using STRLEN to get which is maximum) then how would I resize the column of my table accordingly?
Thank you.
Hi CZ,
Column size cannot be dynamic as it will affect the Layout of that form,
If it is so necessary, You can do one thing find the length of the variable using ABAP function STRLEN,
Create two templates one for small text and other for longer text use condition b/w them.
Code for finding length of the variable
data: len type i.
len = STRLEN(ls_mara-matnr).
This is my solution to your query, There might be other easier way too..
Rgds,
Hani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi C Z,
Column size can't be dynamic ,but we can create dynamic number of columns as the size is concerned it will fixed always.
Thanks,
Deb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey debdas Subudhi,
thanks for your response, but i still not able to understand. If I am not wrong you want to say that we have to create different line types without any column and in condition tab we have to specify condition for which all fields should be displayed.
Pls can you give an example.
Thanks & Regards
faiz khan
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.