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

data display

Former Member
0 Likes
311

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

2 REPLIES 2
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
293

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

Read only

Former Member
0 Likes
293

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