Вы находитесь на странице: 1из 2

An SAP Consultant

HOME

ABAP

ALV

SMART FORMS

ADOBE FORMS

HR ABAP

WORKFLOW

WEB DYNPRO ABAP

Wednesday, April 9, 2014

HR ABAP how to find personnel numbers skipped by the


database driver due to authorization

HCM

Follow by Email
Emailaddress...

Submit

AnSAPConsultant

We have one custom r/3 report which uses logical database PNP and this report displays ALV output. When we press

1,335likes

back button on ALV output, the following output is displayed by PNP program.

LikePage

Share

Personnel numbers skipped by the database driver


Bethefirstofyourfriendstolikethis

Reason 1: insuf cient authorization, no. skipped personnel nos.: 1


This could happen when user who is executing the report does not have authorization to infotype de ned using
INFOTYPES statement for the employee who is being skipped by logical database driver program.
So user will wonder who is the missed personnel number due to authorization.

Followers
Jointhissite
withGoogleFriendConnect

We use macro PNP_GET_AUTH_SKIPPED_PERNRS to get list of personnel numbers into internal table

Members(64) More

in the event END-OF-SELECTION.

Sample code
REPORTztest_program.

TABLES:pernr.
INFOTYPES:0000,
0001,
0008,
0019,
0041,
0185,
2001.
"Internaltabletoholdskippedpernrsintointernaltable
DATAlt_skipped_pernrsTYPEhrahq_pernr_table.
DATAls_skipped_pernrsLIKELINEOFlt_skipped_pernrs.

STARTOFSELECTION.

GETpernr.
WRITE:/pernrpernr,pernrename.

ENDOFSELECTION.
"MacroPNP_GET_AUTH_SKIPPED_PERNRS
pnp_get_auth_skipped_pernrslt_skipped_pernrs.

IFlt_skipped_pernrsISNOTINITIAL.
WRITE:/'Listofskippedpersonnelno:'.
LOOPATlt_skipped_pernrsINTOls_skipped_pernrs.
WRITE:/30ls_skipped_pernrspernr.
ENDLOOP.
ENDIF.

Alreadyamember?Signin

Popular Posts
1

ABAPALVReportexamplewithsteps

ABAPStepbysteptutorialonSmartForms
TemplateNode

ExecuteABAPReportusingSUBMIT
statement

ABAPSendingemailwithpdfattachment

WebDynproABAPALVON_CLICKevent

ABAPDynamicWHEREclause

SAPABAPCL_ABAP_CHAR_UTILITIES
classusage

ABAPDownloadreportoutputasPDFfile

WebdynproabapError/Successmessage
sampleprogram

10

ABAPALVDemoprograms

Websites I follow
Recommend this on Google

HTML/CSS/Javscript Generator
Easy CSS3 Generator
Digital Inspiration

Shout ME Loud

0 comments:

Twitter Feed
Post a Comment

Web Dynpro ABAP Book

Your useful comments, suggestions are appreciated.Your comments are moderated.

Enteryourcomment...

Commentas:

Publish

Unknown(Google)

Signout

Notifyme

Preview

An SAP Consultant

Follow US

If you are interested in writing about the new stuff

Contact US
About US
Privacy Policy

Want to Contribute ?
you learn everyday while working, please write to

Facebook

the.sap.consultants@gmail.com.

Twitter
Google Follow

2014ansapconsultant.comAllrightsreserved.

Click on Contribution for more details.

Вам также может понравиться