‎2008 Oct 02 10:53 PM
Hi Experts,
I added a new field for contract # on VA01 for the screen SAPMV45A 8309 ,if the user enters the contract number I need to check whether this number exists in the VBAK table or not.
For this do I need to write the code in PAI or in the user exit please help me out with the code.
Thanks in Advance,
Praveen
‎2008 Oct 03 7:31 PM
you have to write the module in pai for that.
when you try to create the module , it will ask you to choose the include for the module choose the include MV45AIZZ
you need to place the corresponding logic in the module.
‎2008 Oct 03 12:09 AM
Hi,
You need to write the code in User exit MV45AFZZ.
There are many Form and End Forms are available in this program try Check the form for VBAK table and write the code like.
If not contact number is initial.
your code.
endif.
Thanks,
Sree.
‎2008 Oct 03 7:17 PM
Thanks for the reply.
If I specify module and end module in PAI, then I have to go to MV45AFZZ and write module there or
a subform.
Please help me out in this.
Thanks in Advance,
Praveen
‎2008 Oct 03 7:27 PM
Hi,
to write code here you have to get access key from SAP.
so you have set a break point in MV45A include and see where exactly break point is triggering then you can implement your code at that point.
Thanks,
Sree.
Edited by: t sree on Oct 3, 2008 8:27 PM
‎2008 Oct 03 7:31 PM
you have to write the module in pai for that.
when you try to create the module , it will ask you to choose the include for the module choose the include MV45AIZZ
you need to place the corresponding logic in the module.
‎2008 Oct 05 3:08 PM
Thanks for your replies,
Can't I write the code in MV45AFZZ ...????....
Do I need to use the key word ON REQUEST and MODULE, what are the basics in writing module pool programing...
Please help me out in this.
Thanks in Advance,
Praveen
‎2008 Oct 05 3:17 PM
Hi,
You have to write Module in PAI.
Syntax:
MODULE Handle_code.
Double click on this Handle_code it leads you to other screen, it looks like.
&----
*& Module Handle_code INPUT
&----
MODULE Handle_code INPUT.
*You can write your own logic here or you can call the User Exit from here and write your code in the user exit.
ENDMODULE. " Handle_code INPUT
Thanks,
Sree.
Edited by: t sree on Oct 5, 2008 4:17 PM
Edited by: t sree on Oct 5, 2008 4:18 PM
‎2008 Oct 03 7:40 PM
You will have to write the code in the PAI of 8309 itself.
regards,
Advait
‎2008 Oct 05 5:53 PM
Hi Praveen,
In your screen no 8309 PAI write the code as..
data: contract like vabk-contract.
Select single contract from vbak into l_cont where contract = vbak-contract.
Use Sy-subrc statements for validating the message.
Cheers!!