Transfer routine in InfoObject

I have an InfoObject 0Batch which in some cases has a special character which it will not permit.  I only have the hexidecimal value for the character.  Does anyone know of any function that I can use when I am defining a transfer routine which will take hexidecimal inputs? Thanks

Hi Niten,
You can try function module <b>CHAR_HEX_CONVERSION</b> and compare your hexa decmial character.
I havent tested these..but you can try..
There is another function module
<b>SF_HEXA_CHECK - Comparison of hexadecimal numbers .</b>
Regards
Manga

Similar Messages

  • Create Transfer Routine fo infoobject

    Hi,
    How to Create Transfer Routine fo infoobject.
    Thanks,
    Medha.

    Goto your Transformation rule and map the info object with corresponding source field. Right click on info object ---> Rule detail ---> then select Rule type as routine that will take you to the editor where you can write your transfer routine.
    Jagadeesh.

  • Regarding  Transfer Routine at InfoObject Level(in Maiantance Screen Of In

    hai
    i have some bad characters from the oracle source system .
    So im writing the following Transfer Routine in the transfer rule for all infoobjects .
    RESULT = TRAN_STRUCTURE-PRENBT.
    call function 'ZTHW_REMOVE_BAD_CHARACTERS'
    changing
    string = RESULT.
    translate RESULT to upper case.
    But i want to write this code at InfoObject Level in the Maintanence Screen (Create Transfer Routine)
    So how can i write this code in Maintanence Screen of each InfoObject instead of writitng in the transfer rules.
    Pls give the ABAP CODE at InfoObject Levele
    pls tell me
    i ll assing the points
    rizwan

    hi rizwan
    there is a result value for the conversion routine at iobj level also .Please see below :
    PROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RSD, RSARC, RSARR.
    TYPES: DE_YA_M_IND(000006) TYPE C.
    Conversion rule for InfoObject YA_M_IND
        Data type       = CHAR
        ABAP type       = C
        ABAP length     = 000006
    FORM CONVERT_YA_M_IND
      USING    RECORD_NO LIKE SY-TABIX
               SOURCE_SYSTEM TYPE RSA_LOGSYS
               IOBJ_NAME TYPE RSIOBJNM
      CHANGING RESULT TYPE DE_YA_M_IND " InfoObject value
               RETURNCODE LIKE SY-SUBRC.
    $$ begin of routine - insert your code only below this line        -
      <b>RESULT = .
      RETURNCODE = 0.</b>$$ end of routine - insert your code only before this line         -
    ENDFORM.

  • Syntax error during transport on valid transfer routines

    Dear All,
    We have some routines in a tranfer structure that are valid and working just fine in DEV.  But when we transport them to QA we get the following error message :-
    Start of the after-import method for object type R3TR ISTS (Activation Mode)                
    Transfer structure 6DB_V_BW_EPISODE_AD activated under the name 6DB_V_BW_EPISODE_AD         
    It is not necessary to copy dependent objects for transfer structure 6DB_V_BW_EPISODE_AD    
    Syntax error in transfer routine for InfoObject OPEN_DAT                                    
    Activating Transfer Rules 6DB_V_BW_EPISODE_AD ...                                           
    47 Transfer Rule(s) of the transfer structure 6DB_V_BW_EPISODE_AD removed from control table
    53 InfoObject(s) of the transfer structure 6DB_V_BW_EPISODE_AD removed from control table   
    Formulas have been saved                                                                    
    Syntax error in transfer routine for InfoObject OPEN_DAT
    If we remove all the routines the activation works just fine even though our routines are valid and working just fine in DEV.
    Can anyone explain this as this is becoming quite urgent now ?
    Thanks in advance.
    Craig

    Hi Oliver
    I work with Craig. In response to your question, what he means is that all objects independantly have been transported ok, apart from the transfer rules. If you look at the table RSTSRULES you will see a column called CONVROUT_L.
    In our Dev system this field contains the BW generated rule code. Eg.
    45GEGC5I66GA9Z5G4KFDDRIK4 against the Transfer structure. When the after import process runs, it uses the contents of this table together with the contents of the RSAABAP table which contains the code and creates the transfer rule program.
    In RSAABAP we have the following code for CODEID '45GEGC5I66GA9Z5G4KFDDRIK4'
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    CHECK NOT &TS&-opened_date IS INITIAL.
    IF &TS&-opened_date < '19000101'.
    &RS& = '19900101'.
    ELSEIF &TS&-opened_date > '29990101'.
    &RS& = '19900101'.
    ELSE.
    &RS& = &TS&-opened_date.
    ENDIF.
    returncode <> 0 means skip this record
    &RE& = 0.
    abort <> 0 means skip whole data package !!!
    &AB& = 0.
    In our QA system the column is blank because of the wierd Syntax problem when generating the program, therefore the transfer rules dont get activated.
    As you can see there is no problem with the ABAP.
    Regards
    Mark

  • 0LOGSYS transfer routine error transporting DEV- QA

    Hello!
    I need to transport several business content infocubes and loading flow(migrated from 3x to in 7.0) from DEV to QA.
    In QA I've imported also infoobject 0LOGSYS and his transfer routine. But it appears iinactive. When I display the transfer routine from characteristic 0LOGSYS, is missing this part of code::
      IF RESULT IS INITIAL     and
         IOBJ_NAME = '0LOGSYS'.
    fill source system
        RESULT = SOURCE_SYSTEM.
    What can I do ?  In DEV, the code is ok. Can I modify it manually ? Other what must I do in DEV to repair it?
    Thanks a lot !

    I need to activate the object 0LOGSYS from Business Content again ? or manually with change and also change and save the routine?
    In STMS I have:
    Start of the after-import method RS_IOBJ AFTERIMPORT for object type IOBJ
    Syntax error Incorrect statement :Expression missing . in row 20 position 0
    Characteristic 0LOGSYS: Error when activating or checking the transfer routine
    This infoobject, 0LOGSYS is also attribute for others infoobjects and I have also errors like:
    Attribute 0LOGSYS from characteristic 0BUS_AREA is not actively available.
    I've imported also a data source 3x migrated to 7.0 with the transformation and an infocube, and I have error:
    Start of the after-import method RS_RSDS AFTERIIMPORT for object type RSDS
    Soource system DEV does not exist
    Start of the after-import method RS_TRFN_AFTER_IMPORT  fot object type TRFN
    No rule exists.
    Source RSDS mysource DEV does not exist
    AND SUMMARy:
    Object  IOBJ 0logsys imported with errors
    Thanks!

  • List of infoobjects with transfer routines

    Hi,
      I want to get the list of all the infoobjects for which the transfer routines are existing.Is ther any table r transaction from where we can get this information?
    can anyone give me quick answer pls.
    thank you
    venku
    Message was edited by:
            venku chittidi

    Hi,
    if you create a routine in TR for an info object, system generates an ID.
    This ID is stored in the table. In my last answer I assumed, that you want to
    determine <b>all</b> info objects with a routine in TR and the way to do this is to
    identify all info objects with such an ID (value ne blank).
    Regards
    Joe

  • Info object transfer routine

    Hi,
    i had infoobject ZEBAY01 and need to write global transfer routine for this infoobject. Now the infoobject value is comming 0000999999 but the business wants the output value as 009999. They want to see output value as 6digit like (009999).can someone help me how to write code here
    ROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RSD, RSARC, RSARR.
    TYPES: DE_ZEBAY01(000015) TYPE C.
    Conversion rule for InfoObject ZEBAY01
    Data type = CHAR
    ABAP type = C
    ABAP length = 000015
    FORM CONVERT_ZEBAY01
    USING RECORD_NO LIKE SY-TABIX
    SOURCE_SYSTEM TYPE RSA_LOGSYS
    IOBJ_NAME TYPE RSIOBJNM
    CHANGING RESULT TYPE DE_ZEBAY01 " InfoObject value
    RETURNCODE LIKE SY-SUBRC.
    $$ begin of routine - insert your code only below this line

    Hi Laxmi
    Use the below code.
    RESULT = RESULT+2(8).
      RESULT = RESULT(6).
      RETURNCODE = 0.
    First Result will take from 8 characters starting from first position. So you get rid of first two leading zeroes.
    Then take first 6 character from the result of above operation from the first character. You get rid off last 2 digits.
    Regards
    Anindya

  • Which is better transfer routine or update routine???

    HI ALL,
    I have read some documents, but I didnt get the real concept.
    Can any one explain in detail as to how do we decide where to write the code i.e a start routine or transfer routine or update routine...and which one is better  for a given scenario..
    with example?

    My scenario is like this:
    master data InfoObject for e.g. Z_MATERIAL1 with 10 fields as attributes. It has two Source Systems feeding it; SAP and a flat file from a system called Product Catalog (PCAT).
    The PCAT data is generally more reliable, hence, if a material XYZ comes from PCAT then PCAT is the owner of the material. SAP should not be able to update five critical fields of that material if PCAT owns the material.
    For e.g. the below values comes from PCAT and Master data is updated.
    PCAT
    Material Group Type Price Curr Unit Prod Desc. Lang Class
    XYZ      ABC   BRU  10.00 USD  PC  Inh   To    EN   001
    When the data comes from SAP R/3, it should not update anything other than the last 4 fields.
    SAP
    Material Group Type Price Curr Unit Prod Desc. Lang Class
    XYZ      ABC    BRU 20.00 USD  BOX  In   The    DE   003
    Finally the data in the Master Data Object should be as below.
    Material Group Type Price Curr Unit Prod Desc. Lang Class
    XYZ      ABC   BRU 10.00  USD  PC  In    The    DE   003
    where do i write the code...i have written this in start routine of transfer rules...i want to know the performance issues...

  • What is the order of execution of global transfer routine where multiple routines are involved?

    Hi,
    Suppose we have start routine, transformation routines and end routine defined between datasource and data target, and also we have a global transfer routine created on an infoobject.
    What is the order of execution of routines in this scenerio?
    Also if conversion routine like ALPHA is defined for an Infoobject, when does this come into flow.?
    Please enlighten me.
    Thanks,
    Akshara

    Hello Akshara ,
    The sequence of routines are as
    1. Start Routine
    2. Master Data Look Up or
    3. Field Level Routine
    4. End Rountine
    Apart from this , there is Expert routine, which is used in special cases, when there are not the sufficient functions to perform a transformation. It can be used as a interim solution , and it performs all the  functions of Start routine, end routine , field routine.
    Note : if you have created  transformation, and then created Expert routine, then system will delete all the existing transformations.
    Further to this, you can explore more, by debug the transformation as suggested by Vijay Kumar.
    Hope this helps !
    Regards
    YN

  • Need help with transfer routine.

    I am doing this enhancement in BW 3.5 version.
    There is an object in ODS - > ZPATHNM (Pathname)
    It gets data from ZPTDIR object.
    Now, 0MATERIAL infoobject has text data. For PATH type materials it has descriptions like pt/dat/fafg.2.0 , pt/dat/ovg.2c ... so on.
    The content after pt/dat/ for example fafq.2.0, ovg.2c is available in ODS object ZPATHNM (Pathname)
    Since I have to extract PATH material numbers. So I created another object ZPATHMAT and mapping it to ZPTDIR.
    I have to write a transfer routine when the 0MATERIAL text description had description beginning with pt/dat/ and the text after pt/dat/ is equal to data in ZPATHNM. i should get material number in ZPATHMAT.
    This is the transfer routine, I have written between ZPATHMAT  and ZPTDIR . This is working fine.
    Data : ZDIRNAM type String,
                ZCONT1 type string,
                ZCONT2 type string,
                ZMATERIAL(18) type C.
    ZDIRNAM = TRAN_STRUCTURE-ZPTDIR.
    IF ZDIRNAM is not Initial.
    Concatenate 'pt/dat/' ZDIRNAM into ZCONT1.
      Select single MATERIAL
        into ZMATERIAL from /BI0/TMATERIAL
    where TXTMD = ZCONT1.
    RESULT = ZMATERIAL.
      ENDIF.
    Now there is another requirement, where I have to create one more object, ZPATHDES. This object should get Material description for path type materials from 0PROD_HIER text table.
    This object, 0PROD_HIER is an attribute of 0MATERIAL.
    So the logic to get the material description into ZPATHDES, is when the material number in 0MATERIAL is equal to material number in  ZPATHMAT (generated from above routine), I should get description (TXTMD) from text table of 0PROD_HIER (/BI0/TPROD_HIER) into this ZPATHDES object.
    I able not to connect this logic in the code and it is throwing errors.
    I need help in coding.
    Thanks.

    Very hard to understand the logic in a thread. Can you please write your code, which is throwing errors? May be that will help us.
    Regards
    amandeep sharma

  • Make "create transfer routine" button active

    Hello Gurus,
            for infoprovider of infoobject, under transfer routine of general tab,
           " transfer routine exists" is checked, but is grep-coulored
           "create transfer routine" button is grey-coulored.
           how can I make "create transfer routine" button active ?
    Many thanks,

    Hello,
    Click on the Pencil Icon in the InfoSource/Transfer Rules screen. Then click on the transfer routine you will be able to create and change.
    Thanks
    Chandran

  • Transfer Routine required

    Hi,
    I am getting the Alpha Numeric (for example:150DD say)data for the field 0SALESEMPLY into the infosource 2LIS_11_VAHDR, but the data type for 0salesemply is NUMC in the info source.
    Because of this data type(NUMC) the data for this filed is loading only the numeric value i.e.,150 only, but not as 150DD into the infocube.
    In order to load load as alpha numeric value, i think i need to write Transfer Routine for the 0SALESEMPLY info object in the Transfer rules (in 2LIS_11_VAHDR), there by it can load alpha numeric values for this info object.
    So please provide me the <b>Routine</b> which can transfer the alpha numeric data for the existing Data type(NUMC) for the info oblect in the infosource 2LIS_11_VAHDR.
    Thanks & Regards,
    Kishore

    Hi Anil,
    <b>I am loading the data from a Flat file where the data</b> , that contributes to the info object 0SALESEMPLY in the the info source 2lis_11_vahdr, <b>in the flat file for the respective field is Alpha Numeric values.</b>
    But we have the 0SALESEMPLY (BW) info object with data type Numc which accepts only numeric values.
    so it is loading only the numeric values(ex: 150 say) of that field but not the entire alpha numeric value(ex: 150AR, say).
    so in this situation how can i proceed.
    Please respond asap......
    Regards,
    Kishore

  • Errors in Transfer Routine for 0MATERIAL_ATTR

    I created a transfer routine on the 0Material_attr upload that needs to populate an attribute called Z_CPFX.
    Problem is, I need to look at the material number, material group, and the Material Description, and then populate the result based on what I find.
    I am new to using ABAP in these routines, so any help would be appreciated.  I will award points.
    The error I keep getting is E:Field "TRAN_STRUCTURE-MATNR" unknown.
    Could somebody take a look at my ABAP and advise what I'm doing wrong?
    Thank you.
    Ken
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
      DATA:   X_DESCRIPTION TYPE TABLE OF /BI0/TMATERIAL.       " KC01
        select  *
              into CORRESPONDING FIELDS of Table X_DESCRIPTION
             from /BI0/TMATERIAL
            where tran_structure-matnr = /BI0/TMATERIAL-matnr.
      IF MATKL between 765 and 770.
        RESULT = 'MAPOO'.
      ELSEIF MATNR(1) = 'X'.
        RESULT = 'MAPOO'.
      ELSEIF MATNR(1) <> 'X'.
        AND (MATKL = '750'
              OR MATKL = '751'
              or MATKL = '755'
        RESULT = 'MAPWK'.
      ELSEIF
        (MATKL = '756'
        or MATKL = '760'
        or MATKL = '761'
        and X_DESCRIPTION-TXTMD co 'renew'.
        RESULT = 'MAPRK'.
      ELSEIF
      (MATKL = '756'
      or MATKL = '760'
      or MATKL = '761'
      and X_DESCRIPTION-TXTMD !co 'renew'.
        RESULT = 'MAPMM'.
      ELSE.
        RESULT = space.
      ENDIF.
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

    Hi Kenneth,
    /BI0/TMATERIAL is the text table for 0material. If you are trying to get all the data from text table, please correct your select statement as below (text table does not contain the attributes. you might need to chenge the selection table to its attribute tables):
    select *
    into CORRESPONDING FIELDS of Table X_DESCRIPTION
    from /BI0/TMATERIAL
    where tran_structure-matnr = /BI0/TMATERIAL-MATERIAL.
    I also see that some of your syntaxes are wrong:
    eg: IF MATKL between 765 and 770. ==>
    IF( ( MATKL > 765 ) and ( MATKL < 770 ) ).
    Please look into the syntaxes of other statements as well.

  • Regd Data Transfer routine Transport

    Hello All,
    I have created a Copy Control Data Transfer routine 60X in the Development System. This created a Include RV45C60X in the Include RV45CNNN. When I check the where used list for RV45C60X it shows Include RV45CNNN. When I transported it to Quality System this Include was created but it was not in the Include RV45CNNN and the system was giving a short dump when SO created with reference to Quote.
    I executed the program RV80HGEN and than also generated the Program RV45CNNN in the Quality system. Than the Include RV45C60X was shown in Include RV45CNNN and the system works fine. The where used list for RV45C60X does not show RV45CNNN even though it is in the Include RV45CNNN. Is that ok or something more needs to be done.
    Can you please clarify.
    Thanks,
    SNK.

    Hello friends,
    Any suggestions for this. Or is this not an issue.
    Thanks,
    SNK.

  • Copy data transfer routine.

    13.01.2009
    Hello Gurus,
    How do we make a copy of data transfer routine ??? I dont find any copy option ??
    Regards,

    There is sort of a trick you can use. In VOFM transaction, find the routine you wish to copy. Switch to Change mode (Ctrl-F1), then place the cursor in the field with the routine number and simply type the new routine number (e.g. 901) over the existing one. When you hit Enter, you'll be prompted to enter an access key to create a new routine.
    Access key may be obtained on the SAP's website (if you have an authorization) or from your Basis admin, as mentioned above.
    Copy/paste would also work, of course, after you have created a new, blank routine.

Maybe you are looking for

  • Remote Desktop Connection Problems

    Every time I install updates, I seem to lose my RDC. All was working last week and the computers are set to accept remote connections. On my Windows Server 2012 Essentials, I can log into my remote Web Access, then go to "Computers" and when I click

  • How to Configure MS Office Comminication Server 2007 with WebCenter Spaces?

    Hello All, Has anyone successfully configured MS Office Comminication Server(OCS 2007) with WebCenter 11g Spaces? I have installed the RTCServices on the MS OCS server, and wll the services and wsdls are accessible. The IM is working with MS Communic

  • Error message 1202

    I am having difficulty in purchasing the store as recieve error message 1202 when attempting to buy.  Any clues out there please.

  • Double entry

    Dear friends What is difference between single entry and double entry double entry which is used for condition type of pricing procedure dtermination with regards Sankalp singhai

  • Update PSE 9

    I updated Photoshop Premium Elements 9 and a pop-up stated that some of the updates failed to install.  How do I fix this?   Thank you, Cynthia