Hi,
I am new to ABAP. I need a small piece of coding. I am implementing a BADI. There is a table which has 3 fields (MATID, LOCID, STATUS and PLANNING_DATE). For each MATID (material ID), there are many LOCID (Location ID) available. My BADI has to choose the suitable LOCID for the given MATID based on the following conditions :
The LOCID for that particular MATID, must satisfy STATUS = salesprice and PLANNING_DATE = current date.
<u>Code Logic :</u>
<b>Input :</b> BADI gets a series of MATID and corresponding LOCID as input.
<b>Logic :</b> For the MATID, choose one LOCID. Check whether the corresponding fields have STATUS = salesprice and PLANNING_DATE = current date