Application Development 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: 

Drill down for infotypes

FranklinAsis
Explorer
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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