2007 Dec 24 5:34 AM
Hi,
i have desigend my own selection screen in tht i am having one table control in tht i have say two fields
one projectid and objectid first user will press F4 help in the projectid he will selcet his own projectid and then when he presses F4 in the objectid only corresponding object of wht he selected before for the project id should be displayed see for my requirement F4 will not trigger PAI but based on wht projected id he entered he should get objected id so can any help me on this
plzz i will reward for sure
thanks and advance
Sunil kumar Mutyala
2007 Dec 24 5:45 AM
hai sunil acoridng to u rpost wha ti understood is u have 2 selection parameers:
ex:- country
state...
according to the country u r selecting it should reflect on the state...
ex:- india u select india states should come
usa u select us states should come..
am i right? reply me so that i can help u
2007 Dec 24 5:45 AM
hai sunil acoridng to u rpost wha ti understood is u have 2 selection parameers:
ex:- country
state...
according to the country u r selecting it should reflect on the state...
ex:- india u select india states should come
usa u select us states should come..
am i right? reply me so that i can help u
2007 Dec 24 6:03 AM
Hi,
yes, but i want the f4 help should be displayed in the table control, plzzz respond immediately.
2007 Dec 24 6:13 AM
In that case use the same FM i.e. DYNP_READ_VALUES, in addition to FIELDNAME also pass the STEPL field with the value of the row for which user is pressing F4.
~ ranganath
2007 Dec 24 7:19 AM
HI
Ranganath thanks u r answer is some wht help ful but i am not knowing how to fill tht stepl
see i wrote code like this
MODULE VALUE_OBJECTID INPUT.
t_sc_val-fieldname = 'FS_TIME-PROJECTID'.
t_sc_val-STEPL = w_no.
append t_sc_val.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-REPID
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = T_SC_VAL
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11
.
READ TABLE t_sc_val INTO fs_field with key FIELDNAME = 'FS_TIME-PROJECTID'.
please see it how to fill tht stepl is any solution manually i am getting no prob i mean if i give 1 for first row it is getting like tht i cant increase it manually so i should know which line in table control i am reading before PAI so please help me i will reward for sure
2007 Dec 24 7:26 AM
Hi Sunil
May be you sould use your Table control I.E. <cntrL>-current_line for stepl.
~ Ranganath
2007 Dec 24 7:35 AM
Hi
ranganath
can u explain it clearly as i am not getting it please dont think otherwise i searched as i am not getting
please explain it
before PAI triggered i should get the value of the line number
thanks and regards
i will reward for sure
Edited by: Sunil Kumar Mutyala on Dec 24, 2007 8:38 AM
2007 Dec 24 7:41 AM
Hi Sunil,
Check if the GET CURSOR... statment can help to fetch the value of the line number.
2007 Dec 24 7:47 AM
Hi sunil
You might have declared your table control in the program as controls : <tab_cntrl> type tableview .....
Other things which you have done is perfect for calling DYNP_READ_VALUES. But for the STEPL field pass the data as <tab_cntrl>-current_line.
Else, you can do GET CURSOR LINE v_line and then pass this v_line to STEPL.
Either one should solve your problem.
Let me know how it goes.
~ Ranganath
2007 Dec 24 5:47 AM
Use the functiopn module DYNP_values_read to get your project id of particular line item .
then use funtion module F4_int_value_table for search help on objectid
2007 Dec 24 5:49 AM
Use the Function Module for F4 help functionality to a field. 'F4IF_INT_TABLE_VALUE_REQUEST'
Check the Following Code:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR HKONT-LOW.
SELECT KSTAR KTEXT INTO TABLE IT_HKONT FROM CSKU WHERE SPRAS EQ 'EN'.
SORT IT_HKONT BY KSTAR.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'HKONT'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_HKONT
RETURN_TAB = IT_RETURN.
IF SY-SUBRC = 0.
READ TABLE IT_RETURN INDEX 1.
MOVE IT_RETURN-FIELDVAL TO HKONT-LOW.
ENDIF.
Reward Points if useful.
2007 Dec 24 5:49 AM
Hi Sunil,
Can you give the query u used for that purpose?
For more help on Value Help check out the link
[Value Help|http://help.sap.com/saphelp_40b/helpdata/en/9f/dbad1135c111d1829f0000e829fbfe/content.htm]
Regards,
Chandru
2007 Dec 24 5:54 AM
Hi Sunil
Before you call you second F4 for Object id ( I mean in AT selection-screen on value-request for P_OBJECT) , call the FM "DYNP_VALUES_READ", by passing program name, screen number and to the internal table DYNPFIELDS, pass the screen field name of Project ID ( ... say P_PRJ_ID) to the FIELDNAME arguement.
Read this record from the same internal table after the FM call, then in the field "FIELDVALUE" you'll have the value entered for Project ID in screen.
You can use this value to select the correspoding Object ID's for your Object ID F4 display.
~ Ranganath
PS : Reward points for all useful answers !