03-06-2007 9:36 AM
Dear All!
I try just to
fill a simple customer table via Table Control. Where has
my insert command to stay ?
Regards
Ilhan
03-06-2007 9:43 AM
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
03-06-2007 10:28 AM
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.
03-06-2007 10:34 AM
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
03-06-2007 9:48 AM