Sap How to Upload the Document in to Logical File Name

Before yous tin start using the Document Service API, you need a customer, a user and a password.
For testing you tin use:
https://rz3.aeb.de/demo1docs/
Mandant: APITEST
User: API_TEST
Prisoner of war: API_TEST2021

If you like to implement against the Document Service - API from S/4Hana or SAP ERP 6.0 you accept to generate 1 or more Enterprise services. You take to generate an Enterprise Services for each WSDL you like to use.

First create a packet from SE80. So right click on the package choose Create -> Enterprise Services.
Then a sorcerer will be shown.

In the wizard cull Service Consumer and click on go along. And so you take to choose where source of your service is located. Choose External WSDL/Schema. Then you have to choose the data source. Hither you have to choose URL. Go along with continue.
The url y'all have to set is https://rz3.aeb.de/test2docs/servlet/bf/DocumentServiceBF?WSDL.
Information technology'due south recommended to download the WSDL first and do a local upload from file. Delight also keep in heed to download the corresponding XSD.
Now cull the package you have created earlier. Fix a request and provide a Prefix if necessary and get on with continue.
At present the Service Consumer is created. You should see something like that:

If that was not working please refer the the trouble shooting guide
If there were no errors just save the Service Consumer. The next footstep is to activate the Service Consumer.
If you lot bank check the service consumer, it will tell y'all that in that location is recursions used and that is not allowed in this context. So we have to gear up that. Get to the carte du jour -> utilities -> Settings. In the popup become to tab "Proxy Generation and there you accept to mark the checkbox "Show Untyped Mapping in Proxy Editor".
Salve the settings and go back to the Service Consumer. At that place you lot take to go to the "External View" Tab. Click on the binoculars and search for "record" and activate the checkbox pattern. So on the right side yous should see some details for the element "record". Click the checkbox "Untyped Mapping" and save it.
Alternatively you can remove the recursive segments already in the XSD before it's uploaded to SAP.

Now the service consumer can be activated. This footstep will generate the ABAP-Structures and ABAP-Classes what you need to implement against it. The Service consumer should now be active. If there were errors refer to the trouble shooting guide.

It's at present possible to implement something against the API.
Create an executable program and put the following code snippet into the programme.

                DATA:   document_service_bf    Blazon REF TO zco_idocument_service_bf,   output_data            Type zcreate_document_response1,   input_data             TYPE zcreate_document1,   system_fault_exception Type REF TO cx_ai_system_fault,   soap_fault_excepton    Blazon REF TO cx_ai_soap_fault.  "Instatiate BF TRY.     CREATE OBJECT document_service_bf EXPORTING logical_port_name = 'ZDOCUMENT_SERVICE_BF_TEST'.   CATCH cx_ai_system_fault INTO system_fault_exception.     WRITE 'Could not instantiate the document_bf'.     WRITE system_fault_exception->get_text( ).     Return. ENDTRY.  "Execute BF call Attempt.     document_service_bf->create_document( EXPORTING  input = input_data                            IMPORTING output = output_data ).    Grab cx_ai_soap_fault INTO soap_fault_excepton.     WRITE soap_fault_excepton->get_text( ).   CATCH cx_ai_system_fault INTO system_fault_exception.     WRITE system_fault_exception->get_text( ). ENDTRY.                              

Activate the program and execute it. The report should say "could not instatiate the billingBF". And the report tells united states that there is no logical port ZAEB_DOCUMENT_SERVICE for the proxy grade "ZAEB_DOCSCO_IDOCUMENT_SERVICE".
The side by side step is to create a logical port for our proxy class.
The logical port brings the consumer service, the endpoint and the authenficiation information together.

To enable a straight HTTPS connection between the SAP system and the AEB data center, you need the 'Root-SSL' and 'Intermediate' certificates issued by AEB. You lot can open up the required certificates in the Chrome browser using the post-obit links and save them locally as a file.

  1. EV Root:
    https://www.digicert.com/CACerts/DigiCertHighAssuranceEVRootCA.crt
  2. EV Intermediate:
    https://world wide web.digicert.com/CACerts/DigiCertSHA2ExtendedValidationServerCA.crt
  3. Non-EV Root:
    https://world wide web.digicert.com/CACerts/DigiCertGlobalRootCA.crt
  4. Not-EV Intermediate:
    https://www.digicert.com/CACerts/DigiCertSHA2SecureServerCA.crt
    Alternatively, you can also download the certificates from https://world wide web.digicert.com/digicert-root-certificates.htm. Search there for the following names:
  • DigiCert High Balls EV Root CA
  • DigiCert SHA2 Extendded Validation Server CA
  • DigiCertGlobal Root CA
  • DigiCert SHA2 Secure Server CA
    Proceed every bit follows to import the certificates into the SAP system:
  1. To install the certificates, start the transaction STRUST.
  2. Double-click on SSL Customer (default). For setup via the SOAMANAGER, the certificates must also be loaded into the SSL CLIENT (anonymous).
  3. In the Certificate field group, click the Import certificate button.
  4. In the window that opens, select binary for the File format pick.
  5. Select the advisable file with the certificate for import.
  6. Next, click Add to document list.
  7. Go to the PSE carte du jour and select Distribute All.
    The document is at present distributed and installed on all application servers.
  8. To update the imported certificates in the ICM, showtime the transaction SMICM, go to the Administration menu, and select ICM – Get out Soft – Global.

Start the transaction SOAMANAGER. The SOAMANAGER will be started in an external browser window. You lot should like see the post-obit.

Go to Spider web Service Configuration and search for your proxy class ZAEB_DOCSCO_IDOCUMENT_SERVICE.
Configuring a logical port with SOMANAGER (SAP NetWeaver Release 7.ane and higher)

  • Start the transaction SOAMANAGER.
  • Click the Web service configuration link.
  • Select Object type as the search criterion and enter the search term Consumer proxy.
  • Select Object name every bit the second search criterion and enter the search term IDocumentServiceBF.
    Click Search. In the list of search results, the consumer proxy with the internal name ZAEB_DOCSCO_IDOCUMENT_SERVICE and the name IDocumentServiceBF is displayed.
  • In the entry, click on the link in the Internal name cavalcade.
  • In the consumer proxy details displayed below, select the Configurations sheet and click Create – Manual configuration.
  • Enter a name of your pick for the logical port and its description, then click the Next.
  • In the Consumer security canvass, select the User ID and countersign option for an HTTPS connection, i.e. for all connections to the AEB data center. Specify the user ID in the format of @ and the password matching the user.
    When you are finished, click Side by side.
  • In the HTTP settings step, enter the following values:

Field name

Value

Explanation

Log

HTTPS

Host

rz3.aeb.de

Server name of target arrangement

Port

443

Port under which the target system tin can be accessed

Path

/test2docs/servlet/bf/DocumentServiceBF

Ask your AEB representative if you lot do non know the path name of the target system.

Proper noun of the proxy estimator / etc.

Proper noun of the proxy server

If a proxy must be used, enter the relevant access data for the proxy here and in the other fields

Execute local telephone call

No local system call

Send binding blazon

Lather 1.1

Max. waiting time WS consumer

0

Optimized XML transfer

none

Compressing the HTTP message

Active

Compressing the response

True

When yous are finished, click Side by side. In the SOAP log step, enter the following values:

Field name

Value

Message ID log:

Suppress ID transfer

Telescopic of information transfer

Minimal data transfer

Transfer log

Transfer via HTTP header

Click Finished to relieve the configuration of the logical port. The logical port should exist displayed with the Active status in the list of logical ports for the consumer proxy. Otherwise, activate the port manually using the Activate button.


  • Cosmos of the first document

arnoldeverecten.blogspot.com

Source: https://transport-freight-management.docs.developers.aeb.com/docs/setting-up-your-sap-environment-document-service

0 Response to "Sap How to Upload the Document in to Logical File Name"

Publicar un comentario

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel