Ansicht
Dokumentation

EXIT_RMCPAMRP_002 - Customer exit: element filters on stock/requirements lists

EXIT_RMCPAMRP_002 - Customer exit: element filters on stock/requirements lists

TXBHW - Original Tax Base Amount in Local Currency   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This customer exit is used to make selections based on those elements in the stock/requirements list that are to be sent in the LOISTD01 IDoc.

In particular, it is possible to make a selection based on the dates in the stock/requirements list (for example, the DAT00 field). For this purpose, the start and end dates which can be entered in transaction POIT (selection of transaction data) are transferred to this function module.

Example

The sample program illustrated below shows how selections for the internal table MDPS can be made. This table is used for generating the LOISTD01 IDoc. det. By deleting lines from this table you can define which data will be sent in the IDoc.

In the sample program, all those lines in the stock/requirements list are deleted whose receipt/requirement dates do not fall within the time frame ( (date_fr / date_to) given in transaction POIT (field DAT00; see description of table MDPSX as well as description of LOISTD01 IDoc).

Line with the date 000 (initial value) are not deleted because they contain the current stock/requirements.


* >>>>>>> begin of sample program
loop at mdpsx.

if mdpsx-dat00 > date_to or mdpsx-dat00 < date_fr
and not mdpsx-dat00 is initial.
delete mdpsx.
endif.
endloop.
* <<<<<<< end of sample program

This sample program is also contained in the INCLUDE file of the Customer Exit.





Parameters

DATE_FR
DATE_TO
EMDKP
EMDSTA
EMT61D
MDPSX

Exceptions

Function Group

XLOI

CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2009 Date: 20240603 Time: 222258     sap01-206 ( 41 ms )