Technical fields in Expert Routine

Hi,
I need to write an Expert Transformation Routine to upload data into a DSO from a Generic Data Source.
The Result Package has the following technical fields:
     Field: SID SID.
        SID           TYPE RSSID,
     Field: DATAPAKID Data packet number.
        DATAPAKID           TYPE RSDATAPID,
     Field: RECORD Data record number.
        RECORD           TYPE RSARECORD,
     InfoObject: 0RECORDMODE BW Delta Process: Update Mode.
        RECORDMODE           TYPE RODMUPDMOD,
Can you please let me know what/ how should these fields be updated?
Thanks,
Sri.

Hi,
Check the below link for expert routine 
http://wiki.sdn.sap.com/wiki/display/BI/ExpertRoutineinBI7Transformations
Regards,
Satya

Similar Messages

  • Sample source code for fields mapping in expert routine

    Hi All
    Iam writing the expert routine from dso to cube for example I have two fields in dso FLD1,FLD2
    same fields in infocube also ,can any body provide me sample abap code to map source fields to target fields in expert routine,your help will be heighly appreciatble,it's an argent.
    regards
    eliaz

    Basic would be ;
    RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
    you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
    BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
    BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
    Hope this helps
    Derya

  • How to get technical name (ID) of expert routine

    Hi,
    how I can get the technical name (ID) of an expert routine inside my transformation?  I have to verify if the expert routine is in an old transport order.
    Any help will be appreciated.
    Thanks,
    detlef

    Hi,
    Just copy the techical name of transformation in which you have written the expert routine.
    Then go to se11 enter table name as RSTRAN and put the technical name of transformation.
    This will provide you the technical name of all the routimes written in transformation.
    Hope it helps.
    Regards,
    AL

  • Special chs in DSO expert routine

    Hello All,
    Data is being pulled from Transfer order DSO to GR DSO. The transformation uses a expert routine which pulls a field 'Requisitiner' from another DSO i.e. Purchase DSO.
    This expert routine brings invalid characters i.e. the field value which is in small letters.
    If I delete the request in GR DSO, I cannot edit the PSA and get the correct data, because basically the incorrect entries are coming from the expert routine.
    The real problem occurs when I try to activate data in GR DSO. The activation fails because of the requisitioner field value is in small letters.
    Do I have to make changes in the expert routine? OR is there another way to solve this.
    The loads are delta loads and requests from last 3-4 days have been failing to activate.
    Kindly inform.
    Regards,
    NK

    hi,
    use the ABAP statement convert to Upper case, or you can change the settings for the target infoobject (check the lowercase letter) in the Dev and transport it to the target system.
    Check with the users to see if they are ok with seeing lower case letters in the report, if yes then transporting the info object is a better option.
    regards,
    Arvind.

  • Coding Help in Expert Routine

    Dear Guru's
    We have a Expert Routine to Fill Data from a ODS to CUBE.
    i am facing problem in selection of DTP, When i mention CALDAY as eg:01.03.2009 - 31.03.2009.
    i Dont get only MARCH data in Cube but all the complete Data which is in ODS . i mean my Expert Routine  does not recognise my selection.
    Here is the Code
        DATA:
        BEGIN OF ls_ztwr_o13comp,
          calday          TYPE     /bi0/oicalday,
          co_area         TYPE     /bi0/oico_area,
          /bic/zcostcent  TYPE     /bic/oizcostcent,
          UNIT            TYPE     /bi0/oiunit,
          /bic/zacthours  TYPE     /bic/oizacthours,
          /bic/ztarhours  TYPE     /bic/oiztarhours,
          /bic/zprodvity  TYPE     /bic/oizprodvity,
          /bic/zcumachrs  TYPE     /bic/oizcumachrs,
          /bic/zcumbuhrs  TYPE     /bic/oizcumbuhrs,
          /bic/zprodcum   TYPE      /bic/oizprodcum,
        END OF ls_ztwr_o13comp,
        lt_ztwr_o13comp   LIKE TABLE OF ls_ztwr_o13comp
          WITH KEY co_area /bic/zcostcent calday UNIT,
        lt_ztwr_o13comp1  LIKE TABLE OF ls_ztwr_o13comp
          WITH KEY co_area /bic/zcostcent calday UNIT,
          wa_year TYPE n LENGTH 4,
          wa_month TYPE n LENGTH 2,
          wa_calmonth TYPE n LENGTH 6.
    $$ begin of routine - insert your code only below this line        -
        ... "insert your code here
        SELECT *
          FROM /bic/aztwr_o1300(ods)
          INTO CORRESPONDING FIELDS OF ls_ztwr_o13comp.
          COLLECT ls_ztwr_o13comp INTO lt_ztwr_o13comp.
        ENDSELECT.
        CLEAR ls_ztwr_o13comp.
        LOOP AT lt_ztwr_o13comp
         INTO ls_ztwr_o13comp.
          IF ls_ztwr_o13comp-/bic/zcumachrs = 0.
            ls_ztwr_o13comp-/bic/zprodcum = 0.
          ELSE.
            ls_ztwr_o13comp-/bic/zprodcum = ls_ztwr_o13comp-/bic/zcumbuhrs /
            ls_ztwr_o13comp-/bic/zcumachrs * 100.
          ENDIF.
          CLEAR:
          ls_ztwr_o13comp-unit,
          ls_ztwr_o13comp-/bic/ztarhours,
          ls_ztwr_o13comp-/bic/zacthours,
          ls_ztwr_o13comp-/bic/zcumbuhrs,
          ls_ztwr_o13comp-/bic/zcumachrs,
          ls_ztwr_o13comp-/bic/zprodvity.
          APPEND ls_ztwr_o13comp TO lt_ztwr_o13comp1.
        ENDLOOP.
        CLEAR ls_ztwr_o13comp.
        LOOP AT lt_ztwr_o13comp1
         INTO ls_ztwr_o13comp.
          COLLECT ls_ztwr_o13comp INTO lt_ztwr_o13comp.
        ENDLOOP.
        CLEAR:
        ls_ztwr_o13comp,
        lt_ztwr_o13comp1.
        LOOP AT lt_ztwr_o13comp
         INTO ls_ztwr_o13comp.
          wa_year = ls_ztwr_o13comp-calday(4).
          wa_month = ls_ztwr_o13comp-calday+4(2).
          CONCATENATE wa_year wa_month INTO wa_calmonth.
          MOVE-CORRESPONDING ls_ztwr_o13comp TO RESULT_FIELDS.
          RESULT_FIELDS-calmonth = wa_calmonth.
          RESULT_FIELDS-calyear = wa_year.
          APPEND RESULT_FIELDS TO RESULT_PACKAGE.
        ENDLOOP.
    Can any one please tell me where i should change the code, So that i get data for only those month which is mentioned in my DTP.
    Thanks in adv,
    Dev

    Hi Srinivas,
    You are selecting data from your DSO and then processsing it and then appending it in RESULT_PACKAGE.
    Now the data which will be selected because of the filter in the DTP will be in the internal table SOURCE_PACKAGE.
    So you should base your select on the DSO for all entries in Source_package. This will ensure you process only those records which are selected with the filter.
    Regards,
    Mansi

  • Currency Conversion in Expert Routine

    Hi
    We have written a expert routine for calculating some amount fields. Now these amount fields get local currency from the source. We need to change it to USD using a standard conversion type. This conversion type already exists. Now how can this be done in expert routine?
    Regards
    Merlin

    Hi Merlin,
    You could use Currency Translation with in BEx Query (It is available on conversion tab of the key figure properties) and use conversion type of USD on the key figure for Amout/Value
    regards
    Kulmohan

  • Output Technical Field Names in the SAP query Output

    Hi Experts,
    I am new to SAP Query/ABAP Query or Quick Viewer. Just would like to know if there is a way whereby I can print the technical field names as opposed to the English field headers. For example I want to print BUKRS in the place of CoCode.
    I have a vague feeling this could be possible through custom coding in SQ02 but have no idea which code section to choose.Any inputs greatly appreciated.
    thanks in advance,

    Hi Sreegopalan,
    Open your infoset in SQ02, by default in the left hand side you'll be having the tables that you have selected, double click the field name which you want change the long text, it will open a attributes window below your field group. Change the header data text as you wish.
    Please find the query documentation in the below link.
    [http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf]
    Regards,
    Nandha

  • Technical field for invoice

    Hi Experts,
    tell me the technical field for invoice
    Thanks & regards
    narendra

    >
    prashanth kishan wrote:
    > Provided he's asking about Invoice Number
    >
    > pk
    May be i am Wrong then in that case.

  • How to get exact user input in inverse expert routine?

    Hi
    I have created an inverse expert routine on a virtual provider with DTP for transformation from an infocube. The virtual provider is part of a Multiprovider. I have a query which fetches data from the virtual cube.
    I have the hierarchy enabled for the Iobj 0cust_sales in the query and the user inputs the values during execution of the query. Is there a way by which i can get the exact input given by the user in the selection screen in the inverse expert routine?
    I also have some variables on nav attribs of some fields these restrictions are not avaible in the dimensions list. Is there a method by which i can get these variable entries as well in the inverse expert routine?
    Regards,
    Sujai

    please refer to this SAP Help and hope it can solve your question.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/f1f9b861c706f9e10000000a155369/content.htm

  • Create Start routine when there is already an Expert routine

    Hi Experts,
    I am using BI 7. If there is an existing Expert routine, can I still create the Start routine?
    Also, what would be the impact? would existing transformations be affected?
    I am trying to create a start routine between 2 DSOs.
    regards
    John

    Hi,
    All can you help this task,
    we extract from data _package of ZJPROVA DSO start routine  all data of ZAMBITOS column
    into an internal table it_tablazambito5.
    Loop this internal table replacing last character by 0. sort and delete duplicatees from this internal table:
    Ej:
    11101--11100
    11102--11100
    we do a selection from ZJPAOCON DSO to get the description in ZDESCRIPC field and we storaage it in an internal
    table it _descripciones
    SELECT ZCODAMBIT ZDESCRIPC FROM ZJPAOCON
    FROM ZJPAOCON
    FOR ALL ENTRIES IN It_tablaZAMBITOS5
    WHERE ZCODAMBIT= it_tablaZambito5- ZAMBITO5
    2) field routine programe
    once we have have the decription , we complet the routine to populate ZDESAMBIT in ZJPROVCA DSO
    if ZAMBITO5 ENDS IN 0
    Read table it_descripciones where ZCODAMBIT= ZAMBITO5
    then ZDESAMBIT =  it_descripciones-ZDESCRIPC
    ELSE
    NEW  ZAMBITO5 = ZAMBITO5 changing last character by 0
    read table it_descripciones where ZCODAMBIT = NEW ZAMBITO5
    if zambito5 ends in 1
    then ZDESAMBIT=it_deScripciones-ZDESCRIPC + "OM"
    ELSE IF ZAMBITO5 ends in 2)
    then Zdesabit = it_descripciones = ZDESCRIPC + "MAT"
    END IF
    END IF
    EXAMPLE
    ZCODAMBIT = 11100
    ZDESCRIPC = BIZKAIA Este
    si   ZAMBITO5 = 11100  Entonces ZDESAMBIT = Bizkaia Este
    si   ZAMBITO5 = 11101  Entonces ZDESAMBIT = Bizkaia Este OM
    si   ZAMBITO5 = 11102  Entonces ZDESAMBIT = Bizkaia Este MAT

  • Error Stack in Expert Routine, Infos about Object Log

    Hi all,
    currently I try to find some information about using the error stack in combination with an expert routine. So far I know that I have to use the Object Log, which is already in place in my code for monitor messages.
    LOOP AT itab_input INTO wa_input.
    IF sy-subrc <> 0.
            CLEAR msg.
            msg-msgid = 'MY_CLASS'.
            msg-msgty = 'E'.
            msg-msgno = '002'.
            msg-msgv1 = v1.
            msg-msgv2 = v2.
            msg-msgv3 = v3.
            APPEND msg TO t_msg.
            " ??? Write wa_input to error stack???
            CONTINUE.
          ENDIF.
    ENDLOOP.
    Does somebody know how I could append wa_input to the error stack? Or does somebody have a good documentation about Object log?
    Thanks a lot!
    Nita

    Good Morning,
    thanks a lot for your input. I tried to implement this function, but I do not know where I could get the Segment Id from.
    Do you know what i_use_crosstab is used for? I think i_with_message should be set to 'X' if I want to write wa_input-record it to the error stack.
    CALL METHOD log->verify_record
              EXPORTING
                i_use_crosstab  = ''
                i_segid         = lv_segid
                i_record        = wa_input-record
                i_with_message  = 'X'
              RECEIVING
                r_skip          = lv_skip
              EXCEPTIONS
                too_many_errors = 1
                not_in_crosstab = 2
                OTHERS          = 3.
    From semantic point of view the coding should do following:
    - To avoid a second loop in my expert routine it should only check the current src record. If this is wrong, which I already determine in my coding, it should write the record in the error stack. If it is correct, it should check whether there are already records with the same semantic key in the error stack and if yes, add it also to it.
    - I assume that I have to delete this record manually from my src. package than.
    Cheers
    Nita

  • Error in Expert Routine

    Hello Please I need help, I applied expert routine in my transformation in BI 7.0 and i get error, this is the code i used
    Data : wa_SOURCE_PACKAGE  type tys_SC_1.
        data : wa_RESULT_PACKAGE  type tys_TG_1.
        loop at SOURCE_PACKAGE into wa_SOURCE_PACKAGE .
          move wa_SOURCE_PACKAGE-/BIC/ER_ENUM to wa_RESULT_PACKAGE-/BIC/ER_ENUM.
          move wa_SOURCE_PACKAGE-/BIC/ER_EAGE to wa_RESULT_PACKAGE-/BIC/ER_EAGE.
          move wa_SOURCE_PACKAGE-/BIC/ER_ENAME to wa_RESULT_PACKAGE-/BIC/ER_ENAME.
          move wa_SOURCE_PACKAGE-/BIC/ER_ESEX to  wa_RESULT_PACKAGE-/BIC/ER_ESEX.
          wa_RESULT_PACKAGE-/BIC/ER_ESAL = '2000'.
          append RESULT_PACKAGE to wa_RESULT_PACKAGE.
        endloop.
    Error Message that i get :
    E:"WA_RESULT_PACKAGE" is not an internal table - the "OCCURS n"
    specification is missing.
    Please can someone assist me with a solution to this.

    ERROR IN APPEND STATEMENT .
    CHANGE IT TO
    append WA_ RESULT_PACKAGE  to RESULT_PACKAGE.
    WORK AREA SHOULD BE APPENDED TO RESULT_PACKAGE

  • Key Figues - SUMMATION in Expert Routine

    Hi All,
    Is there any to way to have to aggregation of Key Figures as "Summation" in Expert Routine??
    Please let me know if there is any work around for this..
    Thanks,
    Kapil

    This type of routine is only intended for use in special cases. You can use the expert routine if there are not sufficient functions to perform a transformation. The expert routine should be used as an interim solution until the necessary functions are available in the standard routine.
    Hi Kapil,
          You can use expert routine to program the transformation yourself without using the available rule types. You must implement the message transfer to the monitor yourself.
         If you have already created transformation rules, the system deletes them once you have created an expert routine.
         If the target of the transformation is a DataStore object, key figures are updated by default with the aggregation behavior Overwrite (MOVE). So i think expert routine aggregation does not work for transformation to the standard DSO.
    For more details:
    [https://forums.sdn.sap.com/click.jspa?searchID=13078965&messageID=2823817]
       Hope it helps you.
    Regards,
    Yokesh

  • Display Technical Field Names within a Transaction Screen

    Hi All,
    Someone once showed me how to do this and for the life of me I cannot figure out how to do it in ECC 6.0.
    I would like to display the technical field names of all fields in a transaction.  It is important to note that I am not looking for the <b>F1...Technical Details</b> solution.  I am well aware that the technical field name can be retrieved by this method.  I am really looking to see all the technical names of the fields in a particular transaction without a lot of clicking and searching.
    When I saw this before you could quickly change from technical field names to short field names and vise versa. 
    I know this could also be accomplished in SE11 or SE16 - but that is not exactly what I am looking for.
    Can anyone help??

    Hi Christopher,
    you know that Rollin Stones thing?
    You can't always get what you want.
    There is no such functionality for standard transactions.
    Regards,
    Clemens

  • Technical Field name for Usage

    Hi,
    Could anyone please tell me whether there is any SAP standard field (technical) name & Segment structure for u201CUsageu201D  for the automatic determination of Item Category.
    More details:
    User wants to send sales order through a non SAP application. So when the order comes to SAP through IDoc, I want the item category to be determined automatically. As you all knew, the rule for automatic determination of item category is Sales order type + Item cat. Group + Usage + HLevItCa. So I just need technical field name for Usage for XI mapping.
    Is there SAP standard field for Usage just like we have field name (PSTYV) & segment structure (E1EDP01)for item category? Or it should only be achieved through any user exit? Could anyone ever done such setting? Could you please give me some inputs.
    Thank you.
    Regards, Sats.

    HI
    VWPOS - Item Category usage
    Check using path
    SPRO --> Sales and Distribution --> Sales --> Sales Document --> Define item Category Usage
    Thanks & Regards
    Edited by: WISH on May 17, 2010 12:13 PM

Maybe you are looking for