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

ldp pnp

Former Member
0 Likes
967

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.

6 REPLIES 6
Read only

Former Member
0 Likes
873

Hi Sarangan,

LDB PNP has BUKRS (Company code) selection too.

Hope this helps..

-Bharat

Read only

Former Member
0 Likes
873

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.

Read only

Former Member
0 Likes
873

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.

Read only

Former Member
0 Likes
873

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

Read only

0 Likes
873

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.