Академический Документы
Профессиональный Документы
Культура Документы
STRUST
Symptom
You are executing a system refresh and wanted to retain the PSE file in the
STRUST.
Solution
Reference
12/02/2018
Beginner
15 min.
ABAP Development, Tutorial, Beginner
Add a code snippet from the API Hub into your ABAP report.
You will learn
In this tutorial, you will learn how to use the pre-generated code from the SAP API Business
Hub in an ABAP report. You will need to have configured your ABAP system to make an
HTTP request.
Prerequisites
ABAP system should be configured to call http APIs
Testing API Business Hub APIs with Curl
Configuring the proxy settings is not a required step for all systems. Verify that your system
needs to have the proxy configured before completing steps 1 through 3.
From the SAP Logon pad, launch the SAP Logon screen.
Enter the login credentials in R/3 ABAP System.
Configure your proxy settings by going to transaction SICF and clicking on Execute.
Open Proxy settings page by pressing Ctrl + F2 and set the proxy.
Done
Once you export the certificate by path, you will need to import it into your ABAP system.
To import the certificate in your ABAP system, go to the transaction STRUST, open SSL
client SSL Client (Standard), and switch to Edit mode.
Click on Import Certificate. Select the certificate you exported from Google Chrome in the
previous step. Click Add to Certificate List and save.
In order to reflect your new SSL settings, you will need to restart your ICM. To restart the
ICM, go to the transaction SMICM. Navigate to Administration > ICM > Exit Hard > Global.
The ICM restart message will appear. Select Yes.
Restart the ICM processes. Make sure no client is communicating during restart.
Done
Create a new report. Enter the program name, such as ZAPI_HUB_TEST, select Source Code,
and click Create.
Provide the following details on the Program Attributes screen.
To get the ABAP code snippets that are available in the SAP API Business Hub, go to the SAP
API Business Hub, which can be found at api.sap.com, from your browser. Navigate to the
API packages page and find the SAP Translation Hub API.
Click the Expand Operations link on the Domains API. Click Generate Code on the GET
/domains method.
Click on the tab for ABAP from available languages and click Copy to Clipboard.
5
Paste in the copied ABAP code from the API Hub in the text box below.
Submit Answer
×
Log on to answer question
Step 6: Add API call and run from ABAP
Back in your ABAP system, paste the code snippet into the report.
Replace the <API_KEY> with your API key value. This is also available in the SAP API Business
Hub and is specific to your user and app. Save, Activate, and Execute the report.
If you see a message returned with data, and not an error, you have successfully tested a
call to an API from the SAP API Business Hub.
1.3 Prerequisites
SAP recommends the implementation of the following Notes before the customization for SD is done as these are
dependent activities. The below table gives the list of Notes to be implemented.
The latest Support Package needs to be implemented in order that the following nodes of the customizing activities
become available as per the screenshot below.
The Digital Signature Settings node will reveal the following Customizing activities:
If the latest support package has not been implemented, the following configuration settings can be maintained by calling
up the corresponding views manually in transaction SM30.
1.4 Configuration Settings
Official Document No. Configuration
1.4.1 Maintain document class
View : V_DOCCLS
Document classes are used to distinguish among the different types of official documents as prescribed by the
authorities, for example, invoices, debit memos, credit memos, or delivery notes.
In this step the document classes defined in the previous step are assigned to the accounting document types that are
being used in the current business scenario.
1.4.3 Maintain Number Groups for Folio Numbers
View : V_1ANUMGR1
Each business entity needs to get the Folio numbers (no. range) from the Mexican government. A no. group needs to
be created at first in order to assign the folio number range to it. Different number ranges can exist for different type of
documents such as Credit memos, Debit Memos, Invoices etc.
1.4.4 Maintain number ranges for Folio Numbers.
T-code : SNRO, Object : J_1AOFFDOC
The number range of the Folio numbers got from the government is maintained in this step.
1.4.5 Assign number ranges
View : V_OFNUM_MX
The number ranges for the Folio numbers defined in the previous step are assigned to the various Document Classes
(such as Credit memos. Debit memos) defined earlier. This step helps to determine different Number ranges (through
No. range groups defined) for the different type of documents.
In this step the abbreviation for the various taxes used in the business scenario are defined.
Example
Assume that you record the special tax on goods and services (Impuesto Especial sobre Producción y Servicios in
Spanish, IEPS) in an account represented by the account key IEP, and value-added tax (Impuesto al Valor Agregado in
Spanish, IVA) in an account represented by the account key MWS. You enter the following combination of account keys
and tax abbreviations:
1.4.7 Definition & Assignment of text IDs to store the data for the Digital Signature
Tcode- VOTXN
In this Customizing activity, you set up the system so that it can save, and later retrieve the results of the digital
signature process. Since not every piece of data required for the digital signature process is stored in a field in the
system, the system uses text fields in the billing document, for example at header level, to store the derived results of
the digital signature process.
Note: Since the text fields contain data related to the digital signature and any manipulation of the data would render the
recipient's view of the digital billing document useless, the text fields are not visible in the invoice. The language of the
text fields in which the system stores data is the language of your company code in the system. In some text fields, to
comply with legal regulations in Mexico, the system always enters texts in Spanish, for example, the document type for
payment flow, regardless of the language of the company code.
The derived results of the digital signature process that the system stores in text fields are grouped in categories:
Encrypted character string
The result of applying the signer's private key to the hashed character string. The result represents a unique fingerprint
of the character string, which contains the legally-defined data. The encrypted character string is stored in Base 64
encoded format.
Document type for payment flow
Shows whether the document is of type income (ingreso), expense (egreso), or transfer (traslado). The system always
enters the text in Spanish, for example, ingreso.
Approval year for official document number
Approval number for official document number
Serial number of certificate
The serial number of the certificate that you receive from the authorities to sign electronic billing documents digitally.
Payment installment texts
Contains the number of installments in which a payment is divided and the corresponding legally-defined text in
Spanish. The installments data is stored in the Customizing activity Define Terms of Payment.
Document header supplement (complemento)
Supplemental data that some companies must provide at header level in billing documents.
Line item supplement (complemento)
Supplemental data that some companies must provide at line item level in billing documents.
MD5 hashed character string
The result of applying the hash algorithm, MD5, to the original input message.
Contains additional data that customers can choose to include in their billing documents.
A new output type (ZMDI) is created and the program that generates the digital invoice in pdf & xml formats and
smartform are assigned to this output type.
Both ‘print output’ and ‘external send’ are configured so that the output can be printed as well as sent as an email to the
email ids that are maintained in the customer master.
1.4.10 Assignment of output type to Output Determination procedure
T-code – NACZ
1.4.11 Maintain Output condition records
T-code – VV31
This step is done in order to determine the output type automatically during billing. Based on the conditions (access
sequence) during which the o/p needs to get triggered – Eg: Based on Sales org / Billing type , maintain the condition
records and save.
Network Layout
Tree Layout
Called TCode
6828
Package
DS (Digital Signature)
14
Parant Package
55
Application Component
17
Application Component
CA (Cross-Application Components)
10821
Software Component
2192
10
Show entries
Search:
Top
TCode Description Module Component
Module
Finanzpositionen ->
/SAPF15/FIPO2BW PSM-FM PSM EA-PS
Bewirtschafter
F15 Klärung
/SAPF15/TRMKFAF PSM-FM PSM EA-PS
Buchungstyp -> KFA
Device Event
/AIN/EVENT AIE-AII AIE AIN
Maintenance
Object Category
/AIN/OBJ_CAT_DET AIE-AII AIE AIN
Determination
Backend Message
/AIN/RULECONDBM AIE-AII AIE AIN
conditions
Previous
1
2
3
4
5
…
25
Next
500 of 6,828 tcodes loaded. We did not load the full list for performance considerations.
You may choose to download the Books or Sheets to get the full list.
Top
TCode Description Module Component
Module
CA-
DSLOG Signature Tool: Log Display CA
DSG SAP_ABA
CA-
ELSIG00 Signature Strategy CA
DSG SAP_ABA
CA-
ELSIG02 Digital Signature CA
DSG SAP_ABA
Top
TCode Description Module Component
Module
CA-
SIGNA Register Signature Application CA
DSG SAP_ABA
CA-
SIGNO Register Signature Object CA
DSG SAP_ABA
CA-
(empty) CA
S_ABA_72000132 DSG SAP_ABA
CA-
(empty) CA
S_ABA_72000133 DSG SAP_ABA
CA-
(empty) CA
S_ABA_72000134 DSG SAP_ABA
CA-
(empty) CA
S_ABA_72000135 DSG SAP_ABA
CA-
(empty) CA
S_ABA_72000136 DSG SAP_ABA
CA-
S_SI3_21000049 (empty) CA
DSG SAP_ABA
10
Show entries
Search:
Top
TCode Description Module Component
Module
CA-BFA-
BA10 Subsystem Configuration CA SAP_ABA
TRA
BC-MID-
BMV0 Manage Data Transfers BC SAP_ABA
ALE-UTI
Top
TCode Description Module Component
Module
Maintain Mass
MASSOBJ CA-GTF-MS CA SAP_ABA
Maintenance Objects
Showing 1 to 20 of 55 entries
Previous
1
2
3
Next
Language Description
中文 登记签字应用程序
한국어 서명어플리케이션 등록
日本語 署名アプリケーション登録
繁體中文 註冊簽名應用程式