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

provide statement

Former Member
0 Likes
781

Moderator message: duplicate of this has been deleted. Please don't make double postings

hello guru,

i am facing the problem that

PROVIDE PERNR

ENAME

WERKS

BTRTL

BUKRS

PERSG

PERSK

ZZDESG

FROM P0001

PERNR

FAMSA

FAVOR

FGBDT FROM P0021

PERNR

USRTY

USRID_LONG FROM P0105

PERNR

NACHN

VORNA FROM P0002

BETWEEN PN-BEGDA AND PN-ENDDA.

endprovide.

here user need standard input screen of PNP ldb ant when he enters company code data must be accordingly it but if i enter company code 1000 it retrives data of company code 1000 as well as 9050.

how can i solve it?

thanks in advance.

Edited by: Matt on Nov 26, 2008 7:58 AM

Edited by: Matt on Nov 26, 2008 7:58 AM

7 REPLIES 7
Read only

Former Member
0 Likes
762

Hi,,,,,,,

Use Where Clause after Between statement....


PROVIDE PERNR
ENAME
WERKS
BTRTL
BUKRS
PERSG
PERSK
ZZDESG
FROM P0001
PERNR
FAMSA
FAVOR
FGBDT FROM P0021
PERNR
USRTY
USRID_LONG FROM P0105
PERNR
NACHN
VORNA FROM P0002
BETWEEN PN-BEGDA AND PN-ENDDA
WHERE CODE IN  COMPCODE >>>>>>>>> COMPANY CODE FIELD ON SELECTION SCREEN.
ENDPROVIDE. 

THANKS

SAURABH

Read only

Former Member
0 Likes
762

Are you using any HR REPORTING CATEGORY?

If yes, which one.

Read only

0 Likes
762

no i am not using it i am only using LDB pnp.

Read only

Former Member
0 Likes
762

Use HR REPORTING CATEGORY ___00007

Read only

0 Likes
762

NO FRIEND THOUGH I AM ENTERING COMPANY CODE 1000. IT RETRIVE DATA OF COMPANY CODE 9050 .

Read only

0 Likes
762

Try using above reporting category, and see if it works fine.

Also check is your client is using concurrent employment concept.

Read only

Former Member
0 Likes
762

solved by self