Modulepool and FunctionGroup
Hi,
I would like to find out, what is the difference, advantages and
disadvantages of using Module Pool, Function Group or just a Program for
building dialog screen processing. Which is the most preferable and
why?
Hi,
Completely agree with Pooja's reply. This entirely depends on your requirement for the nature of development.
But certainly there are some advantages of using module pool over classical report that if there are mutiple screen that you need to work on, then it is better to use dialog programming.
Also you can design multiple selection screen using dialog programming but is report you can have only one selection screen.
Controls can be easily dragged on to the screen and use, but in reports you need to code for designing your selection screen.
And a lot more.....But its better that you explore yourself...
Hope this helps you.
Regards,
Tarun
Similar Messages
-
Difference between ordinary report and modulepool
Hi sdn peoples,
I like to know the difference between modulepool and ordinary
report.why we go for module pool ..list me the difference pls..
regards& thanks ,
veeraHi,
Module pool programs are created in abap development work bench (TCODE: SE80).
Here we can do all the works whatever you can do in abap.
Module pool programs are also called dialog programs.
The module Pool are reports prepared for different screens and to manage the sequeence of events of these screens, in the transaction SE80 you can see all the dynpros that you have for this kind of report, add new ones, add all types of element to the report.
Process Before Output is the part of the dynpro code that is precessed before the user can do anithing with the data in the screen
Process After Input is the part of the dynpro code that is preocessed after the interaction with the user.
module pool programs are excuited using Tcode
Thanks,
Shankar -
Difference between screen painter and module pool
Hi guys,
what's the difference between SCREEN PAINTER and MODULE POOL ....
can anyone plz give brief description ...
regards
venuhi ,
As its said by many colleagues in SDN , there are not very major differences between Modulepools and screen painter .
The few differences are :
1) <b>Module pool is nothing but a pool ( series ) of screens . and Screen painter ( SE51 ) is a tool used for creating/designing screens .</b>
2) <u>While creating a modulepool you even need to create a transaction and assign this module pool program else the mpool program doesnt work . I think this is place we can say they are different .</u>
3) <b>If at all you create a screen in screen painter ( SE51 ) , that doesnot function by its own , you need to assign it to any of the executable programs or modulepool programs .Here is again a difference .</b>
Regards,
Ranjita ..
Message was edited by:
Ranjita Kar -
Hi GURU ,
I want to row colour at Modulepool Table Control .
I have two screen at modulepool and I am using Table Control .I want to colour the row of thats Table Control .
How Can I do this , Is there any Method to do this .
Please reply me .
Thanks and Regards
TarakHi,
You can color a row in table control, but you can color text.
If you want tot color a row, then go for ALV.
Color text in module pool:-
it_zekpo is my internal table w/o header line,
wa_zekpo is work area.
Name of input/output fields on screen are:-
wa_zekpo-field1,
wa_zekpo-field2, and so on...
Take the group1 for all textboxes as 'ABC' in the table control
Try using code:-
At screen logic:
PROCESS BEFORE OUTPUT.
* MODULE status_8003.
LOOP WITH CONTROL po_tb.
MODULE read_data.
ENDLOOP.
PROCESS AFTER INPUT.
* MODULE user_command_8003.
LOOP WITH CONTROL po_tb.
MODULE modify_data.
ENDLOOP.
In PBO
*& Module READ_DATA OUTPUT
MODULE read_data OUTPUT.
READ TABLE it_zekpo INTO wa_zekpo INDEX po_tb-current_line. "po_tab is table control name
data : line_count type i.
describe it_zekpo
lines line_count.
po_tb-lines = line_count + 10.
"to increase the number of lines in table control dynamically
if po_tb-current_line = '4'. "<--say u want to color text in 4 row
if screen-group1 = 'ABC'.
loop at screen.
screen-intensified = 1.
endloop.
modify screen.
endif.
endif.
ENDMODULE. " READ_DATA OUTPUT
In PAI
*& Module MODIFY_DATA INPUT
MODULE MODIFY_DATA INPUT.
MODIFY IT_ZEKPO FROM WA_ZEKPO INDEX po_tb-currentline.
"this will insert a new line
"and will modify the contents of existing line
ENDMODULE. " MODIFY_DATA INPUT
Hope this helps you.
Regards,
Tarun -
Multiple transaction codes for a SAP program
Hi,
For some SAP programs , there are multiple tcodes in SE80.
As program is same with selection screen same as , for example 1000, how the functionality differes with different tcodes?
how is the code written to handle different tcodes in the same program?
Thanks for help in advance.
Regards,
YogitaHi,
We have Different types of Programs such as Executable, Modulepool and Functionpools.
We can design different selection-screens, Normal Screens through all of the above program types with different transactions.
Based on transaction we can write its own functionality.
Ex: ZZ01 for change => all fields in editable mode
ZZ02 is for Display => all fields in display mode.
(Module Pool, Normal Screen.)
declare one Module under PBO. Module FIELD_ATTRIBUTES.
Write code like this:
loop at screen.
If sy-tcode = 'ZZ01'.
screen-input = 1.
elseif sy-tcode = 'ZZ02'.
screen-input = 0.
endif.
modify screen.
endloop.
This is very small example. If you compare F-02 and FBS1 transactions, you can observe this method. We can observe more input fields in FBS1. This is based Configuration also.
Thank you,
Balaji Peethani,
Tanuku. -
how many okcode u can create in modulepool and how to clear okcode?
Hi
In case of dialog programs , each screen has an okcode field associated with it.
okcode captures the user command on PAI .
plz take a look at the code below for further clarification :
Data : ok_code type sy-ucomm.
" in the PAI module MODULE_USER_COMMAND for screen XXX
module module_user_command .
ok_code = sy-ucomm.
CASE ok_code.
WHEN ' ' .
" write the code for the operation to b performed
WHEN ' ' .
" write code 2 for another command
ENDCASE.
endmodule.
use CLEAR ok_code to clear the value of ok_code.
One screen in a module pool program can have a maximum of 1 okcode.
In the same lines , a module pool program can have as many okcode as the number of screens in it.
i hope it helps u..in case of further queries plz revert.
Regards
Pankaj -
Download and Upload Modulepool program
hai all,
Could any one say how to Download and Upload Modulepool program from sap.
Thanks,
Jeevan.Hi Puduru
Welcome to ABAP forums.
If you just want to export Module pool program once, you can use transaction SE80 and menu point Utilities->More Utilities->Upload/Download->Download option ( for each include / component ).
Save it as a text file and then repeat the same process.
Here's other programs for the same functionality. You can use one of them.
http://www.members.tripod.com/abap4/Upload_and_Download_ABAP_Source_Code.html
http://sap.ittoolbox.com/code/d.asp?d=1623&a=s
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/finding your code in bsp applications.article
http://www.geocities.com/rmtiwari/Resources/Utilities/WebViewer.html
http://www.dalestech.com/
Dont forget to rewards pts, if it helps ;>)
Regards,
Rakesh -
Se10 : transporting functiongroups and function modules
We have a function group ZGROUP. In this group we have several function modules.(ZXX,ZXX1,ZXX2, etc)
Now we have to make some changes :
One Abap consultant (A) is changing one function module(ZXX) in the group zgroup.
Another Abap consultant(B) is making an new function module(ZYY) in the group zgroup.
In the transport organizer (se10) .
for Consultant A : request(1) with function module ZXX
for Consultant B : request(2) with function group ZGROUP (because he is adding a new module in the group ZGROUP)
Now Consultant(B) has finished with his new function module(ZYY) and is transporting request(2) to the test system.
What happens: The whole functiongroup ZGROUP is transported to the test system including the function module ZXX of the Consultant(A).
Consultant(A) was still working on his changes , but his module (ZXX) was also transported to the test system.
How can we monitoring this.
When consultant(B) is saving his new module there is now warning or message
that another Consultant(A) is changing a function module in the same group.
Greetings,
HarryHi,
Actually there will be no message or warrning. Untill unless import the transport it will not reflect the changes. i.e. as per your example B transport sent to another system also you will not find the changes made by A.
Thanks
Chandra -
Radiobutton and checkboxes in modulepool
Hi all,
I have drag and dropped 3 radiobuttons and 3 checkboxes in the layout.
My requirement is if i selected the first radio button first checkbox should be checked likewise the rest.
When i tried to execute it is displaying all the radiobuttons checked..im unable to select any radiobutton..how to set the properties in layout so that only one radiobutton can be selected at a time..pls help me out.
regards
swapnaHi,
select all the radiobuttons --> right click --> define --> group.
Take the function group of all radiobuttons as CS and function type as S .
And use code in PAI:-
module user_command_8001.
if rad1 = 'X'
chk1 = 'X'.
chk2 = ' '.
chk3 = ' '.
elseif rad2 = 'X'
chk1 = ' '.
chk2 = 'X'.
chk3 = ' '.
elseif rad3 = 'X'
chk1 = ' '.
chk2 = ' '.
chk3 = 'X'.
endif.
endmodule.
Hope this helps you.
Regards,
Tarun
Edited by: Tarun Gambhir on Feb 27, 2009 11:33 AM -
How can we pass the select-option value to modulepool program?
hi,
how can we pass the select-option value to modulepool program ?
Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
How i get select-option values to PAI of call screen for getting the data from database table to my internal table?Oh I thought that you have selection-screen and again you are working on dialog programming.
if you want to use select-option directly in module pool then it is not possible.
but you can do other way.
create two varaiables
data : v_kun_low like kna1-kunnr,
v_kun_high like kna1-kunnr.
use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
use can enter only low value and high value.
when you come to program point of view
declare one range
ranges r_kunnr for kna1-kunnr.
do the coding like
r_kunnr-low = v_kun_low.
r_kunnr-high = v_kun_high.
r_kunnr-options = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
now you can use r_kunnr in select query ,it will work like select-option.
other than this there is no option.
Thanks
Seshu -
How to Fetch Data From an Internal table to a field in Modulepool Screen ??
In my Modulepool Screen i have two fields ,
Based on the data of the First field ,the second field will display the data.
For ex- first field - I choosed the data -" MARUTI",
then in the second field , all d CARs ( 800,zen,waganor.....)related to MARUTI shd be displayed.
without using POV module hw to use dis ? and also using POV ,what are the function modules to be used ..
pls explore in details...
Thnks to all d contributors for their Time.....see if u have a limited values to display in Listbox, den we will go for vrm_set_values.
but here as per the requirement
thr is no limited Values in d second dropdown box.
Let me Clear abt the requirement.
First field - issue no.
2nd field- Item no.
when u select a particular issue no, den in item it shd display the corresponding item nos related to that issueno. And both Fields r Primary keys in d table( customised Table.)
this is wwht exactly my requirement.
as i created The search help for issueNo, its displaying all the issueno Dat are in DB.
But Itemno Field is nt behaving as per That.
Pls Suggest me.. in details -
Hi,
I am creating a modulepool with a drop down box in one of the dynpros. I have managed to fill it with values using the 'VRM_SET_VALUES' function module.
The problem comes when running the modulepoool. The field displays the drop down box with the correct values, but it does not take the values I select. The first opcion is the defualt, and even though I choose a different one it does not take the change.
Is there something missing?
Thanks in advance,
Nerea.Hi Nerea,
Check with this code
TYPE-POOLS: VRM.
TABLES SPFLI.
TABLES SSCRFIELDS.
DATA flag.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS PS_PARM LIKE SPFLI-CARRID AS LISTBOX VISIBLE LENGTH 10
USER-COMMAND
fcodex.
data: i_spfli type spfli occurs 0 with header line.
PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
USER-COMMAND
fcodey.
INITIALIZATION.
NAME = 'PS_PARM'.
DATA T TYPE I VALUE 0.
SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
SPFLI.
loop at i_spfli.
VALUE-KEY = i_spfli-CARRID.
VALUE-TEXT = i_spfli-CARRID.
APPEND VALUE TO LIST.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
AT SELECTION-SCREEN.
if sy-ucomm eq 'FCODEX'.
REFRESH LIST.
CLEAR LIST.
PQ_PARAM = ' '.
NAME = 'PQ_PARAM'.
SELECT * FROM SPFLI WHERE CARRID = PS_PARM.
VALUE-KEY = SPFLI-connid.
VALUE-TEXT = SPFLI-connid.
APPEND VALUE TO LIST.
ENDSELECT.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
clear i_spfli.
refresh i_spfli.
select * into table i_spfli from spfli where carrid = ps_parm and connid
= pq_param.
loop at i_spfli.
WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
'DEPARTURE TIME :', I_SPFLI-DEPTIME.
ENDLOOP.
Reward with point if it is helpful
Regards
Alfred -
hi experts,
I am facing one issue regarding the modulepool programming . In Module Pool Programming I am using select-options, I want to upload the selected ranges and also the excluded values as zeros in the database.Please any one help me.You can use the Select-Option as Ranges in a select statement....if you want exclude Zeros in DB you can use a simple condition.....WHERE VALUE > 0...
Regards -
Whr to find modulepool program of aTransaction
Hi all,
I find main program for a transaction code as report in some entries of TSTC table but when i run a transaction i find the program as modulepool program from system status option. In which table can i find the respective modulepool program of a tcode.
for ez table entry for ME21N in TSTC is RM_MEPO_GUI and its corresponding program is SAPLMEGUI from system status option.
Message was edited by:
chandrahasaHi,
Run your Transaction.
Then the screen of your program Displays.
In the screen In the Right Bottom corner there will be your transaction name. Just click the Icon nearby and find your program name.
Thanks,
Reward If Helpful. -
Hi,
I have table control in modulepool.I have to edit some cells in my table control and update the same fields in actual table after pressing save button.And also I should maintain the modified field in some Ztable.
Plese provide me the code if any body having the same scenario.
It is urgent.
Thanks
sureshrefer these
http://sap.niraj.tripod.com/id25.html
http://sap.niraj.tripod.com/id29.html
<b>http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm</b>
regards,
srinivas
Maybe you are looking for
-
Question on the "SET TRANSACTION" command
I am using Oracle 8i on NT. Our front-end is written in Panther v4.2 (aka, Jam v7.0). We have a situation where we want to do a SET TRANSACTION type of process. IE... Module A is executing DML. It then calls Module B (without committing the DML) whic
-
I want to wipe Ipad and do a clean ios install, but forgot my restrictions passcode
I want to wipe my Ipad 3 and do a clean installation but forgot my restrictions passcode, all of the reset functions are not avaliable.how can I do this to set up as a new Ipad?
-
I'm seeing AD Authentication Failed messages in the console for systems that should trigger that alert. However, the alert description is showing a %%5 every time similar to below - The session setup from the computer XYZZY failed to authenticate. Th
-
Highlight dates in cal output with awk.
Lately I've stumbled across a problem (read: I had a stupid idea and now really want to make it happen) where I wanted to highlight significant dates in the terminal calendar cal. now I have a "working solution" which highlights the dates, however it
-
Hi, I'm trying to insert into the table's row the default time in which the data is added. I'm trying to do something like "INSERT INTO TEST (DATESS) VALUES (to_date(sysdate, 'yyyy/mm/dd:hh:mi:ssam'))" But this don't work. is there other more efficie