No data updated with END ROUTINE

Dear Team,
Written the following END ROUTINE to calculate the Value=qtyunit priceexchange rate in the transformations
Qty,Unit Price and Exchange rates are comming from the source
Value is getting updated till new data table,but when i activate it the value becomes zero
Please guide in fixing the above same
Thanks & Regards,
Sarasu

Dear All,
Following is the code written
data:wa_result_package type tys_TG_1.
    loop at RESULT_PACKAGE into wa_RESULT_PACKAGE.
      wa_result_package-/BIC/K_DELAMT =  wa_result_package-EXCHG_RATE *
      wa_result_package-/BIC/K_DELVAL *
      wa_result_package-DLV_QTY.
      MODIFY RESULT_PACKAGE FROM wa_RESULT_PACKAGE TRANSPORTING
      /BIC/K_DELAMT.
    ENDLOOP.
Thanks & Regards,
Sarasu

Similar Messages

  • Problem in Data updation with multiple windows in JSF

    Hi,
    I am facing a problem whitle working in JSF. As per my project scenario I have a list page which shows list of entities. I can click on the id of the entity and open a new window containing the details of that particular entity. In that perticular window I have option to update the details of the entity. I can open as many windows as I wish (Every window opens the same JSP Page) and can update them at the same time.
    If I open 3 windows containing details of 3 entities and update them one by one by clicking on edit button and then update button, it will work fine for all 3 windows. But if I click edit in all 3 windows simultaneously then click update on each of them it will work fine for the first updated entity but for the next windows I am getting the same object as the object is not getting updated with new data in the request for particular entity.
    Can anyone please suggest me any solution.

    Hi Deepak,
    Good to hear that your first problem is solved. For the problem you are currently facing now, when ever some inbound request is stuck in either waiting or partial state any sync that you do from the client is useless because middleware doesn't accept any further inbound requests until and unless the previous requests which got stuck in either partial or waiting state move to either finished or ignore or error state.
    This problem could happen because of many reasons. One reason could be either that particular synbo is not active. If it is active and still the requests are stuck in partial state then the problem could be with middleware system i mean because of heavy load it will take some time to process the request or if the system goes down in middle of processing then it doesn't restart processing.
    So i would like you to check if all MAM syncbo's are active (status should be green). If you are sure that middleware system is also working fine then move that request to ignore state and then do a sync from client and check if the middleware processes the new requests.
    Even if the new requests are stuck in partial state then the only solution could be to reinstall the application on middleware.
    Regards,
    Siva.

  • Table control data update with LED status progress

    Hi Friends,
    I've a requirement for my project....
    But i am not clear of how to implement that.
    The main.vi will extract the data from an Excel sheet using all excel.llb and show the data in table  control.
    At the back end i'll be keep on reading data from the worksheet 1 of the excel sheet.
    so my intention is something like this
    whenever it reads the 1st row  of data the LED should blink at the first row and it proceed down as per the for loop
    And should continue up to the end.
    If anybody have worked out with the Table control and Excel sheet VI's please help.
    Your help would be appreciated.
    Will attach the VI on request.
    Cheers,
    Suneel.V

    Hi Mike,
    Thanks for your prompt response.
    Attached are the VI's.
    The main VI is Excel_Tablecontrol.vi and the sub vi is excel_read.vi
    In the main VI select any excel sheet from your PC and it will extract the first sheet data in it.
    But in my real project i will be reading line by line.
    Could you please make me clear how should i put an indicator whcih would go line by line.
    Cheers,
    Suneel.V
    Attachments:
    Excel_TableControl.vi ‏11 KB
    Excel_Read_Write_V1.0.vi ‏48 KB

  • Xth data - updated with new records in exit- layout does not show new recor

    Hi ,
    I have updated Xth_data table in an exit function with new set of records. I can in debug mode in the exit function 204 records in Xth_data and after the logic 408 records. But somehow , when the layout comes up , it comes up with only 204 records instead of 408. I have populated all the key fields of xh_data with characteristic value. But still these are missing in the layout. Please let me now if you guys have come across simillar situation.
    204 records are read , 0 of them were changed, 276 generated.
    Thanks
    JC

    Hi,
    Surely that the new record do not match with the selection of your package.
    You should execute the function withj the trace, so you can access the full log.
    Regards

  • Updating Cube in the End Routine based on the incoming Valid From Date

    Hello Experts
    Here is my scenario.
    We are using BW 7.x.  There is DSO and from DSO it goes to the Cube, the promotions information.  These data targets will have Material (Article), Plant (Site), Promotions Number, Valid from and Valid to dates.  The Valid To date will come in as 12/31/9999 all the time.
    If I receive a new record from ECC with same Material, Plat and Promotion combination again, I need to get the Valid From Date from the new record and Update the existing record' Valid To date in DSO/Cube as Valid From of the new record - 1.
    So Valid To date of the existing record = New Record's Valid From date minus - 1.
    I would like to do the update in "End Routine" of the Cube.
    Would you please suggest if this can be done and if so would you please provide the sample code.
    THANK YOU in Advance.
    Nag.

    yes, you can do this...
    just use a RESULT_PACKAGE in end routine.
    and using RESULT_PACKAGE fatch the existing records from DSO and append that into RESULT_PACKAGE after your desired changes,
    just try to create a code using this l;ogic. if you can't then i will provide you a code.
    Regards,
    Ashish

  • End Routine Issue - It does not move data from E_T_RESULT to RESULT_PACKAGE

    Hi,
    I am facing an issue with end routine. I have gone through previous posts on, how to write end routine and all.I wrote the end routine accordingly.
    Here is my scenario,
    I have 0CUST_SALES master data , which has all the Sales Org, Distribution Channel and Division, Sold to Party, Sales Grp and Sales Dist.
    I am getting , Sold to party and Distribution channel at the field routine.
    I am using, Sold to Party and Dist Channel and Division = '01'- whatever i populated using a field routine  and trying to get the Sales Org, Sales Grp and Sales Dist at the end routine.
    It looks like, all the code that i wrote seems correct but it does not populate any values into RESULT_PACKAGE.
    Here is the code I wote at the end routine. I am not sure, whats wrong in it. I used, this link to write this routine :
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/203eb778-461d-2c10-60b3-8a94ee91cbfc&overridelayout=true
    Global Declaration----
      DATA : BEGIN OF IT_CUST_SALES,
        DIV TYPE /bi0/pcust_sales-DIVISION,
        DIST_CH TYPE /bi0/pcust_sales-DISTR_CHAN,
        SALES_ORG TYPE /bi0/pcust_sales-SALESORG,
        CUST_SAL TYPE /bi0/pcust_sales-CUST_SALES,
        SALESDIST TYPE /bi0/pcust_sales-SALES_DIST,
        SALESGRP TYPE /bi0/pcust_sales-SALES_GRP,
        END OF IT_CUST_SALES.
    DATA: T_CUST_SALES LIKE TABLE OF IT_CUST_SALES.
    Start of End Routine
       SELECT DIVISION DISTR_CHAN SALESORG CUST_SALES SALES_DIST SALES_GRP
        from
        /bi0/pcust_sales INTO TABLE T_CUST_SALES for all entries in
        RESULT_PACKAGE
        where CUST_SALES = RESULT_PACKAGE-SOLD_TO
         AND DISTR_CHAN = RESULT_PACKAGE-DISTR_CHAN
         AND DIVISION = '01'.
        LOOP AT RESULT_PACKAGE INTO e_s_result.
          READ TABLE T_CUST_SALES INTO IT_CUST_SALES
              WITH KEY CUST_SAL = e_s_result-SOLD_TO
                 DIST_CH = e_s_result-DISTR_CHAN
                 DIV = '01'.
          IF SY-SUBRC EQ 0 .
            MOVE IT_CUST_SALES-SALES_ORG TO E_S_RESULT-SALESORG.
            MOVE IT_CUST_SALES-SALESDIST TO E_S_RESULT-SALES_DIST.
            MOVE IT_CUST_SALES-SALESGRP TO E_S_RESULT-SALES_GRP.
            APPEND E_S_RESULT  TO  E_T_RESULT .
          ENDIF.
        ENDLOOP.
        REFRESH RESULT_PACKAGE.
        MOVE E_T_RESULT[] TO RESULT_PACKAGE[] .
    End End Routine
    Data comes into E_T_RESULT but it does not move to RESULT_PACKAGE. Any inputs will be helpful.
    Regards,
    Kumar

    Hi Hegde,
    Declaration is same , its like this.
       datA: e_s_result type tys_TG_1.
        data: e_t_result type tyt_TG_1.
    I don't know, when i inserted this code in this post, initially it was OK but once i post i also saw , its not that read friendly.
    FYI, i am trying to put the code again, lets see if it works.
      SELECT DIVISION DISTR_CHAN SALESORG CUST_SALES SALES_DIST SALES_GRP
        from    /bi0/pcust_sales INTO TABLE T_CUST_SALES for all entries in
        RESULT_PACKAGE   where CUST_SALES = RESULT_PACKAGE-SOLD_TO
         AND DISTR_CHAN = RESULT_PACKAGE-DISTR_CHAN
         AND DIVISION = '01'.
        LOOP AT RESULT_PACKAGE INTO e_s_result.
          READ TABLE T_CUST_SALES INTO IT_CUST_SALES
              WITH KEY CUST_SAL = e_s_result-SOLD_TO
                 DIST_CH = e_s_result-DISTR_CHAN
                 DIV = '01'.
          IF SY-SUBRC EQ 0 .
            MOVE IT_CUST_SALES-SALES_ORG TO E_S_RESULT-SALESORG.
            MOVE IT_CUST_SALES-SALESDIST TO E_S_RESULT-SALES_DIST.
            MOVE IT_CUST_SALES-SALESGRP TO E_S_RESULT-SALES_GRP.
            APPEND E_S_RESULT  TO  E_T_RESULT .
          ENDIF.
        ENDLOOP.
        REFRESH RESULT_PACKAGE.
        MOVE E_T_RESULT[] TO RESULT_PACKAGE[] .
    Regards,
    Kumar

  • Electronic Bank Statement - Check register not updated with encashment date

    I need help in Electronic Bank Statement. After uploading the bank statement file, i got the document number posted, but when i looked in Check register for the checks it's still showing up as outstanding check and there is no encashment date updated with this check.
    We received file from bank in BAI format and use t.code ff_5 to upload the bank statement file. Algorithm 011 already assigned in Config. Please help me to solve this issue.

    Encashment field did not get updated....
    This happens to us in the following instance...
    Our checks numbers are as follows with zeroes in front... 0000000121558
    The BAI file from the bank has the number listed as 121558. We have a process to convert the BAI file to a .txt format and add seven zeroes in front of the number in the file before processing. We had a new user that forgot this step. Without the zeroes added to the file to match the check numbers, our encashment field did not get updated. We had to do it manually.

  • Start & End Routines in BI 7  Transformations

    Hi,
    In Transformations from DSO1-->DSO2
    In Start Routine for all entries in Source Package i read some fields from DSO3 and filled an iternal table
    And  in end routine i read the iternal table and filled the result package/fields
    In the mapping i haven't mapped any thing to the fields to which i intended to fill using routines
    When i executed data load those fields are not populated with any value
    But if i debug the transformation...results are updating in all fields in the  result package.......
    Do i need to make any setting or mappings to the fields which i want to update using end routine
    Thanks

    HI,
    For support pack 16 and above you get one more button besides End Routine (once end routine is created).
    This button is to update behaviour of fields in End Routines. You get two options once you select this button. One needs to make selection of proper option as it is mandatory.
    The default setting for the pushbutton is that only the fields with active rules are updated in the transformation. With this selection, fields populated in End routine wont be updated in the data target if no active rule exists for them in Transformation.
    Alternatively, you can define that all the fields should always be updated by selecting 2nd radio button. As a result, fields filled in the end routine are not lost if there is no other active rule.
    So in your case if you are in SP 15 or lower, then you will have to map the fields.
    Go through this article it gives the above explanation along with screenshots.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30d35342-1fe3-2c10-70ba-ad0da83d23bd
    Hope this helps.
    Thanks,
    Rahul

  • End routine logic

    I have two options to populate values for two info - objects (both are attributes of 0Mat_Sales):
    1. Read Master data
    2. End routine logic
    The reason why I am toying with the second approach is because some of the transaction records do not have a value for Distribution Channel and Sales Org. We are
    therefore writing some end routine logic to populate these records with a suitable value.
    If I read from master data will the transformation logic also take into consideration the logic written to populate Distribution Channel and Sales Org or is there
    a possibility that this could be missed.
    In effect what is called first the logic that is written in the end routine or the reading from Master data?
    Thanks

    Hi Deo,
    Master data rading step will be performed first as it is executed for individual record and it is part of transformation. But the logic you are going to write is part of End routine and it will be executed for each data package at the end just before updating data to target.
    If you use both the methods then the logic written in End routine will overwrite the result calculated by Read master data.
    Regards,
    Durgesh.

  • End routine to populate Info-cube.

    Hi ,
    Is it possible to load fileds of a Info-cube using End routines in the following scenairos.
    1.Loading fields of info-cube by referencing/using a master data table in End routine.
    2.Loading fields of info-cube by referencing/using a DSO fields  in End routine.
    3.Loading fields of info-cube by referencing/using a fields of another info-cube in End routine.
    Please advise.

    Hi Stalin,
    Before answering your question you need to understand something about "End routine" and "Expert routine".
    End Routine:
    - Result_fields and Result_package are available
    - End routine contains only those fields available in Data target.
    Start Routine:
    - Source_fields and Source_package are available
    - Start routine contains only those fields coming from source.
    Expert Routine:
    -  Source_fields, Source_package, Result_fields and Result_package are available
    So Now if you want write code to look up into some other cube, in look up you may need to test condition using source fields, in that case " Expert Routine" is only the option.
    For Ex
    my data target contains : x,y and z fields (it becomes result_field)
    source contains : a field ( it becomes source_field)
    now if i want to write look up code like this " select x,y and z fields from other cube where my a field value = other cube a field value. here u r accessing both S_F as well as R_F. So only the option is "EXPERT ROUTINE"
    or else u want to write code only with R_F then "End routine " is enough.
    Thanks,
    Gowd

  • Thumbrule for Start/End Routines Usage

    Friends,
                 Is there any thumb rule to decide when to use start or end routine in BW 7 in transformations ?  Can anybody provide a scenario for demonstration .. from performing simple lookups on different DSOs to get descriptions vs any other specific scenarios..   Is there any scenario in which only start or only end routine can be performed.. ?
    Any thoughts would be great..?
    thanks,
    Sunil

    Start routine is totally concerned with source data , where you need to write logic for source_package.
    Start routine will execute before transformation execution.
    Executes packageby package.
    loop at source_package into source-feilds.
    End routine works on target structure  and we have lo write logic on result_package.
    Genarally dso lookups are concerned with end routines.
    loop at result_package into result-feilds.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e
    http://forums.sdn.sap.com/thread.jspa?threadID=1963087
    Regards,
    rvc

  • End Routine Data updation Issue

    Hi all,
    We are trying to do some look ups in the end routine to populate some fields.
    We can see the data selected in the debugging but  in the actual DSO the fields are not populating.
    we suspect that the modify statement
    MODIFY RESULT_PACKAGE from e_s_result.
    might be having some issues.
    If anybody have any suggestions please help us out.
    Appreciate it.
    Thanks,
    HM

    No it is not the issue with modify statement.
    Whatever fields you are updating in modify statement , you need to have rule type assigned as constant with no value..
    As in BI 7.0 the individual rule needs to be defined to enable it to get populated otherwise it doesnt think that the field needs to be updated.

  • End Routine is NOT modifying the DSO with new data after load into that DSO

    Hi all,
      I am creating an End Routine for DSO to populate a field ZFCMP_FLG (to store 'Y' ) with lookup from another DSO ZMDS_D01. This new field shows blank instead of 'Y', after activating the DSO. The RESULT_PACKAGE record is populated with 'Y' for ZFCMP_FLG  while debugging that End Routine and why it is NOT writing the modified records into DSO, please ? It is a Characteristic InfoObject with length 1 to store 'Y'. The following is some part of the code:
    DATA: wa_fcmp_flag   TYPE c VALUE 'Y'.
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
        READ TABLE it_zmds_d01 INTO wa_zmds_d01 WITH KEY
                    /BIC/ZAUFNR    = <RESULT_FIELDS>-CS_ORDER
                    NOTIFICATN     = <RESULT_FIELDS>-NOTIFICATN  BINARY SEARCH.
         IF sy-subrc = 0.
           <RESULT_FIELDS>-/BIC/ZFCMP_FLG = wa_fcmp_flg.
        ENDIF.
    ENDLOOP.
    Thanks,
    Venkat.

    hi...
    Since you are using Field symbol to loop the internal Table there is no need to use the MODIFY Statement in the loop.
    So your code is correct only.
    But here you have to check the status of READ TABLE command in the debug mode.
    it may be failing that's why the RESULT_PACKAGE is not getting modified.
    Plz check it.
    Note: You may need to SORT the Int Table since you are using BINARY SEARCH. check below.
    DATA: wa_fcmp_flag   TYPE c VALUE 'Y'.
    Sort it_zmds_d01 by  /BIC/ZAUFNR    NOTIFICATN  .
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
        READ TABLE it_zmds_d01 INTO wa_zmds_d01 WITH KEY
                    /BIC/ZAUFNR    = <RESULT_FIELDS>-CS_ORDER
                    NOTIFICATN     = <RESULT_FIELDS>-NOTIFICATN  BINARY SEARCH.
         IF sy-subrc = 0.
           <RESULT_FIELDS>-/BIC/ZFCMP_FLG = wa_fcmp_flg.
        ENDIF.
    ENDLOOP.

  • End routine data extraction

    Hi Gurus,
    I am trying to extract one custom keyfigure from 0EMPLOYEE masterdata to 0PA_C01 cube,
    Global  declarations include
    data: begin of i_s_employee,
          l_zfte1 type /bic/mzemployee-/bic/zfte,
          end of i_s_employee.
    data: i_t_employee like table of i_s_employee.
    Start of end routine includes
    data: e_s_result type tys_TG_1.
    data: e_t_result type tyt_TG_1.
    read table i_t_employee index 1 transporting no fields.
    if sy-subrc = 4.
    select /bic/zfte from /bic/mzemployee into corresponding
    fields of table
    i_t_employee
    where objvers = 'A'
    and dateto <= sy-datum
    and /bic/zemployee <> ''.
    if sy-subrc = 4.
    raise exception type CX_RSROUT_ABORT.
    endif.
    endif.
    loop at RESULT_PACKAGE into e_s_result.
    read table i_t_employee into i_s_employee with key l_zfte1 =
    e_s_result-/bic/zfte.
    endloop.
    loop at i_t_employee into i_s_employee where l_zfte1 =
    e_s_result-/bic/zfte.
    append e_s_result to e_t_result.
    endloop.
    *refresh RESULT_PACKAGE.
    move e_t_result[] to RESULT_PACKAGE[].
    Nothing gets updated to cube and there are also no syntax errors. Please can anyone tell me where i am making mistakes/overlooking.
    any help greatly appreciated.
    Best Regards,
    Reddy.

    hi reddy,
    did you solve this problem?
    i have same problem now and trying to solve.

  • End routine not updating all records

    Hi,
    I have an end routine to update a cube from another cube.
    The routine has two loops, one child loop inside the main loop. Result Package was sorted before the loops.
    Now, not all records were updated in the target infocube as per expectation. Also, when I pick one such record (that did not get updated) and debug, interestingly it shows that expected value has been assigned to the relevant field. And if I upload only that specific record to the cube, the record does get updated with expected value.
    The problem seem to appear only when the whole set of data is loaded.
    Any suggestion about the coding or further debugging will be greatly appreciated.
    Thanks,
    Pranab

    HI,
    check if u r using any internal tables, make this itab refresh at correct point.i tmight be sumtimes create problem.
    else paste ur code here...
    thnks.

Maybe you are looking for

  • Show Column Data In One Row

    Hello, Tell Me how i can show a single column data in one row. 10 20 30 To 10,20,30

  • How do I use cutaway on an 0.1s video?

    How do I use cutaway on an 0.1s video?  When I insert a picture on a 0.1s video using cutaway, the pictures only lets me use it on multiple slides when I want to use it on only one slide.

  • Can I update the os on an ipad

    Can I update a 4.2 os to a 5.01 on an iPad

  • High Dynamic Range

    First, a disclaimer. After 23 years of PC use, I converted to Mac only two months ago (why didn't I do this years ago???). I am a photojournalist and am now heavily into using Aperture, which I L-O-V-E. What I'm trying to say here is that I'm a newbi

  • SAP SD benchmark in rel605 which mandt to choose

    hi , guys i got the rel605 folder. there are 2 folder:rel605_sp00,rel605_sp05 in rel605_sp00, mandt.car,mandt_2011.car and z_source_605_v2.tar in rel605_sp05, mandt.car,mandt_2012.car and mandt_2013.car in Inst_BMTools_V2_24 5.2 Prepare SAP ERP Syste