‎2010 Aug 31 6:51 AM
Hi All,
I got one problem in Module pool program.Im using table control.when selected multiple coloms by table control option left top.
when I want to de-select one by one,unable to de-select. Please suggest me.
thank you,
Anu.
‎2010 Aug 31 7:11 AM
Hi,
Please check if these are your options for Table control layout.
Line sel. is multiple radiobutton ,
Column sel is multiple and the
Checkbox is checked for "w /SelColumn" with a name .
Regards,
Srini.
‎2010 Aug 31 7:17 AM
Hi,
Yes,Colom and Line selection is with Multiple radio button & W/Sellcolom with MARK.
Please suggest me if i use push button for Select all table control record.How can I proceed for logic.
Thank you,
Anu
‎2010 Aug 31 8:41 AM
Hi All,
I've table control with data.I created buttons like select all,de-select all.
When i click on select all or de-select all the table control is not highlight.
here is my coding.
IN PAI:
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'SELECT'.
LOOP AT ITAB INTO WA_ITAB.
WA_ITAB-MARK = 'X'.
MODIFY ITAB FROM WA_ITAB.
ENDLOOP.
ENDCASE.
ENDMODULE.
Please advise me.
Thank you,
Anu.
‎2010 Aug 31 11:14 AM
‎2010 Aug 31 11:18 AM
When you create the table control double click in properties there is field you need to assign 'W/Selcolumn' for the line select variable give you internal table variable name there WA_ITAB-MARK it will work
Edited by: Yakub Shah on Aug 31, 2010 3:51 PM
‎2010 Aug 31 11:22 AM
‎2010 Aug 31 11:27 AM
Hi Anitha,
First insert the single Character field MARK in the table control and make as Check Box or PUshbutton
SELECTED
This field represents whether the column is selected or not.It is of TYPE C(1) and can have a value of 'X' or ' '.
FOR SINGLE ROW SELECTION
IF mark EQ 'X'. "mark is the name of selection column field
DELETE itab FROM workarea.
ENDIF.
FOR MULTIPLE ROW SELECTION
*To deetermine the rows selected we will use the selection column field to loop
*through the internal table.
LOOP AT itab WHERE mark EQ 'X'. "mark is the name of selection column field
DELETE itab " and is part of the internal table .
ENDLOOP.
Check this WIKI for selected Field
http://wiki.sdn.sap.com/wiki/display/ABAP/ModulePoolbasics
Prabhudas
‎2010 Aug 31 11:44 AM
‎2010 Aug 31 11:58 AM
Dear Anitha,
In your PAI Event when you are putting a Loop Endloop on you ITAB move the LOOP Endloop after the PAI Module Call.
I mean,
After you module to process sy-ucomm transfer the values again. as you do in PBO.
I hope the above code is not written directly in the flow logic of your screen. it should be a MODULE and not screen logic OK.
Edited by: Yakub Shah on Aug 31, 2010 4:28 PM
‎2010 Aug 31 2:00 PM
Hi All,
here my requirement is when i click select all push button it has to select all record of table control.
Please help me.
Thank You,
Anu,
‎2010 Sep 01 3:07 AM
Thank You All.
Solved my self.
The coding as below.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN SUB INCLUDING SY-REPID '110'.
LOOP AT GT_ITAB INTO WA WITH CONTROL VCONTROL.
MODULE SET.
MODULE STATUS_0100.
ENDLOOP.
PROCESS AFTER INPUT.
CALL SUBSCREEN SUB.
LOOP AT GT_ITAB .
CHAIN.
FIELD WA-EBELN.
FIELD WA-EMATN.
FIELD WA-EBELP.
FIELD WA-MATNR.
FIELD WA-MARK.
MODULE MODIFY ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE USER_COMMAND_0100.
************************************************
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'SAVE'.
PERFORM SAVE_VARIANT.
PERFORM VARIANT_EXISTS.
WHEN 'SEL'.
LOOP AT GT_ITAB INTO WA.
WA-MARK = 'X'.
MODIFY GT_ITAB FROM WA .
ENDLOOP.
endmodule.
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'ZTESTING'.
SET TITLEBAR 'ZTEST'.
SET PF-STATUS 'ZTESTING' EXCLUDING IT_EXTAB.
MOVE:WA-EBELN TO EKKO-EBELN,
WA-EBELP TO EKPO-EBELP,
WA-MATNR TO WA-MATNR.
MOVE:WA-EMATN TO WA-EMATN.
MODIFY GT_ITAB FROM WA INDEX VCONTROL-CURRENT_LINE.
VCONTROL-LINES = SY-DBCNT.
ENDMODULE. " STATUS_0100 OUTPUT
MODULE SET OUTPUT.
SET CURSOR FIELD CURSORFIELD OFFSET POS.
ENDMODULE. " SET OUTPUT
Thank You,
Anu.
‎2010 Aug 31 11:29 AM
Click on Ctrl Key and select the line items to deselect.
Hope it helps.
Sujay