Application Development 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: 

Fill a customer table via Table Control

Former Member
0 Kudos

Dear All!

I try just to

fill a simple customer table via Table Control. Where has

my insert command to stay ?

Regards

Ilhan

4 REPLIES 4

Former Member
0 Kudos

Hi

In the user-command module

MODULE USER_COMMAND.
  CASE OK_CODE.
    WHEN 'INS'. INSERT Z<TABLE> FROM TABLE ITAB.
ENDMODULE.

ITAB is the internal table used to manage the data in the table control

Max

0 Kudos

hi max

This are the current commands in my prog.

This part results not from my part. It was generated automatically.

What is L_OK? What is INSR?

I have only one OK Code for it "SAVEN" it is a pushbutton.

I dont understand no ethe meaning of L_OK

CASE L_OK.

WHEN 'INSR'. "insert row

PERFORM FCODE_INSERT_ROW USING P_TC_NAME

P_TABLE_NAME.

0 Kudos

l_ok contains the function code of the button that the user clicks on that screen.

As you have only one buton, then the ok code is SAVEN as you have said.

l-ok = sy-ucomm.

CASE L_OK.

WHEN 'SAVEN'. "save dataPERFORM FCODE_INSERT_ROW USING P_TC_NAME

P_TABLE_NAME.

Regards,

Ravi

former_member181962
Active Contributor
0 Kudos

The code Max suggested should be in the PAI module.

Regards,

Ravi