Skip to Content
Author's profile photo Martin Grob

Transfer routine exists on an InfoObject

Introduction

Each InfoObject can hold a global transfer routine which always gets executed after the transformation or the communication structure. No matter if the updaterule. Using global “transfer routine exists” makes sense if an InfoObjet gets transformed with an ABAP routine always on the same way.


Transfer routine exists

If this indicator is set a transfer routine is defined for the InfoObject.The routine is then integrated in all transfer rules that are containing the InfoObject.

When data is transferred the logic contained in the individual transfer rules at the beginning. The routine is then carried out on the value of the corresponding field for every InfoObject that has a transfer routine. The code you define in the InfoObject you only have to maintain once, but is valid for all transfer rules

Calculating the field in transfer routine only works based on one field in the datasource as only one value can be handled in the routine.

2013_10_21_21_10_28_Edit_Characteristic_ZCUSTOMER_Details.png

The transfer routine has to be maintained on the InfoObject maintainance in the general tab.

Global transfer routines are great to check syntax or convert strings to upper case.  “Transfer routine exists” like other routines is  also based on a declaration part, parameter section and the code itself.

Parameters:

  • RECORD_NO
  • SOURCE_SYSTEM
  • RESULT
  • RETURNCODE
  • IOBJ_NAME

2013_10_21_21_09_43_Edit_Characteristic_ZCUSTOMER_Details.png

After calling up the editor of the routine maintenance you get to the framework above.


RECORD_NO

Holds the datarecord number of the record which will be handled in the transferrule.

SOURCE_SYSTEM

Contains the logical name of the source system

RESULT

Contains the current value of the InfoObject which has been assinged in the transfer routine

RETURNCODE

Any value <> 0 will be conisdered an error and causes the cancellation of the datapackages.

IOBJ_NAME

Hold the technical name of the InfoObject

Assigned Tags

      14 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Martin,

      Very Useful Document about Transfer routine , Thanks for posting.

      Regards

      karthick

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      Thanks I think it's a point often forgotten it's there and what it actually does 🙂

      Author's profile photo Srinu S
      Srinu S

      Useful document shared. Thanks Martin for sharing 🙂

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      you're welcome

      Author's profile photo Ganesh Bothe
      Ganesh Bothe

      Hi martin,

      Useful information....thats for sharing 🙂 .

      Author's profile photo Krishna Chaitanya
      Krishna Chaitanya

      Another good one from you.  Thanks for sharing with all of us.

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks

      Author's profile photo Former Member
      Former Member

      Good doc to learn new things. Thanks for sharing martin.

      Author's profile photo Meghana Kuppa
      Meghana Kuppa

      Exactly what I was looking for. Thank you!

      Author's profile photo Former Member
      Former Member

      Good info..!

      Author's profile photo Former Member
      Former Member

      Hi Martin Grob , nice info but can you pls explain if we need to do any specific setting in transforamtion or just no transforamtion to cal transfer routine

      Author's profile photo Benedict Venmani Felix
      Benedict Venmani Felix

      Hi, This blog is from 4yrs ago. You have a better chance of getting a response if you post your query in the BW space as a question. But do search and see if this topic is already discussed.

      To answer your question. No specific setting is needed on the transformation side. One a transformation is defined at the infoobject level, it executes by default after all the global routines have run

      Author's profile photo Former Member
      Former Member

      Hi

      Can you please provide a sample code for converting a particular fields data to UPPERCASE.

      I am beginner in ABAP, A detailed Example is much appreciated.

      Regards,

      Prasanna.

      Author's profile photo Ipsita Kundu
      Ipsita Kundu

       

      Hello Martin,

      The transfer routine of an Info-objects is applicable for 3.x flow(transfer rule which is in 3.x version) or it is used only from 7.x flow(transformation which is in 7.x version)??

       

       

      Thanks,

      Ipsita