Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Descriptions on selection screen

Former Member
0 Likes
3,034

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.

10 REPLIES 10
Read only

Former Member
0 Likes
2,980

Hi

Is this a copy of your previous thread or do you still have this issue?

regards

Read only

0 Likes
2,980

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.

Read only

0 Likes
2,980

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

Read only

0 Likes
2,980

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.

Read only

0 Likes
2,980

Did you try the code that I have given?

Read only

0 Likes
2,980

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

Read only

davis_raja
Active Participant
0 Likes
2,980

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.

Read only

0 Likes
2,980

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.

Read only

0 Likes
2,980

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.

Read only

Former Member
0 Likes
2,980

Explore the Selection screen comments option.

For exmaple

SELECTION-SCREEN COMMENT 1(79) V_DESC.

Abhinab