06-13-2008 5:03 AM
hi,
I want to know, how we can create a simple module program for retrieve database tables fields in to our module pool program, i have practised in 4.7 but I am little bit confused in ecc 6.0 can any one please make doubt clear
thanks
prasad
06-13-2008 5:43 AM
There is no difference in how you would create it in ECC6.
Create the module pool, screen, gui status, title, PBO, PAI, the necessary update FM's and lock objects.
06-13-2008 5:49 AM
WHERE IS GUI STATUS IS LOCATED , I SEARCHED FOR IT BUT I DIDN'T FIND IT .
06-13-2008 5:59 AM
Hi,
when u create the screen there u will find a module MODULE STATUS_<screenno>
when u create this module u will get
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
just uncomment this and create the PF-STATUS.
Revert back for further queries.
Regards,
Sravanthi
06-13-2008 6:10 AM
sravanthi ,
Actually my intention is get the sflight database table fields in a screen, I did it in the 4.7 I was clear there but I am confused in ecc 6.0 send me step by step procedure if you don't mind.
thanks
prasad
06-13-2008 7:09 AM
Hi,
go to transaction se80
create a program with the prefix 'SAPMZ', like SAPMZ_SFLIGHT.
Hit Enter for next popup (with Top Include) and save as local object.
Right Click on Object Name and create a screen 100 and save.
Click on the Layout Button to call the screen painter.
In screen painter, press F6 to use Dictionary / Program fields
Type in SFLIGHT, hit Enter and select relevant fields.
In the Top Include, declare sflight structure with 'tables' statement and activate.
In pbo, create a module and type your select query.
Check and Activate the Object SAPMZ_SFLIGHT..
Finally create a transaction for the above object and execute.
Below is the code.
Reward if useful.
With Regards,
Wajid Hussain
* * * * *
&----
*& Module Pool SAPMZ_SFLIGHT
*&
&----
*&
*&
&----
INCLUDE mz_sflighttop . " global Data
INCLUDE MZ_SFLIGHTO01 . " PBO-Modules
INCLUDE MZ_SFLIGHTI01 . " PAI-Modules
INCLUDE MZ_SFLIGHTF01 . " FORM-Routines
&----
*& Module pbo_100 OUTPUT
&----
text
----
MODULE pbo_100 OUTPUT.
SELECT SINGLE * FROM sflight.
ENDMODULE. " pbo_100 OUTPUT
&----
*& Include MZ_SFLIGHTTOP Module Pool SAPMZ_SFLIGHT
*&
&----
PROGRAM SAPMZ_SFLIGHT.
tables: sflight.
06-13-2008 5:49 AM
Hi,
creating module pool program is same in both.
please go through this link for Module pool programming
http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
You can also check the transaction ABAPDOCU which gives you lot of sample programs.
Also you can see the below examples...
Go to se38 and give demodynpro and press F4.
YOu will get a list of demo module pool programs.
One more T-Code is ABAPDOCU.
YOu can find more examples there.
See the prgrams:
DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://www.sapgenie.com/abap/functions.htm
Regards,
Sravanthi
06-13-2008 11:25 AM
Hi
Check this Site, Here You FInd Number Of Example On
SIMPLE MODULE POOL PROGRAM
http://www.saptechnical.com/Tutorials/ABAP/image/screen.htm
Reward All Help full answers
Regads
Fareedas
06-08-2010 7:29 AM