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

SAP BEST PRACTICES

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


Michael Hoerisch
05.15.2007
Rating: -5.00- (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
Business Warehouse
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Adding special characters in SAP BI
Budgeting best practices with SAP business planning
Currency translation using SAP BI
Smart Forms vs. PDF-based print forms in SAP solutions -- pros and cons
Repair bad SAP data and subsequent data targets with delta update
Real-Time Data Acquisition - BI@2004s
SAP BW Guide: Open Hub Service
How to integrate BW query iViews with a WebDynpro application

SAP NetWeaver
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!
Using Folders in PI 7.1
User management with SAP NetWeaver Administrator
Business process platform creation for healthcare, part 2
Business process platform creation for healthcare
A process runtime dashboard for tracking efficiency
SAP XI - Event based message triggering with dependencies

SAP best practices
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Eliminate database read/write times with ABAP shared memory
Model-driven development in the enterprise
Budgeting Best Practices with SAP Business Planning -- Part II
Budgeting best practices with SAP business planning
Currency translation using SAP BI
Smart Forms vs. PDF-based print forms in SAP solutions -- pros and cons
Defining shared services and shared outcomes in the public sector
Repair bad SAP data and subsequent data targets with delta update

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.

HomeNewsTopicsBlogsTipsAsk the ExpertsWebcastsWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, 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