How will i get Netorder value against contract

Hi,
I have loaded 2lis_02_hdr, itm, scl datasources in to customized cube which contains Purchasing document(EBELN), Item(EBELP), Doctype(BSART), Contract(KONNR), Item(KTPNR), Netordervalue(NETWR)
Here my requirment is I want to cummulate Netordervalue against Contract no.
In query level if I selected Purchasing doc with doctype=WK(it means it is value Contract), it is not showing any Ordervalue against Contract.
How will acheive this to get Cumulative order value against Contract.
Please share your suggestions to acheive this requirement.
For clarifications please revert back.
Thanks in Advance
   sudhir.

Hi,
For the above requirment I have coded a program in Endroutine but it is not populating cummulative Order value against Contract.
DATA:
      WA_ty_t_TG_1        TYPE  tys_TG_1.
data: netsum type char15.
types:begin of ty_net,
    netsum type /BI0/OINET_PO_VAL,
    V_EBELN TYPE /BI0/OIOI_EBELN,
    end of ty_net.
    data:t_net type standard table of ty_net .
    data:wa_net type ty_net.
SORT RESULT_PACKAGE BY CONTRACT.
<b>loop at RESULT_PACKAGE INTO WA_ty_t_TG_1.</b>
      WA_NET-V_EBELN = <RESULT_FIELDS>-CONTRACT.
      AT END OF CONTRACT.
        netsum  = WA_ty_t_TG_1-NET_PO_VAL + NETSUM.
      ENDAT.
      WA_NET-netsum = NETSUM.
      APPEND WA_NET TO T_NET.
      CLEAR:T_NET,NETSUM.
ENDLOOP.
    loop at RESULT_PACKAGE assigning <RESULT_FIELDS> .
        READ TABLE T_NET INTO WA_NET WITH KEY
                              V_EBELN = <RESULT_FIELDS>-CONTRACT
        <RESULT_FIELDS>-/BIC/YNET_VAL = NETSUM.
        CLEAR: WA_NET-NETSUM.
    endloop.
    <RESULT_FIELDS>-/BIC/YNET_VAL = netsum.
    CLEAR:NETSUM,<RESULT_FIELDS>-/BIC/YNET_VAL.
    ENDLOOP.
I have coded above one..let me know what mistake I have done.in the bolded loop I have given INTO instead of Assigning, because I need all records which assigns to WorkArea, but while executing DTP its leading to shortdump.if I replace Assigning statement,its working fine. but zero values in output( I think wrong in logic part)
Let me know the brief coding part if I am wrongly coded.
Thanks in Advance
sudhir.

Similar Messages

  • PO Order value against Contract

    Hi,
    I am loading data from 2lis_02_hdr, 2lis_02_itm, 2lis_02_scl datasources in to cusotmized cube.
    In the ITM datasource we have fields EBELN(PO Number), KONNR(Agreement number), and we have a filed NETWR(Net Order value) against the PO number.
    Here requirement is they want report which contain Target value(KTWRT), Order Value(NETWR) against Agreement no(KONNR).
    In the customized cube I consider Agreement and Agreement Item fileds as per requirment
    I have created query with the following navigations:
    I restricted PO number with Doc type=WK (for Agrement number)
    selcted PO number in Rows
    selected Target value and Order value in columns.
    In Query Output it is not showing Order value against the Agreement number,
    As we know One Agrement number can have more than One PO's but in datasource level he maintains Order value against PO number.
    So How will I get the Order value against Aggrement number..what calculations are required at what level..if routines required let me know the code in brief
    Thanks in Advance
    I will assign points for each reply..please help out this problem immediately..

    hi,
    Wht exactly do you need??
    yes, once you use del. comp. indicator and then you post the doc. later, the qty remains same it doesn't get updated bcoz by default system updates it in PO History...
    Why do you want same with GR?? Why you wanna keep GR histories?? it'll increase complications and will create problem while invoicing and that the reason sap has not provided it...
    Regards
    Priyanka.P

  • How do I get parameter values for xsql:dml

    Hi -
    If I have an xml file like:
    <stuff>
    <arecord>
    <item1> some data </item1>
    <item2> more data </item2>
    </arecord>
    ... more arecords ...
    </stuff>
    and I want to run an xsql script against it sending every "arecord" to a stored procedure by:
    <xsql:dml>
    begin
    my_package.do_something(a_parm, a_parm2)
    end;
    </xsql>
    how do I get the values in the <item1> and <item2> tags for every record into a_parm and a_parm2 in the call to do_something?
    Thanks in advance,
    -- ST

    You need to post your XML file to an XSQL page that uses the:
    <xsql:insert-request>
    action element. You'll need to provide an associated XSLT stylesheet to transform your XML input document into the canonical XML format for the target table.
    Then, you'll get each <arecord> (transformed into <ROW>) inserted into the columns of the target table.
    For example, if your file looks like:
    <stuff>
    <arecord>
    <item1> some data </item1>
    <item2> more data </item2>
    </arecord>
    ... more arecords ...
    </stuff>and your table looks like:
    ITEM1 VARCHAR2
    ITEM2 VARCHAR2Then you'll need to provide a stylesheet that transforms your XML input into the format:
    <ROWSET>
    <ROW>
    <item1>some data</item1>
    <item2>more data</item2>
    </ROW>
    </ROWSET>and then the data will be inserted.
    If the target table is actually a view, then you can create an INSTEAD OF INSERT trigger on your view to do additional custom processing for each row.
    My "Building Oracle XML Applications" book has examples of doing all of this.
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Please, How do i get the values from a h:selectManyCheckbox ?

    How do i get the values (selected or not) of a <h:selectManyCheckbox> tag and show them .For instance
    i have the folowing options :
    <h:selectManyCheckbox
                           id="cartas"
                       layout="pageDirection"
                        value="#{store.cartas}">
          <f:selectItems
                        value="#{cartas}"/>
        </h:selectManyCheckbox>
        <h:message styleClass="validationMessage" for="newsletters"/>with my faces-config.xml:
    <managed-bean>
        <description></description>
        <managed-bean-name>cartas</managed-bean-name>
        <managed-bean-class>java.util.ArrayList</managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
        <list-entries>
          <value-class>javax.faces.model.SelectItem</value-class>
          <value>#{cartas0}</value>
          <value>#{cartas1}</value>
          <value>#{cartas2}</value>
          <value>#{cartas3}</value>
        </list-entries>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas0</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>Semanal</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>200</value>
        </managed-property>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas1</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>As bruxas</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>201</value>
        </managed-property>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas2</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>Exercise</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>202</value>
        </managed-property>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas3</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>Gusman Park</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>203</value>
        </managed-property>
      </managed-bean>Thanks for the atention!! All the best!!

    Hi,
    In your backing bean you will need to add a new variable to bind your control to, I think this variable needs to be of teh "HtmlSelectManyCheckbox" type. The on your jsp page you can add binding="#{myBean.myVariable}".
    When you want to get the values of the selectMany in your backing bean, you can call the getSelectedValues() function on your HtmlSelectManyCheckbox variable.
    in backing bean:
    private HtmlSelectManyCheckbox hsmc;
    public HtmlSelectManyCheckbox getHsmc(){
        return hsmc;
    public void setHsmc(HtmlSelectManyCheckbox hsmc){
        this.hsmc = hsmc;
    public void someFunction(){
       Object[] obs = hsmc.getSelectedValues();
    }On jsp page:
    <h:selectManyCheckbox
                           id="cartas"
                       layout="pageDirection"
                        value="#{store.cartas}"
                         binding="#(myBean.hsmc}">
          <f:selectItems
                        value="#{cartas}"/>
        </h:selectManyCheckbox>

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • How do i get the value  of that field

    in JSP i have a field like below..
    <input type="hidden" id="grpId<%=Index%>" value="<bean:write name='GrpList' property='groupId'/>"/>
    In Action class , how do i get the value of that field (i.e id) ?
    String value =reques.getparameter (//what ??);

    i dont want to change the jsp.
    concern is , as the name of the id is dynamic .....so can i get the value in the Action class ?
    is there any trick exists ?
    I will try not to change any jsp code but will do changes in Action class
    Message was edited by:
    Unknown_Citizen

  • How can I get out of my contract?

    Can someone please let me know how I can get out of my contract?  I am very unhappy with Verizon & will be able to receive a better deal with another carrier.  I have called the customer service department about this issue & I am told there is nothing they can do for me, I have been a Verizon customer for about 10 years. Thanks

    Sad to say but you won't be able to get out of your contract. They don't care you been with them 10 years either. We have been with them for around 6 years now and our third contract with them is up next month, so we were looking to upgrade our phones and wanted to see if we would be able to get a discount since we didn't want to pay almost 200 a month for 3 smartphones. Ofcourse they try to tell you that the share everything plan with 1gb of data for 170 a month is a great deal already, but fail to tell you that after the taxes and fees it's more like 200. After the run around with that, we talked to someone else in an online chat and he told us that the price for the share everything plan with 1gb of share data was 140 a month, when I asked him to show that price to me here online ( of course he couldn't ) instead came back saying well how does  120 a month sound?......how was he going to give it to us for 120 when he couldn't even show online where to find the 140 a month price. Seems like they don't care and you get a different story every time you talk to someone. Our contract is up next month and we will be more then happy to be free from verizon. The only regret we have is that we didn't print the copy of that online chat out showing we were given a price of 120 and should have went with that.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • I tried to download a movie on my iPod touch but due to limited space, it did not download.  Then, I checked my credit card online, and I found the money was already taken.  How will I get it to download on another device with the same account?

    I tried to download a movie on my iPod touch but due to limited space, it did not download.  Then, I checked my credit card online, and I found the money was already taken.  How will I get it to download on another device with the same account? Also, I was wondering why they took my money even when it did not finish downloading let alone get downloaded?

    Welcome to the Apple Community.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option which is revealed in the iTunes app on your iOS device by tapping the more button at the bottom of the screen.

  • How can I get command values from a VI executed by reference ? NEWBIE

    Hi,
    I'm running a sub-vi in a "Secondary Front Face" (excuse for the
    translation if not correct, I'm working on a French version). In order
    to run this VI, I pass a reference. All is working fine but I don't
    know how can I get the values entered by the user in this VI ?
    Actually I run a main VI wich contains a "Secondary Front Face" (this
    SFF is contained in a tabbed pane). In my diagramm, I pass a reference
    to another VI (by the name of the file *.vi). If my user enter a word
    in a text field, I would like to be able to get it in my main app.
    Thanks for your help.

    Hello,
    You might take a look at the following tutorial for more information about calling a VI by reference. It's got some great visuals and examples.
    Tutorial: Calling a VI by Reference
    You might also consider just calling the secondary VI as a simple subVI, if you can spare the memory space when loading the main application, as this is the easiest way to input and output VI values.
    I hope this helps! Please let me know if I can be of any further assistance.
    Liz F
    National Instruments

  • How do I get the values from a form?

    How do I get the values from a form?

    You can try using request method..
    request.getParameter("yourFormInputName");
    Try this.

  • How do i get the value in a variable that I don't know the name of til run

    I have a record type( pr_team) defined in a package - anchored to a table.
    I want to be able to go through each of the fields in it one at a time. I get the list of fields from the table definition from cursor as follows
    CURSOR c_fields IS
    SELECT column_name
    FROM all_tab_cols
    WHERE owner = 'CDS'
    AND table_name = 'TEAM';
    r_fields c_fields%ROWTYPE;
    So first returned value is team_id
    how can I get this value when all I know the field name is 'pr_team.' || r_fields.column_name
    cheers
    Simon

    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> CREATE OR REPLACE PACKAGE package_name
      2  AS
      3     r_emp emp%ROWTYPE;
      4  END package_name;
      5  /
    Package created.
    SQL> SET SERVEROUTPUT ON SIZE UNLIMITED;
    SQL> DECLARE
      2     v_empno emp.empno%TYPE;
      3     v_ename emp.ename%TYPE;
      4  BEGIN
      5     SELECT *
      6     INTO   package_name.r_emp
      7     FROM   emp
      8     WHERE  ROWNUM = 1;
      9
    10     EXECUTE IMMEDIATE
    11        'BEGIN ' ||
    12        '   :v_empno := package_name.r_emp.empno; ' ||
    13        '   :v_ename := package_name.r_emp.ename; ' ||
    14        'END;'
    15        USING OUT v_empno, OUT v_ename;
    16
    17     DBMS_OUTPUT.PUT_LINE ('v_empno => ' || v_empno);
    18     DBMS_OUTPUT.PUT_LINE ('v_ename => ' || v_ename);
    19  END;
    20  /
    v_empno => 7369
    v_ename => SMITH
    PL/SQL procedure successfully completed.
    SQL>

  • How can I get the value of "Warehose" column in a form

    How can I get the value of "Warehouse" column in the form below (I mean what table that contain this value):
    Production Supervisor >> Batches >> (Button) Material Details >> (Button) Line Allocations
    Well, for more clearly! My problem is I must have the Unit Cost of Items, so I've got it in the cm_cmpt_dtl (table), but if I want to, I must create a relation that require 2 filed, they're Item_ID and Whse_Code.
    There's no problem with Item_ID, but Whse_Code seem to be the Mission Impossible (hix, I hate that film!!!!)
    I wonder if It was right to post this topic here. But anyway I just post my question here, hope I could get some help.

    wow, many, many, many.... and many thanks!
    Just add a tiny modify to check out the Batch_type
    doc_id = (select batch_id from gme_batch_header where batch_no='&batch_number' and batch_type = 0)
    Because the batch_no can be duplicated as we also create Batch and Filrm Planned Order.
    Many thanks for your support!
    P/S: Sorry for my terrible English :P

  • How to add get Day value in a Date object?

    Hi,
    I am writing a sql statement that has two date values. One I am getting it from the database. The format in the database is MM/DD/YYYY. My first question is how do I convert the format into the java date format, YYYY-MM-DD. The second question is I need to find out what the day is and add 1 to it. How do I get Day value in a Date object?
    Thanks.

    Look at "SimpleDateFormat" and "parse" in the archives.

  • How do you get the value of a selected list item?

    I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing wrong.
    Thanks!

    Hi,
    You can use an WHEN-LIST-CHANGED trigger, attached to the list-item itself. And, in this trigger, you can use the name of the item to refer its value.
    For example:
    :block_name.list_item_name
    John

Maybe you are looking for

  • How to use the select option to get the multiple bom explosion

    hi friends,           i have completed the bom exp using parameters to get one material input,but i need to adopt select option to give from and to materials i ll gives from and to materials with description and bom deails i here gave the coding also

  • How to enforce a login screen when running a Web Dynpro app?

    Hello, In Web Dynpro for Java there is a way to set authentication property to true and by that enforcing a login screen in case someone is browsing this application outside of an authenticated context (for example, the portal). My question is: How d

  • Data Transfer to NEW computer--how to??

    Hello all!! Received just today a new Powerbook and was about to start the transfer of data and other "stuff" from my old computer (800 MHz flat-panel iMac) to the new computer. With regard to APPLICATIONS, as I have been told before, I will be insta

  • My iPhone 5 earpiece is not working

    my iPhone 5 earpiece is not working.. i can only hear through my speaker or if i plug in my headphones...does anyone else have this problem and can anyone help me??

  • Acrobat freezes when clicking on the toolbar.

    Not sure if this is the right part to post this, didn't see a troubleshooting section.  But whenever I click on the toolbar buttons in Acrobat X, it freezes on me.  I have to do ctrl+alt+del and go to the task manager to be able to use it again.  I h