Home > SAP software/management Tips > SAP ABAP/Java developer tips > Inserting photos into SAPscripts
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP ABAP/JAVA DEVELOPER TIPS

Inserting photos into SAPscripts


Vengateshkumar Soundararadjou
01.06.2004
Rating: -4.00- (out of 5) Hall of fame tip of the month winner


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Here is a simple way to display the photos of the employees in SAPscript forms.
1. Telecharge employee photos into SAP. In graphics administration (transaction SE78,) import the photos from the frontend (in BMP format) and name them by employee number. Mass import can be done from an MS Excel file. The Excel file should contain two columns: one with the matricule and one with the address of the photo file (ex: C:compbranchmatricule.bmp). Then generate a program batch input (generate a program in the transaction sm35 for transaction se78 and enter the function ALSM_EXCEL_TO_INTERNAL_TABLE and enter the fields of the Excel file in the corresponding dynpro fields.)
2. In the SAPscript form: enter the code below and you're set! 3. This method can be used in the SAPscript forms where the matricule is passed by a field of a structure (in the correspondance of event management and in the HR master data sheet etc.) Just replace the zone &PERNR& with the field that contains the employee number.

Code

/:DEFINE &MATRCL& = &PERNR&
/:IF &MATRCL& <> SPACE
/:BITMAP &MATRCL& OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300
/:ENDIF

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAP ABAP/Java developer tips
How to do additional dialog processing after SAP COMMIT WORK statement
How to find a piece of SAP ABAP code without debugging
How to read an SAP transaction in an ABAP code
How to provide an SAP R/3 4.5B application server with a Web service interface
How to find owners and transports of deleted ABAP programs
Fixing a common OPEN_FORM and START_FORM error in SAPscript
Select Text fields: Case-insensitive
Is this the quickest way to find a BADI?
Easily debug error messages in SAP processes
Accessing private attributes in ABAP Objects

SAPscript and Smart Forms
Modifying standard SAP Smart Forms for purchase orders
How to solve output alignment problems with SAPscript printing
Using SAP Smart Forms to change layout of Plant Maintenance
How to fix Smart Forms printing double purchase orders
Deriving the name of a Smart Style from a Smart Form
SAP administration information for a Basis interview
Transferring R/3 Admin skills to SAP NetWeaver
Easier maintenance of output types, procedures, conditions, etc.
Avoid printing out blank address lines in SAP Smart Forms
Setting soft breakpoints in ABAP that reside in Smart Forms
SAPscript and Smart Forms Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts