‎2007 May 17 7:13 PM
Hello to every body
I want to make a screen with several elements (Text fields, Checkbox elements, Pushbuttons, Dropdown list boxes ...etc).
What i am looking for is : How to insert data inserted by a user in my screen elements
into a transparent table while clicking on a pushbutton ?
Thanks a lot in advance for your help
‎2007 May 17 7:15 PM
Hi,
Create a module in PAI..
In that module..When the button is pressed...
WHEN 'SAVE'.
move the values to the corresponding table structure..
Ex..
ZTABLE-MANDT = SY-MANDT.
ZTABLE-KEY_FIELD1 = SCREEN FIELD NAME.
....
Insert / modify record..
MODIFY ZTABLE.
Thanks,
Naren
‎2007 May 17 7:16 PM
case sy-ucomm.
when 'FCODE'. ( Push button).
insert table from int_table.
endcase.
look at ABAPDOCU tarnsaction code to design new screens
‎2007 May 17 7:24 PM
HI Hassan,
screen values like..
In PAI of screen.....
DATA: wa TYPE scustom.
wa-id = '12400177'.
wa-name = 'Robinson'.
wa-postcode = '69542'.
wa-city = 'Heidelberg'.
wa-custtype = 'P'.
wa-discount = '003'.
wa-telephone = '06201/44889'.
Case Sy-ucomm.
when 'BUTN'. " pushbutton function code
Insert DBTable from values WA.
Endcase.
Regards
SAB
‎2007 May 17 7:39 PM