on 10-24-2011 2:12 PM
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 !!!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.