03-25-2008 7:51 AM
Hi,
I made a select-option for the field PA0290-PASSL,
but, but i noticed that i couldn't drill down to the table contents of the pa0290-passl. I thought maybe it has something to do with the table being an infotype. Because the select-option works fine for transparent tables like MARA. Are there any way for me to make a drill down for an infotype table such as the one i mentioned above?
Thanks,
Frank
03-31-2008 8:34 PM
hi,
try this following code.
types: begin of ty_PASSL,
PASSL type PA0290-PASSL,
end of ty_passl.
data: i_passl type table of ty_passl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PASSL.
Select PASSL from PA0290 into table i_PASSL where .....
w_repid = sy-repid.
w_dynnr = sy-dynnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PASSL'
dynpprog = w_repid
dynpnr = w_dynnr
dynprofield = 'PASSL'
value_org = 'S'
TABLES
value_tab = i_PASSL.
IF sy-subrc 0.
ENDIF.
reward if usefull
03-27-2008 10:24 AM
Dude,
i think u got confuse .
pa0290 table doesn't exist .
till now only pa000 to pa0215 exist .
no fieled like passl is exist .
rest you know.
Edited by: Sandeep patel on Mar 27, 2008 11:24 AM
03-27-2008 4:22 PM
Hi,
Inorder to get the drilldown list of values , the field must have any F4 help processing mechanism.
Incase of MATNR: it has search help MAT1.
but incase of PASSL, it does not have any search help or matchcode object or foreign key .
Inorder to get F4 help we must have any of the following :
1) Search Help
2) Matchcode Object
3) Foreign Key
4) Help view.
This PA0290-PASSL doesnt have any of the above , so you cannot get the values.
I hope the problem is solved.
reward points if helpful.
Thanks and Regards.
03-31-2008 3:30 PM
Hi,
You can use the following code for providing F4help.
types: begin of ty_PASSL,
PASSL type PA0290-PASSL,
end of ty_passl.
data: i_passl type table of ty_passl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PASSL.
Select PASSL from PA0290 into table i_PASSL where .....
w_repid = sy-repid.
w_dynnr = sy-dynnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PASSL'
dynpprog = w_repid
dynpnr = w_dynnr
dynprofield = 'PASSL'
value_org = 'S'
TABLES
value_tab = i_PASSL.
IF sy-subrc 0.
ENDIF.
Reward points if helpful.
Thanks and Regards.
03-31-2008 8:34 PM
hi,
try this following code.
types: begin of ty_PASSL,
PASSL type PA0290-PASSL,
end of ty_passl.
data: i_passl type table of ty_passl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PASSL.
Select PASSL from PA0290 into table i_PASSL where .....
w_repid = sy-repid.
w_dynnr = sy-dynnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PASSL'
dynpprog = w_repid
dynpnr = w_dynnr
dynprofield = 'PASSL'
value_org = 'S'
TABLES
value_tab = i_PASSL.
IF sy-subrc 0.
ENDIF.
reward if usefull