Manual Activity Before Note
Manual Activity Before Note
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.
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
The user must logon with the PT language to maintain the texts in Portuguese language.
1. Go to transaction SE11.
2. Enter table name as ‘SIPT_NUMBER_OBD’.
3. Enter the short description and delivery & Maintenance details as below.
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’.
8. Select the TVLK table and click on relationships. Choose the following checkbox and click
on COPY.
After addition of all view fields as per above steps, the view fields will look as below:
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.
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.
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.
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.
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.
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.
Note: You can maintain the view ‘WSPT_MOVE_TYPE’ using transaction SM30.
Steps:
1. Go to transaction SE11.
Steps:
1. Go to transaction SE11.
Note: For Field REJ_CODE, Enter the below settings while maintaining the foreign key:
7. Maintain the technical settings as below.
Please follow the below steps only if the view WSPT_V_REJ_CODES is not available in your
system.
1. Go to transaction SE11.
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.
3 NIF inválido;
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.
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’.
1. Go to transaction SLG0.
2. Click on New Entries and enter the following values.
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.
<?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>