Regarding routines

Hi,
i am trying to write a routine in transfer rules.(flat file to bw3.5)
data is succefully loaded but the result shows 0.00.
crmen_cst is curr type
crmem_qty is qty type
result is curr type
RESULT = TRAN_STRUCTURE-/BIC/CRMEM_CST * TRAN_STRUCTURE-/BIC/CRMEM_QTY.
please help me.

Vasudev,
           Here the both the kf should be of type currency. May be they are referred by units and currency types.
And if your requirement is limited to multiplying both you can even achieve this in reporting using NODIM() function.
null

Similar Messages

  • Regarding routines in BW 3.5

    Hi Experts,
    I have written routines in BW 3.5.My requirement is like below.
    I have 2 ODSs like ODS A and ODS B.
    In the update rules of ODS A from Infosource I have written look up routines to populate some fields from ODS B into ODS A.
    Code is syntactically correct. but After loading the data to ODS A the fields which I need to populate using routines are not getting populated with values from ODS B.
    I have done the debugging also with simulate update but I could not able to resolve the issue.
    I think I have not done the proper debugging as I have not much experience in that.
    Could anybody pls help me how to resolve this problem as my further data loads are held up bcos of this problem
    Thanks in advance.
    Regards
    DP

    Hello.  Two things...
    1)  Have you verified that the records without the extra data populated do have corresponding entires in ODS B to get the data, per the select you are performing in the routine?
    2)  Is this routine at the object level, or a start routine?  If it is at the object level, are you transferring the data to the "result" field?
    Answering those should help us.
    Thanks

  • Whats ABAP class should I take for SAP BW

    Hi Gurus:
                I want to learn ABAP to code in  SAP BW and R/3. I am planning to take some class from SAP Education, what SAP class you experts recommend.
    I am working on SAP BW and my focus is to get better in ABAP coding for BW purpose.
    Please suggest me.

    You can go through SAM's Teach Yourself in 21 days for ABAP. This good one for Basics. There are lot of posts in SDN regarding routines. You can also go through them and i hope you get some idea ......... Regarding SAP Class from SAP Education i have no idea
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    http://www.geocities.com/rmtiwari/
    Regards
    Naga

  • BI 7.0 Migration

    Hi all,
    I am working at a client implementing BI 7.0 and the client wants to know what approach to take regarding the migration of DataSources, InfoSources, Transfer and Update Rules. The questions can be summarized into the following:
    1. Since the delivered Business Content objects for the core application areas are 3.x objects, these will have to be installed and then migrated. Given the number of objects that have to be migrated and the fact that the migration is not 100% automatic, should this migration be performed and what are the benefits ?
    2. What is SAP best practice?
    Thank you in advance for your input!
    Surya

    Hello,
    I am starting a complete new BI 7.0 system from scratch. I struggle with exactly the some questions. What is the best approach?
    1 Use business content and manually translate to BI 7.0  transformation
    -manually migrating everything from BW 3.x business content to 7.0 transformation is causing a lot of problems and effort regarding routines (different structures) and mapping
    2 Use business content and remain using BW 3.x functionality.
    - will this cause problems in the future when we migrate to a new version of SAP BI where transformation might be mandatory)
    Would like to know what is the best approach from a project and support point of view.

  • An issue regarding the routines in a transformation rule

    Hi experts,
    I have two fields in my transformation rule which i fill through characteristic routines. The second routine needs information provided by the first routine. For example:
    First char. A
    Sec. char. B
    In the routine for B i am using the field A which has to be filled in this moment through the first routine for a certain assignment.
    The problem is that i recognized that i get here the wrong assignment because in this moment in which the routine B is running the information provided by routine A is still not there. So i have analyzed and saw that the char. B has the position 25 in the transformation rule and the char. A has the position 27. Does it really mean that in the loading the char. B is filled at first and the char. A after that because of the order? Is that the problem why I don't still have information of char. A while i am filling char. B?
    If yes has anyone a good idea how to handle it? The further problem is that we can not change the order because the cube is filled and we have to delete the data at first in order to do it and it is not possible at the moment.
    I would really appreciate it.
    Thank you in advance.
    Kind regards,
    Ali

    Hi,
    AS we do not know what logic you are trying to write in field level routine so its pretty difficult to understand the scenario.
    I can suggest you to write the same logic in END Routine based on your requirement.
    Share your logic and code for more inputs.
    Hope it helps.
    Regards,
    AL

  • Regarding the routine in infopackage

    Hi Experts,
    I have an infopackage with only full load update,i am loading a daily load into the target with that ..now what i want to know is that i want to create a routine in infopackage so that it deletes the previous day data automatically ..so that if i am loading todays data it wont be duplicated..so can any one give me the code and step by step ways to  do that ..i would appreciate the answers and assign maximum points for the valuable one...
    regards,
    Rk

    If it is going to be full load, you have some options like:-
    a. At Infopackage Level:- Under the data-targets tab, you have a check box for deleting the targets contents before loading, if you check that tab, the data will be deleted automatically before loading.
    But beware that ALL data will be deleted and only today's data will remain there.
    b. Process Chains:- If your selections are same, you can use a process type "Delete Overlapping Request" in the process chain, and it will delete the contents before reloading them.
    Hope this helps.
    Cheers,
    Sumit

  • Regarding start routine used for lookups

    Hi All,
    I am doing a lookup whose logic is being defined in start routine. My requirment is like this.
    I am having an infoobject(1) having a master data and it also have an attribute having the master data too.
    Now I am having one more object(2) having the masterdata and an attribute with out data.
    In my routine I have defined a logic to compare two infoobjects. If they are equal then load the data of the attribute of first infoobject into the second infoobject.
    I have defined the logic like this in routine.
    SELECT /BIC/Z_LOOKUP2
                         FROM /BIC/Z_LOOKUP1
        INTO /BIC/Z_LOOKUP4
           FOR ALL ENTRIES IN SOURE_PACKAGE[]
        WHERE  /BIC/Z_LOOKUP3 = SOURCE_FIELDS-/BIC/Z_LOOKUP1
        END SELECT.
    I am geeting an error as /BIC/Z_LLOKUP1 IS NOT defined in ABAP dictionary as a table,.
    How can I resolve this.
    Please help me.
    Z_LOOKUP1 is having Z_LOOKUP2 as an attribute and,
    Z_LLOKUP3 is having Z_LLOKUP4 as an attribute.
    Thanks.
    Vinay,

    Hi,
    Just check the master data table created for your infoObject Z_LOOKUP1. It would be something like /BIC/PZ_LOOKUP100.
    If you are still getting the error, post your exact code here and we can take a look.
    Hope this helps!
    Regards,
    Saurabh

  • Regarding form routines IN ECC 6.0

    Hi Abapers,
                       I am currently working in ECC 6.0. I have come through an error as
    se old_entry_xxx as a form routine if you use an own print program
    I have a form routine in my include program as follows...
    FORM ENTRY_NEU USING ENT_RETCO ENT_SCREEN.
      XSCREEN = ENT_SCREEN.
      IF NAST-AENDE EQ SPACE.
        XDRUVO = '1'.
      ELSE.
        XDRUVO = '2'.
      ENDIF.
      CLEAR: XFZ, XOFFEN, XLMAHN, XLPET.
      CLEAR ENT_RETCO.
      PERFORM LESEN USING NAST.
      MOVE RETCO TO ENT_RETCO.
    ENDFORM.   
    Can anyone give any hints regarding how to come out of this error, i guess its a unicode error but not sure.
    Frnds looking for ur help.
    thanks
    & regards,
    kamal

    Hi ,
           I have'nt come up with any solutions yet. But wht i consider is the perform doesnt exist for that form routine.I m wondering , Is that a form routine has any "perform". Frnds if anyone is having any clues plzz provide.
    Its basically a Upgrade task.
    thanking u all.
    regards,
    kamal

  • Regarding "TYPES & "CONVERSION ROUTINES"............

    Hi abapers,
    Can we have a code snippet as given below,
    TYPES : NUMB TYPE I VALUE 100.
    DATA : NUM1 TYPE NUMB.
    WRITE : / NUMB, NUM1.
    what will be the output?. Will the value 100 be copied to the field NUM1?
    Next question is regarding "conversion routines". I read that "conversion routines" can be assigned to fields(variables) in abap?. What are "conversion routines"? What are their purpose? Also explain me the purpose of "EDIT MASK"?
    Thanks in advance.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jun 27, 2008 1:29 PM

    Hi,
    Conversion Routine..
    I will just give you an example.....
    For us in user interface English language is EN... but for system it is Just 'E'...
    There conversion will happen from user to system and while retrieving from system to user..
    So there are two routines for that.
    CONVERSION_EXIT_ <conversion routine name> _OUTPUT
    CONVERSION_EXIT_ <conversion routine name> _INPUT.
    These coversion routines do the conversion job
    check this link..
    http://help.sap.com/saphelp_erp2004/helpdata/en/33/206bc8012e11d3b495006094192fe3/content.htm
    Hope this would help you..
    Regards
    Narin Nandivada.

  • Clarification regarding start routines!

    Dear all,
    I would like to know what exactly the start routines are and how they can be used to manipulate the data coming into the BW system from the R/3 system. If anybody can explain it with an example I would be very greateful. Thanks.
    Regards,
    Sumit

    hi Sumit,
    take a look
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c3963dfbde4dede10000000a422035/frameset.htm
    other samples
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    hope this helps.

  • Regarding Field Routine

    Hi All,
    I have field Z_ZIP(for ZIP Code) in the transformation.It is not mapped to any other field.I want to populate that feild from the value of the attribute Postal Code of 0SHIP_To Info-object.
    Can anyone help me with the code to poulate the field.
    Thanks in Advance,
    Thanks,
    Amit Kr.

    Hi Amit,
    Instead of writing field level routine i would like to suggest you to write this code in the endroutine.
    First select required fields from the 0SHIP_To master data table and keep the data in internal table it_data.
    then
    loop at data package.
    read it_data with the key 0ship_to.
    if sy-subrc = 0.
    assign it_data-Postal Code  to the result_package-Postal Code.
    endif.
    endloop.
    It will resolve your problem.
    Thanks,
    Kamal

  • Doubt regarding data declaration in update routine!

    Hi,
    i had added one field in cube, update rotuine for which is in due.
    in the update routine logic i have to assign this field to another field if some condition satisfies!
    the logic is --
    if Hstatus=c
    close_date=stdatum.
    close_date is the field i had created and added in info cube definition.
    now, how to declare these fileds in routine as it is asking me to declare the fields
    can any body suggest me how to declare those fields!
    Thanks,
    Ravi

    Hi,
    In cube, for updating every keyfigure, all the characteristics will be taken into account. So, in cube if you choose a keyfigure in characteristic tab you can find all the characteristics. Likewise you can find for all the keyfigures.
    So, Transfer routine for all kefigures will transfer the same routine of the characteristic for all the keyfigure. (that means if you choose different keyfigure and if you choose a the same characteristic you can find the same routine, no need to create separate ) If you choose no, it wont transer the same routine to all the keyfigures for the characteristic. You can define the separate routine for the characteristic for every keyfigure.
    in ODS this is not the case. There only Keyfields only will be common for all the datafields.
    rgrds,
    v.sen.
    Message was edited by:
            Senthilkumar Viswanathan

  • Regarding start routine in transfer strucutre.

    hai
    I need to remove bad characters from source system . For that im using client standard 'function module' and then im calling this funcation module at each Infoobject's transfer routine.
    1)Function module is
    FUNCTION zbw_remove_bad_characters .
    ""Local interface:
    *"  CHANGING
    *"     REFERENCE(STRING)
    Program Name: zbw_remove_bad_characters Create Date:06/12/2000
    Author#s Name:Rohan Williams Last Update:     
    Program Title: Convert non-permittired BW chars to a '.'.
    Development Request #:          *
      DATA: l_allowed_char  LIKE rsallowedchar-allowchar.
      DATA: wf_badchars TYPE i VALUE 1,
            wa_strlen TYPE i,
            wa_chklastchar.
      DATA: l_bad_char_flag.
      wa_strlen = strlen( string ).
      CALL FUNCTION 'RSKC_ALLOWED_CHAR_GET'
           IMPORTING
                e_allowed_char = l_allowed_char.
    *--- added 03/09/2004 Olu takes care of only one unallowed
    *... char at first position.
    if wa_strlen = 1.
        wa_strlen = 2.
    endif.
    *...end.
      WHILE wf_badchars NE wa_strlen.
        IF string CN l_allowed_char.
          IF sy-fdpos < wa_strlen.
            MOVE '.' TO string+sy-fdpos(1).
            wf_badchars = sy-fdpos.
          ELSE.
            wa_chklastchar = string+sy-fdpos.
            IF wa_chklastchar CN l_allowed_char.
              MOVE '.' TO string+sy-fdpos(1).
              wf_badchars = sy-fdpos.
            ENDIF.
          ENDIF.
        ELSE.
          wf_badchars = wa_strlen.
        ENDIF.
      ENDWHILE.
    replace bad character '#' with 'X'
      CLEAR l_bad_char_flag.
      WHILE l_bad_char_flag NE 'X'.
        SEARCH string FOR '#'.
        IF sy-subrc EQ 0.
          REPLACE '#' WITH 'X' INTO string.
        ELSE.
          l_bad_char_flag = 'X'.
        ENDIF.
      ENDWHILE.
    replace bad character '!' with 'X'
      CLEAR l_bad_char_flag.
      WHILE l_bad_char_flag NE 'X'.
        SEARCH string FOR '!'.
        IF sy-subrc EQ 0.
          REPLACE '!' WITH 'X' INTO string.
        ELSE.
          l_bad_char_flag = 'X'.
        ENDIF.
      ENDWHILE.
    *---- ??1234112AR
    CLEAR l_bad_char_flag.
    WHILE l_bad_char_flag NE '·'.
       SEARCH string FOR '·'.
       IF sy-subrc EQ 0.
         REPLACE '·' WITH '.' INTO string.
       ELSE.
         l_bad_char_flag = 'X'.
       ENDIF.
    ENDWHILE.
    translate string to upper case.
    ENDFUNCTION.
    2)Funcation module calling routine at each Infoobject of Transfer Routine ...
    RESULT = TRAN_STRUCTURE-
    zzinputcal(source filed).
    translate RESULT to upper case.
    call function 'ZBW_REMOVE_BAD_CHARACTERS'
    changing
    string = RESULT.
    So i have 25-infoobjects in transfer structure .So i need to call 25 times above function module . It is very length process.
    I think we can write in Start Routine of transfer structure .
    Is it possible to write in start rouinte.If possible pls given the code ..............
    i ll assing the points
    bye
    rizwan

    Hi,
    that was the code:
    <b>data: idx like sy-tabix.
    LOOP AT DATA_PACKAGE.
    idx = sy-tabix.
    1.call infoobject 1
    call function 'ZBW_REMOVE_BAD_CHARACTERS'
    changing
    string = DATA_PACKAGE-iobjnr1.
    2.call infoobject 1
    call function 'ZBW_REMOVE_BAD_CHARACTERS'
    changing
    string = DATA_PACKAGE-iobjnr2.
    . + next 23 calls for your infoobjects.
    modify DATA_PACKAGE index idx.
    endloop.</b>
    /manfred

  • 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.

  • Regarding IOS 7 activation lock.  For people who are not early adopter or wealthy, relying on second hand purchase to own an IOS 7 device, has any consideration been given? Online purchases are routine.  In good faith, many will now suffer for not knowing

    I am part of the second hand market, non early adopter, that's trying to use an IOS 7 device.  I just bought an Ipod touch 5th gen and an Iphone 5 with IOS 7 and quickly learn that I've just lost many hundreds of dollars because of the activation lock.  Of course, I should have known better...be smarter, etc.  Now I have two bricks, basically fancy Apple product that're now junks.  With IOS 7 and the activation lock, isn't Apple concerns that they will soon frustrate a lot of new and existing users and will also be known for creating increasing number of junk (brick) devices.

    Hi Tilnow,
    The hope is that the activation lock will deter future thieves. Apple has long been inundated with irate customers who have had their devices lost or stolen, and who are then angry that Apple cannot protect their phone from would-be thieves.
    With the new security measures, unless the owner of the phone turns off Find My iPhone, and wipes the phone completely, it is unusable to anyone but that original owner.
    I'm sorry you have had such an unfortunate experience with your purchases, but these security measures are as much to protect you from purchasing a stolen phone from an unscrupulous seller as it is to protect a phone you own from being stolen.
    Is there no way you can contact the seller(s) and have them turn off Find My iPhone and wipe the device for you?
    Going forward, it is the best policy for you to ensure that the seller has done both of these things. If they cannot, then you know that they are probably not on the up and up.
    Best of luck going forward,
    Cheers,
    GB

Maybe you are looking for

  • Branch wise Ratio Analysis

    Hi, Is it possible to calculate different ratios in ratio analysis by branch wise. If yes for this do i need to maintain branches by 1. accounts segmentation. 2. dimensions. 3. projects please specify

  • Copy database structure but not the data

    I'm looking to create a new version of a database but with completely reloaded data - so I want to retain the database structure but none of the data. Is there an easy way (read: without a DBA on staff) to copy an existing database structure - prefer

  • MacBook doesnt boot. It shows Apple logo and spinning wheel. Soon it wont go beyond prohibitory sign with spinning wheel

    I have a MacBook (Late 2008 edition) having Mac OS X 10.6.8 SnowLeopard OS installed (2 X 512GB RAM, 160 HDD). I copied some mp3 into iTunes library and soon the process got stucked. MacBook was not accepting any command/it seemed to got hanged. Care

  • VATREGNUM

    Hello When running payment engine I have the follwoing message Error code -100 (missing field) = VAT Number of Business Partner 'QMA SARL' must be defined; I believe I must inform the text field called VATREGNUM but I am not able to see this field on

  • IPod shorting out headphones? (Kinda long)

    I have had my iPod Touch 4g for over a year, and I have been through numerous earbuds/headphones.  I always thought that it was just because I was getting cheap headphones, so I got a $40 pair of headphones in January.  It is now June and I have alre