Reg:modulepool programming
Hi,
Can anyone please tell me how to solve this issue.That is I developed a module pool program with screen no 100 and to that screen i want to add another screen for example 110 that is after entering the values in screen 100 and when i press Enter key i should enter into screen 110.
Please guide me how to do this
Hi,
Create screen 110. In the attributes of Screen 100, set Next Screen to 110. Now you don't need to call the screen 110 on condition, as you press the ENTER key on the keyboard you will be taken to next screen 110.
Else, if you want on the conditional access, do as given in the above replies.
Similar Messages
-
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 -
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 -
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. -
How to handle two radio buttons in modulepool program
hi,
i am creating 2 radio buttons on the initial screen of a modulepool program, here i am unable ot handle those 2 radio buttons.
when executing by default these two radio buttons are selected.
pls send me the sample code that how to handle.Prasad,
In the Screen Painter, highlight both radio buttons at the same time (using CNTL key).
From menu bar, choose: Edit > Grouping > Radio Button Group > Define.
Now they are "linked" to each other.
Don;t forget those points. -
hi, iam doing modulepool programming in the bigging stage .while iam doing i have a doubt that idont know the difference between writing the exit case statment in PAI module and writing code for exit in seperate module out side PAI.
please help me inthis contextHI,
1. Exit in case statement.
CASE okcode.
when EXIT_TAB.
SET SCREEN O.
LEAVE PRGRAM.
ENDCASE.
2. writing exit in another module..
MODULE EXIT_MODULE AT EXIT COMMAND.
inside the exit module write the same code
set screen 0.
leave program.
REWARD IF HELPFUL
thanks
vivekanand -
Wht we do in modulepool programming
hi abapers,
can u plz guide me
1. wht we do in modulepool programming
2.can u plz send one senario to undersatnd the perpose.
thanks in addvanceHi,
Check these links.
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://www.sap-img.com/
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
REPORT ZBHMOD1 .
DATA:OKCODE1 LIKE SY-UCOMM,
OKCODE2 LIKE SY-UCOMM.
DATA:N1(10) TYPE N,N2(10) TYPE N,RES(12) TYPE N.
MODULE USER_COMMAND_1000 INPUT.
CASE OKCODE1.
WHEN 'NEXT'.
RES = N1 + N2.
SET SCREEN 1001.
WHEN 'CLEA'.
CLEAR:N1,N2.
WHEN 'BACK'.
SET SCREEN '0'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT1'.
ENDMODULE. " STATUS_1000 OUTPUT
MODULE USER_COMMAND_1001 INPUT.
CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN 1000.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
MODULE STATUS_1001 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT2'.
ENDMODULE. " STATUS_1001 OUTPUT
FLOW LOGIC:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.
2)
REPORT ZBHMOD2.
DATA: OKCODE1 TYPE SY-UCOMM,
OKCODE2 TYPE SY-UCOMM,
ENAME(10) TYPE C,
DNAME(10) TYPE C.
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT1'.
ENDMODULE. " STATUS_1000 OUTPUT
MODULE STATUS_1001 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT2'.
ENDMODULE. " STATUS_1001 OUTPUT
MODULE USER_COMMAND_1000 INPUT.
CASE OKCODE1.
WHEN 'BACK'.
SET SCREEN '0'.
WHEN 'NEXT'.
DNAME = ENAME.
SET SCREEN '1001'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
MODULE USER_COMMAND_1001 INPUT.
CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN '1000'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
FORM ON_CTMENU_FORM USING ZDEMO1 TYPE REF TO CL_CTMENU.
CALL METHOD ZDEMO1->LOAD_GUI_STATUS
EXPORTING
PROGRAM = 'ZDEMO1'
STATUS = 'ZDEMO1'
MENU = ZDEMO1.
ENDFORM. " ON_CTMENU_FORM
FLOW LOGIC:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.
Every Screen has a pbo and a pai.
Screen elements are the textbox, buttons, radio buttons and check boxes .....
If we want to pass data from a abap program to a screen element, we have to create a variable with the name we have given in the screen.So whatever the value is present in that variable is reflected on to the screen element.
Here is an example :
Using subscreens and some of the screen elements
REPORT demo_dynpro_subscreens.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA: number1(4) TYPE n VALUE '0110',
number2(4) TYPE n VALUE '0130',
field(10) TYPE c, field1(10) TYPE c, field2(10) TYPE c.
CALL SCREEN 100.
MODULE status_100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE fill_0110 OUTPUT.
field = 'Eingabe 1'(001).
ENDMODULE.
MODULE fill_0120 OUTPUT.
field = field1.
ENDMODULE.
MODULE fill_0130 OUTPUT.
field = 'Eingabe 2'(002).
ENDMODULE.
MODULE fill_0140 OUTPUT.
field = field2.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE save_ok INPUT.
save_ok = ok_code.
CLEAR ok_code.
ENDMODULE.
MODULE user_command_0110 INPUT.
IF save_ok = 'OK1'.
number1 = '0120'.
field1 = field.
CLEAR field.
ENDIF.
ENDMODULE.
MODULE user_command_0130 INPUT.
IF save_ok = 'OK2'.
number2 = '0140'.
field2 = field.
CLEAR field.
ENDIF.
ENDMODULE.
MODULE user_command_100 INPUT.
CASE save_ok.
WHEN 'SUB1'.
number1 = '0110'.
WHEN 'SUB2'.
number1 = '0120'.
CLEAR field1.
WHEN 'SUB3'.
number2 = '0130'.
WHEN 'SUB4'.
number2 = '0140'.
CLEAR field2.
ENDCASE.
ENDMODULE.
flow logic for screen 100
PROCESS BEFORE OUTPUT.
MODULE STATUS_100.
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,
AREA2 INCLUDING SY-REPID NUMBER2.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE SAVE_OK.
CALL SUBSCREEN: AREA1,
AREA2.
MODULE USER_COMMAND_100.
flow logic for screen 110
PROCESS BEFORE OUTPUT.
MODULE FILL_0110.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0110.
flow logic for screen 120
PROCESS BEFORE OUTPUT.
MODULE FILL_0120.
PROCESS AFTER INPUT.
flow logic for screen 130
PROCESS BEFORE OUTPUT.
MODULE FILL_0130.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0130.
flow logic for screen 140
PROCESS BEFORE OUTPUT.
MODULE FILL_0140.
PROCESS AFTER INPUT.
Reward points if useful
Regards,
Priyanka. -
How to create tcode for modulepool program with selection screen?
hi,
How to create tcode for modulepool program with selection screen?
thanks,
sagarHi,
We need to goto SE80.
In our program we right click on object name and goto create
-> transaction. Enter the module pool program and screen number and save and activate.
Or by SE93 also we can create a transaction code for our program.
Hope ths helps.
plz reward if useful.
thanks,
dhanashri..
Edited by: Dhanashri Pawar on Jul 22, 2008 8:29 AM -
Variants in ModulePool program
Hi,
Is there any way to create user variants in module pool programming as we do in reports.
Thanks in advance,
Reg,
HariRaam.RS_CREATE_VARIANT Creating a variant (not using a selection screen)
RS_VARIANT_CATALOG Returns variant directory for a report in an internal table
RS_VARIANT_EXISTS Checks whether variant exists
RS_VARIANT_TEXT Returns text for a variant
regards
vinod -
Getting parameter values from ITS to back end Modulepool program
Hi,
I worked on external ITS developments for SRM project
I was passing values from and to between ITS front end template and corresponding back end module pool program.
I was using filed-set and field-get macro for passing values. It was working perfectly.
Now i am in new SRM 5.0 project where we are using integrated ITS and i developed small screen in which I am trying to read the value which I am entering in template text filed.
In debug mode i could see that ,when it execute FIELD-GET macro getting SY-SUBRC is equal to 1. I am not able to get the template value in PAI because of macro failure.
I just copied the same program which i developed in external ITS system still same problem.
Please some one help me if I am missing some thing in this.
Code which i am using.is
in ITS:
<form method="post" name="zebp_rrcode" action="`WGateURL()`" >
<textarea name="FREE_TEXT_DES" cols="35" rows="10" onKeyPress=fmlength()> </textarea>
<input type=submit name="~OKCode=TEXT" value="Send text">
</form>
In Back end code of PAI.
move sy-ucomm to ok_code.
data: len type i.
data: idx type i.
data: wide_row(80) occurs 0 with header line.
data: wide_text(80) occurs 0 with header line.
idx = 1.
field-get 'FREE_TEXT_DES' idx wide_row len.
if sy-subrc <> 0.
exit.
endif.
Regards
Srikanth Akula
Message was edited by:
Srikanth AkulaHi Srikanth,
Can you please explain us how you were able to get and set the values.
And may i know what for you have developed a Internet Service ie Scenario...?
If you have any help documents for developing ITS application... plz forward it to this mail id...
[email protected]
Thanks
Srinivasan K -
Reg:Print program For FB03
Hi All,
In the Fb03 Transaction When i give print Preview I want to show the Document Date as Blank, by default print preview its coming, hoe can i restrict this, i have done the following steps i don't know how to proceed after this, the steps are as follows,
I have Created a new correspondence type as ZFB03 in OB77.
For Allocation Program For Correspondence i have given the Correspondence and company code in OB78
I don't Know what to give in the Form Name For Correspondence Print?
and also i don't know which program i have to copy and change to ZProgram and where to assign it?
Does anybody know how to resolve this issue?Hi Suresh,
Goto the TCODE OB96 and click on the position and enter your company code..
you will get directly the print program and its form name... the default print program is RFKORD00.
Else you can do like this....
In SPRO follow this path.
ex:-Form 16A
Financial Accounting
Global settings
withholding tax
Extended Witholdong tax
POstings
India
Withholding tax certificates for vendors
maintain no.groups and script forms.
For cheques and Payment Advisory.
Go to FBZP
click on printmethods in company code
click on position
give Company code and payment method
then in the next screen double click on the payment method
This way you will get to see the forms assigned to it.
For Forms for Correspondence.
Financial Accounting
---Global settings
correspondence
define form names for correspondence print.
Thanks & regards,
Dileep .C -
How to use standard classes to create custom modulepool program like ME21N
I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no Attributes and Methods.I wondered y .Thats y i posted a Question .I also seen a lot of Standard classes
CL_TABLE_VIEW_MM
CL_BASIC_MODEL_VIEW_MM
CL_COMPOSITE_SCREEN_VIEW_MM
CL_SCREEN_VIEW_MM
CL_TABLE_VIEW_MM
CL_TABSTRIP_VIEW_MM
CL_TC_BUTTON_VIEW_MM
CL_TC_ITEM_VIEW_MM
CL_TOGGLE_VIEW_MM
CL_VALUE_MODEL_VIEW_MM
and much more for Model and Controllers ..Can u plz guide me how i can make use of this classes effictively in my custom module pool programmingI think all these classes serve the purpose of embracing the basic ones and are used specificalty in MM module.
If you want to create similar module pool program with nice expand/collapse buttons in relation to subscreens please refer the some tips [here|expand/collapse button functionality on module pool screen;
Also there are transactions like BIBS, DWDM which you can follow the examples from. I think SAP has covered all GUI controlls there so you can create really complex programs with various GUI controlls independently of module used for.
Of course you can still stick to classes you mentioned but I think the better is to learn some standard approach of creating such screens, then if you feel more advanced go for using module specific ones if you really need that.
Regards
Marcin -
Reg:Abap program table name
Hi friends,
Which table contains all the abap programs ?
Thanks and Regards
V.Raja sekaranHi V,
Or you can use this transparent table : D010SINF
Thanks
william wilstroth -
can i use parameters & select-options in module pool programming , if yes how i have to use plz any one guide me
hi,
u can define select-option and parameter in the module pool program between the statements begin of screen.....end of screen.
and the use them in the screen.
generally its not advisable to have a select-option in module pool programming.
doing it in the above way will complicate things.
regards,
Navneeth K. -
Advice reg RFFOUS_C program
Hi all,
we are using RFFOUS_C to print checks.We had a requirement of printing with bottom line software. we have to pass the data from RFFOUS_C to bottom line software.
Right now we copied the orginal program and commented all the forms and passed the data to unix file.
I thought there would be a better way than that. Are there any user exits enhancement points to change the selection screen and decativate all the forms and pass the data to unix file.
If any one of you had the same requirement. I would appreciate the advice .I am on ECC 6.0 system
ThanksI am in 5.0 ECC now, and I think what you have done is the best solution for your issue, and I feel that is the only best and safest way to solve your issue as there are no exits provided for that program and also the program is not generated by sonme configuration.
I can say that what you have done is right and go ahead with that.
: Remember : The only to say thanks is by rewarding points.
Thanks and regards,
Veerendrnath Maddula.
Maybe you are looking for
-
To clarify, we have about 100 ipads deployed in our district and lots more on the way. We had just used iTunes in the past to backup one master device with the apps and restored on the remaining sets of iPads. Obviously we wanted a simpler way to
-
Controlling autoupdate of Adobe Flash Player ActiveX with mms.cfg file
For several years we have suppressed Flash Player ActiveX from autoupdating by using the mms.cfg file, with the setting "AutoUpdateDisable=1" -- and it has worked without a problem. With the constant updates of Flash Player for security reasons, we d
-
Draw image between edges in another image
HI i try to draw an image between a specified edges in another image can any one help me and provide me with a code that perform this task
-
How to uninstall App Store updates for OS X Mavericks?
I'm running OS X Mavericks on the latest non-unibody MacBook Pro. With SSD it's very fast with the exception of graphic. However, I noticed to suddently got extremely slow after I install iMovie09 and iLife 9.0.4 updates... I don't know which one tri
-
Best way to install on a Dell Mini 9?
Hello, I'm giving arch a try again, this time on a Dell Mini 9. This machine has an 8GB SSD of which about 5GB is filled with Windows XP. I also have a 16GB sdhc card in the machine, not currently dedicated. There are two possible ways to boot: from