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

Insert Data from a screen into a Transparent table

Former Member
0 Likes
826

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

4 REPLIES 4
Read only

Former Member
0 Likes
705

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

Read only

Former Member
0 Likes
705

case sy-ucomm.

when 'FCODE'. ( Push button).

insert table from int_table.

endcase.

look at ABAPDOCU tarnsaction code to design new screens

Read only

Former Member
0 Likes
705

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

Read only

Former Member
0 Likes
705

Thank you very much,

I will test your code soon.