How To Upload the XML File of Customs Offices in GTS

Similar documents
How To Configure MDM to Work with Oracle ASM-Based Products

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

How to Configure and Trouble Shoot Notification for Process Control 2.5

Configuring Distribution List in Compliant User Provisioning

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

How To... Call BEx Web Applications from SAP BusinessObjects Dashboards (Xcelsius) and vice versa

Performance Best Practices Guide for SAP NetWeaver Portal 7.3

Analyzing Sales Data for Choosing Forecast Strategies

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

Extract Archived Data from SAP ERP

How To... Integrate Custom Formulas into the Formula Builder

Methodology to Implement SAP Process Integration

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

Posting Messages into XI

Roster Configuration (Payroll) in SAP ECC 6.0 Tips & Tricks

Backup & Restore with SAP BPC (MS SQL 2005)

Implementing Outlook Integration for SAP Business One

How to configure BusinessObjects Enterprise with Citrix Presentation Server 4.0

Utilities for downloading and uploading OO ABAP classes in XML format

prioritize XI messages on integration server

3 rd party Service Desk interface

CREATING A PURCHASE ORDER STORE RECORD WEB SERVICE

How to Schedule Report Execution and Mailing

Budget Control by Cost Center

Ronald Bueck SBO Product Definition

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

How To... Migrate Custom Portal Applications to SAP NetWeaver 7.3

How To Balance In Sap Bw

E-Recruiting Job Board Integration using XI

SAP Master Data Governance- Hiding fields in the change request User Interface

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

How To... configure and execute Business Process Flows in SAP BusinessObjects Planning and Consolidation 7.5 version for SAP NetWeaver

Integrate Third Party Collaboration Tools in the SAP NetWeaver Portal. SAP NetWeaver Product Management

Problems with your Data Model in SAP NetWeaver MDM Do s and Don ts

How to Configure and Trouble Shoot Workflow for Process Control 2.5

Data Archiving in CRM: a Brief Overview

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Integrating Easy Document Management System in SAP DMS

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Debugging Portal Applications

User Experience in Custom Apps

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

USDL XG WP3 SAP use case. Kay Kadner

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

Enterprise Software - Applications, Technologies and Programming

Understanding HR Schema and PCR with an Example

Process Archiving using NetWeaver Business Process Management

HR400 SAP ERP HCM Payroll Configuration

SAP Service Tools for Performance Analysis

How to Create Web Dynpro-Based iviews. Based on SAP NetWeaver 04 Stack 09. Jochen Guertler

ARCHIVING OF IDOCS IN SAP

Enabling Full-Text Search for Business Objects in mysap ERP

DBA Cockpit for Oracle

Data Source Enhancement Using User Exit

Siteco Relies on SDN for its SAP CRM 5.0 Upgrade

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

Third Party Digital Asset Management Integration

Intelligent Business Operations Chapter 1: Overview & Strategy

SAP Central Process Scheduling (CPS) 8.0 by Redwood

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

Integration of SAP Netweaver User Management with LDAP

Accounts Receivable. SAP Best Practices

Integration of SAP central user administration with Microsoft Active Directory

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

Global Transport Label - General Motors -

How to Create a Support Message in SAP Service Marketplace

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

OData in a Nutshell. August 2011 INTERNAL

Consume an External Web Service in a Nutshell with good old ABAP

Log Analysis Tool for SAP NetWeaver AS Java

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

BC407 Reporting: QuickViewer, InfoSet Query and SAP Query

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

Sending Additional Files from SAP Netweaver PI to third Party System

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

mysap ERP Talent Management Dr. Christian Acosta-Flamma

Monitoring and Management of Landscapes with SAP NetWeaver Administrator. Dieter Krieger, SAP AG

SAP Sales and Operations Planning Software Product (xsop)

SAP Portfolio and Project Management

Next Generation Digital Banking with SAP

K in Identify the differences between the universe design tool and the information design tool

Workflow extended notifications

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

Variable Exit in Sap BI How to Start

BW Workspaces Use Cases

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

Single Sign-On between SAP Portal and SuccessFactors

ERP Quotation and Sales Order in CRM WebClient UI Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

Collaboration Technology Support Center - Microsoft - Collaboration Brief

Using SAP Logon Tickets for Single Sign on to Microsoft based web applications

Transcription:

SAP SOLUTIONS FOR GOVERNANCE, RISK, AND COMPLIANCE How-To Guide How To Upload the XML File of Customs Offices in GTS SAP GRC Regional Implementation Group Applicable Releases: GTS 7.2 Version 1 December 2008

Copyright 2008 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/os, POWER, POWER5, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP NetWeaver How-to Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. Disclaimer Some components of this product are based on Java. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressively prohibited, as is any decompilation of these components. Any Java Source Code delivered with this product is only to be used by SAP s Support Services and may not be modified or altered in any way.

Typographic Conventions Icons Type Style Description Icon Description Example Text Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Caution Note or Important Example Recommendation or Tip Cross-references to other documentation Example text Emphasized words or phrases in body text, graphic titles, and table titles Example text File and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. Example text User entry texts. These are words or characters that you enter in the system exactly as they appear in the documentation. <Example text> Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. EXAMPLE TEXT Keys on the keyboard, for example, F2 orenter.

Table of Contents 1. Business Scenario...1 2. Background Information...1 3. Prerequisites...2 4. Step-by-Step Procedure...3 4.1 Prepare the XML file of the US customs office...3 4.2 Upload the XML file into SAP GTS system...4 4.3 Run the modification program to update the customs office identification number in GTS...8 5. Appendix...9

... 1. Business Scenario The list of US Port Codes is a required master data in SAP Global Trade Services (GTS) Customs Management and can be uploaded from an XML file. During upload, SAP GTS creates these port codes as customs office business partners in the system. In the current release of GTS 7.2, the port code (ex. 2809) in the XML file is used as both the external business partner number (if this option is selected) and the office number of the customs office in GTS. In some cases, existing business partners (ex. 2809 Vendor John Doe) in GTS may overlap with these customs office numbers (ex. 2809 Port of San Francisco). Therefore, the upload of the XML file may generate conflicts during the business partner creation for the customs offices. This How-To guide provides a workaround to solve the issue while uploading the XML file of customs offices. The goal is to create unique business partners for US customs offices (ex. US2809) and then assign the appropriate port code (2809). 2. Background Information The list of US customs offices is published in the Schedule D from US Customs and Border Protection (CBP). Each US customs office is identified with a unique 4-digit identification number in Schedule D. In this guide, the XML file of US customs office is used to illustrate the procedure of the workaround. Here are the major steps of the workaround provided in this guide: 1. Modify the US customs office XML file 2. Upload the customs office XML file 3. Use the ABAP program found in the Appendix of this guide as a reference to correct customs office identification number for each customs office in GTS 4. Verify the result in GTS cockpit This guide is based on the SAP GTS 7.2 release. However, this approach can also be applied to other SAP GTS releases. The ABAP program in Appendix A is only a sample code for reference. Please modify it accordingly to fit your system environment. CAUTION In GTS, if you have business partner external numbers in the format USxxxx where xxxx is the 4-digit official US customs office identification number; you will run into the conflicts that this workaround tries to solve. In this case, you need to modify the step 1 and step 3 accordingly. However, the approach remains the same.

3. Prerequisites Software SAP GTS 7.2 The Compliance and Customs Management are working in your SAP GTS system. Hardware SAP GTS server Required/recommended expertise or prior knowledge Basic knowledge of SAP GTS Basic knowledge of ABAP programming Basic knowledge of XML.

... 4. Step-by-Step Procedure First of all, you need to get the XML file of US customs office from your data provider. The file from CBP website is not in the XML format at the time this guide is written. 4.1 Prepare the XML file of the US customs office 1. Open the XML file of the US customs offices with an editor, such as notepad. 2. Add two characters US in front of the 4-digit identification number for each customs office, as shown in following. Note If you already have business partners with external numbers in the format USxxxx where xxxx is the 4-digit official US customs office identification number; you can add other characters instead, such as ABC. However, you will need to modify the ABAP program in the Appendix of this guide accordingly. 3. Save and close the XML file.

... 4.2 Upload the XML file into SAP GTS system 1. From the GTS cockpit, follow the navigation path: SAP GTS Area Menu -> SAP Customs Management -> Master Data -> Customs Offices 2. Before the upload, check the existing information in GTS system for legal regulation ACE by clicking on Maintain Customs Office Numbers. 3. Load the XML file by clicking on the Load Customs Offices from XML File in the Customs Offices section. 4. Provide the information of Data Provider, Legal Regulation, and the full path of the XML file. Tip You might want to try the Simulation Mode first to make sure everything is correct before the actual upload.

5. Click on Execution button and wait to see the message Tasks performed successfully in the display log. 6. Click on the Save button to save the data in database. 7. Display the result of the upload by clicking on Maintain Customs Office Numbers in the Customs Offices section (or transaction /SAPSLL/BP_MAIN_DNR). 8. Enter the legal regulation, and US* in the Business Partners selection field.

Notice the customs office identification number in the column OFN has the values in the format USxxxx, where the xxxx is the customs office identification number. We need to remove the prefix US created during the XML file upload to make it a 4-digit number as published by the CBP. 9. Check the business partner creation of the customs offices after the upload with transaction BP.

... 4.3 Run the modification program to update the customs office identification number in GTS 1. Create the modification program with the sample code in Appendix A as reference, by SE38. Modify it accordingly to fit your system environment. 2. Activate and execute the program. 3. Verify the result by clicking on Maintain Customs Office Numbers in the Customs Offices section (or transaction /SAPSLL/BP_MAIN_DNR). The column OFN should be only assigned with the 4-digit official US customs office number.

5. Appendix This is only a sample code for reference. Please modify it according to your system environment. Appendix A - ABAP program to remove the prefix for the customs office numbers in GTS *&---------------------------------------------------------------------* *& Report Z_MODIFY_OFN *& *&---------------------------------------------------------------------* *& The report removes the prefix for the customs office numbers, *& for example from 'US5582' to '5582'. *& *&---------------------------------------------------------------------* REPORT Z_MODIFY_OFN. DATA: update_needed TYPE syst-input value ' '. DATA: l_pinid TYPE /SAPSLL/ADRLRID-pinid. DATA: lt_adrlrid TYPE TABLE OF /SAPSLL/ADRLRID. FIELD-SYMBOLS <ls_adrlrid> TYPE /sapsll/adrlrid. SELECT * FROM /sapsll/adrlrid INTO TABLE lt_adrlrid WHERE pinid like 'US%'. IF sy-subrc = 0. LOOP AT lt_adrlrid ASSIGNING <ls_adrlrid>. l_pinid = <ls_adrlrid>-pinid. SEARCH l_pinid for 'US*'. IF SY-SUBRC = 0 and ( strlen( l_pinid ) = 6 ). <ls_adrlrid>-pinid = l_pinid+2(4). update_needed = 'X'. ENDIF. ENDLOOP. IF update_needed = 'X'. update /SAPSLL/ADRLRID from TABLE lt_adrlrid. IF sy-subrc = 0. WRITE: 'The table of customs offices is updated successfully.'."#ec NOTEXT ELSE. WRITE: 'Table update failed.'. "#EC NOTEXT ENDIF. ENDIF. ELSE. WRITE: 'There is no record to be updated. Everything is OK.'."#EC NOTEXT ENDIF.