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

Similar Messages

  • PLD Report does not show data from Query

    Hello,
    SAP b1 9.0 PL08 on MSSQL 2008 and I get data on the query, but when the PLD prints, it shows nothing. Is there a way to filter the data that the PLD shows? Does PLD have its own SQL script it uses b/c its not showing data from the query.
    Thanks,
    Nick

    Hi Nicholas,
    Please check below links.
    query based print layout design
    Print Layout Designer \Custom Reports
    How to Make a Print Layout (PLD) Report from a SBO Query | SBOnotes.com
    http://www.tegrous.com/wp-content/uploads/2011/07/HowTo_QPrintLs_88.pdf
    Hope this help
    Regards::::
    Atul Chakraborty

  • Report Does Not Display Data from Non-BCS Cube

    Hi,
    I have the following scenario.
    I have a MultiProvider with two real-time cubes. Cube A is used to store Actual data and Cube B is used to store Budget data.
    Cube A is used by BCS, so the real-time load behavior is set to "Real-Time Data Target Can Be Planned; Data Loading Not Alllowed".
    Cube B is not used by BCS, so data is being loaded using BW InfoPackages, with real-time behavior set to "Re-Time Data Target Can Be Loaded With Data; Planning Not Allowed"
    My BCS has two Consolidation Group hierarchy. One is for Legal reporting and another one is for Business Segment reporting. So, if I have a Consolidation Unit, COMPANY1, it would belong both hierarchies, e.g. LEGAL1 and BSEG1.
    In my query, I have no problem displaying Actual data when I specified Reporting Mode (0BCS_REPMOD) = Standard. (S). However, Budget data does not get displayed. FYI, I have uploaded data twice for each record i.e. LEGAL1 and BSEG1 in the Cons Group (0SEM_CGCOMP) characteristic.
    Any idea on how can I get the budget data displayed?
    Thanks.

    Hi,
    Have you Identified Characteristics and Selected Key Figures:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/cf/bc734190ba137de10000000a155106/frameset.htm
    Without proper construction of multiprovider you'll not be able to see both cubes.

  • Mac does not transfer data from external hard drive when first set up and isn't listed on migration assistant

    I've just had a new hard drive in my MacBook, luckily I had backed up everything on my external hard drive.
    I've just got home and my MacBook set up as a new one and asked me if I wanted to transfer my old data from an external device. I clicked this option, and a box appeared with me to choose my device so I plugged it in and nothing. It was not listed so I couldn't continue. I clicked go back to continue without transferring any data and tried to use migration assistant. I plugged in my external HD again and it was recognised on the desktop with me being able to open it and see my old document, folders and iTunes etc.
    I went on to migration assistant and that came up with much the same choice as the first time so I chose the option again to transfer information from my "other device" again there was an empty box so I cannot choose my device.
    I then thought maybe I would need to install snow leopard again as when I got the computer back it was only running leopard and when I previously backed up my mac it was running snow leopard.
    So I've now got in my snow leopard disk and put in my password to install leopard and it's not installing!
    I'm very frustrated and now it's too late to call apple!
    Any help would be appreciated. I don't want to go back to the store again as its 30 miles away!
    Thankyou
    Vicki

    Thanks for the quick reply, Kappy.  I did use Carbon Copy Cloner.  When I returned the cloned data to the new hard drive I tried starting the computer and I got the logo and the spinning gear.  It did not go any further.  I also tried starting in safe mode and it would not go to safe mode.  I have other bootable volumes on the external drive that I cloned the data to.  When I tried migration assistant it would not list the volume that I cloned from the failed hard drive.  I can see the users desk top, documents, pictures from the cloned drive.

  • Subscriber does not receive data from MDB

    The mapMessage.getString() is allways null in the following run method of a Thread. The same in the MDB direct outputs data.
    public void run() {
         while (true) {
              try{
                   System.out.println("run...");
                   Message msg = getSubscriber().receive(0);
                   MapMessage mapMessage = (MapMessage) msg;
                   String rssfeed = mapMessage.getString("rssfeed");
                   this.applet.rssfeed = rssfeed;
                   System.out.println("feed: " + rssfeed);
              }catch(Exception e){
                   e.printStackTrace();
              applet.repaint();
    }There is a Warning-message if JBoss4 starts:
    16:13:00,379 WARN [JMSContainerInvoker] Could not find the topic destination-jndi-name=topic/RssTopic
    The JBoss Console entries are like:
    jndiName=local/RssMessageBean@12974590,plugin=pool,service=EJB
    jndiName=local/RssMessageBean@12974590,service=EJB
    Don't know if the MDB is registered correct?
    EJB
    <message-driven>
          <ejb-name>RssMessageBean</ejb-name>
          <ejb-class>ejb.RssMessageBean</ejb-class>
          <transaction-type>Container</transaction-type>
          <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
          <message-driven-destination>
            <destination-type>javax.jms.Topic</destination-type>
            <subscription-durability>NonDurable</subscription-durability>
          </message-driven-destination>        
    </message-driven>JBoss XML
    <message-driven>
          <ejb-name>RssMessageBean</ejb-name>
          <configuration-name>Standard Message Driven Bean</configuration-name>
          <destination-jndi-name>topic/RssTopic</destination-jndi-name>
    </message-driven>

    Hi,
    I believe you have a service request open about this issue as well.  I just wanted to let you know I am currently working on the issue and will report back anything additional information.
    Regards,
    Greg H.
    Applications Engineer
    National Instruments

  • Server Socket does not read data input stream

    Hi all,
    I am very newbie to Java Network programming with sockets and multi-threading.
    But I am obliged to develop a chat system written in Applets which can be placed on the website and used by visitors who come to my website.
    In order to understand this, I have tested a basic web chat program I downloaded from the Internet which use sockets and multi-threadings. The program work fine, no bugs at all at both compilation and run time. I noticed that all three streams for Client side (i.e. first one is input stream used receiving data from User; the second one is socket input stream used for receiving data from Server socket, and the third is socket output stream used for writing data to server socket) were established. And the same, two socket streams (input & output) for Server side were also connected when running program giving right port number and IP address of the server.
    The problem is both server and client sockets do not read data using the following stream classes:
    1. DataStreamInput: I use input.readUTF() method
    2. or BufferedReader: I use input.readLine() method
    The example of the codes are below:
    private BufferedReader input = null;
    private PrintWriter output = null;
    private Socket socket = null;
    public void open() throws IOException
    {  input = new BufferedReader(new
    InputStreamReader(socket.getInputStream()));
    System.out.println("Server socket input stream was created, and");
    output = new PrintWriter(socket.getOutputStream());
    System.out.println("Server socket output stream was created");
    public void run()
    {  System.out.println("Server Thread " + clientPort + " running.");
    while (true)
    {  try
    System.out.println("Server is reading data from Client, wait...");
    String fromClient = input.readLine();
    System.out.println("Server received a message on " + clientPort + ".");
    catch(IOException ioe)
    {  System.out.println(clientPort + " ERROR reading: " + ioe.getMessage());
    server.remove(clientPort);
    stop();
    The problem is at the line: String fromClient = input.readLine(); in the run() method? What is wrong with the codes above?
    Note: I also try to use original codes which use readUTF() method in DataStreamInput class instead using readLine() in BufferedReader. Both methods dont read data from inputstream socket?
    I very appreciate any help/advice from experienced developers.
    Best regards

    Hi,
    Yes. The readLine() method hangs! After the test, the execuation of the program is stopped at the line of readLine() method; it does not pass it?
    There is no problem with writing to Server socket. After the test, the program pass through flush() method. Here is the code for writing to sever socket within ChatClient (client side socket) class:
    private BufferedReader input = null;
    private PrintWriter           output = null;
    public ChatClient(String serverName, int serverPort)
    {  System.out.println("Establishing connection. Please wait ...");
    try
    {  socket = new Socket(serverName, serverPort);
    System.out.println("Connected: " + socket);
    start();
    catch(UnknownHostException uhe)
    {  System.out.println("Host unknown: " + uhe.getMessage()); }
    catch(IOException ioe)
    {  System.out.println("Unexpected exception: " + ioe.getMessage()); }
    public void start() throws IOException
    {  input   = new BufferedReader (new
                             InputStreamReader(System.in));
    System.out.println("Client User input stream was created,");
    output = new PrintWriter(socket.getOutputStream());
    System.out.println("Client Socket output stream was established, and");
    if (thread == null)
    {  client = new ChatClientThread(this, socket);
    thread = new Thread(this);
    thread.start();
    public void run()
         while (thread != null) {
         String fromUser;
              try{
                   while((fromUser = input.readLine())!= null)
                   System.out.println("Client wasreading a data from User, and");
    output.println(fromUser);
         output.flush();
         System.out.println("Client has written a data to Server");
    catch(IOException ioe)
    {  System.out.println("Sending to server error: " + ioe.getMessage());
    stop();
    etc.
    Here is a piece of codes for reading data from the Client Socket in the ChatServer Class (Server Side socket):
    public void run()
    {  System.out.println("Server Thread " + clientPort + " running.");
    while (true)
    {  try
    {  //server.handle(clientPort, input.readLine());
    System.out.println("Server is reading data from Client, wait...");
    String fromUser = input.readLine();
    //while((fromUser = input.readLine()) != null)
         System.out.println("Server received a message on " + clientPort + ".");
    catch(IOException ioe)
    {  System.out.println(clientPort + " ERROR reading: " + ioe.getMessage());
    server.remove(clientPort);
    stop();
    etc. Please advice why the readLine() method hangs; does not read data from the input stream received from the CLIENT?

  • PMI Problem (End-to-End Monitor does not show data)

    (End-to-End Monitor does not show data)
    As I know that XML Messages Alerts T-code: SXMB_NOMI shows all alerts including errors as well I put date Range: 01-01-2008 to 01-08-2008 and filters for "Errors" system does show more then 300 errors
    But problem in RWB - End-to-End Monitoring, when I click on display and date range 01-01-2008 to 01-08-2008 its give me graphical overview in right of window
    and shows summary:
    Errors:                     0  Average
    Open                  904  Maximum
    Successfully Completed         0  Minimum
    Overall:                  904
    I thing End-to-End Monitor doesn't get data from PMI...
    why does't show any errors, which is shows in SXMB_MONI
    Please tell me how to resolve that problem
    Thanks in Advanced
    Edited by: issue2008 issue on Aug 26, 2008 12:02 PM

    Hi,
    A destination pointing to the Integration Server is created on the J2EE engine to collect the data for the end-to-end monitoring. If this destination is incorrect or if there are several clients in the system of the integration server, the data may be sent to the incorrect client.
    This might be a reason so you can  implement the correction of the destination in a manual way as follows:
    Open the J2EE visual administrator.
    Select the Destination service.
    Select the HTTP "pmistore" destination.
    Enter the URL for the ICF service spi_gate of the Integration Server in the following form "http://<host>:<port>/sap/bc/spi_gate?sap-client=<xxx>", where 'host' denotes the host of the integration server, 'port' denotes the HTTP port, and xxx is the client of the Integration Server.
    Thanks,
    Hemant

  • End Routine issue

    I am adding new records to the result_package in the end routine.
    How will I populate the SID and datapakid values to my new records?
    I am not able to code these fields in the end routine as they are not available and they get filled dynamically.
    Are there any system fields that hold SID value and data package value?
    Please help.
    Thanks.

    I have added move-corresponding code from result_package and it has solved my issue.
    Thanks.

  • CFGRID does not show data (CF9.0)

    Under development server, CFGRID show data , all is fine , correct. (CF9.0  version dev)
    Under production server , CFGRID does not show data, only a grey line (like a HR).
    How to debug this ?
    Thanks,

    Kindly check below to troubleshoot this issue:-
    Is there any difference between your CF production & developement server setting summary?
    Is there any browser script level difference between your both CF server?
    Are you getting any relevant logging error in your CF server application.log & exception.log?
    Run a very simple cfgrid running app to check, either getting issue with that too or not.

  • Aperture was not able to adjust the date and time of the master file "2008-06-22 at 14-41-14.jpg" because it has a format that does not permit date modification.

    I can't seem to find a way to update the date/time of a master file. There is a format issue but I can't seem to figure out how to correct it.
    Aperture was not able to adjust the date and time of the master file “2008-06-22 at 14-41-14.jpg” because it has a format that does not permit date modification.

    Can you post an ipconfig /all from the server and the DC?
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • Viewset does not have data passed from GenIL

    Hi All,
    We have a custom component in which data is not getting passed from a ViewSet to the Overview page. The details of the issue are given below:
    There is a detail view zsoEF and a table view zsoChild. These 2 views are housed in a viewset zsoVS. This view set has an event Eh_OnBack which requires the data from views zsoEF and zsoChild to be passed to overview view zsoOV.
    We recently upgraded to CRM 7.0. After the upgrade, the values entered on the views zsoEF and zsoChild are processed in the ZGenIL. The context nodes and the custom controllers are filled correctly with the screen values and some auto added data based on validations..
    When we click on the Back button, then Eh_OnBack does not have data in the Custom Controller. I am not able to pin point the reason for this missing data in the Back event. From the way i understand, when we do data binding in the views, we don't have to do that in ViewSet. Has there been any change in this design in CRM 7.0?
    I would like to know if there is any workaround for this issue.
    Thanks,
    Rini

    Hi Rini,
        Did you try to bind the context nodes with the component controller. Can give it a try whether it resolves the problem. Any way it is difficult to say anything as we don't have an idea what exactly you did in the component. Lets take it forward. In the mean time have a look in the below link.
    History navigation and context initialization calls - CRM - SCN Wiki
    Thanks,
    Javed.

  • 0EC_PCA_3 does not return data in RSA3 if the target system is entered

    Hello all,
    Datasource 0EC_PCA_3 is not transferring data to the BW 7.0 system. In the ECC 6.0 system datasource 0EC_PCA_3 does not return data in RSA3 if the target system (BWDCLNT100) is entered in the selection fields. When omitting the target system all expected data is returned.
    Datasource 0EC_PCA_1 works fine for the same target system.
    There is one thread dealing with the same problem but the person does not provide the solution he found.
    Does anyone know what the issue is?
    Regards and thanks,
    József.

    The problem was solved by removing the datasource in both BW and R/3 and activating everything from scratch again. We didn't find out what was the cause of the problem, but at least it is working now.

  • Output does not match data sheet as only 1 report was available for selecti

    Output does not match data sheet as only 1 report was available for selection in hyperion planning.Can anyone help me in resolving this issues.Its very urgent.

    You will need to provide much more detailed information before anybody can help.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • When typing the curser does not move when typing so when typing the mouse will move the curser and/or delete becase it highlites everything - very frustrating

    my mouse does not move or disappear when I am typing in my rogers yahoo account - the curser does. Since the mouse does not move, if I accidently hit the mouse pad or sometimes on its own it takes over and moves the typing to wherever the mouse is located. How do I correct this issue. I have Windows &

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • HT1338 Mountain Lion stops downloading at 41.3 mb's. Shows calculating and does not move on!

    Trying to download Mountain Lion on a Mac mini and it is stopping at 41.3 Mb's. It shows "calculating" but does not move on beyond that stage! Version 10.6.8 is the current OS... Any suggestions?

    I am having difficulties too!. I have found a way to push it along but don't know if in the end this will eventually succeed and I don't know why I am having to do this.
    For what it is worth.
    But going to the app LaunchPad and clicking on the in progress OS X Mountain Lion download and pausing it momentarily and then clicking it again, I have gotten my download to keep moving along. Again I don't know why and I have had to do this several time to get the download to progress to 3.11GB out of the total 4.37GB. So I'm three quarter of the way thru and about to do the process again to get the apparently stalled download going again.....
    OK. It is again moving along..... now to 3.27GB
    Too me it has the symptoms of the download process finding it has a bad package and repeatly trying again until it stops trying. At that point is just stops. When one kicks it by doing the LaunchPad stop and go, I think it checks finds a problem and restarts the download of the problem packets .... that's my theory....
    My download is now up to 3.79 out of 4.27GB.
    I have been messing with this on three computers in my network for a couple weeks..... This is the furthest I have gotten..... Perhaps I will succeed today....
    BTW - It appears to have stop again at 3.79.... I;m going to play the stop/go game in Launchpad....
    After about aminute it has started downloading again.....
    Now 3.80GB.....
    Perhaps Apple should look more carefully at it's caching servers...... I think they are either timing out connections or somehow making the past never fail Apple Downloaded look pretty advanced compared to this stop and go model....
    I am now up to 4.03 and downloading with about 10 minutes to go....
    Message was edited by: Terry Fundak

Maybe you are looking for

  • Regarding joins in  OBIEE tutorial in Oracle website " COSTS " no key

    OBIEE training material in oracle website ..while . Build Sample Oracle BI Enterprise Edition Reports and Dashboards http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t5 in the documenatation while " *** Load a Prebuilt Rep

  • Error in activation of openhub services

    Dear Experts, I have issue while creating open hub services in SAP BI 7.0. when i am trying to create openhub services to extract data from BI to database table the following error pops up You have selected more than 16 key fields i am selecting tech

  • When syncing with itunes, says that it can't find the required file for syncing with iphoto

    when i sync my iphone to itunes, when it comes to the part of syncing the photos from iphoto it says that it cant find the required file. so when i tick off the sync with iphoto and i sync again with itunes, it doesn't give this problem so it has to

  • IPhone development on Tiger

    i have iMac with Tiger(upgraded to 10.4.11). i want to start development on iPhone.but when i am installing the iPhone SDK(http://developer.apple.com/iphone/program) it says "Mac OS X 10.5 was not found.".Can anyone tell me how can i upgrade my iMac

  • 800 My Apple hang ups?

    I have tried calling apple store, 800MYAPPLE, did the IVR, and after about 2.5 minutes of holding, the call suddenly hangs up. Did it again, same thing. Are they hanging up on customers who are upset about their iPhones? I then tried it on a landline