Application Development and Automation 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: 
Read only

Filtered search help

Former Member
0 Likes
1,435

Hello everyone!

I have a screen with two input fields: PO (EBELN) and PO Item (EBELP):

I want to implement a search help in EBELP that displays ONLY the possible items for the given PO in field EBELN.

I'm unable to find in search help definition (SE11) any option to make this happen.

Any help will be greatly appreciated, <<text removed>>

Best Regards,

Luís Andrade.

Edited by: Matt on May 6, 2009 10:33 AM - do not offer points

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,247
8 REPLIES 8
Read only

GauthamV
Active Contributor
0 Likes
1,247

Use this FM.

F4IF_INT_TABLE_VALUE_REQUEST

SEARCH in SCN for this FM you will get lot of posts.

Read only

Former Member
0 Likes
1,247

You can make a select query on EKPO and get the line items of the PO and build an internal table.

Use the FM F4IF_INT_TABLE_VALUE_REQUEST to display it in F4 help.

w_repid = sy-repid.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield = 'EBELP'

  • pvalkey = 'S_EBELP'

dynpprog = w_repid

dynpnr = sy-dynnr

dynprofield = 'S_TY'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = 'S'

value_org = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

TABLES

value_tab = t_POVALUES "PO data from EKPO

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

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.

Thanks,

Sowmya

Read only

Former Member
0 Likes
1,247

Hello,

Screen means is it your selection screen with Z Program.

If is Z Program

First give the EBELN in the screen.

Then fetch the items of EBELN and get the EBELP and pass the EBELP to the 'F4IF_INT_TABLE_VALUE_REQUEST' Functional module.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'CONNID'

DYNPPROG = PROGNAME

DYNPNR = DYNNUM

DYNPROFIELD = 'CONNECTION'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = VALUES_TAB.

Read only

Former Member
0 Likes
1,247

Use the following code as per ur requirement----for ebeln and ebelp

DATA: BEGIN OF INTTAB OCCURS 10,

ebeln LIKE ekko-ebeln,

ebelp LIKE ekko-ebelp,

END OF INTTAB.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR CODE-LOW.

SELECT ebeln ebelp FROM ekko INTO TABLE INTTAB WHERE ---'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'ebeln'

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'ebeln-low'

WINDOW_TITLE = 'Select Quality Remark Code'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = inttab

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

the same code u can use for ebeln-high code seperatly

Read only

0 Likes
1,247

Thank you for your quick responses!

Is it not possible to do this without resorting to ABAP coding? The standard search help functionality does not permit this?

Best Regards,

Luís Andrade.

Read only

Former Member
0 Likes
1,248
Read only

0 Likes
1,247

Anyone konws how to do this with the function exit functionality in SE11?

Regards,

Luís Andrade

Read only

0 Likes
1,247

Solved using a function exit. Thanks!