cancel
Showing results for 
Search instead for 
Did you mean: 

At Selection Screen - On value request

Former Member
0 Kudos

Hi all ,

I am using At selection screen on value request for company code , the value of this company code should come from a country code - which is the 1st parameter in the selection screen and already filled .

However , in AT SELECTION SCREEN - it doesnt recognize the value of my country code ; it shows blank ; and the moment i get in START OF SELECTION ,it recognizes the value .

I am not understanding whatI am missing .

PARAMETERS : p_molga TYPE t500p-molga .

PARAMETERS : p_bukrs TYPE t500p-bukrs .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.

BREAK-POINT .

SELECT molga bukrs name1 FROM t500p INTO TABLE it_t500p

WHERE molga = p_molga.

SORT it_t500p BY bukrs.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BUKRS'"Key field from IT_T500P

dynpprog = sy-cprog "Program

dynpnr = sy-dynnr "Dynpro number

dynprofield = 'P_COCD' "Select-options field

value_org = 'S' "Value Return: C: Cell by Cell and S: Structured

display = 'F' "Override readiness for input

TABLES

value_tab = it_t500p "Table with Selection Values

return_tab = t_return "Return value

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.

Please help !!!

Accepted Solutions (0)

Answers (1)

Answers (1)

phanir_mullapudi
Active Participant
0 Kudos

Try this--> Hit an ENTER after entering value in P_MOLGA and then if you trigger the F4 for P_BUKRS, it will work as expected.

This is what you can propose maybe, beside field P_MOLGA, provide a text field, & when user hits enter get the text for MOLGA, that way user knows to Hit Enter to get Molga text & also P_BUKRS value request will work.

I'll try to look if any other better solution & let you know.

Thanks & regards,

Phani

Former Member
0 Kudos

HI ,

Yes , this works , but problem is that i have few other mandatory fields on the scrn ...

Unless i enter all those fields , i dont get the value after i hit enter .

This is not wat my requirement is ...

Can you pls provide some different solution

Supriya