‎2014 Aug 25 8:03 AM
Hi All,
In my selection screen I am having four fields they are plant,sales org,cond type and cond table.All the four are mandatory fields.But the requirement is as follows:
The first screen shot represnts the selection screen of my report but with different fields.After inputting the values to the fields on the selection screen, it look as same as screen shot 2.But the when user press enter button after inputing the values the text of the provided value should be displayed.The text should be varied upon the values provided for the fields on selection screen.The screen shot 3 serves as example for how the selection screen of my report should be displayed after pressing the enter.Please suggest me in resolving the issue.Thanks in Advance.
Screen shot 1
Screen shot 2
Observe the texts of the inputted values in below screen shot after pressing the enter button expecting the same result on my selection screen.
Screen shot 3
Regards,
Chakradhar.
‎2014 Aug 25 8:06 AM
Hi
Is this a copy of your previous thread or do you still have this issue?
regards
‎2014 Aug 25 8:17 AM
Hi Mateusz,
I still have an issue. As of now I provided the texts using the F4 help for all fields.If the user selects F4 help and select any record the text of the particular record is also displaying just beside the value as shown in screen shot 3 in original post.But the functional changed the requirement that he want to describe the text of the field even though the user enters the input values manually and press 'ENTER ' button then the texts of the input values should be described.
Regards,
Chakradhar.
‎2014 Aug 25 8:21 AM
So you need to use event AT SELECTION-SCREEN OUTPUT and in that event put the code that updates the texts depending on the values in the fields.
regards
‎2014 Aug 25 8:30 AM
Hi,
Thanks for your reply.I tried it but it is not working fine. As I am fetching the data at the event AT SELECTION SCREEN ON VALUE-REQUEST when user enters the value manually this event will not trigger.So, no value is populated to the text field and it is not displaying anything.
Can you suggest me the fct code for enter button.
Regards,
Chakradhar.
‎2014 Aug 25 8:34 AM
‎2014 Aug 25 8:34 AM
This is why I said "use event AT SELECTION-SCREEN OUTPUT and in that event put the code that updates the texts".
AT SELECTION-SCREEN OUTPUT.
read table lt_skat into ls_skat with key SAKNR = YOUR_PARAMETER_HERE.
IF SY-SUBRC = 0.
W_DYNPFIELDS-FIELDNAME = 'TXT'.
W_DYNPFIELDS-FIELDVALUE = ls_skat-TXT20.
APPEND W_DYNPFIELDS TO I_DYNPFIELDS.
CLEAR W_DYNPFIELDS.
"DYNP_VALUES_UPDATE
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = SY-REPID
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = I_DYNPFIELDS.
ENDIF.
You will also have to fill the table LT_SKAT as in the SELECTION-SCREEN OUTPUT it will not have any values. You can read the value from the DB I suppose.
regards
‎2014 Aug 25 8:13 AM
You need to declare a comment line in Selection screen design.
SELECTION-SCREEN : BEGIN OF LINE.
PARAMETERS : p_input TYPE text20 OBLIGATORY.
SELECTION-SCREEN : COMMENT 30(10) v_text.
SELECTION-SCREEN : END OF LINE.
Then use AT SELECTION SCREEN OUTPUT event to fetch and display it.
AT SELECTION-SCREEN OUTPUT.
IF NOT p_input IS INITIAL.
v_text = 'Text Entered'.
ELSE.
CLEAR v_text.
ENDIF.
‎2014 Aug 25 8:37 AM
Hi Davisraja,
Thanks for your reply.I think you did not understand the my query properly. The text cannot be hardcoded as it is been changing upon the value provided by the user.
Regards,
Chakradhar.
‎2014 Aug 25 8:47 AM
I cannot spoon feed everything to you.
As a developer I have given the logic.
You need to fetch the data to be displayed in the comment on the AT SELECTION SCREEN OUTPUT event.
Replace my hardcoded value with your fetched value.
P.S. Dont expect a tailor made solution all the time. Look for logic from the code.
‎2014 Aug 25 8:16 AM
Explore the Selection screen comments option.
For exmaple
SELECTION-SCREEN COMMENT 1(79) V_DESC.
Abhinab