2007 Jan 16 6:34 AM
Hi all,
Can anybody please clear my doubt..Am new to module pool..
In table control am dispalying the material document number , purchase order and its details.My rquirements is in quantity column i can modify the quantities..After modifying it has to retain the value if i press enter..But its retaining..Can anybody suggest me how to write codings for that in module pool..
Regards,
Ramya.
Hi all,
Can anybody please clear my doubt..Am new to module pool..
In table control am dispalying the material document number , purchase order and its details.My rquirements is in quantity column i can modify the quantities..After modifying it has to retain the value if i press enter..But its retaining..Can anybody suggest me how to write codings for that in module pool..
Regards,
Ramya.
2007 Jan 16 6:39 AM
See the following Ex.
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC1'
LOOP AT G_TC1_ITAB.
CHAIN.
FIELD ZFG_SRNO-ZSRNO.
MODULE TC1_MODIFY ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
*&SPWIZARD: INPUT MODULE FOR TC 'TC1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MODIFY TABLE
MODULE TC1_MODIFY INPUT.
MOVE-CORRESPONDING ZFG_SRNO TO G_TC1_WA.
MODIFY G_TC1_ITAB
FROM G_TC1_WA
INDEX TC1-CURRENT_LINE.
ENDMODULE. "TC1_MODIFY INPUT
2007 Jan 16 6:39 AM
HI,
Check this link.Here I am explaining the database manipulations using table control.It can help you.Kindly reward points by clicking the star on the left fo reply,if it helps.
2007 Jan 16 6:52 AM
Use this.
In your itab(table for table control display add another field along with other fields.
data: begin of itab occurs 0,
sel type s-flag,
matnr type matnr,
belnr type belnr,
"
"
end of itab.
*In PAI...
PROCESS AFTER INPUT.
MODULE exit AT EXIT-COMMAND.
LOOP AT itab.
FIELD itab-sel MODULE pick_sel.
ENDLOOP.*and in module pic-sel insert this lines.
IF itab-sel = 'X'.
*Modify the table with input amount
MODIFY itab INDEX tab_cntl-current_line TRANSPORTING amount-field
Regards.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |