Question about abap

I would not write so rigid formula in this transformation.
In fact, the formula changes often and I would not manage the change in the formula by creating a systematic OT.
i want  write this formula in a table or infoobject and so I could change my formula in this table or infoObject without using an OT.
Is that possible?
best regard
francoise

You can have your constants , etc and other logic fields in another infoobject so as to avoid 'Hardcoding' but then you cannot store ABAP code in another table - because the transformation in itself is another program that is generated on activation. If you can find a way around that - you can store your code anywhere.
For example if your formula is
A = B/20 and this 20 can change later - you can maintain the value 20 in another infoobject. This example sounds too trivial but could not get a better one - but just wanted to highlight the possibilities...

Similar Messages

  • Questions about ABAP Unit (Integrate in class / encapsulate DB access)

    Hi,
    i have allready done some Unit Tests. Till this post i have created a report and put my test class definition / implementation there. The report is just a wrapper for testing. The functionallity is impelemented in classes.
    My first Question is how to integrate the test code in my class. In all examples they put the code beneath the class implementation. How do i get there? In se80 i can only see the public definition.
    The other question is about testing methods, which contains database access. How can i encapsulate the db access for tests. I read abput implementing a seperate class, which handles all db related actions.
    Bye Richard.

    Hello Richard,
    it is recommended to keep the domain code and the test code within the same program. Depending on the release in use a Class-Pool (program) offers an implementation include (for any local class) or possibly also a dedicaded test class include.
    Put the definition and the implementation of your unit test into one of this includes.
    In case your code under test has hard to test dependencies you need to break them. After the hard to test dependency (such as repository access) is separated it can be replaced by use of test doubles (see also http://www.xunitpatterns.com).
    Propably the following approach is the easiest one:
    - put any db access into a separate method
    - create a local subclass as test double that overwrites exactely the db access methods with test friendly code
    - run your unit test logic against this local test double
    The say "cleaner" way is to:
    - separate the db access to a dedicated repository service class (with instance methods of course).
    - create a test double of this repository class
    - use the technique "dependency injection" and run your test
    Best Regards
      Klaus

  • Hi Experts, questions about abap unit test(abap oo)?

    Hi Experts,
    I am learning abap unit test, could you please tell me some info about how I can test the performance of some specific code in my program? can abap unit test do this kind of job? and could you please tell me what I can do using abap unit test? and some classic examples are appreciated, thanks in advance!
    Kind regards
    Dawson

    Hi
    Below documents will give you more information,
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/content.htm
    ABAP Testing and Troubleshooting [original link is broken]
    http://bi.offis.de/publicProject/g16cglafhqva.htm
    regards
    Nagaraju

  • Questions about ABAP 7.02 Trial and CE 7.2 Trial

    Hello,
    I am interested in setting up a java and abap stack to try out some of the newer technologies.
    Can I install ABAP 7.02 Trial and CE 7.2 Trial and have them interact (WD4J accessing ABAP backend)?
    Also is there a way to extend the licenses for the two application server trials?  When I visit https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/minisap/minisap.htm, I do not see these two listed.  Will I be able to use one of the other systems to extend the license?
    If these are not a good choice for what I need, what versions would you recommend?  I will be installing on my notebook running Windows Vista with 3GB of RAM.
    Thanks,
    Steven

    Hello,
    I'm also interested in issues that you've asked. I would like to install java stack on ABAP trial Netweaver, but I've found somewhere that since ECC6.0 SAP is proposing to install separate java system instead of doing dual stacking. However I've found this info in only one place, so I'm not sure if it's 100% true.
    I think it should be possible to make these 2 systems talk to each other, but as in your case, my PC is to weak to run two SAP instances. ABAP needs at least 1GB on XP and 2GB on VISTA and JAVA if I remember correctly 2GB on XP and more on VISTA. So I think that you won't be able to run both of them in the same time.
    And about license, yes it is possible. Check this site http://tonkapome.wordpress.com/2009/07/04/sap-netweaver-trial-version-license-renewal/
    I did it for my 7.2 NSP system and it worked. I didn't try it for CE1, but since it is on this list you should be able to do it without any problems. I don't know why but after this update my developer user BCUSER has lost developer key so I had to input it once again, but beside this everything works fine.
    Best regards
    Marcin Cholewczuk

  • Question about ABAP Query

    Hi,
    I have a SQ01 query .. based on that query i have to call another query
    ie : when my basic list gets diplayed .. after i click on it a detailed list should be displayed (this again is another SQ01 query)... is this possible through abap Query and if it is where am i supposed to code this
    Thanks a lot in advance

    HI
    GOOD
    GO THROUGH THIS LINK
    http://www.ams.utoronto.ca/Asset353.aspx
    THANKS
    MRUTYUN

  • Question about abap/heaplimit

    Hi,
    This is related to NW04 on AIX and Oracle 10.2.
    I want to find out that how often the WP is restarting. It is based on either disp/wp_auto_restart or heaplimit parameter. The help.sap.com link as follows -
    To determine how many work processes are restarted, use the Computing Center Management System (CCMS) (transaction RZ20). Note that the column Err in the Work Process Overview  (transaction SM50) does not refer to work processes that are restarted.
    I could not find it on RZ20 or RZ03.
    Please let me know if anybody has an indea about it.
    I will appreciate your help.
    Thank you.
    Sume

    Hello Sume,
    You will find information in the help page below:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9c/f78b3ba19dfe47e10000000a11402f/frameset.htm
    Please do following steps:
    - Access transaction RZ20
    - Expand the node SAP CCMS Monitor Templates
    - Double-click on Entire System
    - Expand the node <SID>
    - Expand the R/3 Services node
    - Expand the Work process type node that you want. For example: Dialog
    - Expand the <instance name> node
    There you will see the MTE EndedWpDIA.
    Please check the help page for more information about each MTE.
    Best regards,
    Rafael Toshiaki

  • Hi, everyone, question about abap query? thank you in advance!

    Hi everyone,
    there is an information message that "Do all fields used have a name? (use help)" after I click the button "Generate" in tcode(infoset) sq02 with my infoset. can anyone tell me what is wrong? Before I click "generate" my infoset I added an additional field zerdat type vbak-erdat, and the code as follows:
    if vbak-erdat < sy-datum.
      zerdat = sy-datum.
    else.
      zerdat = vbak-erdat.
    endif.
    the code I check is consistent as the system said, only after I click "generate" the system gave an information message as I said above.
    Best regards
    Dawson

    This is just a information message whether all the fields are included in the Field groups/Data fields ( right hand side)
    Regards
    Sasi

  • Question about ABAP OO

    Dear gurus,
    say, we have a class A, which has a constructor  and a protected method A, and in the constructor we call the method A.
    then we built a class B, which inherits from A, and we redefined the method A, and we do nothing to the constructor.
    we expected that  when we instantiate class B, the redefined version of method A is called automatically, but the debug shows that the original version of method A is called.
    do we  need to redefined the constructor of class B in order to call the redefined method?
    thanks and best regards.
    Jun

    Hi,
    I could come up with this solution.... may be this helps you please check and let me know as its working at my end....
    *       CLASS a DEFINITION
    class a definition.
      public section.
        methods : constructor importing value(a) type i, ab.
    endclass.                    "a DEFINITION
    *       CLASS a IMPLEMENTATION
    class a implementation.
      method constructor.
        write 'Super constructor'.
        if a <> 1.
          call method ab.
        endif.
      endmethod.                    "constructor
      method ab.
        write 'super AB'.
      endmethod.                    "ab
    endclass.                    "a IMPLEMENTATION
    *       CLASS b DEFINITION
    class b definition inheriting from a.
      public section.
        methods : constructor, ab REDEFINITION .
    endclass.                    "a DEFINITION
    *       CLASS a IMPLEMENTATION
    class b implementation.
      method constructor.
        call method super->constructor( 1 ).
        write 'Sub constructor'.
        call method ab.
      endmethod.                    "constructor
      method ab.
        write 'Sub AB'.
      endmethod.                    "ab
    endclass.                    "a IMPLEMENTATION
    data : w_a type ref to a,
           w_b type ref to b.
    start-of-selection.
      create object w_b.
    Regards,
    Siddarth

  • About ABAP Object

    Hello All,
    i have some question about ABAP Object.
    What is the meaning of friend class and singleton?
    Regards,
    Luke

    Hi,
    The addition Friends makes class class a friend of classes classi and or interfaces ifaci.At the sam time, all subclasses of classes classi, all classes that implement one of the interfaces ifaci and all interfaces that have one of the interfaces ifaci as a component interface become friends of class. you have to specify at least one class or interface.
    The friends of a class have unrestricted access to the protected and private components of that class, and can generate unrestricted instances of the class.
    The friends of class are not automatically friends of subclasses of class. the addition Friends does not make class a friend of its friends.
    Thea ddition global is allowed only when you use the addition public for the global class of a class pool at the same time.You can list other global classes and interfaces from the class library after global friends.This addition is generated when the Class Builder creates a global class and you specified friends at the corresponding tab page of the class Builder.
    `
    In the example , classs c2 is a friend of interface i1, and therefore also of the implementing class c1. It can instantiate these objects and access their private component a1.
    interface i1.
    endinterface.
    class c1 definition create private friends i1.
    private section.
    data a1(10) type c value 'Class 1'.
    endclass.
    class c2 definition.
    public section.
    interfaces i1.
    methods m2.
    endclass.
    class c2 implementation.
    method m2.
    data oref type ref to c1.
    create object oref.
    write oref->a1.
    endmethod.
    enclass.
    Kindly Reward Points If You Found The Reply Helpful,
    Cheers,
    Chaitanya.

  • Question about using TVARV in an ABAP program

    Hello gurus, Im sorry about the silly question.
    I have a question about using TVARV in an ABAP program.
    A program is presenting a problem and I think that in this code:
    SELECT SIGN OPTI LOW HIGH
      FROM TVARV
      INTO TABLE R_1_163431035_VELOCIDADE
      WHERE  NAME = '1_163431035_VELOCIDADE'
      AND    TYPE = 'S'.
      IF ZMM001-VELOCIDADE_B   IN R_1_163431035_VELOCIDADE AND
          ZOPERADORAS-OPERADORA = 'ABCD' AND
          ZMM001-MATERIAL       IN R_1_163431035_PRODUTO.
      ELSE.
      ENDIF.
    What happens is that the value "ZMM001-SPEED" B not exist in "R1_163431035_VELOCIDADE" but the program executes commands under the IF and not under the ELSE, as I imagine it would work. Is this correct ?
    I am new to ABAP programming, but I have a lot of XP in other programming languages ​​and this makes no sense to me.
    Anyone know where I can find some documentation of the use of "TVARV" in ABAP programs?
    I search the Internet if other programmers use TVARV this way, but found nothing, which leads me to think that was a quick and dirty solution that used here.
    If this is a bad way to program, what would be the best way?
    Regards
    Ronaldo.

    Hi Ronaldo,
    But in this case, the range is not empty, there are 17 records, in this way.:
    For the column "SING" all values ​​are "E"
    It means that the result is false if ZMM001-VELOCIDADE_B has the same value as one of the 17 records (E = exclude).
    For instance, if it has value 'C' and one of 17 records matches C, then the result is false.
    The "IF" with "IN" using "TVARV" as used in the program of the post above has the same behavior of a selection screen?
    Yes, the same behavior as the selection criterion to be exact. You can press the help key in the complex selection dialog for more info.
    I know it's a silly and very basic question, but other language that I used, only the SQL has the "IN" operator, but I think they work in different ways, so I would like to understand how it works in ABAP.
    Not silly ;-). Yes they work differently.
    More info here:
    - http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba74635c111d1829f0000e829fbfe/frameset.htm
    - http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/frameset.htm
    BR
    Sandra

  • A question about creating packages as local objects in ABAP

    Hi,
    I have a question about creating packages with SE80. Whenever I create a new package it is assigned a new transport request. After that, I can create new programs inside this package, and each time I can choose whether to assign the new program to a transport request or just save it as a local object (I often do this for test programs that I don't transport and I remove them once my tests have been done).
    What I would like to ask is that, is it possible to create a package (and not just programs inside a given package) as a local object? so that every new object created in this package will be considered as a local object?
    Thanks in advane,
    Kind Regards,
    Dariyoosh

    Thomas Zloch wrote:
    Please also check the F1 help for the package field e.g. in SE80, SAP standard is in range A-S and U-X, namespaces start with "/", so you should be save. I am using the T namespace for temporary stuff since a long time and did not have a problem so far.
    > Thomas
    >
    > P.S. this applies to the package name only, of course
    Thank you very much for this remark, I checked F1 help for the package field and in fact as you mentioned these ranges are for local objects.
    Once again, thank you very much for your help.
    Kind Regards,
    Dariyoosh

  • Two questions about Risk Management 2.0

    hi experts,
    Please find below two questions about Risk Management:
    -In SPRO, Risk Management>Create top node: after completing information and executing I have this error:
    Error in the ABAP Application Program
    The current ABAP program "/ORM/ORM_CREATE_TOP_NODES" had to be terminated
    because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "/ORM/SAPLORM_API_SERVICES " in
    include "/ORM/LORM_API_SERVICESU10 " in
    line 97:
    "Bei PERFORM bzw. CALL FUNCTION "GET_ORGUNIT_THRESHOLDS" ist der Aktual"
    "parameter "I_ORGUNIT_ID" zum Formalparameter "IV_ORGUNIT_ID" inkompati"
    "bel."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "/ORM/ORM_CREATE_TOP_NODES" had to be terminated
    because it has
    come across a statement that unfortunately cannot be executed.
    Do you know where it could come from?
    -On the Portal>Risk Management
    when I click in a link under the risk management menu(activities and risks, risk report, document risk,...) i alway have an internal server error:
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Do we have to set up some customizing points before accessing these links?
    Thank you !
    Regards,
    Julien

    Hi Julien ,
    I have the same error what u described as :-
    -On the Portal>Risk Management
    when I click in a link under the risk management menu(activities and risks, risk report, document risk,...) i alway have an internal server error:
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Do we have to set up some customizing points before accessing these links?    "
    Are you able to solve this. Please let me know how to resolve this???
    Thanks
    Regards,
    Atul

  • Basic Questions of ABAP programming

    Hi Experts
    I am new for ABAP programming. I wants to know some basic about ABAP. I have done 2 months ABAP course from a institute. They give me training on 4.7 IDES ver. Please give the answers of following questions.
    1.Is there big difference between 4.7 and 6.0 Ecc ver in ABAP programming point of view?
    2.for Traing purpose Should I install the full verson of SAP or there is any dummy software?
    3.SAP Netweaver knowledge is must for ABAP programing?
    4. When we install SAP 4.7 IDES version then all the modules will avialable or Only ABAP?
    Thanks
    Best Regards
    Jitender

    Hello,
    For your own practice you can download the free version of SAP Netweaver ABAP in the downloads section of SCN. This is only for ABAP development. You wont find many of the stadard tables and functionalities with in it. IDES should be containing all the modules. But again that depends on the licesnse with which you are provided.
    Your questions have no relevance from the ABAP technical point of view except the first one which is a basic question and should be asked here as per the forum rules. Thats the reason why you were suggested to read the forum rules.
    For any queries of the trial version ABAP have a look at this forum
    Vikranth

  • Question about Logon ticket with user mapping at BI-JAVA environment

    We're implementing BI 7.0 including BI Java and SAP EP for end user
    access.
    I have two question about SSO method when we're using BI Java.
    I know we can simply configure SSO logon ticket with BI-Java(EP
    included) and BI-ABAP through BI template installer and we already
    succeeded in that case.
    But the problem is we want to change it to user mapping SSO method for
    some our internal reason.
    After we configure user mapping SSO, we've got SSO failed error when we
    call BI-Java stuff like BEx Web Application iView.
    After many testing implemented, we found SSO Logon ticket with user
    mapping (using SAP reference system). It seems working now.
    But our question is "Is it no problem when we use SSO logon ticket with
    user mapping?" Is there any restriction or issue?
    One more question is we can ONLY use user base mapping when reference
    system used. How can we assign BI-ABAP users to EP Group?

    Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
    Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
    Hope this helps!!

  • A question about authorization of "me29n".

    I have a question about authorization of "me29n".
    In the screen of me29n, after I choose "cancel release" option,  there are several button I can use, such as "delete","lock","unlock" and so on.    now I want the "delete" button become unavailable after I choose "cancel release".    how can I archive ?   Is there any authorization object to use?   thanks a lot.

    Hello Victor,
    It is possible through Transaction code "SHDS".
    try to create new variant for it.Also you need to take
    ABAP'rs help in this .Try it.All the Best.
    Regards,
    Manjula.

Maybe you are looking for

  • Why can't I play DVDs from my mac to my Apple TV

    I can't play a DVD from my iMac to my Apple TV, why and what can I do to fix this

  • Can't import photos from iPhone into iPhoto

    If i try to do a batch import, it says there's a problem downloading an image. If I try to import one image, it says the file is in an recognizable format. It's a jpg. Any ideas how I can get my photos and videos off my iPhone and why it won't import

  • HP XW4600 Workstation running slow on 64 bits

    Hi, i own a hp xw4600 workstation, 4 gb ram and and intel core 2 duo E6750 cpu runing at 2.66 GHz I used to run windows vista business 32 bit and now i switched to the 64 bit version, and my pc runs slower, it hangs on youtube if i open other pages o

  • Every time I enable 3G I get 'No Service', why is it doing this?

    Every time I enable 3G I get 'No Service', why is it doing this?, But then sometimes it will get service but i cant use my 3G, only Edge works Any Help is appreciated Thanks in Advance

  • REGEXP_REPLACE - remove words

    Hi everybody, I have a quite tricky problem and I hope someone can help... Imagine the following set of data: WITH my_data AS    SELECT 'abc.1.fil' as x FROM dual     UNION ALL    SELECT 'def.ol.fil' FROM dual     UNION ALL    SELECT 'ghi.ijk.olfil'