01-13-2015 9:54 AM
Hi Table Control Wizard Experts,
My requirement is to enter input values in Table Control Wizard and save those entries in DB.
Its working fine.
My doubt is:
1. But When ever I'm clicking Table Control Wizard's standard buttons: TC_WIZ1_TOP/TC_WIZ1_NEXT/TC_WIZ1_PREVIOUS/TC_WIZ1_BOTTOM,
my entries are appending.
I can refresh my ITAB at PBO, but SY-UCOMM values (P-/P--/P+/P++) are not coming at PBO.
How to restrict them and where should i insert the logic.
2. Whenever I'm filling 1st row and clicked "ENTER" button in Table Control Wizard,
only the input entry row is in editable mode, the rest of the Rows are in disable mode.
I need all the rows in TCW in editable even though I will click ENTER.
What will be the logic and where should i insert it.
With Regards,
Sudhir.
01-13-2015 11:31 AM
Hi All,
Problem 2 been resolved. Find the solution below.
Inside the below standard code, insert a statement saying that table control lines.
Then the entire TCW will be in editable mode for the input.
*****************************************************************************************
*&SPWIZARD: OUTPUT MODULE FOR TC 'TC_WIZ1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR
MODULE TC_WIZ1_CHANGE_TC_ATTR OUTPUT.
DESCRIBE TABLE LT_ZPM_WHY_WHY LINES TC_WIZ1-lines.
TC_WIZ1-lines = 20.
ENDMODULE.
*****************************************************************************************
01-13-2015 10:12 AM
Hi,
2. Whenever I'm filling 1st row and clicked "ENTER" button in Table Control Wizard,
only the input entry row is in editable mode, the rest of the Rows are in disable mode.
Solution
While creating table control wizard you should select the radio button as input.
For the 1st Point -check in Debugger.
Regards,
Venkatramesh.V
01-13-2015 10:26 AM
Hi Yarnagula,
Point-1 :
I can refresh my ITAB at PBO, but SY-UCOMM values (P-/P--/P+/P++) are not coming at PBO.
How to restrict them and where should i insert the logic.
Can u give more information on above point.
Point - 2 :
In PBO use the sample logic to activate the fields in table control when ENTER KEY is pressed.
Sample code :
LOOP AT tc_1001-cols INTO cols.
IF ( cols-screen-name = 'XXXX' OR
cols-screen-name = 'YYYYY' OR
cols-screen-name = 'ZZZZZ' ).
cols-screen-active = '1'.
MODIFY tc_1001-cols FROM cols INDEX sy-tabix.
ENDIF.
ENDLOOP.
Thanks & Regards,
Seshadri.
01-13-2015 11:20 AM
Hi,
Kindly find the below standatd code:
*********************************************************************************************************
*&SPWIZARD: INPUT MODULE FOR TC 'TC_WIZ1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: PROCESS USER COMMAND
MODULE TC_WIZ1_USER_COMMAND INPUT.
OK_CODE = SY-UCOMM.
PERFORM USER_OK_TC USING 'TC_WIZ1'
'LT_ZPM_WHY_WHY'
' '
CHANGING OK_CODE.
SY-UCOMM = OK_CODE.
ENDMODULE.
*********************************************************************************************************
Inside the above PERFORM, i can get the sy-ucomm values. But i cannot refresh my ITAB inside perform.
Outside the above code or at PBO, im not getting the sy-ucomm values. If so, i can refresh ITAB.
Then if i press those standard buttons also, my ITAB values wont be appended.
With Regards,
Sudhir.
01-13-2015 11:31 AM
Hi All,
Problem 2 been resolved. Find the solution below.
Inside the below standard code, insert a statement saying that table control lines.
Then the entire TCW will be in editable mode for the input.
*****************************************************************************************
*&SPWIZARD: OUTPUT MODULE FOR TC 'TC_WIZ1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR
MODULE TC_WIZ1_CHANGE_TC_ATTR OUTPUT.
DESCRIBE TABLE LT_ZPM_WHY_WHY LINES TC_WIZ1-lines.
TC_WIZ1-lines = 20.
ENDMODULE.
*****************************************************************************************