2009 May 04 10:47 AM
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
2009 May 04 11:58 AM
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
2009 May 04 10:49 AM
Use this FM.
F4IF_INT_TABLE_VALUE_REQUEST
SEARCH in SCN for this FM you will get lot of posts.
2009 May 04 10:52 AM
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
2009 May 04 10:53 AM
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.
2009 May 04 10:54 AM
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
2009 May 04 11:29 AM
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.
2009 May 04 11:58 AM
2009 May 04 4:20 PM
Anyone konws how to do this with the function exit functionality in SE11?
Regards,
Luís Andrade
2009 May 04 5:21 PM