Skip to Content
0
Former Member
Mar 13, 2007 at 03:22 PM

Hi All

11 Views

Hi All,

I require code for the below requirement can anybody help me please.

Tables Used:

MARA,

MARC

Selection Screen :

Plant (Paramenter , Mandatory ),

Material ( Select Option, mandatory),

Cutover Date ( Paramenter )

Programflow

Selection Screen :

1) when user enters a value in Plant Field & press F4 in Material filed then all the material;s correspond to that Plant should be displayed in dropdown box.

2) If user doesn’t make any entry in Cutover Date field then by default it’ll consider today’s date as cutover date.

Program Logic:

1) Determine creation date of all the material.

2) If difference between creation date & cutover date is LE 120 days & material type is “ FERT “ then update status as “ 0% Discoult “

3) If difference between creation date & cutover date is GT 120 days & material type is “ FERT “ then update status as “ 10% Discoult “

4) If difference between creation date & cutover date is LE 120 days & material type is not “ FERT “ then update status as “ 20% Discoult “

5) If difference between creation date & cutover date is GT 120 days & material type is not “ FERT “ then update status as “ 40% Discoult “

6) Display the report with following filed :

Plant,

Material,

Status.

Thanks & regards,

Jyothi.