‎2007 Aug 24 5:38 AM
hie experts
i used table control wizard to display the data and one field set as input field.
but when i entered any value, it is not displayed,
how to write the code to display the value in that field which we entered.
Thanks in advance.
Regards
Rajaram
‎2007 Aug 24 6:01 AM
Hi,
For that in your PAI of the screen containing the table control, you need to call a PAI module Between the LOOP at itab. ENDLOOP.
Like this.
PROCESS-AFTER-INPUT.
LOOP AT itab.
FIELD FLD_EDITABLE.
MODULE modify_itab ON CHAIN-REQUEST.
ENDLOOP.
MODULE modify_itab.
MODIFY ITAB
FROM ITAB
INDEX TAB_CNTRL-CURRENT_LINE.
ENDMODULE.
Then this changed table should be picked up by the PBO.
Regards,
Sesh
‎2007 Aug 27 2:45 PM
Hello,
You need to do coding to show data(PBO) and retrieve or actions (PAI)
For coding in PBO/PAI
in SAP ..go to se38 and view the following programs
1)DEMO_DYNPRO_TABCONT_LOOP_AT
2)demo_dynpro_tabcont_loop
the following exract code if from the above pgms
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP WITH CONTROL it_final.
MODULE FILL_TABLE_CONTROL.
"in this module write code to display the data by default when the screen is first displayed or get data passed from PAI and display it after user actions
ENDLOOP.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
LOOP WITH CONTROL it_final.
module read_table_control.
"write code for validations in this module
"The user actions will be captured here
"write code to fetch data from the screen and save it in a table or any desirable data structure
ENDLOOP.
Hope the above suggestions proved useful
Reward if helpful
Regards
Byju