Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
536 views37 pages

Sap QM UsingDigitalSignaturesEMconvtSearchSAP

This document lists several SAP reports related to digital signatures. The reports cover areas like basis, forms processing, FI/localization, and cross-application digital signatures. Some key reports include SSFSDEMO for a mini online store demonstration of digital signatures, RCSIGSEA for finding digital signatures, and DSIG_BOOKING_EX for digital signature booking. Digital signatures can be used in SAP to securely sign and validate documents, forms and other records.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
536 views37 pages

Sap QM UsingDigitalSignaturesEMconvtSearchSAP

This document lists several SAP reports related to digital signatures. The reports cover areas like basis, forms processing, FI/localization, and cross-application digital signatures. Some key reports include SSFSDEMO for a mini online store demonstration of digital signatures, RCSIGSEA for finding digital signatures, and DSIG_BOOKING_EX for digital signature booking. Digital signatures can be used in SAP to securely sign and validate documents, forms and other records.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 37

Abap report Description Functional Area

SSFSDEMO Mini-Online Store Basis - Secure Store and Forward


(digital signature)

RCSIGSEA Find digital signatures Cross Application - Digital Signature

SIPT_SAFT_STORE_PSE Uploading PSE Files FI - Localization


for digital signature

SIPT_INTERVAL_SIGN_FI Portugal: digital FI - Localization


signature Generation
for Numbering
Intervals in FI

SSF01 SSF Test Program Basis - Secure Store and Forward

HINCF160 Print program for Payroll - India


form 16

FP_CHECK_DESTINATION_ Test Program for Basis - Forms Processing


SERVICE Destination Service of
Templates

FP_PDF_TEST_07 Test Program: Server- Basis - Forms Processing


Side signature

SAPLQSS6 Dokumentzugriffe im -
QM

LIQS0F15 PM Notification Status -


Management

DSIG_BOOKING_EX Report Cross Application - Digital Signature


DSIG_BOOKING_EX

RFSOPO00 General Ledger Line FI - Information System


Items

FP_PDF_TEST_12 Test Program: Basis - Forms Processing


Get signatures of PDF
File

RSTXLDMC Uploading TIFF Files to Basis - SAPscript


SAPscript Texts

FP_PDF_TEST_00 Test Program: Version Basis - Forms Processing


Information (for
Analysis Only)

CRM_ERMS_MAILFORMS Program CRM - E-Mail Integration


CRM_ERMS_MAILFOR
MS

WSS_SETUP Basis - Security

UPP_LAYOUT_CHECKIN Program BW - Business Planning and Simulation


UPP_LAYOUT_CHECKI
N

RPASRCREATEDPF Creation Personnel Mgmt - HR Administrative Services


of digital Personnel
File Using Personnel
No. or Ref. No.
Sap tips
http://www.sapdbm.com/category/sap-salessd-functional

Digital signature in Adobe forms

By Phani Diwakar Marepalli, YASH


Technologies
A digital signature is a security
mechanism for protecting digital data. The
digital signature does the same function
for processing digital data as hand written
signature does for the paper based
documents.
Step1: SFP is the transaction to create adobe
form. Provide the interface name and click on
create button.
Provide the description and save it.
Activate the interface and come back to initial
screen of form builder.
Step2: Provide the form name and click on
create button.

Provide the interface name and form


description.
Step3: Drag and drop the system field date to
context tab.
Step4: Go to layout tab,
Drag the date field to layout editor.
Drag the signature field from library to layout
editor as shown.

Activate the form.


Step5: Execute the form.
Sign icon (Marked as Yellow color) as shown
in tool bar is in disable mode. After the
signature has been filled this icon becomes
enable mode.
Step6: Steps to create digital signature
Click on signature field.
The following screen appears.
Now select the radio button ‘A new digital ID
I want to create now’ and click on next
button.
Clicking on next button, the following screen
appears as shown
below.

Click here to continue...

Digital signature in Adobe forms

...Previous
Select the radio button ‘windows
certification store’
The following Add Digital ID screen will
appear when click on Next button and fill the
related information.
Now click on finish button.
Click on sign button as shown below.
Now the created signature will appear on the
signatory field as shown below.

Click on signature field, you will get the pop


up box as shown below.
If you want to check the signature properties
then click on signature properties button.
If the signature is valid then you will get
'Signed and all signatures are valid'
message appear at the top of the window.

Here we can also change the field entries


even after the signature field has been filled.
When saving the form after we modified the
any of the field entries in the form, you will get
the following message at the top ‘Signed and
all signatures are valid, but with unsigned
changes after the last signature’.

Click on signature panel at the top right side


corner (Shown on above picture), there you
can find the log as shown below.

When you click on highlighted statement


under Form Fields Filled In, it would show
the modified value of the field. And also you
can check the value before modification in
the Click to view this
version under signature details.
Digital signature in Adobe forms

...Previous
When selected New PKCS#12 digital ID
file:

Click on Next button.


Provide the required information and press
Next button as shown below.
We get the following screen. It asks for
password. Provide the password and press
finish button.
We get the following screen.
After providing the password only you can
able to sign in. Suppose if you press
the signbutton without giving password, it
asks for password saying that ‘A password is
required to use this digital ID’.

Digital signature in Adobe forms

...Previous
Now press the sign button. The signature
would be appeared in signature field.
In the above two cases, we can able to
change the field entries after the signature
field is filled in the form. But, we can also have
an option to avoid / restrict making changes to
the content of the fields (‘Date’ in this case)
once the signature field is filled.
Now go to library tab-Web Dynpro native.
Drag and drop the signature-sign and
lock to layout editor.

Save and activate the form.


Execute the form.
Click on signature&lock field. The following
screen appears. Select the existing id or
create new id as shown below.

Select ID Phani
Click on sign button.

Now the date field becomes locked. We can


not modify the value. In this way we can lock
the fields after the signature has been done.
Is there a Files Digital Signature in SAP ABAP ?
Yes - you can sign SAP entities (DMS, EBR, ECM...) or
sign physical file. Just some SAP Basis and Some
ABAP, that's all.

What is Digital Signature

In general, it is a code added to document or entity that validate


origin.
I would have explain the issue more, but arx does it be
Just visit http://www.arx.com and read the "Digital Certificates FAQ
the learning ce
Note that digitally signing of file and of SAP entity are two diffe
things.
Digitally signing of file is making the file block for change. If you fo
changes in the file, the file loses its digitally signing.

Digitally signing of SAP entity just make the SAP transaction


handles the entity in a display only mode.
Installing the SAP Digital Signature
To install SAP Digital Signature on SAP WAS (SAP
ABAP engine), use SAP notes.
I have created an on-line folder with some notes that
discusses the installing and using the SAP standard
solution.
You can also install file Digital Signature on you Adobe
engine (ADS). This would allows you creating a singed
adobe files.
A valid digital signature ticket (called "DSC" or "licensed
Certifying Authority (CA)") must be bought from a
trusted digital signature certificate ticket vendor (see
signing certificates from vendors like entrust, (n)code
solutions, emudhra, ComSignTrust, IDRBT).
You should buy the Class 3 ticket.
Note that the signing certificates must support the
document types that you intend to use. Most signing
certificates are only for PDF adobe documents.

Digital Signature of SAP entity


The SAP standard customization can be configured to
performs digital signature for SAP entity like DMS
(t.code CV01N) and other entities.
The digital Signature seals the entity and prevent
changes with any uses other then the SAP user that
digitally signed the entity. An additional password
entering in required to "Open" the document for
changes.
Read all about it in Digital signatures for SAP
applications using the DigitalSignature Tool – Developer
Guideline and best practices (see SAP note 700495)

Digital Signature for document from ABAP


SAP made us a sample programs - DSIG_BOOKING_EX -
that calls the if_ds_sign class and also calls some more classes
that handle the digital singature (see classes like
cx_ds_message and cx_ds_exception). This would create a
very strange singed files. Those "singed files" does not maked
as singed when you open then in Adobe Reader. so, let's say
that this standard method in irrelevant.
More formal way is using the Adobe layouts. just create with
transaction code SFP and follow Juergen Hauser Blog.
Note that you can add Digitally Sign of a Document with
Adobe Reader or use simple add-on
like MINIPPS or SYMTRAX.
But SAP itself provides user and system signatures from
4.6c onwards.

o Contact Us

sap digital signature ABAP reports (


ABAP programs )

Our SmartSearch algorithm sorts through tens of thousands of SAP tcodes, tables and other
objects and helps you in quickly finding any SAP tcode or table. Stop wasting your time reading
through forum posts, become a premium member today and get instant access!

Search Abap reports

Abap report Description Functional Area

SSFSDEMO Mini-Online Store (digital signature) Basis - Secure Store and

RCSIGSEA Find digital signatures Cross Application - Digit


Signature

SIPT_SAFT_STORE_PSE Uploading PSE Files for digital signature FI - Localization

SIPT_INTERVAL_SIGN_FI Portugal: digital signature Generation for FI - Localization


Numbering Intervals in FI
SSF01 SSF Test Program Basis - Secure Store and

HINCF160 Print program for form 16 Payroll - India

FP_CHECK_DESTINATION_SERVICE Test Program for Destination Service of Templates Basis - Forms Processing

FP_PDF_TEST_07 Test Program: Server-Side signature Basis - Forms Processing

SAPLQSS6 Dokumentzugriffe im QM -

LIQS0F15 PM Notification Status Management -

DSIG_BOOKING_EX Report DSIG_BOOKING_EX Cross Application - Digit


Signature

RFSOPO00 General Ledger Line Items FI - Information System

FP_PDF_TEST_12 Test Program: Get signatures of PDF File Basis - Forms Processing

RSTXLDMC Uploading TIFF Files to SAPscript Texts Basis - SAPscript

FP_PDF_TEST_00 Test Program: Version Information (for Analysis Basis - Forms Processing
Only)

CRM_ERMS_MAILFORMS Program CRM_ERMS_MAILFORMS CRM - E-Mail Integration

WSS_SETUP Basis - Security

UPP_LAYOUT_CHECKIN Program UPP_LAYOUT_CHECKIN BW - Business Planning


Simulation

RPASRCREATEDPF Creation of digital Personnel File Using Personnel Personnel Mgmt - HR


No. or Ref. No. Administrative Services

SAP Security Note 2067859 Potential


Exposure to Digital Signature Spoofing
By Ezequiel Gutesman SAP Security Notes critical vulnerabilities, Crypto, SAP
Security, SAP Vulnerability 0 Comments

Share

OVERVIEW
This week, SAP AG published a hot news item titled: "SAP Security Note 2067859 (Potential
Exposure to Digital Signature Spoofing)", which alerts users about a potential vulnerability in
certain cryptographic libraries used in SAP NetWeaver Application Server ABAP and SAP
HANA. By abusing these libraries, an attacker could potentially spoof (i.e., successfully
masquerade as a legitimate user) Digital Signatures produced in vulnerable systems. To ensure
your SAP systems are not vulnerable, you should check that your crypto libraries versions are
equal or higher than:

 SAPCRYPTOLIB version 5.555.38


 CommonCryptoLib version 8.4.30

Furthermore: SAPSECULIB has been deprecated, and must be replaced by the latest
SAPCRYPTOLIB version. Stack kernel 720 PL#700 already comes with the fixed
CommonCryptoLib Note: As stated in the SAP Security Note 2067859, you should replace the
DSA PSEs on all the involved SAP NetWeaver Application Server ABAP and SAP HANA
systems. Also, remember to replace the system public keys in their signature trusting systems as
an additional security measure.
TECHNICAL DETAILS
Digital signatures are mathematical methods to assure the integrity and authenticity of specific
data (documents, portion of information, etc). When a digital signature is used, the receiver has
enough reasons to believe in the authenticity and integrity of the received information. Usually,
Digital Sign methods are based on two separated parts (mathematically related). These parts are
often called Private Key and Public Key; the Private Key is secret (and must never be disclosed)
and the Public Key is assumed known by at least the receivers. The Private Key is used to sign
the information, and the Public Key is used to verify the digital signature.

Source: https://en.wikipedia.org/wiki/Digital_signature#mediaviewer/File:Digital...

SAP Security Note 2067859 further states that an attacker may potentially misuse certain
versions of the SAP components SAPCRYPTOLIB, SAPSECULIB and CommonCryptoLib in
SAP Netweaver AS ABAP and SAP HANA, to spoof digital signatures based on the Digital
Signature Algorithm (DSA). The Digital Signature Algorithm (DSA) is a Federal Information
Processing Standard (FIPS) for digital signatures. The National Institute of Standards and
Technology (NIST) standardized this method in the document FIPS 186. And the latest version
was released in 2013, as version 4. FIPS 186-4. All the documents describing these standards
can be found here. For more information related to SAP Cryptographic Libraries, please
review this highly recommended post. BUSINESS IMPACT Many SAP applications use Digital
Signatures relying on the vulnerable library. Based on our analysis so far, any attack leading to
spoofing this Cryptographic Mechanism abusing this vulnerability would allow an attacker to
compromise different kinds of SAP Systems and Products. A critical scenario, would be the
Single Sign-On (SSO) mechanism being compromised. Many companies are using this feature
to avoid users typing their passwords every time they need to log into an SAP system, so they
will just click on the SAP logon pad and the SAP instance will open with their credentials. Behind
the curtains, this functionality is using the digital signature mechanism to create the SSO logon
ticket. Therefore, if an attacker could spoof the digital signature by exploiting a vulnerability inside
the cryptographic library that generated the certificate, the attacker could log into any
system impersonating any user credentials thus escalating privileges. Moreover, there is a
whole subject about signing and approving documents and processes using Digital Signatures.
There are federal regulations talking about this issue, e.g., Food and Drug Industries within the
US are under Federal Regulations as well as the CFR 21, part 11, which specifically speaks
about protecting digital data by signing documents digitally. Every time this security mechanism
has to be used, the SAP Cryptographic Libraries (using the DSA Algorithm for signing) come into
play (see for example this article and this other one.) Banking Communication Management
(BCM) is another SAP Product that requires Digital Signatures. It is used for managing multiple
bank communication interfaces. Using this SAP application, organizations can connect to the
bank and perform payments. Additionally, this application supports Digital Signature to manage
outgoing payment approvals. This process is highly critical since once the payments are
approved inside SAP, they do not need an approval from the Bank system. If the Digital
Signature could be spoofed (if a company is using BCM) the payment approval process could be
potentially compromised. SAP GRC (Governance, Risk and Compliance) is the module that
companies use to maintain their Controls Framework, and it’s especially important for those
organizations under the SOX regulation, who are required to certify their Internal Control
structure. GRC is a web application which can be opened by executing transaction NWBC. This
automatically opens the browser with the user credentials and access rights that belong to the
original user. In order to perform the authentication through the web browser, the application
server sends an Authentication Assertion Ticket (again, using Digital Signatures). If the library
generating these tickets is compromised, an attacker could open the GRC application
impersonating high privileged users and changing sensitive information such as Segregation of
Duties matrices, Process control rules, etc. It would compromise the control framework of a
company, potentially affecting the SOX certification. Any other SAP Product or Application (e.g.,
SAP Solution Manager) that opens a Web Browser after executing a transaction within SAP GUI,
will use this Authentication Assertion Tickets falling into the same case we described above with
GRC. Inside Supply Change Management process, Digital Signatures can be used in different
sub-processes:

 Production Planning: the digital signature validates and confirms individual entries
made in the process instruction.
 Plant Maintenance: shift change report, when a supervisor ends his shift, he has to
present the shift report with the activities of its shift, Digital Signature avoids having hard
copies.
 Quality Management: Digital signature can be used to validate whether a material is
usable or not, to record quality control results, and for sample drawing.

Digital Signatures can be used inside a wide variety of processes in SAP, from user log-in to
approval of payments, these being only some examples. Digital Signatures can be related to
almost every sensitive process through the SAP Work-flow structure, meaning that any process
using Digital Signatures could be potentially compromised by this vulnerability. Onapsis X1 and
the Onapsis Security Platform have already been updated with specific checks to determine if
your current SAP Cryptographic Libraries are vulnerable to this issue. We are further working to
understand practical attack scenarios. Stay tuned for more information by following us on twitter
at @Onapsis, or checking back on our blog.

and well they do provide logging for audits on these


through DSAL transaction.
I never worked with this concept. but did read stuff on this.
please mention if I am wrong
Message was edited by: Keerti Vemulapalli
0 likes

Wolfgang Janzen replied


September 01, 2006 at 18:06 PM
Good that you've mentioned this:
<b>server signatures</b>
Yes, that is available as of R/3 4.5
The application server signs (and verifies) digital signatures using the SAPSECULIB library
(provided by SAP, not subject of export control)
<b>user signature</b>
This requires an external security product (SSF).
The data will be signed at the (user) frontend, after displaying the content to the user. Each user
has his own X.509 certificate (with the private key stored on the frontend; the application server
has no access to it).
0 likes

Former Member replied


September 01, 2006 at 18:43 PM
I looked up for information on this.
and I see 700495 SAP note provides a .PDF which explains more about customizing issues with
DS.
0 likes

Former Member replied


September 01, 2006 at 18:58 PM
are there any Auth.objects which deal with digital signatures?
0 likes

Wolfgang Janzen replied


September 04, 2006 at 16:49 PM
Why should the usage of Digital Signatures be restricted (on a per-user base) by authorization
checks?
Digital Signatures are used to check the origin and integrity of
(signed) data. They might be used for user authentication (if the
private key belongs to one individual user, cf. X.509 client
certificates used for SSL client authentication). But where is the
link to authorizations ...?!
0 likes

Former Member replied


September 05, 2006 at 16:39 PM
Hi Wolfgang,

But I do see C_SIGN Auth. Object which


allows the execution of digital signatures
depending on the application and signature
object.
0 likes

Wolfgang Janzen replied


September 05, 2006 at 21:02 PM

Well, that authorization object was unknown to me


- but I've done a little research (using SUIM,
searching for that authorization object in a 6.20
system).
According to the docu the object C_SIGN is only
checked when using the class CL_DS_RUNTIME
and the BADI DS_AUTHORITY (BADI method
AUTHORITY_CHECK).
Best regards,
Wolfgang
0 likes

Former Member replied

May 22, 2007 at 14:35 PM


how do i implement digital signatures in adobe
using sap web dynpro netweaver and abap for
backend? if you can provide some documents or
links that can help for the same.
0 likes

Former Member replied


February 26, 2008 at 11:16 AM
Hi Lanij,
Check URL
http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frame
set.htm
This gives details on Adobe functions and digital signatures
Also SDN has extensive documentation on Adobe Interactive forms and digital signatures
available at
https://www.sdn.sap.com/irj/sdn/adobe
Regards

Form 16 Digital Signature Basis


Team Work and What Are All
Licenses Needed
4

0
0

Share

"Hi gurus, Please let me know the what kind of basis team work
involved in Form16 digital signature configuration in SAP HCM
other than applying SAP Notes provided by SAP. Two more
questions: Do we need to buy license configure Adobe license for
this if we don't have one? Do we also buy SSL certificate from
SAP? I was under the impression that by applying few SAP notes
and configuring some ADS connections in SAP basis side will go
through. Please clarify my confusion. Thanks, Rocky Ji"
A

By Anonymous

Wednesday April 03, 2013

 SAP BASIS

4 Answers
Answer this question

Oldest Answ ers First

Sign In to Post a Comment


Sign In

Anonymous

April 14, 2013 07:14 PM

rockyji,

the entire configuration for Digital Signature for Form 16 is available in Note
1168740.

You can try the below links:


Steps to install these certificates is explained at following URL:
http://help.sap.com/saphelp_nw70/helpdata/en/db/aafb211ead420faeeaa2
4e99eb5f41/frameset.htm

Further information on digital signature can be found at:

http://help.sap.com/saphelp_nw70/helpdata/EN/46/1ca382f3ec5873e10000
000a11466f/frameset.htm

go through the Note 1589254 (Form 16 central note for ADS


configuration),1464367 - Form 16 Download with out Digital Signature. In
order to include digital signature to Form 16's PDF, some additional ADS
configuration is required. These note provide check point of ADS
configuration for Form16.

Regards
Ram

Answered

RK

rajesh kumar

April 17, 2013 05:29 AM

Dear Rocky,

To start with form16 with digital signature following things needs to be done
from BASIS side

Form 16 Guide - service.sap.com/hrin-> Media center -> Key documents ->


Digital Signature Setup

--> Interactive Forms (refer ADS guide)

--> SSL connection to ADS ( refer form 16 setup guide attached to note
1589254 )

--> Job Profile ( refer form 16 setup guide attached to note 1589254)
--> Digital Signature files on ADS (refer ADS guide)

Now coming to your questions

Do we need to buy license configure Adobe license for this if we don't have
one?

Not specifically adobe license, you require Adobe Reader Rights credential
for SAP Web AS to assign usage rights to PDF documents.

To obtain your Reader Rights Credential, see SAP Note 736902.

Do we also buy SSL certificate from SAP?

1) Not Needed ,Self Signed certificate for SAP Web AS can be generated
through Visual admin.

Hope it clarifies your question.

Regards,
Rajesh

Answered

Anonymous

December 09, 2013 02:02 PM

Hi Rajesh

Is reader rights credential license free?

Regards,
Vishnuvardhan

Answered
B

bharatramramakrishnan

December 10, 2013 03:56 AM

Hi

Interactive forms need a license if you use them productively (see Note
750784 - SAP Interactive Forms: Licenses)

If you use Adobe Reader to display PDF-Based Print Forms via application
virtualization (like Citrix Metaframe Server/XenApp), you may need an
Adobe license to

Further check the below link:


http://wiki.scn.sap.com/wiki/display/ABAP/SAP+Interactive+Forms+by+Ado
be#SAPInteractiveFormsbyAdobe-Doweneedalicense?

Regards
Ram

Digital Signature in SAP FIORI

How to save the Digital Signature in SAP.

This code helps to DeCode the BASE64 format which FIORI applications
sends, this needs to converted to BINARY format and further to be used as
per the requirement.

Some times the Image you get is Black but it might not be the mistake at SAP
end while sending the time the background in getting black from UI end.

Its better or advised to save the data in the Z table and then it can be
retrieved. You can create the a field OF DATA TYPE RAWSTRING.

Below example sign field is created with datatype RAWSTRING using


predefined type.

*”———————————————————————-
*”*”Local Interface:
*” IMPORTING
*” REFERENCE(IV_INPUT) TYPE STRING OPTIONAL
*” REFERENCE(IV_NAME) TYPE STXBITMAPS-TDNAME OPTIONAL
*” REFERENCE(IV_DEL) TYPE CHAR01 OPTIONAL
*” EXPORTING
*” REFERENCE(EV_RETURN) TYPE CHAR01
*”———————————————————————-

TYPES: BEGIN OF lty_bitmap,


l(64) TYPE x,
END OF lty_bitmap.

DATA:
lo_conv_x2c TYPE REF TO cl_abap_conv_in_ce,
base64_string TYPE string,
base64_xstring TYPE xstring,
lv_size TYPE i,
lt_content TYPE TABLE OF lty_bitmap, ” sdokcntbin.
ls_dsign TYPE zfcs_sign_update.

CONSTANTS : lc_filename TYPE rlgrap-filename VALUE ”,


lc_object TYPE stxbitmaps-tdobject VALUE ‘GRAPHICS’,
lc_id TYPE stxbitmaps-tdid VALUE ‘BMAP’,
lc_btype TYPE stxbitmaps-tdbtype VALUE ‘BMON’,
lc_extension TYPE char03 VALUE ‘BMP’,
lc_title LIKE bapisignat-prop_value VALUE ”,
lc_resident TYPE stxbitmaps-resident VALUE ”,
lc_autoheight TYPE stxbitmaps-autoheight VALUE ‘X’,
lc_bmcomp TYPE stxbitmaps-bmcomp VALUE ‘X’.

DATA: lv_docid TYPE stxbitmaps-docid,


lv_resolution TYPE stxbitmaps-resolution.

lo_conv_x2c = cl_abap_conv_in_ce=>create( ).

* lo_conv_x2c->convert( EXPORTING input = Iv_input


* IMPORTING data = base64_string ).
*
base64_string = iv_input.
*— decoding base_64
CALL FUNCTION ‘SSFC_BASE64_DECODE’
EXPORTING
b64data = base64_string
* B64LENG =
* B_CHECK =
IMPORTING
bindata = base64_xstring
EXCEPTIONS
ssf_krn_error = 1
ssf_krn_noop = 2
ssf_krn_nomemory = 3
ssf_krn_opinv = 4
ssf_krn_input_data_error = 5
ssf_krn_invalid_par = 6
ssf_krn_invalid_parlen = 7
OTHERS = 8.

“Getting the data


CALL FUNCTION ‘SCMS_XSTRING_TO_BINARY’
EXPORTING
buffer = base64_xstring
append_to_table = ‘X’
IMPORTING
output_length = lv_size
TABLES
binary_tab = lt_content.

DESCRIBE TABLE lt_content LINES DATA(lv_count).


READ TABLE lt_content INTO DATA(ls_content)
INDEX lv_count.
IF ls_content-l = text-e01.
ev_return = ‘E’.
ELSE.
ev_return = ‘S’.
IF iv_del IS INITIAL.
“Saving Dsign
ls_dsign-tdname = iv_name.
ls_dsign-sign = base64_xstring.
MODIFY zfcs_sign_update FROM ls_dsign.

“Uploading the Grahic(s)


PERFORM import_bitmap
USING lc_filename
iv_name
lc_object “GRAPHICS
lc_id “BMAP
lc_btype “BMON
lc_extension “BMP
lc_title
lc_resident
lc_autoheight “X
lc_bmcomp “X
lt_content
CHANGING lv_docid
lv_resolution.
ELSE.
“Deleted Upload
CALL FUNCTION ‘SAPSCRIPT_DELETE_GRAPHIC_BDS’
EXPORTING
i_object = ‘GRAPHICS’
i_name = iv_name
i_id = ‘BMAP’
i_btype = ‘BMON’
dialog = ”
EXCEPTIONS
enqueue_failed = 1
delete_failed = 2
not_found = 3
canceled = 4
OTHERS = 5.

ENDIF.
ENDIF. “Check no error
ENDFUNCTION.

You might also like