Application Development and Automation 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: 
Read only

Code in PAI please

Former Member
0 Likes
1,061

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
935

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.

8 REPLIES 8
Read only

Former Member
0 Likes
935

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.

Read only

0 Likes
935

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

Read only

0 Likes
935

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

Read only

Former Member
0 Likes
936

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.

Read only

0 Likes
935

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

Read only

0 Likes
935

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

Read only

Former Member
0 Likes
935

You will have to write the code in the PAI of 8309 itself.

regards,

Advait

Read only

Former Member
0 Likes
935

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!!