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

through module pool program screen values can i store data into ztable

Former Member
0 Likes
1,621

Dear forum,

I have one program in that i have to develop one new screen in module pool. then from that screen i have to give user to enter values. Those values to be stored in internal table. And then internal table to z table. how to do this. kindly help.

thank you,

3 REPLIES 3
Read only

Former Member
0 Likes
785

Hi,

First you design screen , there use your ztable fields as input text boxes and a button to insert values in table.

in PAI Check this code"

when 'INS'.
      wa-sno = yharshsupplier-sno.
      wa-sname = yharshsupplier-sname.
      modify yharshsupplier from wa.

here yharshsupplier-sno is custom table field, whose value is going in wa, and table is directly updated from wa.

Regards,

Harsh.

Read only

Former Member
0 Likes
785

Hi Manjunatha....

I hope you are creating all the input fields from the data dictionary or internal table.

Click on Save or Enter after entering the input fields ( Dont forget to give the PF Status and Fcode too)

in the PAI of that particular screen, you move all the fields data into internal table, later you can loop into data dictonary by INERT synatx.

check below code for example:

" WHEN 'CREATE_OBJT'. " you are calling a function code

CLEAR okcode_110. " u r in Screen 110

gv_screen300_mode = '01'. " u

  • Call screen 300 (Object details screen) in 'create' mode.

CLEAR ypmtodet. " u r clearing the project details earlier once before you updating the table

MOVE-CORRESPONDING gs_proj_scrn TO ypmtodet. " gs_proj_scrn is input fields table

CALL SCREEN 300."

Thanks

Ram Ganji

Read only

Former Member
785

Hi ,

see the sample code in se38-->DEMO_DYNPRO_TABCONT_LOOP_AT

And change the table name form 'spfli' to Your Ztable.

Prabhudas