Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

badi for iw42

Former Member
0 Kudos

Hi Experts,

My Reqirement is for TCode IW42.

When I enter Start date , Start time, Finish Date, Finish Time and cause same as the frist row and Save it should display warning message like POP UP. And The Table is like table control.

At 'Save' event, system will check if there is a duplicate entry for the following combination of fields.

 Work Start Date (AFRU-ISDD)

 Work Start Time (AFRU-ISDZ)

 Work Finish Date (AFRU-IEDD)

 Work Finish Time (AFRU-IEDZ)

 Cause (AFRU-GRUND)

If duplicate entry exists, the following error message should be given.

"Duplicate entries exists. Please make the necessary corrections before saving confirmation."

Implementation name: FCO_CREATE_DOCUMENT

Implementation short text: Failure Cost Processing: Write Failure Cost Document(PP-SFC)

Definition name: WORKORDER_CONFIRMATION

Method: AT_SAVE

But When I search There are no parameters found in Badi. the

As I could Display only warning message and after clicking OK.

both the rows(1st and 2nd) are dissappering but as per requirement

when I click OK I should not happen. The user should remove duplicate entry.

I really appreciate you help.

Thanks and Regards,

Ashwin.

2 REPLIES 2

kiran_k8
Active Contributor
0 Kudos

Ashwin,

Check this blog which lets us know step by step procedure to find the BADI's.Nice one.

K.Kiran.

Former Member
0 Kudos

Hi Kiran,

Thank you.

FYI,

I know the BADi.

But in that BADI I did not found the parameters.

I am not able to validate the Duplicate entries.

Thanks and Regards,

Ashwin