Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in Module Pool Program

Former Member
0 Likes
1,383

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.

12 REPLIES 12
Read only

Former Member
0 Likes
1,203

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.

Read only

0 Likes
1,203

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

Read only

Former Member
0 Likes
1,203

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.

Read only

0 Likes
1,203

Please help on this.

Thankyou,

Anu

Read only

0 Likes
1,203

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

Read only

0 Likes
1,203

yeah I already given but not working.

Thankyou.

Anu

Read only

0 Likes
1,203

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

Read only

Read only

0 Likes
1,203

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

Read only

0 Likes
1,203

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,

Read only

0 Likes
1,203

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.

Read only

Former Member
0 Likes
1,203

Click on Ctrl Key and select the line items to deselect.

Hope it helps.

Sujay