Selection screen in module pool programming..
hi,
I designed some screen elements for KUNNR and MATNR and handled their value selection thru POV request.
I want to select data from my table using these values. Will a simple select statement with AND condition on these values work ? I doubt as even if the user does not enter value for one of these, my select is giong to fail. for e.g. he enters value for KUNNR but not for MATNR.
If that is so then shud i need to design a screen which must display select options like for KUNNR, MATNR etc ? if yes then the value that is displayed there when user selects F4 must be controlled by me. how to design this in module pool ?? where to write statements related to selection screen definition and how to handle its selection ?
thks
it is possible.
I am involved in this topics check my post for one method .
https://forums.sdn.sap.com/click.jspa?searchID=14529204&messageID=1412188
https://forums.sdn.sap.com/click.jspa?searchID=14529204&messageID=1501162
in the above post there is alternative by Rich. that is simple and easy.
Regards
Vijay Babu Dudla
Similar Messages
-
Call report selection screen in module pool program with tab strip control
Hi,
Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
Thanks
ManoHi,
Refer std program:
demo_sel_screen_in_tabstrip.
demo_sel_screen_with_tabstrip.
Call your program with SUBMIT stmt form module program.
Reward points if this Helps.
Manish -
Selection- screen in module pool
hi all,
how to create selection screen in module pool programing,
in screen attributes of module pool, 4 screens are present, but selection screen radio button has been disabled.
how to work by using selection screen radio button.
Regards
SuprithHI Suprith,
You ll find a LAYOUT button on the application tool bar just click that button sceen painter sceen will be opend there you have to design your selection screen. Letf side of the sceen painter you see the options use the options as per your requiment and activate . If you are using module pool program go to SE93 create the t-code and give the program name and the screen name which you have created in se51.
hope this will help you...
reward if useful
regards,
sunil kairam. -
How to create select-options in module pool program
Hi
i am structed at this point could you please tell me
how to create select-options in module pool programSteps to get SELECT-OPTIONS in module pool programs.
<li>. Start one dialog program with SAPZ_TEST.
<li>. Place the below code in the TOP include of the dialog program.
PROGRAM SAPMZ_TEST.
TABLES mara.
SELECTION-SCREEN BEGIN OF SCREEN 2100 AS SUBSCREEN.
SELECT-OPTIONS: matnr FOR mara-matnr.
SELECTION-SCREEN END OF SCREEN 2100.
<li>. Create one screen 2000 .
<li>. Go to Layout of the screen and Define subscreen area on the screen and Name it as g_subscreen.
<li>. Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN g_subscreen INCLUDING 'SAPMZ_TEST' '2100'.
PROCESS AFTER INPUT.
CALL SUBSCREEN g_subscreen.
<li>. Activate all.
<li>. Create Transaction code for the dialog program SAPZ_TEST.
<li>. Execute the transaction code. You will see the select-option like we see on Selection-screen.
I hope that it gets u clear idea.
Thanks
Venkat.O -
How to cal selection screen in module pool
Hi abapers,
I have to use selection screen in module pool programme..How to call selection screen in module pool.
Regards,
ramyaYOU HAVE TO DEFINE YOUR SELECTION SCREEN LIKE THIS
SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE TEXT-456.
SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1
NO INTERVALS.
SELECT-OPTIONS SEL1 FOR SY-SUBRC.
PARAMETERS PAR1 LIKE SPFLI-CARRID.
SELECTION-SCREEN COMMENT /10(20) TEXT-COM.
SELECTION-SCREEN END OF BLOCK BL1.
SELECTION-SCREEN END OF SCREEN 123.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN BEGIN OF SCREEN 99.
SELECTION-SCREEN PUSHBUTTON 15(25) PUBU
USER-COMMAND US01.
SELECT-OPTIONS SEL2 FOR SPFLI_WA-CONNID.
PARAMETERS PAR2 TYPE I.
SELECTION-SCREEN END OF SCREEN 99.
THEN YOU HAVE TO CALL THAT
CALL SELECTION-SCREEN scr.
AFTER THAT YOU CAN CALL THE ANOTHER SCREEN..
CALL SCREEN..
REGARDS
SHIBA DUTTA -
How to provide select-option in module pool programming
Hi all,
How to provide select-option in module pool programming.
If any body knows let me immediately.
Thanks
sudheerHi Sudheer,
Unfortunately there is no standard way of having a select-option in a module pool program.
What you can try is having two fields and creating a range in your program and populating the range at runtime with respective value and trying to simulate some functionality of the select-option.
Hope it helps.
Thanks, Debasish -
Is it possible to print the current screen in Module pool program(Dynpro)?
Is it possible to print the current screen in Module pool program(Dynpro)?
I create a Module pool program , and customer hope can print the screen when they click print button, Is it possible?Does the customer want a screen shot or what? Please elaborate on your requirement.
Maybe you should create a smartform first, which is called when one clicks on print button. But in fact, we need a bit more info than this. -
Uploding sub screens in module pool programs
HI,
Can any one help in uploading sub screens in module pool program .
Regards,
Mahendra.Hi
Debugging of module pool is same as reports, use /h or put breakpoint
but u shud know what u want to check
there are generally two event used in module pool
PBO
This event is used before displaying the screen,It is used to clear fields table, show table control, tabstrip and most important conditionally modify the scrren .
PAI
is used to validate the fields which are entered on the screen with database values and then fetch records from table.
i mean all values to make available in internal table
now u would be sure which part u want to debug.
<REMOVED BY MODERATOR>
Regards,
Chandru
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 6:19 PM -
Regarding selection-screen in module pool
hi
experts,
i am having doubt in module pool programing...
i want create selection screen(pop screen with field) in modulepool., before the display screeen deatils
ex : if i want display the record details for that particular
record number.......
while i am click on display..
pop-up-selection screen will come with record number field..
i f enter the record no, display s the details...
AnanandPlease see Rich's answer here:
[Dialog programming - How to place a select-option field in a dialog screen;
Rob -
Select option in module pool program
Hi,
I have develop a module pool program. In one of the screen i need select option. so do any one have idea or approach for it.
Thanks in advance.Hi,
try the following code
tables : mard.
data : ok_code_100 type sy-ucomm.
selection-screen begin of screen 1010 as subscreen.
selection-screen begin of block b1 with frame title text-001.
select-options: s_werks for mard-werks,
s_lgort for mard-lgort.
parameters : p_var like disvariant-variant.
parameter: p_rb1 radiobutton group rd1 default 'X', " list
p_rb2 radiobutton group rd1. " grid
selection-screen end of block b1.
selection-screen end of screen 1010.
start-of-selection.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
text
module status_0100 output.
set pf-status 'Z11_SUBMIT'.
set titlebar 'CALL'.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module user_command_0100 input.
case ok_code_100.
when 'EXIT'.
leave program.
when 'SUBM'.
submit z11_ap_alv_mat using
selection-screen '1000'
with s_plant in s_werks
with s_stor in s_lgort
with p_var = p_var
with p_rb_01 = p_rb1
with p_rb_02 = p_rb2
and return.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
here u have to design a subscreen area SUB_1010 in the screen painter, there is a option given there for that.
and also in the flow logic of screen 0100 you have to call the subscreen SUB_1010 both in PBO and PAI like :
process before output.
module status_0100.
call subscreen sub_1010 including sy-repid '1010'.
process after input.
call subscreen sub_1010.
module user_command_0100.
reward if helpful -
Select-options in module pool programming
hi,
I need to have four fields as part of my layout that are select-options fields with multiple values entry options. Since layout doesnt have 'select-options" functionality, i defined it from the module pool program, ie: I wrote a selection screen in the PBO module. The problem is if i make any changes to the code, the layout changes back to the previuos format.
Is there any way in which i can combine selection-screen logic with my layout.
Thanks,
SruthyHI
GOOD
Selection Screen Version
Only for Executable Programs
If you do not specify a selection screen version, the system automatically creates a selection screen based on the selection criteria of the logical database and the parameters and select-options statements in the program.
If you want to use a different selection screen of the logical database, enter a number in this field. The number must be smaller than 1000 and correspond to an additional selection screen of the logical database. The possible values help displays a list of available selection screens. You can also look in the selection include of the logical database (program DBxxxSEL, where xxx is the name of the logical database).
Tomislav
1. In the top include define the selection screen with
selection-screen begin of screen 9250 as subscreen.
SELECT-OPTIONS analyt FOR ztv_cc02-zd_mumla .
selection-screen end of screen 9250.
2. Using the screen painter create a subscreen area in
the main screen where you want to have this.
3. Then, in the screen flow logic code as follows:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000. etc
call subscreen SUB1 including 'PROGRAM NAME' '9250'.
PROCESS AFTER INPUT.
module exit at exit-command. etc.
call subscreen SUB1.
THANKS
MRUTYUN -
Displaying Data Using Selection-screen in Module Pool
Hi All,
Currently I'm working on a module pool program.In that i'm having two screens 9000 and 9001.
I want to select a bookrefno using a selection screen and display header & table control data in 9001 screen when the bookrefno is validated.
can anyone help me sending sample code regarding this
Regards
Ravi SHi Ravi
Place "bookrefno." field on screen 9000.
Use validations on that particular field by using chain-endchain.
in PAI of 9000
case sy-ucomm
when 'display'
call screen 9001
write select statment to display data i.e header & table control in 9001 .
hope this would solve your problem.
reward points, if its helpful.
Thanks
RK Nimma -
Problem in Select-option in Module Pool Programming
Hi,
I'm making one module pool programming. In that, I've to make select-option. For that I'm using this command --
1) In PBO --
CALL SUBSCREEN sub INCLUDING 'YBOE_PRINT' '5100'.
2) In PAI --
CALL SUBSCREEN sub.
But, Syntax Error is generated as below --
"." or "ID.........FIELD" expected after "SUBSCREEN"
Please suggest.
Thanks.
Kumar Saurav.Hi Ramchander,
Thanks for replying. But, even if I changed Prog_Name with term 'repid', that same error regarding
"." or "ID ... FIELD ..." expected after "SUBSCREEN"
is coming up.
I guess, there is any step missing.
Lemme describe what I'm doing in points --
1) I declared SELECTION-SCREEN with screen no --
SELECTION-SCREEN BEGIN OF SCREEN 5100 AS SUBSCREEN.
PARAMETERS : p_bukrs TYPE ekko-bukrs OBLIGATORY DEFAULT '1000'.
SELECT-OPTIONS: kunnr FOR kna1-kunnr.
select-options: gjahr for bsid-gjahr.
select-options: bank for bsed-bank.
select-options: budat for bsid-budat.
SELECTION-SCREEN END OF SCREEN 5100.
2) Then I made a call in PBO as given above.
3) Finally, a call to that subscreen is made in PAI - again as given above.
When I checked that, this gave the error.
Are you looking any erroneous step ...?
Please guide.
Thanks.
Kumar Saurav. -
Checking Records in multiple screens using module pool programming
Hi,
I created student registration form using module pool programming.In first SCREEN i designed like the Below.
Name: <INPUT/OUTPUT Field>
Emailid: <INPUT/OUTPUT Field>
Password:<INPUT/OUTPUT Field>
CREATE<Push Button> SIGNIN<Push Button> cancel<Push Button>
in screen 1000 I created like the above screen and i wrote the code for it.It's successfully inserted records in ZSTUDENT database.
BUT
when i call the second screen 2000.I design the screen like below.And database table is ZSTU_LOGIN.
username : <INPUT/OUTPUT Field>
password : <INPUT/OUTPUT Field>
LOGIN<push Button> EXIT<Push Button>
AND i created Third screen 3000.Like full of detail of student details like First Name,Last Name,DOB,Education Details,Contact Details etc...
BUT I'm facing the pbm is
whatever the record is stored in table ZSTUDENT-Name & password when i call the screen 2000 that USERNAME & PASSWORD are same
Then go to THIRD screen 3000.BUT i wrote the code for second screen 2000 by using SELECT statement.without my code check it will go to third
screen 3000 By the Statement of Call screen 3000.
PLZ any one help me HOW to CHECK the Exact Record From second Screen 2000 to First Screen 1000.
HOW to Check the code AND can u provide me any code available.
thanks,
AnushaHi vikram,
I wrote the code for screen 2000 like below.
MODULE STATUS_2000 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
TABLES : ZSTUDENT_ENTER.
TYPES: BEGIN OF ST_TAB1,
USERNAME TYPE ZSTUDENT_ENTER-USERNAME,
PASSWORD1 TYPE ZSTUDENT_ENTER-PASSWORD1,
END OF ST_TAB1.
DATA : W_TAB1 TYPE ZSTUDENT_ENTER.
DATA : IT_TAB1 TYPE STANDARD TABLE OF ZSTUDENT_ENTER.
DATA : USERNAME TYPE CHAR50,
PASSWORD1 TYPE CHAR25.
ENDMODULE. " STATUS_2000 OUTPUT
*& Module USER_COMMAND_2000 INPUT
* text
MODULE USER_COMMAND_2000 INPUT.
CLEAR W_TAB1.
MOVE-CORRESPONDING W_TAB TO W_TAB1.
IF SY-SUBRC EQ 0.
SELECT SINGLE MAILID PASSWORD
INTO CORRESPONDING FIELDS OF W_TAB
FROM ZSTUDENT_INFO
WHERE USERNAME = W_TAB-MAILID AND
PASSWORD1 = W_TAB-PASSWORD.
CALL SCREEN 2000.
ENDSELECT.
ELSEIF SY-SUBRC NE 0.
MESSAGE 'INVALID USERNAME/PASSWORD'.
ELSEIF SY-UCOMM = 'LOGIN'.
CALL SCREEN 3000.
ENDIF.
ENDMODULE. " USER_COMMAND_2000 INPUT
But i could not found whether code is write or not.
syntax error is USERNAME is Unknown.
could solve me my pbm anybody.....
Thanks,
Anusha -
Making a screen in module pool program web based
I have developed a module pool program with screens and flow logic. I want to make that application web based. Is there any option to make it web based or I have to write the fresh application in bsp. Please suggest
Sucheta,
You unfortuantely need to re-write that application as BSP. If you separated your business logic from the screen logic, then all you will need to do is rewrite the screen logic and not the whole application.
Take care,
Stephen
Maybe you are looking for
-
8.1.2 6plus Facebook stuck on loading icon and blank page
As the title states, once in a week when I open Facebook all that appears is the loading icon and it stays that way. I can't tap the bottom options either (messages, notifications etc.). If I kill the app/restart the phone and re-open facebook, the s
-
When I click on itunes it pulls up an apple player. How do I get it back to itunes.
Yesterday I was using ITunes just fine on my school computer. Today when I turned it on and clicked on Itunes it pulled up a apple mini player. I X it out and tried again from the program list. It pulled up the apple player again, no itunes. Wher
-
Table for P.O. price history data
Is there a table that is being accessed when a P.O. gets its pricing information from the most recent P.O. for this material/vendor combination? I I am seeing 35% being populated for an RL01 condition. I would like to find the number of the past P.
-
Since upgrading to Lion OS 10.7.1, the wifi connectivity keeps blocking up intermittently and we need to manually keep switching on and off the wifi utility to get the connection back. even locking the preferred wifi network in system preferences doe
-
Test scripts , for upgrade project
hi i am doing upgrade project, its my first experience , can someone tell me what is the test scripts for testing, how to prepare it, and what's importance of this for fico side? offcourse points to all. thanx