‎2007 Dec 25 7:12 AM
Hi,
I m Using a table control and some fields are Input field.
when i enter the values and give "enter" key then the values got disappear....
So how do i do display the enterd values after pressing "enter". that is after PAI.
Thanx.
‎2007 Dec 25 11:14 AM
hi,
u need to make one module in PAI between LOOP ENDLOOP.
PROCESS AFTER INPUT.
MODULE exit_1000 AT EXIT-COMMAND.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TAB1'
LOOP AT itab_det.
CHAIN.
FIELD itab_det-bill_no.
FIELD itab_det-bill_date.
FIELD itab_det-vend_cust_code.
FIELD itab_det-bill_amt.
MODULE tab1_modify ON CHAIN-REQUEST.
ENDCHAIN.
FIELD itab_det-mark
MODULE tab1_mark ON REQUEST.
ENDLOOP.
And in that module u need to append ur internal table
MODULE tab1_modify INPUT.
APPEND itab_det.
ENDMODULE. "TAB1_MODIFY INPUT
reward if useful....
‎2007 Dec 25 10:53 AM
check the link for sample table control programming
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
Basically the table that you are using in PBO to display the data should be updated in the PAI so that the next time screen is displayed and PBO is called,the lastest data is displayed
regards,
aj
‎2007 Dec 25 11:14 AM
hi,
u need to make one module in PAI between LOOP ENDLOOP.
PROCESS AFTER INPUT.
MODULE exit_1000 AT EXIT-COMMAND.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TAB1'
LOOP AT itab_det.
CHAIN.
FIELD itab_det-bill_no.
FIELD itab_det-bill_date.
FIELD itab_det-vend_cust_code.
FIELD itab_det-bill_amt.
MODULE tab1_modify ON CHAIN-REQUEST.
ENDCHAIN.
FIELD itab_det-mark
MODULE tab1_mark ON REQUEST.
ENDLOOP.
And in that module u need to append ur internal table
MODULE tab1_modify INPUT.
APPEND itab_det.
ENDMODULE. "TAB1_MODIFY INPUT
reward if useful....