0% found this document useful (0 votes)
131 views

Manual Activity Before Note

The document outlines steps to create various objects needed to implement SAR files in SAP. It involves creating function groups, domains, data elements, tables, views, structures, table types, messages and transformations. Key objects include creating tables SIPT_NUMBR_OBD and WSPT_LIKP to store document data, views to display the data, domains to define codes and statuses, and messages and transformations for interfacing with external systems.

Uploaded by

Graciete Martins
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views

Manual Activity Before Note

The document outlines steps to create various objects needed to implement SAR files in SAP. It involves creating function groups, domains, data elements, tables, views, structures, table types, messages and transformations. Key objects include creating tables SIPT_NUMBR_OBD and WSPT_LIKP to store document data, views to display the data, domains to define codes and statuses, and messages and transformations for interfacing with external systems.

Uploaded by

Graciete Martins
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 41

Steps before implementing SAR Files

General Note:

Create the below objects in the same order as mentioned in the document.

Contents
A. Create Function Groups ........................................................................................................................ 2
B. Create Domains..................................................................................................................................... 2
C. Create Data Elements ........................................................................................................................... 3
D. Create table SIPT_NUMBR_OBD ........................................................................................................... 7
E. Modify table SIPT_NUMBR_OBD ........................................................................................................ 11
F. Create View SIPT_NUMBR_OBD_V ..................................................................................................... 12
G. Modify View SIPT_NUMBR_OBD_V .................................................................................................... 15
H. Create Structures ................................................................................................................................ 15
i. Create Structure ‘WSPT_S_CERTIFCATE_INFO’ .............................................................................. 16
ii. Create Structure ‘WSPT_S_RESPONSE_STATUS’ ............................................................................ 17
iii. Create Structure ‘WSPT_WSSE_USERNAMETOKEN’ ...................................................................... 18
I. Create Table Types .............................................................................................................................. 19
i. Create Table Type ‘WSPT_T_RESPONSE_STATUS’ .......................................................................... 19
J. Create Table WSPT_LIKP ..................................................................................................................... 19
K. Create Table ‘WSPT_LIKP_REJ’............................................................................................................ 22
L. Create table WSPT_MOVE_TYPE ........................................................................................................ 24
M. Create Table Maintenance Generator WSPT_MOVE_TYPE ................................................................ 25
N. Create table WSPT_REJ_CODES .......................................................................................................... 26
O. Create table WSPT_REJ_CODEST ........................................................................................................ 28
P. Create View WSPT_V_REJ_CODES ...................................................................................................... 31
Q. Maintain Rejection Codes in view WSPT_V_REJ_CODES .................................................................... 33
R. Create Message Class WSPT ............................................................................................................... 35
S. Create Proxy ........................................................................................................................................ 37
T. Create LOG Object ‘WSPT’ .................................................................................................................. 38
U. Create Simple Transformation ‘WSPT_HEADER’ ................................................................................ 39
A. Create Function Groups
Follow the below steps if the Function Group ‘SIPT_OBD’ is not available in your system.

Steps:

1. Go to transaction SE37.
2. Click on go to, choose function group and click on ‘Create Group’.

3. Enter the function group name, short text and click on SAVE button.

4. Save it under package ‘ID-SIGN-PT’.


5. Similarly create the below function groups under the package ‘ID-SIGN-PT’.
Function Group Name Short Text
WSPT_XML Portugal Webservice XML file Req/Resp
WSPT_MOVE_TYPE Extended Table Maintenance (Generated)

B. Create Domains
1. Go to t-code se11.
2. Click on the radio button ‘Domain’.
3. Create each of the domain listed below –
4. Save and activate the domains.
Please note: Package for all objects is ‘ID-SIGN-PT’.
Domain Name Domain Short Text Data Length Output Value Range
Type Length
SIPT_MOVEMENT_TYPE SAFT-PT Movement of CHAR 2 2 GR Goods Delivery
Goods - Movement GD Return note from customer
Type GC Consignation Guide
SIPT_SOURCE_OF_BILLIN SAFT-PT Movement of CHAR 2 2 P Document Originated in current
G Goods - Source of Software
Billing I Integrated document that was
created in another software
M Manual invoice that later was
created in the system
WSPT_DOC_CATG Document Category CHAR 2 2 SD Delivery
ID ISO Delivery
IS ISO Shipment
GS Global Shipment
WSPT_DOC_TYPE Document Type CHAR 4 4
WSPT_DOC_LEVEL Document Level(for CHAR 1 1 1 Partially Scheduled
IS-OIL) 2 Scheduled
3 Partially Loaded (Plants Missing)
4 Completely Loaded
5 Partially Confirmed (Deliveries
Missing)
6 Completely Confirmed
WSPT_DOC_STATUS Document Status for CHAR 1 1 N New
PT Websevice XML I In Process
Delivery A Approved
R Rejected
E Error
C Cancelled (PGI)
WSPT_DOC_LOCK RFC sent Lock for CHAR 1 1 X
Delivery Document
WSPT_DOC_CD Flag for Document CHAR 1 1 C Changed
changed/deleted for D Deleted
IS-OIL
WSPT_REJ_CODE Rejection Code for CHAR 5 Value table - WSPT_REJ_CODES
Delivery

C. Create Data Elements


1. Go to transaction SE11.
2. Choose radio button Data type.
3. Enter the data element name.
4. Choose radio button Data element.
5. Save the data elements in package ‘ID-SIGN-PT’.

Data Element Short Text Domain Predefined Field Label


Type
Data Len
Typ gth
e
SIPT_LFART Signature PT: LFART 10 Doc. Type
Leading Delivery 15 Lead. Doc. Type
Document Type 20 Leading Doc. Type
21 Leading Document Type
SIPT_SIGN Signature PT: Digital XFELD 10 Signature
Signature 15 Dig. Signature
Generation 20 Digital Signature
26 Digital Signature Generat.
SIPT_SERIES Signature Portugal: CHAR4 10 Series
Series 15 Series
20 Numbering Series
16 Numbering Series
SIPT_FROMDATE Signature PT: DATUM 10 Start Date
Starting Date for 15 Starting Date
Signatures 20 Starting Date
11 Start Date
SIPT_EACCODE SAFT-PT Economic CHA 5 10 EACCODE
Activity Code R 19 Economic Actv. Code
22 Economic Activity Code
22 Economic Activity Code
SIPT_MOVEMENT_TYP SAFT-PT Movement SIPT_MOVEMENT_TY 10 Mov. Type
E of Goods - PE 15 Movement Type
Movement Type 20 Movement Type
13 Movement Type
SIPT_SOURCE_OF_BILL SAFT-PT Movement SIPT_SOURCE_OF_BIL 10 Src. Bill.
ING of Goods - Source of LING 17 Source of Billing
Billing 20 Source of Billing
17 Source of Billing
WSPT_DOC_SR Serial No for NUMC3 6 Doc Sr
wspt_likp 15 Document Serial
15 Document Serial
15 Document Serial
WSPT_DOC_CATG Document Category WSPT_DOC_CATG 10 Doc Catg
17 Document Category
20 Document Category
17 Document Category
WSPT_FILE_ID SAF-T File ID CHAR128 10 File ID
15 File ID
20 File ID
7 File ID
WSPT_DOC_STATUS Document Status for WSPT_DOC_STATUS 10 Doc Status
PT Websevice 15 Document Status
20 Document Status
15 Document Status
WSPT_DOC_LOCK RFC sent Lock for WSPT_DOC_LOCK 10 Lock PGI
Delivery Document 17 Delivery Doc Lock
35 RFC sent Lock for Delivery
Document
35 RFC sent Lock for Delivery
Document
WSPT_APPR_ID Document Approval CHAR200 10 ApprovalID
ID 15 Approval ID
20 Approval ID
55 Approval ID
WSPT_RESP_DT Response Received DATUM 10 Resp Dt
Date 20 Response Received Dt
22 Response Received Date
22 Response Received Date
WSPT_CHECK WSPT Active Check FLAG 10 WS Active
15 WS Active
20 WS Active
9 WS Active
SIPT_SHNUMBER Shipment Number CHAR10 10 Ship No
15 Shipment Number
20 Shipment Number
15 Shipment Number
WSPT_DOC_CD Flag for Document WSPT_DOC_CD 10 Flag
changed/deleted for 20 Changed/Deleted Flag
IS-OIL 20 Changed/Deleted Flag
20 Changed/Deleted Flag
WSPT_DOC_LEVEL Document level(for WSPT_DOC_LEVEL 10 Doc Level
IS-OIL) 15 Doc Level
20 Doc Level
9 Doc Level
WSPT_DOC_TYPE Document Type WSPT_DOC_TYPE 10 Doc Type
15 Document Type
20 Document Type
13 Document Type
WSPT_MOVE_ST_DT Movement Start DATUM 10 Move St Dt
Date 19 Movement Start Date
20 Movement Start Date
19 Movement Start Date
WSPT_MOVE_ST_TM Movement Start UZEIT 10 Move St Tm
Time 19 Movement Start Time
20 Movement Start Time
19 Movement Start Time
WSPT_SHPNUMBER Shipping Document VBELN 10 Shp No
no for IS-OIL 19 Shipping Doc Number
20 Shipping Doc Number
19 Shipping Doc Number
WSPT_MESSAGE_LINE WSPT: Operations CHAR256 10 StatusMSG
Status Message 15 Status Message
20 Status Message
55 Status Message
WSPT_REJ_CODE Rejection Code for WSPT_REJ_CODE 10 Rej Code
Delivery 15 Delv Rej Code
27 Rejection Code for Delivery
27 Rejection Code for Delivery
WSPT_REJ_DESC Rejection code CHA 200 6 Descr.
description R 15 Description
25 Rej. Code Description
30 Rej. Code Description
WSPT_REJ_TEXT Rejection Text LCH 200 10 Rej Text
R 0 15 Rejection Text
20 Rejection Text
55 Rejection Text
WSPT_REJ_TEXT_LEN WSPT: Rejection INT2 10 Rej Txt Ln
Text Length 15 Rej Text Length
20 Rej Text Length
15 Rej Text Length

The user must logon with the PT language to maintain the texts in Portuguese language.

Data Element Name Text (English) Text (Portuguese)


WSPT_DOC_CATG Doc Catg Cat doc
Document Category Categoria documento
Document Category Categoria de documento
Document Category Categoria de documento
WSPT_DOC_TYPE Doc Type Tipo doc
Document Type Tipo document
Document Type Tipo de document
Document Type Tipo de documento
WSPT_DOC_LEVEL Doc Level Nível doc
Doc Level Nível document
Doc Level Nível de documento
Doc Level Nível de documento
WSPT_DOC_STATUS Doc Status Status doc
Document Status Status documento
Document Status Status do documento
Document Status Status do documento
WSPT_DOC_LOCK Lock PGI Bloq
Delivery Doc Lock RFC bloqueio guia rem
RFC sent Lock for Delivery Document RFC enviou bloqueio p/ guia remessa
RFC sent Lock for Delivery Document RFC enviou bloqueio p/guia remessa
WSPT_APPR_ID Approval ID Cod. autoriz.
Approval ID Código autorização
Approval ID Código de autorização
Approval ID Código de autorização
WSPT_RESP_DT Resp Dt Data resp
Response Received Dt Data resposta
Response Received Date Data da resposta recebida
Response Received Date Data da resposta recebida
WSPT_MOVE_ST_DT Move St Dt Dt Início
Movement Start Date Data Início transp
Movement Start Date Data Início do transporte
Movement Start Date Data Início do transporte
WSPT_MOVE_ST_TM Move St Tm Hora inic
Movement Start Time Hora início transp
Movement Start Time Hora início do transporte
Movement Start Time Hora início do transporte
WSPT_DOC_CD Flag Assinalar
Changed/Deleted Flag Alteração/Eliminação
Changed/Deleted Flag Alteração/Eliminação
Changed/Deleted Flag Alteração/Eliminação
WSPT_SHPNUMBER Shp No N doc env
Shipping Doc Number N.º doc envio
Shipping Doc Number Número documento de envio
Shipping Doc Number Número documento de envio
WSPT_FILE_ID File ID ID fich
File ID ID ficheiro
File ID ID ficheiro
File ID ID ficheiro

D. Create table SIPT_NUMBR_OBD


If table ‘SIPT_NUMBR_OBD’ already exists in your system then follow step E (Modify table
SIPT_NUMBR_OBD).

1. Go to transaction SE11.
2. Enter table name as ‘SIPT_NUMBER_OBD’.
3. Enter the short description and delivery & Maintenance details as below.

4. Go to fields tab and enter the fields as below.


5. Select the LEAD_DOCTYPE field and maintain the foreign key relationship as below.

6. Maintain the technical settings as below.


7. Go to Extras and select Enhancement Category option.
Select ‘Cannot be enhanced button’ and click on COPY.

8. Save it under package ‘ID-SIGN-PT’ and activate the table.

E. Modify table SIPT_NUMBR_OBD


1. Go to transaction SE11.
2. Enter the table name as ‘SIPT_NUMBR_OBD’.
3. Click on change button.
4. Add the following new field.

Field Key Initial Data Element Data Length Decimals


Type
WS_ACTIVE WSPT_CHECK CHAR 1 0

5. Save and activate the table.

F. Create View SIPT_NUMBR_OBD_V


If view ‘SIPT_NUMBR_OBD_V’ already exists in your system then follow step G (Modify view
SIPT_NUMBR_OBD_V).

Steps:

1. Go to transaction SE11.
2. Choose radio button view and enter the view name as ‘SIPT_NUMBR_OBD_V’.
3. Click on CREATE button and choose view type as ‘Maintenance View’.
4. Enter the short text and go to tab ‘Table/Join’ conditions. Enter the table name as
‘SIPT_NUMBR_OBD’.

5. Click on Relationship button.


6. Select the Referenced tables as below and click on COPY button.

7. The join conditions look like below.

8. Select the TVLK table and click on relationships. Choose the following checkbox and click
on COPY.

9. The final JOIN Conditions looks like below.

10. Add the following view fields as below.


To add view fields, choose the Table field’s button and select the table from which the
fields will be added. Choose the following to add the view fields
 Add the following fields from table ‘SIPT_NUMBR_OBD’
1. MANDT
2. NRRANGENR
3. LEAD_DOCTYPE
4. SIGN_NUMB
5. WS_ACTIVE
6. SERIES
7. BUKRS
8. FROM_DATE
9. FROM_TIME
 Add the following fields from table TVLKT
1. VTEXT
 Add the following fields from table T001
1. BUTXT

After addition of all view fields as per above steps, the view fields will look as below:

11. Go to Maintenance Status tab and enter the following details.

12. Save and activate the view.


13. Choose Utilities->Table Maintenance Generator and enter the following details.
14. Press on CREATE button to create the TMG.

G. Modify View SIPT_NUMBR_OBD_V


1. Go to t-code se11.
2. Click on the radio button ‘View’
3. Enter the following view name - SIPT_NUMBR_OBD_V
4. Click on Change button.
5. Add the following View fields under the ‘View fields’ tab by referring SIPT_NUMBR_OBD
table –
i. WS_ACTIVE
6. After the fields are added, Save and Activate the view
7. Now create the maintenance view for this view by going in the change mode and
selecting the following menu path: Utilities -> Table maintenance generator. Click on
change button and regenerate the same maintenance screen.
8. Save and activate.

H. Create Structures
Note: All structures should be saved under package ‘ID-SIGN-PT’.

Steps:

1. Go to transaction SE11.
2. Click on radio button ‘Data Type’.
3. Enter the structure name and click on CREATE.
4. Choose radio button ‘Structure’ and Press ENTER.

i. Create Structure ‘WSPT_S_CERTIFCATE_INFO’


1. Enter the structure name and short description as below:

2. Go to components tab and enter the following details.

Field Data Element Data Length Decimals


Type
SUBJECT STRING 0 0
ISSUER STRING 0 0
SERIALNO STRING 0 0
VALIDFROM STRING 0 0
VALIDTO STRING 0 0
ALGID STRING 0 0
FINGERPRINT STRING 0 0
SUMMARY STRING 0 0
ALL STRING 0 0
SERIALINT STRING 0 0
KEYTYPE STRING 0 0
KEYLENGTH STRING 0 0
SUBJECTKEYID STRING 0 0
SUBJECTKEYIDXML STRING 0 0
FINGERPRINTSHA1 HASH160X RAW 20 0
PKFINGERPRINT STRING 0 0
KEYVALUE STRING 0 0
SIGAVAILABLE STRING 0 0
3. Maintain the enhancement category as below.

4. Save and activate the structure.

ii. Create Structure ‘WSPT_S_RESPONSE_STATUS’


1. Enter the structure name and short description as below.

2. Go to components tab and enter the following details.

Field Data Element Data Type Length Decimals Description


RETURN_CODE INT4 10 0 Return code
for error
RETURN_MESSAGE CHAR 256 0 Return
message

3. Maintain the enhancement category as below.


4. Save and activate the structure.

iii. Create Structure ‘WSPT_WSSE_USERNAMETOKEN’


1. Enter the structure name and short description as below.

2. Go to components tab and enter the details as below.

Field Data Element Data Length Decimals Description


Type
_A_ID STRING 0 0 @wsu:Id
USERNAME STRING 0 0 wsse:Username
PASSWORD STRING 0 0 wsse:Password
_A_PASSWORD_TYPE STRING 0 0 wsse:Text or
wsse:Digest
CREATED STRING 0 0 wsu:created
NONCE STRING 0 0 wsse:Nonce
(base64
encoded)

3. Maintain the enhancement category as below.


4. Save and activate the structure.

I. Create Table Types


Steps:

1. Go to transaction SE11.
2. Choose radio button ‘Data type’.
3. Enter the table type name and click on CREATE button.
4. Enter the details, save and activate the table type.
Note: Save the table type in ‘ID-SIGN-PT’ package.

i. Create Table Type ‘WSPT_T_RESPONSE_STATUS’


Table Type Short Description Line Type
WSPT_T_RESPONSE_STATUS Response Status Table WSPT_S_RESPONSE_STATUS

J. Create Table WSPT_LIKP


Steps:

1. Go to transaction SE11.
2. Enter table name as ‘WSPT_LIKP’.
3. Click on CREATE button.
4. Enter the short description and delivery & maintenance details as below.
5. Go to Fields tab and enter the following fields.

Field Key Initial Data Element Data Length Decimals


Type
MANDT X X MANDT CLNT 3 0
VBELN X X VBELN_VL CHAR 10 0
DOC_SR X X WSPT_DOC_SR NUMC 3 0
DOC_CATG X X WSPT_DOC_CATG CHAR 2 0
FILE_ID WSPT_FILE_ID CHAR 128 0
MBLNR MBLNR CHAR 10 0
MJAHR MJAHR NUMC 4 0
DOC_TYPE WSPT_DOC_TYPE CHAR 4 0
DOC_LEVEL WSPT_DOC_LEVEL CHAR 1 0
BUKRS BUKRS CHAR 4 0
DOC_STATUS WSPT_DOC_STATUS CHAR 1 0
DOC_LOCK WSPT_DOC_LOCK CHAR 1 0
APPR_ID WSPT_APPR_ID CHAR 200 0
RESP_DT WSPT_RESP_DT DATS 8 0
ERNAM ERNAM CHAR 12 0
ERDAT ERDAT DATS 8 0
ERZET ERZET TIMS 6 0
AENAM AENAM CHAR 12 0
AEDAT AEDAT DATS 8 0
AEZET AEZET TIMS 6 0
MOVE_ST_DT WSPT_MOVE_ST_DT DATS 8 0
MOVE_ST_TM WSPT_MOVE_ST_TM TIMS 6 0
DOC_CD WSPT_DOC_CD CHAR 1 0
SHNUMBER WSPT_SHPNUMBER CHAR 10 0

6. Maintain the Foreign keys as below.


7. Maintain the technical settings as below.

8. Maintain the enhancement category as below:


9. Save and activate the table.

Note: The package is ‘ID-SIGN-PT’

K. Create Table ‘WSPT_LIKP_REJ’


Steps:

1. Go to transaction SE11.
2. Enter table name as ‘WSPT_LIKP_REJ’.
3. Click on CREATE button.
4. Enter the short description and delivery & maintenance details as below.

5. Go to Fields tab and enter the following fields.

Field Key Initial Data Element Data Length Decimals


Type
MANDT X X MANDT CLNT 3 0
VBELN X X VBELN_VL CHAR 10 0
DOC_SR X X WSPT_DOC_SR NUMC 3 0
DOC_CATG X X WSPT_DOC_CATG CHAR 2 0
REJ_CODE WSPT_REJ_CODE CHAR 5 0
FILE_ID WSPT_FILE_ID CHAR 128 0
DOC_STATUS WSPT_DOC_STATUS CHAR 1 0
ERNAM ERNAM CHAR 12 0
ERDAT ERDAT DATS 8 0
ERZET ERZET TIMS 6 0
REJ_TEXT_LEN WSPT_REJ_TEXT_LEN INT2 5 0
REJ_TEXT WSPT_REJ_TEXT LCHR 2000 0
6. Maintain the Foreign keys as below.

7. Maintain the technical settings as below.

8. Maintain the enhancement category as below.


9. Save and activate the table.

Note: The package is ‘ID-SIGN-PT’

L. Create table WSPT_MOVE_TYPE


Steps:

1. Go to transaction SE11.

2. Enter the Database table name as ‘WSPT_MOVE_TYPE’ and click on CREATE button.

3. Enter the short description and Delivery & maintenance details as below.

4. Go to Fields tab and enter the following fields.

5. Maintain the technical settings as below.


6. Maintain the enhancement category as below.

7. Save and activate the table.

M. Create Table Maintenance Generator WSPT_MOVE_TYPE


Steps:

1. Go to transaction SE11.

2. Enter the Database table name as WSPT_MOVE_TYPE and Click on CHANGE button.
3. Choose menu option UTILITIES->TABLE MAINTENANCE GENERATOR. Enter the following
details.

4. Click on the CREATE button and the TMG will be created.

Note: You can maintain the view ‘WSPT_MOVE_TYPE’ using transaction SM30.

N. Create table WSPT_REJ_CODES


Please follow the below steps only if the table WSPT_REJ_CODES is not available in your
system.

Steps:

1. Go to transaction SE11.

2. Enter the table name as ‘WSPT_REJ_CODES’.

3. Click on CREATE button.


4. Enter the short description. Maintain the Delivery and Maintenance details as below.

5. Go to Fields tab and enter the fields as below.

6. Maintain the foreign key relationships as below.

7. Maintain the technical settings as below.


8. Define the enhancement category as below.

9. Save and activate the table.

Note: Save the table in package ‘ID-SIGN-PT’

O. Create table WSPT_REJ_CODEST


Please follow the below steps only if the table WSPT_REJ_CODEST is not available in your
system.

Steps:

1. Go to transaction SE11.

2. Enter the table name as ‘WSPT_REJ_CODEST’.

3. Click on CREATE button.


4. Enter the short description. Maintain the Delivery and Maintenance details as below.

5. Go to fields tab and enter the fields as below.

6. Maintain the foreign key relationships as below.

Note: For Field REJ_CODE, Enter the below settings while maintaining the foreign key:
7. Maintain the technical settings as below.

8. Define the enhancement category as below.

9. Save and activate the table.

Note: Save the table in package ‘ID-SIGN-PT’


P. Create View WSPT_V_REJ_CODES

Please follow the below steps only if the view WSPT_V_REJ_CODES is not available in your
system.

1. Go to transaction SE11.

2. Enter the view name as ‘WSPT_V_REJ_CODES’.

3. Enter the view type as ‘Maintenance View’.

4. Enter the short description and the table as below.

5. Click on Relationships button.

6. Choose the following dependent tables and choose COPY button.

7. The Join conditions look like below.

8. Maintain the view fields as below.


9. Go to Maint. Status and enter the following values.

10. Save and activate the view.

11. Choose Menu option UTILITIES->TABLE MAINTENANCE GENERATOR.

12. Enter the following values and click on Create button to generate the TMG.
Q. Maintain Rejection Codes in view WSPT_V_REJ_CODES
Steps:

1. Go to transaction SM30.

2. Enter the view name as ‘WSPT_V_REJ_CODES’.

3. Click on ‘MAINTAIN’ button.

4. Enter the following values.

Rejection Rejection Code description


Code

0 Documento registado com sucesso.

1 Utilizador não preenchido;

2 Tamanho do utilizador incorreto;

3 NIF inválido;

4 Utilizador com formato inválido;

5 Subutilizador com formato inválido;

6 Senha não preenchida;

7 Codificação Base64 inválida;

8 Cifra da chave pública inválida;

9 Formato do Timestamp inválido;

10 Validade da credencial expirada;

11 Chave simétrica inválida;

12 Chave simétrica repetida;

13 Estrutura da senha inválida;

33 Pedido SOAP inválido;

50 Header inexistente ou vazio;

51 O NIF não está preenchido no Header;


52 Não foi possível verificar se o utilizador tem permissões
para aceder a esta operação;

99 Erro na validação da senha (Senha errada, acesso


suspenso, etc.).

-100 A data início de transporte é inferior à data atual, pelo


que esta informação será considerada uma mera
comunicação de dados à AT;

-1 Parâmetro de entrada inválido;

-2 O número do Documento Global não corresponde a


nenhum Documento de Transporte existente;

-3 Já foi inserido um Documento de Transporte com o


número fornecido;

-4 Já foi anulado o Documento de Transporte com o


número fornecido;

-5 Estado de Documento de Transporte inválido;

-6 A Data de início de transporte não pode ser anterior à


data atual;

-7 O NIF do Remetente não corresponde ao anteriormente


fornecido;

-8 O Código AT está preenchido mas não existe


Documento de Transporte;

-9 O nº de Documento de Transporte é diferente do


anteriormente fornecido;

-10 O Remetente não tem atividade registada;

-11 O NIF do Adquirente não corresponde ao anteriormente


fornecido;

-12 Não foi possível verificar se o Remetente tem atividade


aberta;

-13 Não pode ser alterado um Documento de Transporte


quando a Data de Início já decorreu;
-14 As referências de Documento Global para Documentos
com tipo de emissão 4, têm que ser do tipo 3;

-15 Não pode adicionar referências para outros


documentos, uma vez que este documento já é
referenciado por documentos parciais;

-16 Não pode alterar a data de emissão do documento;

-17 A Data de início de transporte não pode ser anterior a


2013

-99 Erro interno;

5. Save the values.

R. Create Message Class WSPT

Steps:

1. Go to transaction SE91.
2. Enter the message class name as ‘WSPT’ and click on CREATE button.
3. Enter the short text as ‘Message Class for Portugal Webservice’ and click on SAVE
button. Save the message class in package ‘ID-SIGN-PT’.
4. Click on Messages tab and enter the below details. Save the Message class.

Msg. Short Text (English) Short Text (Portuguese)


No.
000 &&&& &&&&
001 Delivery sent for approval, cancellation not Entrega enviada para aprovação por MINI-
possible. SAF(T), cancelamento impossível.
002 Delivery Approved, cancellation not possible. Entrega aprovada, cancelamento impossível.
003 Username and Password are required. Nome de utilizados e senha necessários.
004 Company Code is required. É necessário indicar o código da empresa.
005 Random string for symmetric key was not Cadeia aleatória para chave simétrica não
created. criada.
006 Encoding: Error in & element. Codificação: erro no elem.&.
007 Error "&" while creating Binary table from Erro "&" ao criar tabela binária a partir da
NONCE string. string NONCE.
008 Encrypting: Error in & element. Encriptação: Erro no elemento &.
009 Error getting approval_ID from WSPT_LIKP. Erro ao obter approval_ID de WSPT_LIKP.
010 Certificate: Error "&" in function & for Certificado: erro "&" na função & para a
application &. aplicação &.
011 Certificate: Error "&" in function & for profile
Certificado Erro "&" na função & para o perfil
&. &.
012 Certificate: Error "&" parsing the certificate.Certificado: erro "&" ao
anal.sintat.certificado.
013 Sign: Error "&" in function &. Sinal: Erro "&" na função &.
014 Envelope: Error "&" in function &. Context:& - Envelope: erro "&" na função e contexto:& -
Applic:&. aplicação:&.
015 Customizing: No entry in table WSPT_CUST for Customizing: sem entrada na tabela
the combination "&". WSPT_CUST p/combinação "&".
016 Customizing: table SIPT_NUMBR_OBD is Customização: tabela SIPT_NUMBR_OBD está
empty! vazia!
017 Header: Error "&" in &. Cabeç.: erro "&" em &.
018 Header: Transformation error "&" in program Cabeç.: erro transformação "&" no programa
& and line &. & e linha &.
019 Customizing: Username/password not found Customizing: nome utilizador/senha não
for the combination "&". encontrado p/combinação "&".
020 Password can't contain special characters. A senha não pode conter caracteres especiais.
021 Delivery not found in LIKP. Entrega não encontrada em &.
022 Company not found for sales organization & in Empresa não encontr.p/organização vendas &
TVKO. em TKVO.
023 ReSubmit possible only for canceled Reapresentar possível apenas para
documents. documentos cancelados.
024 History displayed only for a single document, Histórico exibido só p/um documento
Select one document. individual, selecionar um documento
025 Cancellation can be done per document, É possível efetuar cancelamento por
Select one document. documento, selecionar um documento.
026 Cancellation of document only possible for Cancelamento de documento possível apenas
Approved document. para documento aprovado.
027 Error inserting/modifying entry &: &. Erro ao inserir/modificar entrada &: &.
028 Entry & added/modified successfully. Entrada & adic./modif.corretamente.
029 Error deleting entry &: &. Erro ao eliminar entrada &: &.
030 Entry & deleted successfully. Entrada & elim.corretamente.
031 No entries found for &. Nenh.entr.encontr.p/&.
032 Possible Document Category is only 'SD'. A única categoria do documento possível é
'SD'.
033 Document No & Response updated with Nº doc.e resposta atualizados com status &
status & check the log. verificar o log.
034 Log can be display for a single document. É possível exibir o log para um documento
individual
035 Select at least one document. Selecione pelo menos um documento.
036 Error creating Message from "Error Code" for Erro ao criar mensagem de "código de erro"
function SSFW_KRN_ENVELOPE. para função SSFW_KRN_ENVELOPE.
037 Error in enqueue of delivery &1. Entrega &1 bloqueada.
038 Problem in Enhan. WSPT_EH_MOVE_GOODS Problema na ampliação
or in CL_WSPT_MOVE_GOODS_IMP. WSPT_EH_MOVE_GOODS ou em
CL_WSPT_MOVE_GOODS_IMP.
039 Unable to find delivery & in LIKP. Please Imposs.encontr.entrega & em LIKP. Processar
reprocess. novamente.
040 Unable to find sales order & in VBAK. Imposs.encontr.ord.cliente & em VBAK.

041 Missing customizing AUART(&) in Customizing em falta AUART(&) em


WSPT_MOVE_TYPE. WSPT_MOVE_TYPE.

042 POPUP error in Erro de POPUP em


CL_IM_WSPT_SHP_DELIV_PROC~READ_DELIV CL_IM_WSPT_SHP_DELIV_PROC~READ_DELIV
ERY. ERY.

043 Delivery reversal without approval ID will give A anulação de entrega sem ID de aprovação
an error. irá apresentar um erro.

044 You are not authorized perform the action. Sem autorização para executar a ação. Objeto
Auth obj. V_PTWSMONI. de autorização V_PTWSMONI.

S. Create Proxy
Steps:

1. Go to transaction SE80.
2. Right click on the package name and choose CREATE->ENTERPRISE SERVICE.
3. Choose Service Consumer and press on CONTINUE button.

Observation: Depending on you APPL version, and consequently your ABAP version, the number
of possibilities for creating services/proxies, may differ from this screen. Nevertheless, choose
always the option Service Consumer

4. In the next step, choose local file and press on CONTINUE button.
5. Choose the WSDL file location and press on CONTINUE button.
Note: The WSDL file is available in Note attachment ‘documentosTransporte_notaSAP.zip’.

6. In the next step, enter the following values and press on CONTINUE button.
Package: ID-SIGN-PT
Prefix: WSPT
7. Press on COMPLETE button to generate the proxy.

Note: Before ACTIVATION and after the WSDL import verify that the proxy name is
‘CO_WSPT_DOCUMENTOS_TRANSPORTE’.

T. Create LOG Object ‘WSPT’


Steps:

1. Go to transaction SLG0.
2. Click on New Entries and enter the following values.

3. Save the entry.


4. Select the object WSPT and click on sub-objects.

5. Click on New entries and enter the following values.


6. Save the entries.

U. Create Simple Transformation ‘WSPT_HEADER’


Steps:

1. Go to transaction ‘XSLT_TOOL’.
2. Enter transformation as ‘WSPT_HEADER’ and press on CREATE button.
3. Enter the following values in the create transformation pop up.
Short Description: wsse:UsernameToken
Transformation Type: Simple Transformation
4. Save it under package ‘ID-SIGN-PT’.
5. Replace an existing code by the one in Step 6.

6. Copy the below code to the simple transformation.

<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-
templates">
<tt:root name="usernametoken"/>
<tt:template>
<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/">
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/
12/secext">
<wsse:UsernameToken>
<wsse:Username>
<tt:value ref="usernametoken.USERNAME"/>
</wsse:Username>
<wsse:Password>
<tt:s-cond>
<tt:cond check="not-
initial(usernametoken._A_PASSWORD_TYPE)">
<tt:attribute name="Type" value-
ref="usernametoken._A_PASSWORD_TYPE"/>
</tt:cond>
</tt:s-cond>
<tt:d-cond>
<tt:group>
<tt:cond frq="?">
<tt:attribute name="Type" value-
ref="usernametoken._A_PASSWORD_TYPE"/>
</tt:cond>
<!--
.net 3.5 violates schema and uses qualified attribute-->
<tt:cond frq="?">
<tt:attribute name="wsse:Type" value-
ref="usernametoken._A_PASSWORD_TYPE"/>
</tt:cond>
</tt:group>
</tt:d-cond>
<tt:value ref="usernametoken.PASSWORD"/>
</wsse:Password>
<tt:s-cond>
<tt:group>
<tt:cond check="not-initial(usernametoken.NONCE)">
<wsse:Nonce>
<tt:value ref="usernametoken.NONCE"/>
</wsse:Nonce>
</tt:cond>
<tt:cond check="not-initial(usernametoken.CREATED)">
<wsse:Created>
<tt:value ref="usernametoken.CREATED"/>
</wsse:Created>
</tt:cond>
</tt:group>
</tt:s-cond>
<tt:d-cond>
<tt:group>
<tt:cond frq="?">
<wsse:Nonce>
<tt:skip/>
</wsse:Nonce>
</tt:cond>
<tt:cond frq="?">
<wsse:Created>
<tt:value ref="usernametoken.CREATED"/>
</wsse:Created>
</tt:cond>
</tt:group>
</tt:d-cond>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
</tt:template>
</tt:transform>

7. Save and activate the transformation.

You might also like