‎2010 Aug 17 11:32 AM
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,
‎2010 Aug 17 1:30 PM
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.
‎2010 Aug 17 2:47 PM
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
‎2010 Aug 17 2:55 PM
Hi ,
see the sample code in se38-->DEMO_DYNPRO_TABCONT_LOOP_AT
And change the table name form 'spfli' to Your Ztable.
Prabhudas