At Selection-Screen Requirement
Hi,
I have Plant and Storage Location on the Selection-Screen. After User entering Plant and then on Storage Location When he clicks F4, all the Storage Locations belonging to this entered Plant only should appear. Please guide in meeting this requirement.
Regards
K Srinivas
Hi,
Check this code
*& Report ZTEST_F4
REPORT ztest_f4.
INITIALIZATION.
** Table declaration
TABLES : t001l, t001w.
** Type declaration
TYPES : BEGIN OF ty,
lgort type t001l-lgort,
END OF ty.
** Internal table declaration
DATA : int_location TYPE STANDARD TABLE OF ty.
** Internal table memory clear
REFRESH : int_location.
** Selection Screen Declaration
** Begin of block with frame name
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
** Select option declaration of pernr field
SELECT-OPTIONS : s_plant FOR t001l-werks,
s_lgort for t001l-lgort.
** End of block
SELECTION-SCREEN END OF BLOCK a1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgort-low.
PERFORM f4help.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgort-high.
PERFORM f4help.
*& Form F4HELP
* text
* --> p1 text
* <-- p2 text
FORM f4help .
select lgort
from t001l
into table int_location
where werks in s_plant.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'LGORT'
dynpprog = sy-repid " Program name
dynpnr = sy-dynnr " Screen number
dynprofield = 'S_LGORT' " F4 help need field
value_org = 'S'
TABLES
value_tab = int_location " F4 help values
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
ENDFORM.
regards,
Bhavesh.
Similar Messages
-
Input help required for parameter on the selection screen
hi all,
i have created two parameters on the selection screen.
1. deptno
2.empname
so my requirement is if i input any deptno then i should get all
the empname corresponding to that deptno in the parameter empname
ie for deptno 10 there should be f4 help for empname.
here i am pasting my code plz check where i am doing wrong--
*& Report ZTEST10
*& Developer
*& Date: &DATE
REPORT ZTEST10.
tables: zemployee1.
parameters: p_deptno like zemployee1-deptno,
p_empnam like zemployee1-empname.
Data: begin of itab occurs 0,
deptno like zemployee1-deptno,
empname like zemployee1-empname,
empno like zemployee1-empno,
end of itab.
At selection-screen on value-request for p_empnam.
select empname
from zemployee1
into corresponding fields of table itab
where deptno = p_deptno.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'empname'
PVALKEY = ' '
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'p_empnam'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = itab
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I will award ur efforts.
Thanks
sanjeevHi Sanjeev,
If you input any deptno and you should get all the empname corresponding then first you need to use CALL FUNCTION 'DYNP_VALUES_READ'.
EXPORTING
DYNAME = sy-repid
DYNUMB = sy-dynnr
TRANSLATE_TO_UPPER = ' '
REQUEST = 'A'
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = ' '
TABLES
DYNPFIELDS = gt_dynp
declare: DATA : gt_dynp LIKE dynpread OCCURS 0.
loop at gt_dynp into wt_dynp where fieldname = 'P_SUPRID-LOW'.
lv_low = wt_dynp-fieldvalue.
endloop.
Then while selecting use this p_superid-low instead of p_deptno.
Then :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
After this funtion module:
write:
IF sy-subrc = 0.
READ TABLE itab
INDEX 1.
'p_empnam' = return_tab-fieldval.
Declare return_tab as:
DATA: return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
Thanks,
Shweta
ENDIF. -
How to make required field on selection screen in Query
i'm now working with query(SQ01).
but don't know how to make required field on selection screen in Query.
thanks in advancei'm now working with query(SQ01).
but don't know how to make required field on selection screen in Query.
thanks in advance -
Reg logic required for selection-screen.
Hi,
i have one requirement
on selection screen 2 radio button
1 for service
2 for account
Parameter FILE LOCALFILE Filename
If the radiobutton ACCOUNT is selected the default name for file will be:
Rev_acc_com_&system_time_stamp&.dat
Elseif the radiobutton SERVICE is selected the default name for file will be:
Rev_srv_com_&system_time_stamp&.dat
some body can give the logic for this.take the following solution
data: tstamp type TZNTSTMPS.
data: filename type string.
call function 'CONVERT_INTO_TIMESTAMP'
exporting
I_DATLO = sy-datum
I_TIMLO = sy-uzeit
importing
E_TIMESTAMP = tstamp.
if ACCOUNT is selected then
concatenate 'Rev_srv_com_' tstamp '.dat' into filename.
else if SERVICE is selected then
concatenate 'Rev_srv_com_' tstamp '.dat' into filename.
the filename variable will be containing ur required file name..
reward points if useful.... -
How to skip required check on mandatory field of selection screen
Hi expert,
In my report, I define two rodiobutton to show block1 or block2, but every time I click each radiobutton, the message "Fill in all required entry" shown, so my question is how can I skip required check when click radiabutton?
Some of my selection-screen code is :
PARAMETER: P_block1 RADIOBUTTON GROUP GRP1 DEFAULT 'X' USER-COMMAND UC1.
PARAMETER: P_block2 RADIOBUTTON GROUP GRP1.
SELECT-OPTIONS S_ERDAT FOR VBRK-ERDAT OBLIGATORY.Hi,
If you dont want PAI to be triggered when you select the radio button, then you can remove the USER-COMMAND while declaring parameter.
If User Command is necessary, use following code
PARAMETER: P_block1 RADIOBUTTON GROUP GRP1 DEFAULT 'X' USER-COMMAND UC1.
PARAMETER: P_block2 RADIOBUTTON GROUP GRP1.
SELECT-OPTIONS S_ERDAT FOR VBRK-ERDAT .
AT SELECTION-SCREEN.
CHECK SY-UCOMM NE 'UC1'.
IF S_ERDAT IS INITIAL.
MESSAGE E038(001) WITH 'ERDAT IS MANDATORY'.
ENDIF.
Please Reward points. -
Requirement date in ME2O selection screen.
Hi Friends,
I see that requirement date in ME2O selection screen is no where available in the output . Is this equal to PO creation date?Actually in ALV grid list out put, the document date is the Requirement date.
If you analysis the same, you will find the solution.
See I have analysis the same.
In my ME2O transaction, I can see the document date as follow for the Purchase order number
4700048844.
Here the document date is showing 20.12.2011.
When I go to to ME23N to display the PO number 4700048844, I can see the document date is different.
But when I checked the requirement date, then I can see the same date for the PO number. -
AT-SELECTION SCREEN OUTPUT REQUIREMENT
AT SELECTION SCREEN OUTPUT
RADIO BUTTON RECORD1
RADIO BUTTON RECORD2
IF SELECT R1
R2 WILL BE DISABLED
IF SELECT R2
R1 WILL BE DISABLEDhi,
try like this
TABLES : kna1, lfa1.
SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : rad_but1 RADIOBUTTON GROUP one DEFAULT 'X' USER-COMMAND ucom.
SELECTION-SCREEN COMMENT 3(26) text-003.
SELECT-OPTIONS : kunnr FOR kna1-kunnr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : rad_but2 RADIOBUTTON GROUP one .
SELECTION-SCREEN COMMENT 3(26) text-004.
SELECT-OPTIONS : lifnr FOR lfa1-lifnr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN:END OF BLOCK blk1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF rad_but1 = 'X'.
IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH' .
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
screen-input = '0'.
REFRESH lifnr.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF rad_but2 = 'X'.
IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH'.
REFRESH kunnr.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
reward if usefull... -
Two options are required in the Selection Screen
Hi All,
I need a selection screen with two option:
Option 1: Based on Open delivery
The following are the input fields:
In which Delivery types and dates are mandatory
1. Delivery
2. Delivery Type(Mandatory field)
3. Shipping Point/Receiving Point
4. Material
5. Planned goods movement Date(Mandatory Field)
6. Total goods movement Stat
and,
Option 2: Based on Material
There are no mandatory fields in this option,
The following are the input fields:
1. Material
2. External Material Group
3. Plant
I want to implement the same using Radio buttons,
In which If i select the radio button 1, option 1 should be triggered,
and if I select radio button 2, option 2 should be triggered.
How do I go about this??
Thanks,
Debrup.Hi,
Check the following code:
tables: vbap, mara.
parameters: p_open radiobutton group grp1 user-command abc,
p_mat radiobutton group grp1.
selection-screen: begin of block b1 with frame title text1.
parameters: p_vbeln like vbap-vbeln modif id opn,
p_matnr like vbap-matnr modif id opn,
p_grkor like vbap-grkor modif id opn,
p_vstel like vbap-vstel modif id opn.
selection-screen: end of block b1.
selection-screen: begin of block b2 with frame title text2.
parameters: p_matel like mara-matnr modif id mat,
p_matkl like mara-matkl modif id mat,
p_satnr like mara-satnr modif id mat.
selection-screen: end of block b2.
initialization.
p_open = 'X'.
at selection-screen output.
text1 = 'Open orders'.
text2 = 'Material'.
if p_open = 'X'.
loop at screen.
if screen-group1 = 'OPN'.
screen-active = 1.
modify screen.
endif.
if screen-group1 = 'MAT'.
screen-active = 0.
modify screen.
endif.
endloop.
elseif p_mat = 'X'.
loop at screen.
if screen-group1 = 'MAT'.
screen-active = 1.
modify screen.
endif.
if screen-group1 = 'OPN'.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
Regards,
Bhaskar -
Selection-screen navigation process required immeidately
Hi all,
I am having a program, if i execute that we will have 3 radio butons like basic data,
financial data, tax related data of the customers. when i select one of the radio buton and execute one selecion screen 500 will be displayed. selection screen 500 is common for all the radio buttons but based on the radio button some of the fields will be disabled.
what my problem is when i select one radio button and gave values in the selection screen , for the valid values it will display the data in the grid format. and i come back to the selection screen ,I have a situation where if the valid value is entered and there is no corresponding value for that selection i need to go back to the same selecion screen and a message should be displayed.
HOW TO HANDLE THIS?
Thanks,
Nagaraju.The following is the code....
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
PARAMETER: P_BWAF0 RADIOBUTTON GROUP RAD1 DEFAULT 'X'
USER-COMMAND PC,
P_BWAF1 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN END OF BLOCK BLK1.
*C-- Period range
SELECTION-SCREEN: BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: S_DATE FOR SY-DATUM MODIF ID PER.
SELECTION-SCREEN: END OF BLOCK BLK2.
AT SELECTION-SCREEN OUTPUT.
PERFORM SCREEN_INITIALIZE.
*& Form screen_initialize
text
FORM SCREEN_INITIALIZE .
IF P_BWAF0 EQ 'X'.
W_SSCRFIELDS-UCOMM = SPACE.
ELSE.
W_SSCRFIELDS = 'RAD1'.
ENDIF.
LOOP AT SCREEN.
IF W_SSCRFIELDS-UCOMM EQ 'RAD1'.
IF SCREEN-GROUP1 = 'PER'.
CLEAR: S_DATE.
SCREEN-ACTIVE = 1.
ENDIF.
ELSE.
IF SCREEN-GROUP1 = 'PER'.
CLEAR: S_DATE.
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDFORM. " screen_initialize -
Selection screen as Subscreen help required
Hello All,
I am facing a problem by calling selection screen as subscreen, Here is my problem
In my main screen i have create a sub screen as search help
so in my sub-screen i have select-options
If i click the button to include and exclude some values i don't see the dailog box for selections is not appearing.
Please provide help. I need to allow the user to enter some n values?
Regards,
LisaHi,
There is a small mistake that you are doing..
In the subscreen donot create the select options... What you need to do is... in the TOP Include write lines like..
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
SELECT-OPTIONS s_proj FOR zimple_crmt_1000-title_part.
SELECT-OPTIONS s_cr FOR crmd_orderadm_h-object_id.
SELECTION-SCREEN END OF SCREEN 1010 .
Then.. in the screen where you have subscreen to be included write
PBO
CALL SUBSCREEN subs_1010 INCLUDING sy-repid '1010'.
PAI
CALL SUBSCREEN subs_1010.
By doing this... the select option will appear on your subscreen with the extension and interval options.
All the best. -
Selection Screen - Help required
Hi ,
I am developing a SD report in which he selection screen is executed without any inputs it shows me the customers which are maintained against my ID in a Ztable.
However customer needs for internal users he should be able to view all without any inputs.
can anyone help me..?
Varunhi Varun,
do not include the user id on the where condition on your select statement.
regards,
Peter -
Help required on selection screen
In the selection screen in the tool bar i need include the button where we can get the Greater than, Less Than , Equal to buttons. Somethign similar to what is done when we query a table. Ne pointers points assured to correct answer.
Hi
Search the SE16 Main program for the PF status used there with all these SELECTION OPTIONS
and try to copy that fromt hat program to your selection screen
Or try the Fun module
RS_SET_SELSCREEN_STATUS
Reward points for useful Answers
Regards
Anji -
Help Needed in At selection screen output
Hi Experts,
I need your help in AT SELECTION SCREEN OUTPUT event. My issue is i have 4 radio button and with each radio button couple of parameters that need to be filled in selection screen of report. My requirement is that sometimes user enters details in second radio button parameters but forgot to change the radio button to second one so kindly suggest a solution so that radio button gets selected as per user input in parameter like if user clicks on certain parameter to enter value then automatically corresponding radio button gets selected.
Thanks in advance for all your help.example from a checkbox in one of my progs..but you can do same approach with radio butts
parameters p_test as checkbox default abap_on user-command test.
at selection-screen.
if sy-ucomm = 'TEST'.
perform birth_mnth_chck.
endif. -
Compare the input filename in the selection screen
In the selection screen input field
there is an option of selecting the directory and file name and not the extension .
This is used to download the datas
Extension can be selected by using the option button
rtf
csv.
the user has to give only the filename and not the extension.
suppose if the user input is C:\temp\file1.rtf.
Either i should take only the filename
or i should display the message give only the filename and not the extension . its already been selected!!!!
I want to compare the input string contains .doc
how to do the comparison and to get the above results mentiond
Thanks in advanceBecause the requirment is there are two option buttion for selecting the download file format
But unknowingly if the user gives the filename along with the extension. I need to handle that error
giving some error message or information message
By comparing the last 4 letters of the filename.. either.doc or rtf or csv or watever
so how to do that
then after comparing that i should give the user a msg doc type is already selected give only the filename
I hope u understand my req -
Change selection screen in LDB (KDF logical database - NOT HR)
Hi All,
Iu2019d like to use KDF logical database to keep the dynamic selections since user wants to use it but I need to change the selection screen itself. The existing variants for KDF donu2019t meet the user requirements. Some fields I need to hide some add. Like I want to u201Cremoveu201D the field u2018Posting periodu2019 (MONAT) (which is available in dynamic selection screen) and put it on the u201Cmainu201D selection screen.
Do I need to create my own logical database or there is a way around?
Could someone give me a practical advice or sample of solution?
Thanks a lot.Thanks Himanshu,
I did as you suggested but problem is that it does not allow me to hide the whole block.
I have 3 filelds actually on block KD_0 I need to hide (its from selection screen of KDF logical database.)
SELECT-OPTIONS: KD_LIFNR FOR LFA1-LIFNR MATCHCODE OBJECT KRED.
SELECT-OPTIONS: KD_BUKRS FOR LFB1-BUKRS.
SELECTION-SCREEN END OF BLOCK KD_0.
PARAMETERS KD_INDEX AS SEARCH PATTERN FOR TABLE LFA1.
What I did is below. I used sp instead of u201C=u201D since it has many screen for field KD_LIFNR(for frame, text etc).
And when I did just for KD_LIFNR it was hidden but when I did the same for KD_BUKRS it was not hidden . The field has stars u201C*********u201D in it.
Same happen with KD_INDEX. The name of the field is hidden but field not and it filled with ********. Do you have any ideas what it can be?
I debugged it to catch all screen names but no luck
loop at screen.
if screen-name cp 'KD_LIFNR' or
screen-name cp 'KD_BUKRS' or
screen-name cp 'KD_INDEX' or
screen-name = '%B000003_BLOCK_1000' or
screen-name = 'SSCRTEXTS-FRAME_TEXT' or
screen-name = 'SSCRTEXTS-MCID_TEXT' or
screen-name = 'SSCRTEXTS-STRNG_TEXT' or
screen-name = 'SSCRFIELDS-SEARCH_BTN' or
screen-name = '%B025008_BLOCK_1000' or
screen-name = '%F021010_1000' or
screen-name = 'ALCUR' or
screen-name = '%F022012_1000' or
screen-name = 'EXCDT' or
screen-name = 'SSCRFIELDS-UCOMM'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
Maybe you are looking for
-
Download link to upgrade AppWorld does not work on BB9900
Hi, I just got a new BB9900. When I opened AppWorld I got the message that I needed to upgrade to a newer version of AppWorld. I clicked the link to open the BB site in my browser, and clicked through on 'update today', I then end up at download si
-
Is This Even Possible? eDirectory syncing passwords with external RADIUS servers.
We are currently have a solution that allows us to use a campus RADIUS server as the authentication mechanism for accessing the Internet. We want to integrate this so users can authenticate with their campus IDs but gain access to the Novell server (
-
Can I make cluster servers auto reload html files without redeploy applications?
For example, I have some html files under application directory, these html files were generated and synchronized to all clustered servers by other external programsfrom time to time¡£ But with weblogic, I have to redepl
-
Hi I want a report in which the report should have tree structure and along with check box Regards Sneha
-
Why is the form resetting?
Hi I'm making this form and when i enter a company name and then choose a Business type the form resets all the text fields. Any idea why and how i can fix this? I have a <cfparam> tag at the top defining a default. Thanks