on 03-04-2014 3:58 PM
Hello,
We have a requirement to show check box in POWL report.
Issue are : 1. Once we select check box it gets disabled. so we cannot deselect that again.
2. Upon selecting check box a X appears after the check box.
Below is the code which we are using to add check box.
Type of ls_work is powl_fieldcat_sty.
*-- Display check box for Selection
IF <lfs_schema>-tabname EQ lc_structure_name AND
<lfs_schema>-fieldname EQ lc_check.
ls_work-colid = lc_check.
ls_work-display_type = lc_checkbox.
ls_work-editable = abap_true.
ls_work-editable_ref = <lfs_schema>-fieldname.
ENDIF.
Check below snapshots.
Initial View :
Post Check box Selection:
Hi Jitendra,
As Mr. Kiran said, comment out the line ls_work-editable_ref = <lfs_schema>-fieldname. Because, you are referencing the editable property of check box with value of the same field itself. Hence, as soon you select check box, it get the value and make READ_ONLY = X.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramakrishnappa (thats a cool name!)
am struggling with the same requirement.
Here is the configuration:
ls_fieldcat-colid = <ls_dfies>-fieldname.
ls_fieldcat-text_ref = <ls_dfies>-fieldname.
ls_fieldcat-header = <ls_dfies>-scrtext_m.
ls_fieldcat-allow_sort = 'X'.
ls_fieldcat-allow_filter = 'X'.
ls_fieldcat-col_visible = 'X'.
ls_fieldcat-enabled = 'X'.
ls_fieldcat-fixed = ''.
ls_fieldcat-display_type = 'TV'.
ls_fieldcat-h_align = 'L'.
ls_fieldcat-editable = 'X'.
ls_fieldcat-col_visible = 'X'.
ls_fieldcat-colpos = 1.
ls_fieldcat-header = text-001.
ls_fieldcat-width = 5.
ls_fieldcat-display_type = 'CK'.
The field, which is set to CK does contain a string.
Problems:
1) When powl is loaded, the check box is ticked. How can I set it to unticked when data is loaded.
2) When klicking on the checkbox (checkbox is not ticked) the text beside disapears
3) When klicking again on the checkbox, that 'X' is apeard instead of the loaded text.
Hope you guys have as solution...
Kind regards
Pourang
Hi Jitendra,
Two days back i developed one report in POWL with Checkbox.
ls_fieldcat-colid = 'APPROVE' . "
ls_fieldcat-enabled = 'X'.
ls_fieldcat-col_visible = 'X'.
ls_fieldcat-display_type = 'CK'.
ls_fieldcat-header = 'Approve/Reject'.
ls_fieldcat-editable = ABAP_TRUE.
Pass this value to fieldcat then it must be working fine.
Let me know if you have any furthur issue.
Regards
Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It's because of 'editable_ref' property which sets the editability status.
Comment out the line and check " ls_work-editable_ref = <lfs_schema>-fieldname.
Hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.