Examples in ABAP for initial and end rotine

Ola expert´s,
I´m trying to write a program in Initial Routine and End Routine (Transformation), but some declarations are diferent and so is the logic.
In fact, I need some examples for declarations (variable, internal table, etc.) and some examples for logic (loop, read, move, etc.)
Obrigado,
Marcio

Hi ,
Please find the end routine example.
DATA:   itab2 type standard table of ODS TABLE
          with header line.
    data:    wa like line of itab2.   
    data:  itab_refresh type standard table of tys_TG_1.
    data:  itab_target type standard table of tys_TG_1.
    DATA:  wa_target like line of itab_target.
    DATA : icount TYPE RSARECORD.
IF RESULT_PACKAGE is not INITIAL.
      icount = 1.
      Refresh ITAB2.
*Selecting records from UODArticle DSO whose internal
   handling unit no matchesthat of source package
      select * from ODS TABLE into table itab2
       FOR ALL ENTRIES IN RESULT_PACKAGE WHERE
      HEADER = RESULT_PACKAGE-HEADER .
  Sorting for optimizing readaccess
      SORT ITAB2 BY HEADER.
Processing
      Refresh itab_target.
      SORT RESULT_PACKAGE BY HEADER ITEM.
      LOOP AT RESULT_PACKAGE assigning <result_fields>.
        LOOP AT ITAB2 INTO WA
          where HEADER = <result_fields>-HEADER.
          <result_fields>-ITEM   = wa-ITEM.
          <result_fields>-ITEMATTR1   = wa-ITEMATTR1.
          <result_fields>-ITEMATTR1   = wa-ITEMATTR2.
          <result_fields>-RECORD  = icount.
          icount = icount + 1.
          APPEND <RESULT_FIELDS> TO ITAB_TARGET.
        ENDLOOP.
      ENDLOOP.
    SORT ITAB_TARGET BY HEADER ITEM.
    REFRESH RESULT_PACKAGE.
    RESULT_PACKAGE[] = ITAB_TARGET[].
      ENDIF.
Also have a look to the Transformation routine
For getting the detail differences please see the thread
can anyone give me an example of start routine and end routine in BI.7.0
Start,end and expert routine in Bi7.0
-Vikram

Similar Messages

  • Best Practices in use of ABAP for SRM and/or CRM Configuration

    I was wondering if there is a document that defines best practices for the use of ABAP with the installation and customization of SRM and/or CRM. Such as amount of ABAP coding typically required, and best practices around the use of ABAP for customization and configuration.
    Thanks.

    Hi, Johnson
    Sorry, Please don't mind, you are not at right place to ask the Question like this
    Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!!
    Thanks and Regards,
    Faisal

  • HT1498 Horrible experience and the movie kept stalling through iTunes on appletv. Gave up (after paying for it) and ended up renting it through cable provider. Anyone know how to get $ back from apple?!

    Horrible experience and the movie kept stalling through iTunes on appletv. Gave up (after paying for it) and ended up renting it through cable provider. Anyone know how to get $ back from apple?!

    Issues are usually network related
    What is your internet speed? www.speedtest.net
    6mbps is required for instant HD (you can switch to SD in the settings)
    If on wifi try ethernet and www.istumbler.net to rule out interference
    Make sure you're using your ISP's DNS

  • IW31/32- Change Date Restriction choices for "StartPoint" and "End"

    Hello,
    In IW31/32> Operation tab> then "Dates" screen.
    Is there a way to change Date Restriction choices for "StartPoint" and "End."
    Start Point: there are 4 choices: Must Start on, Cannot start before, cannot start after, start from resource planning
    End: Must finish on, Cannot finish before, finish not later, finish from confirmation.
    We want to limit the choice to 2 optiions on Start and End/ in addtion change the text.
    Is this possible.
    Thanks,

    Hi,
      No its not possible  to accomplish this in standard using configuration functionality.
    You may able to accomplish restricting the values on the drop down through the implicit enhancement functionality available in ECC 6.0.
    You will have to make  a screen modification to make the associated start point/ end point key text editable.
    Regards
    Narasimhan

  • Terminal key bindings for Home and End

    I am recording this here in the hope of savings others some time.
    It is often stated that the following Terminal key bindings have to be asserted to get Home and End keys working as intended:
    \033OH
    \033OF
    I find this misleading as it is neither what most people would type nor what they would see.
    I type:
    escape O H
    escape O F
    This results in:
    \033oh
    \033of
    which works as intended but using 'shift' to produce the capitals depicted in most notes about this will not work.

    My default bindings did not work for home and end but page up and page down inexplicably worked with shift. The image below shows the keys and their bindings (eg \033[5~ and \033[6~ stated here for Google!) I applied to Terminal to make home, end, page up and page down behave in the same way as many other applications including iTerm. Remember to type 'esc' to get '\033'.
    I started out trying to improve the readability of large manual pages (eg man bash). Whilst the changes above improved things considerably I have now found better alternatives.
    I tried iTerm - the keys worked correctly but inconsistencies between the various window size settings did not inspire confidence.
    I now use ManOpen.app which I have configured to open when I type eg 'm chmod' in Terminal - I changed the name of openman to m and put it together with openman.1 in /usr/bin. The pages scroll normally and have hot links to other manual items. This is a simple way to vastly improve manual reading. The only slight negatives I have found are:
    1 - two preference panes will not open - defaults OK for me
    2 - window positions not remembered - since size can be set I can live with this
    3 - text cannot be set to soft wrap to window width (misnamed zoom by some applications).
    I would be interested to hear if others have found better ways of viewing manuals.
    Here are some interesting pages:
    http://en.wikipedia.org/wiki/Tableof_keyboard_shortcuts#Command_lineshortcuts
    http://www.tuaw.com/2008/03/07/here-comes-your-man-viewer/

  • What is the tcode for bdc recording and how to do in hr-abap for pa and om

    hi,
         I need to do the bdc recording for pa and om. So, can any of you tell me how to do and what are the tcodes we have to use.
    thanks & regards,
        Sekhar.

    Hi ,
    Here is the link from you will get all the transaction code
    http://www.sap-basis-abap.com/saphr004.htm
    As far PA specfic some tcodes are given below
    PA20  Display HR Master Data
    PA30  Maintain HR Master Data
    PA40  Personnel Actions
    PA41  Correct Actions
    PA42  Fast Entry for Actions
    PA46  Import from Resumix
    PA47  Export to Resumix
    PA48  Hiring from non-SAP system
    PA51  Display Time Data
    PA53  Display Time Data
    PA61  Maintain Time Data
    PA62  List Entry of Additional Data
    PA63  Maintain Time Data
    PA64  Calendar Entry
    PA70  Fast Entry
    PA71  Fast Entry of Time Data
    PA88  Benefits
    For OM specific
    PP01  Maintain Plan Data (menu-guided)

  • Services WD ABAP for Career and Job of ESS

    Dear Experts.
    We are implementing ESS with BP 1.41 and we have the following issue.
    The standard ESS package only provides steps to setup the original BSPs for the services of the Area Page Career and Job :
    · Candidate Profile
    · Data Overview
    · Profile Release
    · Apply directly
    · Search for jobs
    · Favorites
    · Applications
    · Personal settings
    I want that this services call the EHP4 E-recruitment WDA applications.
    SAP says that may be possible adapting the ESS role to include these applications.
    What are the steps what I Sould do for include this service WD ABAP for the Area of Career and Job?
    Best Regards

    Juan,
    Please refer my answer in ESS forum
    Thanks
    Bala Duvvuri

  • Date Span - Validation for start and end date parameters in Crystal reports

    Hi,
    I am new here and am unsure if this is the right place to post this issue. If so, I apologize for that.
    I am working on Crystal Reports 12 and don't know if it is possible; to validate the parameters - Start Date and End Date are within a specific span of time. For Eg. Start Date and End Date should be within 6 months or Start Date should be a future date.
    Can we prompt that parameters entered are invalid and have users re-enter it?
    I will really appreciate any help into this issue.
    Thanks Much,
    RP

    Hi,
    Well, it is not possible to validate the date/datetime values in the prompt window, however there are other alternatives.
    One of them is to create an Alert with the condition:
    datediff("m",Minimum({?DateParameter}),Maximum({?DateParameter})) > 6
    //This is to check if the start date and the end date are within 6 months
    Another way of doing this is by displaying a message on the Report Header and suppressing all other sections if the date range values do not meet the condition.
    Hope this helps!
    -Abhilash

  • Custom functionality for home and end keys?

    I don't know anything about automate, but I was wondering if it's possible to do this:
    I'm a former PC user and on PCs you could use the 'home' and 'end' keys to go to the beginning and end of one line (subsequently, you could hold shift + home/end to highlight from your current cursor position to the beginning or end of a line). This functionality is extremely helpful for text editing and programming. Luckily the versions of Word and Dreamweaver I have on mac do use this, but TextEdit, Flash, and others do not. Is there anyway to program this kind of functionality? And if so how? And why is basic functionality like this different program to program on macs? PC's were at least consistent. Thanks!

    The Command and Option shortcuts will take some getting used to, but that will work. Thanks! an external text editor would be okay for some things, but not Flash ActionScripting within a flash file.
    I just wish some of the more basic functions between mac and pc were the same. I think both platforms would have an easier time getting users to switch if they were a little more consistent and took some of the good features of each into consideration.

  • HELP! Converting fonts for preflight and end user review

    I want to make sure the fonts are either embedded or linked to the doc so the end user can review my file. Once it is ready for print, what are the steps to make it print friendly?

    If the client needs to edit the file, you need to send the original InDesign file. You can use the Package command in the file menu to gather all of the fonts (other than CJK or restricted fonts -- you'll see the warning) and images required for printing into folders along with the document. This does not alter the licensing requirements, though, that the other user must have their own license for each of those fonts to install them (which is why PDF is a much better solution in General as most fonts worth using allow embedding for viewing and printing in a PDF), as well as a copy of InDesign.
    Peter

  • Require function module for start and end bucket of planning book

    Hello All,
    I need to fetch the start and end bucket date of a planning book. Is there any function module which can directly give first and last bucket date of a planning book ?
    Thanks & Regards,
    Vivek

    Hello dear Sanjeev / Datta,
    Thanks for your prompt response.
    The problem resolved. The solution is as follows.
    Step1) CALL FUNCTION '/SAPAPO/MSDP_PB_READ_DVIEW'
                Input : Plng book and dataview
                output: cs_pbdvwhdr       = ls_header (in changing parameter)
    Step2) CALL FUNCTION '/SAPAPO/SDP_TB_CREATE_COLS'
                Input: bucket Profile of past and future, which we will get from step1.
                          And from date as space in a variable of type datum (As the parameter is mandatory)
                Output: et_cols_ext (Importing table) which will give start and end date.
    Hope, This solution will help others also.
    Thanks & Regards,
    Vivek

  • Table for Start and End time of Process Chain

    greetings experts,
    Hi All,
    I Have to give an Excel Sheet to Top level manager on Start and End Time of Data Load in each InfoPackage (PSA Load) triggered by Process Chain, please let me know if there is any table who keeps these information.
    Regards
    Sulochan

    Hi,
    You can use the program /SSA/BWT to give the Timings of the process Chain runs.
    1) To access this tool Goto SE38 .Type in u201C/SSA/BWTu201D as the Program name and click on execute. The list of all the tools that this Program contents are displayed.
    2) By default the option u2018Process Chain Analysisu2019 is selected. Now click on the execute button. Then you are displayed with the options through which you can select to perform analysis at Process Chain level or Process Type level. (Along with that, the Time Zones used to display the information is also displayed)
    3)If you click on the button u2018Process Chainsu2019 a window Pops up, here you need to provide the Chain-ID and/or the Log-ID and the Start Date/Time and the End Date/Time.
    4)Decide the parameters to enter as per your requirement, suppose your requirement is to check the runtime of a particular process chain for the past one week, then provide the technical name of that chain in the field Chain-ID and the start and end dates as per last one week and click on execute.
    5)Then the logs of the Process Chain for the selected dates are displayed along with the status (Red, Green or Yellow). The logs of the local chains (if any exist in the Process Chain selected) are also displayed (Much more additional information exist which is self explanatory). Now you can have a look at the Runtimes of different logs.
    Regards,
    Suprajah.

  • MacBook keyboard -shortcut for HOME and END function on the keyboard?

    Hi all,
    I was wondering if anyone could tell me how to trigger the HOME and END button which normally is placed on a PC keyword, I can't find any shortcut for it?
    I'm running bootcamp with windows vista on my MacBook 13'1
    Hope that some can help
    Cheers,
    Jesper
    Message was edited by: Jesper Sørensen

    Not sure about Pro, but on my MacBook (Leopard 10.5.6):
    In Word
    = fn + right or left arrow keys only take me to the "home" or "end of the particular line I'm on.
    = fn + up or down do the same as the MS "pg up" or "pg dn"
    = fn + command + (arrow keys) take me to the very beginning or end of the document (Word or Excel).
    In Excel
    = command + right or left jumps to the next cell that has info in it (skips empty cells)
    = command + up or down jumps to the beginning or end of adjacent cells with info in them.
    = fn + right doesn't do anything
    = fn + left takes me to the beginning of whatever row I'm in.
    = fn + up and down are the same as pg up and pg dn. So is command + up or down arrow.
    = fn + command + left arrow takes you to the beginning of the document (same as "Cntrl + Home")

  • Payment term for net90 and end of month

    Hi Gurus,
    how can I create payment term with following requirement
    net 90+ EOM ( net 90 and end of month ).
    Thanks

    Implement the following SAP Note.
    https://service.sap.com/sap/support/notes/1316578
    You can then use transaction OBB8 to create terms of payment in which the due date is extended until the end of the month after a specified number of days.

  • I bought qq斗地主 for free and end up paying $15

    in Oct I spot the game  as above and it was for free, but I end up paying $15 for no reason

    Depending on your internet connection, it can take considerable time for a large file (this is about 5.3 GB) to download.
    As for doing the right thing by upgrading to Mavericks - that is entirely your decision. As long as you have a new Mac and have not installed a lot of third party apps which may not be compatible with Mavericks, it should be fine. Note that you should have a minimum of 4 GB RAM (more would be better).
    The best thing to do - if you haven't installed it yet - would be to have an external hard drive and clone your entire system to it using CarbonCopyCloner or SuperDuper. That will create an exact copy - clone - of your system and you can boot from it if necessary. You can then install Mavericks on one of the two and try it out - if you don't like it, simply clone the old system back to your hard drive (from the external). If you want to do that, post back so we can tell you how to format the external drive.

Maybe you are looking for

  • How do you use green screen and picture in picture in iMoive at the same scene?

    I understand how to do green screen and picture and picture... but how do you do it in the same sequence.. so when you are speaking with a background picture and you want to add a picture or a story within that picture... there has to be a way to do

  • How to initilize the size of rows in an jtable in run time

    i am trying to retrieve data from a oracle database and display them in an jtable ,but i could not figure out how to increase the size of the table based on the number of records fetched in runtime. i also want to add checkbox for each enrty made in

  • Can't get past the blue screen of death

    I woke up this morning to discover my computer froze on the screensaver sometime last night. I restarted and after the grey apple screen got a blue screen which shifted to a lighter blue screen with the mouse cursor and it never moves beyond that. My

  • Passing IR Values to Form via Link Column

    I am fairly new to APEX and was wondering if there was a way to pass more than the 3 allotted values in the Link Column of an Interactive Report. My report is generated from a query that pulls from several tables. My link column navigates to a form t

  • CF 9.01 - jrun.exe SQLServerURLParser Path Not Found

    I found a similar post about this from 2 years ago (http://forums.adobe.com/thread/920226) but it had no responses. I'm hoping someone sees this and has some ideas. The server in question is running CF 9.01 Enterprise in multiserver configuration in