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

Hold Data after PBI ..

Former Member
0 Likes
497

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

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....

2 REPLIES 2
Read only

former_member195698
Active Contributor
0 Likes
455

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

Read only

Former Member
0 Likes
456

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....