Start Routine to populate the Logical Source System

Hi Friends please help me with the below
1. <b>Requirement</b> : to Populate The system Date , Source System
in BI for Each load request.
<b>
1 Solution:</b> I thought of writing the Start Routine for this but it is giving me error
syntax Error: END METHOD MISSING?????
2. Also I have requirement to populate 0sourcsys source system id, can any body help how to populate that.
Thanks
Poonam Roy
<b>ABAP Code.</b>
I have the End Method. what more to do.
  METHOD start_routine.
*=== Segments ===
    FIELD-SYMBOLS:
      <SOURCE_FIELDS>    TYPE tys_SC_1.
    DATA:
      MONITOR_REC     TYPE rstmonitor.
<b>
$$ begin of routine - insert your code only below this line        -</b>
... "insert your code here
<b>
FORM STARTROUTINE
USING G_S_MINFO TYPE RSSM_S_MINFO
CHANGING DATAPAK type TRANSTRU
ABORT LIKE SY-SUBRC.
DATA: ZLOAD_DAT LIKE SY-DATUM
ZZSOURSYS TYPE RSLOGSYS
IF G_S_MINFO-DATAPAKID=1
SOURCE_FIELDS-ZLOAD_DAT = SY-DATE.
SOURCE_FIELDS-ZZSOURSYS = G_S_MINFO-LOGSYS.
ENDIF.
ABORT = 0.
ENDFORM.
ENDMETHOD.
ENDCLASS</b>.
*--  fill table "MONITOR" with values of structure "MONITOR_REC"
*-   to make monitor entries
... "to cancel the update process
   raise exception type CX_RSROUT_ABORT.
$$ end of routine - insert your code only before this line         -
  ENDMETHOD.

Hi,
Check whether the formula is useful here than Routine. Because you can see the Sy-datum , source system( I Guess) fields as avaialable formula elements .
With rgds,
Anil Kumar Sharma .P

Similar Messages

  • Convert the logic source system

    Hi all,
    I have a question related to the transportation.
    We have 3 client for DEV(001) QA(002) & PRD(003).
    I have packaged a transport request for my cube and related transformation. I also mantained the Conversion(DEV001 -> QA002). I released the transport request and import it into QA. It works fine because the source was changed from DEV001 to QA002.
    My question is what the system behavior is if I want to import the same transport request into PRD. can the system automaticly change the source from DEV001 to PRD003? If can't, what should I do?

    Hi,
    Conversion of system has to be maintained in production system as well .
    Once conversion of QA to PRD is maintained , same requests can be transported to PRoduction and system will change ref. of transfer rule from Qa system to PRD system.
    Hope that helps.
    Regards
    Mr Kapadia

  • ABAP logical source system

    dear all,
    how can i get the logical source system using abap into my update rule?

    Hello,
    I believe is SY-SYSID.
    Diogo.

  • How to find the existing START ROUTINEs in Transfer Rules in whole system ?

    Hi all,
       How to find the existing Start Routines in Transfer Rules in BW System, please ?
       I know that we could find from the Transfer Rules.
       Is there any way to find instead of looking at Transfer Rules for <b>each</b> InfoSource?
    Thanks,
    Venkat.

    Hi Venkat
    You can find it in these tables
    RSTRAN
    RSUPDROUT
    RSAROUT
    RSAABAP
    RSAABAPINV
    Thanks
    Tripple k

  • How to retreive logical name for the OLAP source system

    dear all, i am writing an extractor for a data source and need to fetch the OLAP SOURCE SYSTEM (r3 backend) for it.
    obviously in RSA1, you can see the source system of the data source, however, i have debugged this and could not find the function or class that puts the source system in the field.
    in short i have the data source, and i know i want it to be the active version, so how can i get the olap source system of this ?
    thanks
    glen
    Edited by: gingle on Dec 2, 2008 10:22 PM

    Try tcode SM59.  I am locked out of the transaction at this client, so I can't give you any more details.
    You can also look at the source system in RSA1 ... go to the source systems tab and change it.
    Both of these steps are typically basis steps, so i would advise you to be cautious when doing anything in either of those screens.
    Brian

  • Start Routine to Populate Account Group Field from Master data of 0Customer

    Hello Friends. Please help me edit this ABAP code to make it work. I am putting this code in start routine in between two DSO. where I am using the
    Start Routine to Populate Account Group Field from Master data of 0Customer. I do not want to use read from master data functionality since that field 0customer is not there in dso but similar field 0debitor is there. so i want to put this code
    during the load from source DSO to Target DSO.
    Error Explicit length specifications are necessary with types C, P, X, N und
    DATA: L_S_DP_LINE TYPE DATA_PACKAGE_sTRUCTURE.
        types: begin of comp,
         CUSTOMER       type  /BI0/OICUSTOMER,
         ACCNT_GRP          type /BI0/OIACCNT_GRP,
       end of comp.
        DATA: l_S_comp type comp.
        DATA: L_th_COMP TYPE HASHED TABLE OF COMP WITH UNIQUE KEY customer INITIAL SIZE 0.
    IF  L_th_COMP[] IS INITIAL.
    SELECT CUSTOMER ACCNT_GRP FROM /BI0/PCUSTOMER APPENDING CORRESPONDING FIELDS OF TABLE L_th_COMP.
    ENDIF.
    LOOP AT SOURCE_PACKAGE INTO L_S_DP_LINE.
    READ TABLE L_TH_COMP INTO L_S_COMP WITH TABLE KEY CUSTOMER = L_s_DP_LINE-CUSTOMER
    IF SY-SUBRC = 0.
    L_S_DP_LINE-/BIC/ACCNT_GRP = L_S_COMP-/BIC/ACCNT_GRP.
    MODIFY SOURCE_PACKAGE FROM L_S_DP_LINE.
    ENDIF.
    ENDLOOP.
    soniya kapoor
    Message was edited by:
            soniya kapoor

    Hello Wond Thanks for Good Answer and good option, But Client does not like this option and does not like Nav Attribute so he does not want to turn on any Nav Attribute, In general also We hav requirement to read a third table while uploading 1 dso table to 2 dso table,
    so  Please help me edit this ABAP code to make it work. I am putting this code in start routine in between two DSO. where I am using the
    Start Routine to Populate Account Group Field from Master data of 0Customer.
    No syntax Error But during the load it is updating the source table and not the target table. how to define now target table.
    ***SOURCE DSO Table
    types: begin of typ_tgl1.
        include type /BIC/AZDAFIAR000.
        types: end of typ_tgl1.
        types: begin of comp,
         CUSTOMER       type  /BI0/OICUSTOMER,
         ACCNT_GRP          type /BI0/OIACCNT_GRP,
       end of comp.
    DATA: L_th_COMP TYPE HASHED TABLE OF COMP WITH UNIQUE KEY customer
    INITIAL SIZE 0.
      data: wa_itab type COMP.
        data: wa_zdtg type typ_tgl1.
    IF  L_th_COMP[] IS INITIAL.
    ***Master Data Table
    SELECT CUSTOMER ACCNT_GRP FROM /BI0/PCUSTOMER APPENDING CORRESPONDING
    FIELDS OF TABLE L_th_COMP.
    sort L_th_COMP by CUSTOMER.
    ENDIF.
    LOOP AT L_th_COMP into wa_itab.
    select * from /BIC/AZDAFIAR000 into wa_zdtg
                        where DEBITOR  eq wa_itab-CUSTOMER.  *** SOURCE DSO Table
    IF SY-SUBRC = 0.
    wa_zdtg-ACCNT_GRP = wa_itab-ACCNT_GRP.
    MODIFY /BIC/AZDAFIAR000 from wa_zdtg. *** modify SOURCE DSO Table
    ENDIF.
      endselect.
        endloop.
    soniya kapoor

  • BDLS for conversion of logical source system name

    Hello All,
    I am trying to reassign a new source system NEW1 by replacing old source system OLD1 using BDLS in the source system.
    But the NEW source system logical system name already exists as I created it . Can I delete the new source system and then use BDLS?
    How do I make sure that the reassignment happens correctly?
    And what precautions should be taken to avoid further consequences?
    Regards,
    NIKEKAB

    BDLS does a pretty good job... Never had issues with it when using it... Always execute a test run, look for warnings or errors...
    Yes, you can delete the source system before doing BDLS... I assume, since it is new, nothing is connected to it...
    You always will have to check RFC connections, datasources replicas, rules, etc, once the conversion is done...
    Make sure you take a look at note 886102, it has very good information and make reference to other relevant notes specific for BDLS, like 121163, 369759, etc... Read the notes carefully, follow the steps and you'll be fine...
    Once everything is done and in place, you shouldn't have any surprises in the future... It's just normal maintenance...
    Good luck...

  • Unable to 'set the default source system' to Install Business Content

    Hi,
    Maars here. This is my first post hoping that in future ones I'll also be lending a helping hand.
    I am trying to 'Install Business Content' under the BUSINESS CONTENT section in txn RSA1. I am doing this after 'Transfer Data Sources' in R/3 and I can now see all the data sources (under the application component hierarchy) for the source system. But I am not able to see the Info Objects in the Business Content.
    When I try to set R/3 as the default source system (got this screen after clicking a icon in the standard tool bar), BW is not saving the settings ie., I set the R/3 as the default and then click on OK. If I go back to the same screen again, I find that my settings were NOT saved.
    Could you please help me out?
    Thank you.

    Hi,
    It seems to be a bug in version 3.5.
    Do like this:
    After you open the screen to <i>choose the dafault source system</i>
    Clcik on 3rd button(F6) available in the bottom of the scrreen.
    And then select teh tick mark for required system.
    And then click on Continue button
    You have do this step before you drop the cube to right side of the cube.
    Ok, even after all these steps , if you reopen the screen you would not see Tick mark u have done just before. DONOT WORRY ABT it.
    Drag and drop required cube with dat flow before.
    Now you can see the Transfer rules with selected Source system only in the collected Objects.
    With rgds,
    Anil Kumar Sharma .P

  • How do I register as a developer in the Online Source System?

    I’m trying to add an ABAP program to SAP BW, and I get this message:
    “You are not registered as a developer.
    Please register in the Online Source System (OSS).
    In the OSS you will receive an access key.”
    I have no idea what this means. How do access the OSS and do this? I have done various searches on SAP's site and I've not found anything useful.
    Is there any shortcut I can use to get this access key and proceed with work? I'm on a tight deadline?

    > Well , you should speak to your Team Lead and request for ABAP Developer Access Key.
    > Your Tem Lead will request BASIS guys to generate an Access Key for you.
    > Once you receive your access key, try to create a program in SE38 > It will prompt you to enter Access Key. > enter the generated access key and continue.
    Cheers
    Praveen

  • G/L account picked for the "wrong" source system entry

    Dear Experts,
    in SRM 7.0, Classic Scenario, i am facing the following issue with respect to G/L account determination in the SC:
    We have three R/3 systems connected to SRM. All these R/3 systems use the same Material Groups, but the G/L accounts are different in each R/3 system.
    In the Table "Determination of G/L Account using product categories", i have maintained the repsective combinations. For each combination of product category and account assignment category, the respective G/L account is defaultet for the respective source system.
    But in the shopping cart, the determination of the correct G/L does not always work. When a user enters the shopping cart initially with a line item that is accounted to his default account assignment category, than the correct G/L account for his source system is derived. But if he changes the account assignment category of the line item, than a G/L account from a "wrong" source system is getting picked up from the table.
    I have checked the GUIDs of the product categories between "Comm_category" and "bbp_det_account" and they are correct.
    What can be the reason for the picking of the G/L account from the wrong source system?
    Can the note 1357871 bring the correction?
    Thank you very much!

    Hello Dima,
    I think your problem comes from your source system for product category management.
    Could you clarify one point: if you change account assignment category, does new G/L account have to be determined for same backend system too or not ?
    If yes, correct new G/L account will be determined using your customizing (IMG: SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Account Assignment > Define G/L Account for Product Category and Account Assignment Category ).
    If it does not work, log an OSS message.
    If no, you need to switch value for each SC item field BBP_PDIGP-LOGSYS_FI from old backend source system to the new one. For this, use BBP_DOC_CHANGE_BADI.
    Then, your customized G/L account definition for product category  and account assignment category should be OK.
    Regards.
    Laurent.

  • ABAP CODE TO POPULATE LOGICAL SOURCE SYSTEM

    Hi Friends please help me with the below
    1. Requirement : to Populate The system Date , Source System
    in BI for Each load request.
    1 Solution: I thought of writing the Start Routine for this but it is giving me error
    syntax Error: END METHOD MISSING?????
    2. Also I have requirement to populate 0sourcsys source system id, can any body help how to populate that.
    Thanks
    Poonam Roy
    ABAP Code.
    I have the End Method. what more to do.
    METHOD start_routine.
    *=== Segments ===
    FIELD-SYMBOLS:
    <SOURCE_FIELDS> TYPE tys_SC_1.
    DATA:
    MONITOR_REC TYPE rstmonitor.
    $$ begin of routine - insert your code only below this line -
    ... "insert your code here
    FORM STARTROUTINE
    USING G_S_MINFO TYPE RSSM_S_MINFO
    CHANGING DATAPAK type TRANSTRU
    ABORT LIKE SY-SUBRC.
    DATA: ZLOAD_DAT LIKE SY-DATUM
    ZZSOURSYS TYPE RSLOGSYS
    IF G_S_MINFO-DATAPAKID=1
    SOURCE_FIELDS-ZLOAD_DAT = SY-DATE.
    SOURCE_FIELDS-ZZSOURSYS = G_S_MINFO-LOGSYS.
    ENDIF.
    ABORT = 0.
    ENDFORM.
    ENDMETHOD.
    ENDCLASS.
    *-- fill table "MONITOR" with values of structure "MONITOR_REC"
    *- to make monitor entries
    ... "to cancel the update process
    raise exception type CX_RSROUT_ABORT.
    $$ end of routine - insert your code only before this line -
    ENDMETHOD.

    You have to write the code (<b>in BI/BW</b>) in the transfer rule (<b>between Datasource transfer structure and infosource/info object</b>)
    There the FORM begin with
    [code]USING RECORD_NO LIKE SY-TABIX
        TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
        G_S_MINFO TYPE RSSM_S_MINFO
    CHANGING RESULT TYPE /BI0/OIPERSON
        G_T_ERRORLOG TYPE rssm_t_errorlog_int
        RETURNCODE LIKE SY-SUBRC
        ABORT LIKE SY-SUBRC. “set ABORT <> 0 to cancel datapackag[/code]
    GS_MIN_INFO structure RSSM_S_MINFO contains information on the request being processed.
    <i>G_S_MINFO. This passes technical information about the data load request,
    such as requesting user, request date and time, update mode, the handling of
    duplicate records, error handling flags, parallel processing flags, and what data
    targets to update.</i>
    If tou want to use start-routine for optimization reasons and fill an empty field in transfer structure, the structure G_S_MINFO is available too.
    [code]USING G_S_MINFO TYPE RSSM_S_MINFO
    CHANGING DATAPAK type TAB_TRANSTRU
        G_T_ERRORLOG TYPE rssm_t_errorlog_int
        ABORT LIKE SY-SUBRC. “set ABORT <> 0 to cancel datapackage[/code]
    And stay in FORM between limits :
    [code]$$ begin of routine
    $$ end of routine[/code]
    Update RESULT in first case, and field(s) of DATAPAK in second case.
    [code]RESULT = G_S_MINFO-LOGSYS.[/code] or
    [code]LOOP AT DATAPAK INTO l_s_datapak_line.
      l_s_datapak_line-zzsourcsys = G_S_MINFO-LOGSYS.
      MODIFY DATAPAK FROM l_s_datapak_line.
    ENDLOOP.[/code]
    Regards

  • Using the end routine to populate the Cubes

    Hi BI Gurus,
    I am having following requirement:
    DSO: ZODS1  -
    > This DSO gets all the raw data from Source system.
    DSO:ZODS4   -
    >  Updates ZCUBE4
           ,ZODS5    -
    > Updates ZCUBE5
    there is no data flow between ZODS1 and  ZODS4
                                                     ZODS1  and  ZODS5
    I have added same new fields to ZODS1,ZCUBE4,ZCUBE5.
    So i want to populate fields of ZCUBE4,ZCUBE5.What is best possible way to do that without chaning ZODS4,ZODS5 structure?
    I am thinking to write an end routine ?Any idea if its possible?
    Also if possible can somebody sample code .
    Please help.

    Hi,
      U can populate ur new fields easily thorugh end routine in transformation ds04 to cube 4 ....
    Provided u can sufficient key in ds04 and which is the same key in ds01 to get the information of newly added fields in cube....
    please give ur fields and some sample data then it will be more clear ....
    but it can be achieved if u have necessary key fields in both dso's.
    Regards
    vamsi

  • Bw extraction process starting after a process/job in source system

    Hello gurus,
    I want to start a extraction process (a chain process) in BW system after a background program (job background process) has finished in the source system (which is an R/3 system).
    My solution sound like this: I make a RFC function in BW that start the event XX, and planning the process chain to start at event XX (all this in BW side).
    In source system I call the RFC function when the desired background process has finish.
    I look for another solution (more simple maybe) for my task, or for any another suggestion.
    thanks

    Hi,
    Refer the note :135637
    (1) Create an event in the BW system
    Define a system event (for example SAP_BW_TRIGGER) with Transaction SM62.
    (2) Create a function module in the BW system
    Create a function module (for example Z_BW_EVENT_RAISE) with the help of Transaction SE37. For the source code refer to the attachment of this note.
    (3) Use the below code in code of the triggered job  in the R/3 System.Here BIMCLNT000 is the logical system name of the BI system. you need to cange it to yours.
    parameters: rfcdest like rfcdisplay-rfcdest default 'BIMCLNT000'.
    call function 'Z_BW_EVENT_RAISE'
      destination rfcdest
      exporting
          eventid = 'SAP_BW_TRIGGER'.
    Regards,
    Anil Kumar Sharma .P

  • ABAP Code in Start Routine for restricing the data records from ODS1 - ODS2

    Hi
    I need small ABAP Code in Start Routine Of Update rules Of ODS . Im in BW 3.5 .
    I have records like below in first layer ODS and i want to restrict some records while going to second layer ODS ..
    ODS1 :-
    DocNO   EventType    Date
    123         001             08/08/2008
    123         003             08/08/2008
    123         011              09/08/2008
    I want one record in ODS2 for this document number whose EventType = 001 only and date of third record ... like below
    Doc NO     EventType      From Date          Todate
    123              001               08/08/2008         09/08/2008
    So how can i get like this record in the ODS2 which will get data from ODS1 . So i need to write the code in the start routine of the ODS2 .
    So please give the me the code for start routine ....
    Regards
    Suresh

    Its difficult in BW 3.5 to include this logic in START_ROUTINE as you cannot add the extra to_date field to the DATA_PACKAGE table.
    You need to create a new global internal table with the same structure of DATA_PACKAGE with additional field to_date. then use the logic to fill in the global internal table
    define a internal table new_data_package with the required structure like (docno, eventtype, fromdate todate)
    data: l_w_datapkg_001 type data_package,
    data: l_w_newdatapkg type new_data_package,
    data: l_w_datapkg_011 type data_package
    LOOP AT DATA_PACKAGE INTO l_w_datapkg_001 WHERE event_type = '001'.
    l_w_newdatapkg-docno = l_w_datapkg_001-docno.
    l_w_newdatapkg-event_type = l_w_datapkg_001-event_type.
    l_w_newdatapkg-fromdate = l_w_datapkg_001-date.
    MOVE CORRESPONDING FIELDS OF l_w_datapkg_001 INTO l_w_newdatapkg.
    READ TABLE data_package INTO l_w_datapkg_011
    WITH KEY docno = l_w_datapkg_001-docno
                     event_type = '011'.
    l_w_newdatapkg-to_date = l_w_datapkg_011-date.
    APPEND l_w_newdatapkg TO new_data_package          
    ENDLOOP.
    Now the new datapackage contains the ODS2 data that u needed

  • How to change the ECC Source system in SAP BI

    Dear Experts,
    In my BI development system instead of showing ECC development system as a source system it is showing ECC production system.
    Now in my BI system I want to change the source system from ECC Production to ECC development.
    Kindly explain me step by step to change the source system from ECC Production to ECC development.
    Regards,
    Suresh.

    Hi,
    Ask your basis team to change source system entries.
    They knows how to assign logical mappings.
    Tx - BDLS.
    Tables - RSLOGSYSMAP.
    Try this way.
    Bw, Tx - RSA1-->source system, Menu Tools - Conversion of logical system name and Assignment of source system to source system ID.
    Thanks

Maybe you are looking for

  • Transferring Pictures to the Ipod

    Every time I follow the steps on the website, I get an error message. Quote: " The iPod "Austin's Pod" cannot be updated. The disk could not be read from or written to." I restarted my computer, and tried a different USB port. Nothing worked. Brand n

  • Classes & classes

    Hey! I'm an absolute beginner at java and I've encountered my first problem. I've made a class with a couple of methods. My learning book told me to make a testclass, to test the methods of the class i've made earlier. So i've made the test class, bu

  • Delete an auto complete email address

    With the Exhange active sync account i have set up on my Q10, when tryiping in an email addresses while composing an email, I am shown email addresses as i type, which is useful. BUT one of these email addresses has the incorrect address and I wish t

  • Can no longer name files when i save them

    When i hit Save As there used to be a bar where you could name your file.  No there is no longer that option so i just names my word document whatever the first few words are.  On top of that, there used to be a drop-down menu where you could choose

  • Capture Canon Legria HF R26 footage with Adobe Premiere pro cs5

    Hello, I need to capture some footage from Capture Canon Legria HF R26 using  Adobe Premiere pro cs5. I have a usb cable with the camera. I  would like ot know if captirng via usb is a good option or if there are other better options . Cheers m