cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent: Validation on additional units field in Infotype 15: Points assured

Former Member
0 Kudos

hi all

I am implementing enhancement PBAS0001using function exit EXIT_SAPFP50M_002

for putting validation on number of additional units entered.

In our company, a predefined no. of units is allotted to every PS group for the whole year. Now i need to validate if the no. of add. units entered for an employee for a given year against the limit set for the PS group he belongs to.

I have created two ztables. One is a master table for the PS group and the annual limit.

and the other one is for storing the month wise additional units and the total add. units conusmed . Its structure is : pernr, lgart, entry_date, add. units, total units consumed, year, month.

Now in the exit i am coding statement like

lv_new_tot = innnn-anzhl + lv_tot.

where lv_new_tot denotes the new sum of add. units consumed and lv_tot is the previous

total of add. units consumed.

But it gives an error saying: INNNN does'nt have a component anzhl.

Now please tell me how to refer to the additional units for the current entry being made.

<b>Points will be awarded surely.</b>

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have a look at this thread regarding the coding in userexit-EXIT_SAPFP50M_002.

Reward points if Helpful.

Revert back if u need anything else.

Regards,

Manoj.

Former Member
0 Kudos

thanks manoj

that really solved the problem

i've awarded you the points

could you please send me your email id . mine is apurva200@rediffmail.com

Former Member
0 Kudos

Hi,

I sent a mail from my gmail.

Regards,

Manoj.

Answers (2)

Answers (2)

Former Member
0 Kudos

use method to pass the innn structure to p0015 and write all the logics with that and later again pass this structure to innnn.

Reward points if helpful.

Regards,

Manoj.

Former Member
0 Kudos

hi manoj

could you please clarify with some example code how to do that.

thanks

Former Member
0 Kudos

HI,

Which logical data base are you using use "PNP" OR "PCH"

Rewards Poins

Former Member
0 Kudos

I need to code in the above mentioned exit. It is not clear what exactly u r asking.Where do i need to put the LDB for this.

thanks