Skip to Content
Technical Articles
Author's profile photo Satish Kumar Balasubramanian

Enhancement in IW31

Hello Experts,

I Am new to ABAP Field, Though the below information may be simple,thought of sharing with you Since this was one of my requirement in my first object that i completed successfully.

I had a requirement of validating the partner functions whenever a order is either created(IW31) or changed(IW32). The same validation should happen either when i press “enter” or Click “Save”.

For the validation during Enter, even though i did more research i could not find any fitting user exits. So decided to debug the entire transaction and found a spot which was exactly fitting my requirement.

So Finally i found and decided to create a implicit enhancement in program LIPARF00 under the Form PROOF_ALL_F00.

The tricky thing here is actually the during debugging control comes to this spot at two times, as below,

1)Initially before entering the values.

2)After entering the values.

So while coding you should ensure that the internal table is filled before the control reads your logic. For this i did two things,

1)Select statement to read from internal table.

2)If statement to check the successful execution of above statement and after this follows my logic.

This worked wel for me, Also for validation during save condition i coded in BADI: WORKORDER_UPDATE.

Thought of sharing this as this may be useful for some. (Am very happy to be corrected if am wrong anywhere 🙂 )

Note:Please note that i have done the same requirement in following areas also Contract documents(va31,va32),Sales order(VA01,VA02),Resource related billing(DP90). I will be happy if am helpful to anyone in this.

Thanks and Regards,

Satish Kumar Balasubramanian.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo ABAP Pro abaper
      ABAP Pro abaper

      Hi Satish Kumar,

      i have some doubts:

      1. Do we need to add fields to Daabse tables like for VBAK or VBAP before adding to       screnns (8459 or 8309).

      2. For writing the code in module pool program the class is not visible can you please      provide it.

      3. If possible can you please post new pictures which are clear.

      Thanks in advance for your reply.

      Regards,

      NarsiReddy Cheruku.