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 module

Former Member
0 Likes
1,377

dear all

i have added a new screen in an exit

EXIT_SAPLMEL0_001 but i dnt know wat to write in the PAI module

can anybody guide me plz?

7 REPLIES 7
Read only

deepak_dhamat
Active Contributor
0 Likes
1,242

hi ,

What you want to do by calling screen .

Regards

Deepak.

Read only

Former Member
0 Likes
1,242

Hi,

you can write the logic for whatever processing u want to do with the data.......

Read only

0 Likes
1,242

we shoudl be able to enter new values on the screen and save the data but i dnt know how to code that

can you help plz?

Read only

0 Likes
1,242

hi,

Before creating screen First read about working of Dialog Programming Basics .

This will help you understand working of PAI and PBO .

In user exit you might have Called Sceen .

1) Click on screen number .

2) it will ask for creating sceen having PAI and PBO module .

3) Declare Fields required for Input in user exit itself .

4) then go to se51 open that screen program Layout .

5) Press F6 it will open get program field scrren

6) find field declared in user exit which you want to save in table

7) you can also create on e button so that it will be called in PAI

on that event you can write your logic to save code .

Regards

Deepak.

Read only

0 Likes
1,242

dear deepak

ive already created the screen, the fields and all that

wats left is to let the user enter values in the fields and save

only that bit of coding, im not knowing how to write

Read only

0 Likes
1,242

HI ,

You can give one button on screen Name that Button as SAVE and also give function name SAVE

and in PAI call module

module SAVE .

1)after clicking on Module save

2) it will create MODULE endmodule for that SAVE

3) check for sy-ucomm when button press

write code for saving such as

case sy-ucomm .

when 'SAVE' .

insert or updaTE .

ENDCASE .

insert or Update using that passing values .

commit work .

that is .

Regards

Deepak.

Read only

Former Member
0 Likes
1,242

Hi,

The enhancement MM06L001 which encompasses the function module exit is invoked during the calculation of the scores for the subcriteria. It doesn't have the screen exit to add. Is the coding in the correct place?

Sujay