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 S
Hi 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
Similar Messages
-
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 -
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. -
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 -
At Selection Screen in Module Pool
Hi,
I am doing an Module pool which has 2 screens.
First screen has a table control.
When user double clicks any record in the table control I have to process further with value of the clicked record.
Can anyone let me know how the At Line Selection works in Module pool.
Thanks & Regards,
Sandeephi
u have to make field of table control <b>respond to double click</b> in attributes of that field.
make one button 'PICK' and assign recommended key 'F2' in GUI Status (Its Compulsary to give 'F2')
now in User_command of PAI
case sy-ucomm.
when 'PICK'.
endcase.
Message was edited by:
Dhwani shah -
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 ?
thksit 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 -
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 -
Validation Of selection screen in Module pool
Hi Guru,
I am giving Plant as input at selection screen.
Below that I am creating one table control at selection screen.
I have to do validation of the Plant at the selection screen.
I am doing that IN PAI module. But when i give wrong plant at selection screen the table control fields get disable.Then I tried b/w chain end chain the same problem i am facing in that case. Please help me to resolve that.
Maximum point will be rewarded.hi
if you are giving a msg when user input a wrong plant then do not give that message as Error type give it as type 'S' -
To get a pop up screen in Module pool
Hi,
Can any one tell me how to get a pop up screen while clicking a button in selection screen in module pool program.
regards,
Ruchika sainiHi Ruchika,
This is the function module used in the program .
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Question'
text_question = 'Want delete records old table'
text_button_1 = 'YES'
text_button_2 = 'NO'
display_cancel_button = ' '
start_column = 25
start_row = 6
IMPORTING
answer = answer.
Regards,
Nihar Swain. -
Getting select options in module pool screen
hi experts,
can any one suggest me how to provide select options in module pool screen.
thank you,
regards
vijayHi,
Take two fields on screen first for low value and other for high value (say vbeln_low and vbeln_high) also design a button next to the high textbox for select-option button used to display popup.
Using these two input fields append a range (say r_vbeln for vbap-vbeln) for the field to be used (either in query or anywhere).
ranges : r_vbeln for vbap-vbeln.
IF NOT vbeln_high IS INITIAL.
IF NOT vbeln_low LE vbeln_high.
MESSAGE e899 WITH text-007. "high value is smaller than low value
ENDIF.
ENDIF.
r_vbeln-sign = 'I'.
r_vbeln-low = vbeln_low.
IF vbeln_high IS INITIAL.
r_vbeln-option = 'EQ'. "if user takes only a singlr value
ELSE.
r_vbeln-option = 'BT'. "if user takes both low & high value
r_vbeln-high = vbeln_high.
ENDIF.
APPEND r_vbeln. "append range
CLEAR r_vbeln.
On the button click call this FM to call a popup for select-options.
DATA : tab TYPE rstabfield.
tab-tablename = 'VBAP'.
tab-fieldname = 'VBELN'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = text-002
text = ' '
signed = 'X'
* lower_case = ' '
* no_interval_check = ' '
* just_display = ' '
* just_incl = ' '
* excluded_options =
* description =
* help_field =
* search_help =
tab_and_field = tab
TABLES
range = r_vbeln
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
IF sy-subrc EQ 2.
MESSAGE s899 WITH text-003. "no value selected
ELSEIF sy-subrc <> 0 AND sy-subrc <> 2.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
This whole code will append your range r_vbeln to be used in program.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir -
Select Option on Module Pool screen
How to display select options on Module Pool screen ?
Via the search functionality, you will find something like :
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
SELECT-OPTIONS: S_CARRID FOR SPFLI-CARRID,
S_CONNID FOR SPFLI-CONNID.
SELECTION-SCREEN END OF SCREEN 101.
and to use a CALL SELECTION-SCREEN xxxx in your module pool.
regards,
Hans -
How to creat select-option on module pool screen???
Hi All,
please tell me how to creat select-option on module pool screen???
Regards
DeepakHi Deepak Kumar Sharma,
There are Two ways to achieve it...
1) How to create a select-options in a module pool screen.
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
select-options s_matnr for mara-matnr.
SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING <program> <screen>
This call subscreen statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR'
struc_tab_and_field-tablename = con_kna1. " 'KNA1'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' '
text = g_titl1 " 'Customers'
tab_and_field = struc_tab_and_field
TABLES
RANGE = rng_kunnr
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5.
IF NOT rng_kunnr[] IS INITIAL.
Read the very first entry of the range table and pass it to
dynpro screen field
READ TABLE rng_kunnr INDEX 1.
IF sy-subrc = 0.
g_cust = rng_kunnr-low.
ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
Also have a look on below threads
how to make select option in module pool
select option in module pool program
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7 -
Selection-screen in module program
Hi,
I have created a module pool prog.
Now the new regd. is that I want to create selection-screen before displying the actual screen.
But when I m trying to use selection screen then I m getting the message that it is not possible in type 'M' as my program is module pool.
I m using screen 9000 to display the records, now where to write selection screen in the program?
I think in PBO but getting some error, I have created one screen and in that defined a subscreen but it is giving some error.
So any body knows how to add selection screen in 'M' type program?
Thankx in advance.
UmeshHi,
You can create a selection-screen for a module pool program.
Create a new program with executable type. Create the selection screen as you would do in a normal program. Once you give data in the selection and press F8 button, based on the logics written, the O/P must appear in a table control. This is what your requirement is:
A example below for your understanding.
name of the prog : ZTEST
Type: Exectable report (I)
*----Selection Screen -
SELECTION-SCREEN BEGIN OF BLOCK IPDATA WITH FRAME TITLE TEXT-001.
PARAMETERS: PR_MONTH LIKE BOITEM-SPMON.
SELECT-OPTIONS: SO_VKGRP FOR KNVV-VKGRP.
SELECTION-SCREEN END OF BLOCK IPDATA.
SELECTION-SCREEN BEGIN OF BLOCK ORGDATA WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: SO_REGIO FOR KNA1-REGIO,
SO_KUNNR FOR KNA1-KUNNR,
SO_WERKS FOR T001W-WERKS.
SELECTION-SCREEN END OF BLOCK ORGDATA.
*--Selection Screen Events--
START-OF-SELECTION.
W_CURMFDAY = SY-DATUM.
W_CURMFDAY+6(2) = '01'.
PERFORM F001_GETDATA.
IF SY-DBCNT EQ 0.
MESSAGE S017(ZSFL).
EXIT.
ENDIF.
PERFORM F002_ADDITIONALDATA.
CALL SCREEN 100.
For this screen 100, both the PBO and PAI can be declared in this main program itself.
Regards,
JLN. -
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 -
How to get calender in f4 helpfor select options in module pool (urgent)
Hi All,
how to get calender in f4 help for select options in module pool
Please help .
Thanx in advance,
amrutaHi,
Check this Example..
Tables:Mara.
Select-options:s_matnr for mara-matnr.
Types:Begin of i_mara,
matnr like mara-matnr,
end of i_mara.
data:it_mara type standard table of i_mara.
At selection-screen on value-request for s_matnr-low.
Select matnr from mara into table it_mara.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MATNR'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_MATNR-LOW'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MARA
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
Maybe you are looking for
-
Is there a way to secure my work email on my iPad in the event my device gets lost or stolen?
I recently got a job where I was issued an email that is accessible online. I love using an email client that helps to organize my emails. However, I am concerned than in the event that my iPad becomes lost or stolen, I may jeopardize the security of
-
Hi experts if i create Six Account group for customers and create customer with different company codes i want report to see all customer at a time in single report is it possible ? how?
-
Larger Video Play Buttons in Flash
How do you get larger video play/pause buttons when importing a video in to Flash. My current buttons are too small and I need to find larger ones. How do you do that?
-
IPTC tag names used for text output in BorderFX export
Does anyone have a reference list? Nothing is documented or forthcoming on the BorderFX site. For example, I have a photo with IPTC entries on the Aperture metadata/aka info tab under the Image section for both City and Location. BorderFX has a bu
-
Final Cut 7 - problems burning blu ray
Hi Got my final cut studio upgarde today. Looks quite nice. Having trouble to Share to a blu ray disk. Redering takes quite some time and during create disk the progress goes up to 60% and stops. I use an LG Bluray burner with a SATA to ATA adaptor.