Home > SAP software/management Tips > SAP tips and best practices > How to acquire the runtime information of a data transfer process (DTP)
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP TIPS AND BEST PRACTICES

How to acquire the runtime information of a data transfer process (DTP)


Michael Hoerisch
05.15.2007
Rating: -4.25- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



Scenario:

This article will show how you can access the runtime information of a 'Data Transfer Process' and which data is available. The runtime information of a 'Data Transfer Process' (DTP) is available in the 'Start, End and Rule' routine. For example, this information could be used to determine the target of the DTP to implement logical partitioned InfoCubes or datastore objects. This function is available with SAP NetWeaver BI SP10.

Please refer to OSS note #979607 for further information.

Available fields and corresponding data types:

Description Technical name Data type
Request ID (INT4) R_REQUID RSBKREQUID
Technical name of the DTP / DTP ID: R_DTP RSBKDTPNM
Text/Description of the DTP R_DTPTEXT RSBKDTPTEXT
Lines read from the source R_LINES_READ SYTABIX
Lines transferred from the source R_LINES_TRANSFERRED SYTABIX
Request ID (length 30) R_REQUID30 RSREQUID
DTP Selections for Source R_TH_RANGE RSBK_TH_RANGE
DTP State 0   New
1    Executable
2    Processed Successfully
3    Processed with Errors
4    Deleted
5    Active
6    Processed, with Warnings
7    Further Processing Started
8    Processed Further
9    Deletion Started
A    Further Processing Terminated
R_TSTATE RSBKTSTATE
Time Stamp END of the DTP / is usually empty R_TSTMP_FINISH RSTIMESTMP

Time Stamp Start of the DTP /
UTC Time Stamp in Short Form
(YYYYMMDDhhmmss)

R_TSTMP_START RSTIMESTMP
User name executed the DTP R_UNAME SYUNAME

Update mode

(F)   Full
(D)   Delta
(I)   Initial Non-Cumulative
      for Non-Cumulative Values
R_UPDMODE SBKUPDMODE

User-Defined Processing Status for a DTP Request

See "State" / RTSTATE for state types

I_USTATE RSBKUSTATE
Source object (eg. Data Source name) R_SRC RSBKSRCNM
Source type (eg. DTASRC for DataSource) R_SRCTP RSBKSRCTP
Target type (eg. cube for InfoCube) R_TGTTP RSBKTGTTP
Logical Source System name R_LOGSYS RSSLOGSYS
Data Source from the Source System R_DATASOURCE RSOLTPSOURCER
DataSource segments R_T_PSA RSDS_T_RSDSSEG
New or old DataSource is used I_USE_NEW_DS RS_BOOL

A simple implementation example:

  data:

* Target InfoProvider
   I_TGT type RSBKTGTNM.

* get target
    CALL METHOD P_R_REQUEST->get_TGT
       RECEIVING
          R_TGT = I_TGT.

Result:

The above fields are available during the runtime of the DTP (transformation). In this example the result would be "SALES13".

For example, see the field "TGT" in the screenshot of the debugger session:

image


Michael Hoerisch is a member of the SAP NetWeaver Regional Implementation Group (RIG) since 2001, with a focus on Enterprise Data Warehousing and customer solutions.

This content is reposted from the SAP Developer Network.
Copyright 2007, SAP Developer Network

SAP Developer Network (SDN) is an active online community where ABAP, Java, .NET, and other cutting-edge technologies converge to form a resource and collaboration channel for SAP developers, consultants, integrators, and business analysts. SDN hosts a technical library, expert blogs, exclusive downloads and code samples, an extensive eLearning catalog, and active, moderated discussion forums. SDN membership is free.

Want to read more from this author? Click here to read Michael Hoerisch's Weblog. Click here to read more about Business Intelligence (BI) on the SDN.



Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAP business intelligence tips
Choosing an SAP BI/BW database for InfoCube data
Using Infoset to join, move DSO analysis to InfoCube
Selecting InfoCubes in SAP BI/BW Business Content
How to limit employee access to reports using roles in SAP NetWeaver
SAP BI extractors vs. Business Objects for ETL process
Adding custom fields for retail product comparisons in SAP BW
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Adding special characters in SAP BI
Currency translation using SAP BI

SAP NetWeaver tips
Using SAP NetWeaver MDM with CRM, SCM and NetWeaver BI
The importance of master data management following mergers and acquisitions
Designing your SAP NetWeaver master data management strategy
Enterprise MDM: SAP MDM for reducing data silos and duplicate records
How to move SAP NetWeaver Enterprise Portal between servers
Getting started with SAP NetWeaver PI (formerly XI)
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Eliminate database read/write times with ABAP shared memory
XI: Search through the payload of a message... without TREX!

SAP tips and best practices
Minimizing business disruptions during an SAP upgrade or implementation
Retrieving content from an SAP workflow attachment
Updating URLs in SAP SRM
How to change default settings in SAP SRM
What are the benefits of implementing SAP SRM?
Increase column width in a transaction screen
Updating an RT table entry in SAP HR Payroll -- without the ADDWTE option
Is this the quickest way to find a BADI?
Adding custom fields for retail product comparisons in SAP BW
Improving performance with ABAP Objects in SAP Workflow

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts