Sei sulla pagina 1di 9

Create a Digital Signature in ABAP ( Sample

Code)
This is a short list of necessary operations:
Build a table for metadata using as key a field
referring to data element SIGN_GUID_22 and
the complete key for your to-be-signed
document; in my case:
ZZAPT_SIGNATURE
FIELD DATA ELEMENT
MANDT
MANDT
SIGN_ID SIGN_GUID_22
CORDERID N1CORDID
Build a structure for operation log:
ZZAPT_SIGNATURE_LOG
FIELD DATA ELEMENT
.include
SIGN_PROT_STRUC
CORDERID N1CORDID
Launch the following transactions(very
intuitive):
SLG0: declare a sub-object under CDSG1
SIGNA:declare your application
SIGNO:insert the signature object
ELSIG03N: choose and link the type of
signature(in my case R/3)
REPORT ZPR00004
.
DATA: lo_ds_runtime TYPE REF TO
if_ds_runtime.
DATA: lo_sign TYPE REF TO if_ds_sign.
DATA: l_metadata_wa TYPE
ZZAPT_SIGNATURE. lo_ds_runtime =
cl_ds_runtime=>get_instance( ).
l_metadata_wa-corderid =
'5159DB46ACFC1424E1000000010000AB'."
Doc ID call method lo_ds_runtime->create
exporting
im_appl = 'ZTEST'"APPL
im_object = 'ZTEST'"OBJECT
im_meta = l_metadata_wa
im_type = 'C' "Synch signature
receiving
result = lo_sign.
call method lo_sign->sign
exporting
im_signer = sy-uname
im_doc_txt = 'SIGNING DOCUMENT
5159DB46ACFC1424E1000000010000AB'
im_doctype = 'TXT'. commit work and wait.
digital signature
by KB_MANI » Mon Jan 08, 2007 9:16
am
we are trying use digital signature ie.,
normal signature using r/3 user id and
password.

we have created authorization group and


attached with material , but while doing
usage decision it gives the following error
message when we try entering using our
user name and password in that
transaction.

ssf information on r/3 user not found


message no. is021
Diagnosis
there is no entry for the user &1 in address
management (extended communication:
type ssf).
procedure
contact the ssf system administrator.

the above are messages that appeared.


what we need to do to bring this feature
working.
KB_MANI
Posts: 190
Joined: Mon Aug 18, 2003 9:12 am
Top

by PWNeiss » Mon Jan 08, 2007 4:14 pm


Hi,
did you di all necessary settings in
customizing?
Please check:
1. Path:

Basis Components --> System


administration --> Digital Signature -->
Application-dependent parameters for SSF
functions :
Application: PPPI Digital signatures
adhering to FDA requirements
Security Product: SAPSECULIB
SSSF format: PKCS7 International
standard PKCS#7

2. Path:

•Basis Components --> System


administration --> Digital Signature -->
SAPSECULIB maintenance information --
> Status OK

3. User settings:
In section "Communication"
Press „other
communication“ and choose
“SSF Secure Store & Forw.â€
PWNeiss

Posts: 177
Joined: Wed Mar 17, 2004 10:18 am
Location: Germany
 Website
 YIM
Top

by KB_MANI » Wed Jan 10, 2007 9:14


am
mr. pwneiss

even after doing the settings as per your


suggestion.

the system says ssf information for the


user needed.

can you please send any descriptive notes


on this , or suggest me the other way
around
KB_MANI

Posts: 190
Joined: Mon Aug 18, 2003 9:12 am
Top

Check it out
by karthi472 » Thu Jan 18, 2007 11:56
pm
Hi

Check the Customizing setting in the path


Quality Management - > Environment ->
Central Functions -> Authorization
Management - > Define Authorization
Groups and Digital Signature - >
EXCUTE

and Click the Signature Method ........


please change to System Signature with
UserID/Password for the UD...... Default it
will be normally User Signature

Hope this helps u

cheers
karthik
INDIA
karthi472

Posts: 84
Joined: Mon Oct 03, 2005 8:26 am
Location: Bangalore-INDIA
Top

Display posts from previous: All posts


Sort
by Post time Ascending Go

Post a reply
4 posts • Page 1 of 1
Return to Logistics QM
Jump to: Logistics QM Go

Who is online
Users browsing this forum: No registered
users and 2 guests

 Board index
 The team • Delete all board cookies •
All times are UTC - 6 hours [ DST ]
Copyright 2012 SAPFANS • All Rights
Reserved.
ow to Print Digital Signature in Smart forms.

 226


Hi Experts,
Any one please help me how to use digital signatures in SMARTFORMS.?
Which are the tables used to store digital signatures and please any one have any demo
program which prints the the digital signature using smartforms kindly let me know.
Thanks,
Sunil kairam.
HARDCODER Doctor Asked on December 1, 2016 in output management.

 Share
 Comment(0)

1 Answers

 Votes
 Oldest


 226


Hi,

One of the answers from SDN

“Digital Signatures are nothing but graphics that we can store in SAP and use in our
Smart Forms.

For Example you can create a .bmp file of your signatures, upload it via SE78, and then
use it in your Smart Forms in your Footer Area as “Authorized Signatory”.

The Logic in the Print Program can be something as follows –

1. Maintain a Z Table having fields like PLANT, FORMID (Name of the SmartForm),
USERID.
2. Before calling the Form, the validation is made for the Logged in User with the Z Table
created.
3. If the User Entry exists in the Z-Table, the Form is called and the Signature Image is
displayed in the Footer Block i.e. the Authorized Signature.
4. If user entry does not exist in the Z-Table then the message is displayed “You are not
the Authorized for Printing the Form” and exits the Transaction.”

Regards,

Potrebbero piacerti anche