2006 Jan 05 1:23 PM
guys help me out
i am facing a problem
lets us i am using pnp and in th selection screen given by the pnp
as a user i am entering wrong values that is pernr does not belong to the company code
so how to check it?.
any help would be very usefull
sarangan r
Hi Saranga,
1. But the wrong company code for that pernr.
If u want to check thru your own code,
then u can check for infotype 0001
Table is PA0001.
There Pernr,BUKRS Both are there
with different BEGDA and ENDDA for the same pernr.
2. The PNP program will not provide any
result, because, bukrs is wrong
ie. the pernr does not belong to bukrs
for the specified period (seleected in above radio buttons)
This behaviour of pnp is absolutely justified.
Regards,
Amit M.
2006 Jan 05 1:29 PM
hi,
go through these links,
http://www.atomhr.com/know_preview/Reading_Payroll_Results_with_ABAP.htm
http://www.atomhr.com/know_preview/Reading_an_infotype_without_PNP_database.htm
http://www.sap-img.com/abap/list-of-employees-who-have-completed-certain-yrs-of-service.htm
http://www.sapdevelopment.co.uk/programs/custom/zdownempdata.htm
http://www.sapdevelopment.co.uk/programs/custom/zp_postcode.htm
http://www.ct-software.com/reports/ypmlist1.htm
regs,
jaga
2006 Jan 05 2:27 PM
Hi Sarangan,
LDB PNP has BUKRS (Company code) selection too.
Hope this helps..
-Bharat
2006 Jan 05 3:21 PM
Hi
you can write this.
get pernr.
check p0001-BUKRS = what ever value u want to check.
end-of-selection.
when the condition is satisfied then it will populate else it will go to next record.
hope this will help u.
regards
Lakshmikanth.
2006 Jan 05 4:11 PM
Hi,
There is no need to check explicitly for company code
again. Since U R using PNP LDB it checks for the
values given in the selection screen.
Regards,
GSR.
2006 Jan 06 4:37 AM
guys but the comapny code is dynamic
it is entered by the user.i am asking if the user enters the correct pernr but the wrong company code for that pernr.my prog which is a alv outputs the list which has no values in it.
what should i do
2006 Jan 06 4:47 AM
Hi Saranga,
1. But the wrong company code for that pernr.
If u want to check thru your own code,
then u can check for infotype 0001
Table is PA0001.
There Pernr,BUKRS Both are there
with different BEGDA and ENDDA for the same pernr.
2. The PNP program will not provide any
result, because, bukrs is wrong
ie. the pernr does not belong to bukrs
for the specified period (seleected in above radio buttons)
This behaviour of pnp is absolutely justified.
Regards,
Amit M.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |