Hi There.
I'm implementing the user exit for Items MV45AFZZ to do some validations, In addition of that I need to include a popup screen where I need to display a list of batches available and allow the user to select one and refresh it in the line item of the sales order.
I don't have an Idea how to include this screen.
Thanks in advance
Regards
Alexis
You can use this FM to display the list of the BATCHes.
F4IF_INT_TABLE_VALUE_REQUEST.
DATA IT_RETURN TYPE DDSHRETVAL OCCURS 0 WITH HEADER LINE. * Internal table for storing the batches DATA : BEGIN OF IT_CHARG OCCURS 0, CHARG TYPE CHARG END OF IT_CHARG data: l_field type DFIES-FIELDNAME. l_field = 'CHARG'. * fill the table TI_CHARG from your source CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING RETFIELD = l_field VALUE_ORG = 'S' DISPLAY = ' ' TABLES VALUE_TAB = P_IT_VARIANT1 RETURN_TAB = IT_RETURN EXCEPTIONS PARAMETER_ERROR = 1 NO_VALUES_FOUND = 2 OTHERS = 3. IF SY-SUBRC = 0. read table IT_RETURN index 1. if sy-subrc =0. your_field = IT_RETURN-FIELDVAL. endif. ELSE. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.
Regards,
Naimesh Patel
Add a comment