Only on value field in COPA gets values from SD

Hi,
I created two value fields for COPA. I assigned one of them to the condition VPRS (a cost) which works properly. The other condition, assigned, VKP0 doesnt appear in the COPA-document. We are using record type F.
But when I ran an flow analysis I can see that the value from VKP0 has flown to COPA in record type A?
I will assign point directly to a working solution.
Best regards
Carl-Johan

HI,
Billing document value flow is as per KE4I mapping to value fields.
There are some value flow analysis tools under CO-PA to check your settings with respect to value flows. Use transaction KE4ST (Simulate billing document transfer -> Value flow (<Ctrl +F7>) to check where things went wrong.
Hope this helps.

Similar Messages

  • Can we only year value from "0FISCPER" (Fiscal Year/Period) at BEx level

    Hi all,
    I have two time characteristics "0FISCYEAR" (Fiscal Year) and "0FISCPER" (Fiscal Year/Period). In DSO initially "0FISCPER" was there and later request came to add "0FISCYEAR". Now data in char. "0FISCPER" is since beginning (from 2000) and for char. "0FISCYEAR" is since 2010.
    User's requirement is to create a report which will display data Year wise.
    My issue is if i am using "0FISCYEAR" then user is not able to see year instead it shows #. I dont want to do data reloading as this is GL data and hold huge no. of records in it.
    So my concern is : Is there any way to use only year value from "0FISCPER" (Fiscal Year/Period) at BEx level? Is there any setting which I can apply and get the same value of Year as I can see from "0FISCYEAR". Please assist me on this.
    Thanks,
    Arvind

    Hi Arvind,
    Your requirement can be realised through virtual characteristics.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04be008-86cc-2c10-4bad-e517ea3f4c80?QuickLink=index&…
    however, I would still suggest to reload the data. you will only need to reload years before 2010 and you can do this in phases.
    Hope this helps.
    -Swati.

  • How to get only positive value from 0DEB_CRE_LC

    Hi to all,
    I am doing ageing for AR.(0FI_AR_4)
    In DSO or CUBE i need to diaply only positive value for 0DEB_CRE_LC accodring to every customer customer.
    only NET DEBIT VALUE should display.
    example1:
                                  0CREDIT_LC     0DEBIT_LC      0DEB_CRE_LC
    CUSTOMER1      100                      0.00                   100 -
    CUSTOMER1      0.00                200                   200
    CUSTOMER1      0.00                200                   200
                                                                                 total of 0DEB_CRE_LC =  300                    "  only this value should be displayed at DSO or CUBE
    example2:
                                0CREDIT_LC     0DEBIT_LC      0DEB_CRE_LC
    CUSTOMER2        100                       0                      100-
    CUSTOMER2        0                          0                      0
    CUSTOMER2       0                            0                     0
                                                                               total of 0DEB_CRE_LC =  100-                       " this value should be filter out at DSO or CUBE
    example3:
                              0CREDIT_LC     0DEBIT_LC      0DEB_CRE_LC
    CUSTOMER3      200                                           200-         
    CUSTOMER3     0                           100               100
                                                                            toatl  0f 0DEB_CRE_LC = 100-                       " this value should be filter out at DSO or CUBE level
    So when i total at 0DEB_CRE_LC at DSO or CUBE level  only example1 value should displayed and example2 and example3 sould be filter out at DSO or CUBE level.
    please can any one tell me the logic, what should i do to achieve this result.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Feb 3, 2011 4:14 PM
    Edited by: pavneet rana on Feb 3, 2011 4:18 PM
    Edited by: pavneet rana on Feb 3, 2011 4:20 PM

    Thanks for reply,
    i have created start routine between 0fi_ar_4 to DSO.
    and used your code.
    but still data at DSO is coming incorrect.
           CREDIT                    DEBIT              0DEB_CRE_LC
    C1   694,724.4               0.00     694,724.46-
    C1       675,000.0              0.00     675,000.00-
    C1        0.00                    864,333.00     864,333.00
                                                                TOTAL =   505,391.46-  for 0DEB_CRE_LC
    but i create end routine at DSO .
               CREDIT      DEBIT          0DEB_CRE_LC
    C1       0                  100               100
    C1       0                      50             50
                                                 TOTAL = 150 for 0DEB_CRE_LC
    but all credit amount for all customer is 0 and not include in 0DEB_CRE_LC, so still result is incorrect.
    Please give me some solution , so i can achieve result.
    I think this can be done by Routine itself.
    i have writen routine like that.
    DATA: WA LIKE LINE OF RESULT_PACKAGE.
    DATA: l_v_customer type /BI0/OICUSTOMER.
    DATA: l_v_total TYPE /BI0/OIDEB_CRE_LC.
        Sort RESULT_PACKAGE by CUSTOMER .
        l_v_total = 0.
         loop at RESULT_PACKAGE INTO WA.
        if sy-tabix = 1.
         l_v_customer = WA-CUSTOMER.
    endif.
    if l_v_customer = WA-CUSTOMER.
    l_v_total = l_v_total + wa-DEB_CRE_LC.
    else.
    if l_v_total LT '0'.
            Delete RESULT_PACKAGE where CUSTOMER = wa-CUSTOMER.
          endif.
    l_v_customer = wA-CUSTOMER.
    l_v_total = wa-DEB_CRE_LC.
    endif.
          endloop.
    please rectified is in correct.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Feb 4, 2011 10:32 AM

  • Segment fields do not get populated from second IDoc onwards.

    This is a xml file to idoc mapping scenario.
    Source XML Structure.                                                                               
    <MT_message type> ( Occurs 1 )                                                     
         <session header> ( Occurs 1)                                                                               
    <session header/>
          < Header >   ( Occurs 1 to unbounded )
                < Document Header > ( Occurs 1 )
                      Currency
                      <Line Item> (occurs 1 ....unbounded)
                      <Line Item/>
                      <Line Item> (occurs 1 ....unbounded)
                       <Line Item/>
                < Document Header/>
          < Header/>
          < Header >   ( Occurs 1 to unbounded)
                < Document Header > ( Occurs 1 )
                      Currency
                      <Line Item> (occurs 1 ....unbounded)
                      <Line Item/>
                      <Line Item> (occurs 1 ....unbounded)
                       <Line Item/>
                < Document Header/>
          < Header/ >
    < MT_messagetype/>
    Each Header tag creates an IDoc of the basic type acc_documnet01.
    This IDoc has a segment E1BPACCR09 which is repeated for every ocurrence of line item in the header.
    Lineitems -
    > E1BPACCR09.
    The currency field in this segment comes from the currency field in the documnet header tag of the source xml structure.All other fields are mapped from Line items tag of XML source structure.
    When i test the mapping,with the exact source structure as above,
    2 IDocs are output, (for two header tags)
    First IDoc -: For two line items in XML source , 2 E1BPACCR09 are created in IDoc and the currncey field is mapped correctly.
    Second IDoc-: For two line items in XML source, 2 E1BPACCR09 are created in IDoc but the currncey field is not mapped at all neither does the currency fieldname appear with null value in the output IDoc.
    Can someone help me with this issue?
    Himani
    Edited by: Himani Pandey on Jul 10, 2008 5:10 PM

    Hey
    You need to use copyValue standard function,to repeat the source side to occur as many times as receiver side.else it will populate only the first occurence not after that
    Thanx
    Aamir

  • Overpaying for full version when only need Photographers version? Never get response from Adobe

    Paying for full version since it started - every month I ask why I'm overpaying as only use Lightroom and Photoshop - never get an answer.
    How can you communicate with Adobe?

    Hi RoyMorris
    Contact options are available here: Contact Customer Care
    We can cancel your existing plan and then you can sign up for the Creative Cloud Photography Plan if that is better suited to your needs.
    Let me know if you want me to process the cancellation - you will still have full access until 24th September and can then sign up for the new plan.
    Kind regards
    Bev

  • ONLY ONE FIELD DOES NOT GET PREPOPULATED FROM THE DATABASE

    I would really, really appreciate if someone can comment or suggest something that would help with the resolution to the issue I am currently experiencing.
    Simple sample form that explains the issue can be accessed from the link below.
    How to test the form:
    Open the form.
    Click on the yellow button to add new Task.
    The problem is with Additional Product fields ( in blue). You can add as many of them as you want by clicking on the Red button with the +. Add some data and uploade in database. When you download it from the database, data will come back fine for all of them, except for the first one.
    Any ideas or help would be greatly appreciated.
    https://acrobat.com/#d=2vFWOlm56FmrC4owzpfHew 
    The code is behind the Red button with the +. Very  simple. Perhaps is the indexing issue with the database. I do not know enough about it, to be able to send any suggestion to the DB guy.
    According to the DB guy, data uploades without issue. It is the blank field when the form with data is downoloaded.

    It might be related to http://forum.java.sun.com/thread.jspa?threadID=583466&messageID=2988344

  • Get positive values from sql

    I have balance column and i need to pick only positive values from sql query.
    Balance
    200
    -20
    -220
    100
    Expected
    Balance
    200
    100

    Hi Frank,
    Sorry i think i am not clear.
    below is my function get_total.
    one billing_key is nothing but one billing period-each period has 6 programkeys.
    by following function i will get 6 records by passing 6 programkeys and one biling key
    now i need to get over all balance of all periods per program. condition is i need to take only +ve amounts from the below function and sum it up
    expected out. i am just giving an example of output.
    actual
    programkey get_total
    a 100
    a -50
    a -50
    b 200
    c 300
    c -200
    d -100
    d -25
    d 400
    e 500
    e -10
    f 600
    f -200
    we are taking only +ve amounts from the above.
    How can i write a procedure or script to acheive program_key and balance as below.
    programkey balance
    a 100
    b 200
    c 300
    d 400
    e 500
    f 600
    create or replace FUNCTION GET_TOTAL (p_bill_key IN varchar2,
    p_prog_key IN varchar2) RETURN NUMBER AS
    l_total NUMBER;
    l_dum_bill NUMBER;
    p_count NUMBER:=0;
    BEGIN
    BEGIN
    SELECT count(*) into p_count
    FROM billing_adjust b where b.billing_key = p_bill_key ;
    if p_count < 1 then
    SELECT NVL(surch_amount,0) + NVL(adjust_amount,0)
    INTO l_total
    FROM mv_billing a, mv_prog_surch b
    WHERE a.billing_key = b.billing_key and
    a.billing_key = p_bill_key and
    b.program_key = p_prog_key;
    return l_total ;
    end if;
    SELECT NVL(surch_amount,0) + NVL(adjust_amount,0)
    INTO l_total
    FROM billing_adjust b, prog_surch_adjust c
    WHERE b.billing_adjust_key = c.billing_adjust_key and
    b.billing_key = p_bill_key and
    c.program_key = p_prog_key;
    return l_total;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    null;
    End;
    RETURN 0;
    END GET_TOTAL;
    This is what i have started writing to acheive expected output need help on this.
    Create or replace function balance(p_company_id) return number as
    v_total_due number:=0;
    v_total number:=0;
    CURSOR p_idn IS
    SELECT PROGRAM_KEY,PROGRAM_NAME FROM MV_PROGRAM_DICT where CURRENT_YN = 'Y' order by PROGRAM_NAME_ID;
    cursor p_billkey_idn is
    select biling_key from billing where company_id=p_company_id;
    Begin
    for v_idn in p_idn loop
    for v_billkey in p_billkey loop
    SELECT sum(get_total(v_billkey.billing_key,v_idn.program_key)) into balance
    FROM dual
    WHERE get_total(v_billkey.billing_key,v_idn.program_key)>0;
    END LOOP;
    END loop;

  • How can I get dataTable to display values from the java layer?

    When I use the dataTAble in my JSP page it will only display values from my java layer if the facets tag has it's name set to "header". Why is this happening?
    If I set it to "header" and I look at the page source it actually has created the correct number of rows but it doesn't put the values between the <td> tags? It see's the length of my list but it doesn't pick the values out of the list.
    <h:dataTable var="data" value="#{NameBean.test}" border="1">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <!-- <h:outputFormat styleClass="outputFormat" id="format1" value="#{NameBean.test}"></h:outputFormat>-->
    <h:outputText styleClass="outputText" value="#{NameBean.test}" style="" rendered="true" escape="false"/>
    </f:facet>
    </h:column>
    </h:dataTable>
    public List gettest()
              List li = new LinkedList();
              Object Developers[] = {"M@n00j", "sdsadas"};
              for( int i = 0; i < Developers.length; i++ )
                   li.add(Developers);
              return li;
    Thanks in advance to anyone that can help.
    -ls6v

    I've been able to get it working with some of those changes along with changes in the JSP. I think it's a setting or two in the JSP that'll allow the program to run correctly.
    I have a list and it's returned like what you suggested. A day or two ago I tried to move the outputtext outside of the facet tag but nothing would print, I know believe that's related to the following setting in the JSP:
    rows="0" in the <h:dataTAble tag
    Unfortunately the dataTAble isn't displaying the values correctly. It prints all of the values (Strings) in the list on each row and it make a new row for the number of items in the list.......... ???
    Here's what it's printing to the screen (the table):
    ===================
    == [asdasd], [sddfdfd] ==
    ===================
    ===================
    == [asdasd], [sddfdfd]==
    ===================
    what it should print:
    ============
    == [asdasd] ==
    ============
    ============
    == [sddfdfd] ==
    ============
    My code:
    public List gettest()
              List li = new ArrayList();
              li.add("asdasd");
              li.add("affffd");
              return li;
              }JSP
    <h:dataTable border="1" columnClasses="list-column-left"
        headerClass="list-header"
        rowClasses="list-row-odd"
        id="table"
        rows="0"
        value="#{NameBean.test}"
        var="data">
    <h:column>
    <f:facet name="header">
    <h:outputText value="test"/>
    </f:facet>
    <h:outputText value="#{NameBean.test}" style="" rendered="true" escape="false"/>
    </h:column>
    </h:dataTable>

  • Extracting only Scale value ..how to do this

    Hi,
    How to fetch only scale value from a number value..?
    example from 1000.1212 i have to select 1212 only..
    I want any oracle supplied function to do this..
    i tried substr and instr but i want can we do this a function available in oracle
    Thanks
    asp

    No you have to use the existing sql functions:
    SQL> select to_char(sysdate,'YYYY') from dual;
    TO_C
    2006
    SQL> select to_char(to_date('2003-08-22','YYYY-MM-DD'),'YYYY') from dual;
    TO_C
    2003
    which you can include in your own function:
    create or replace function extract (p_1 in varchar2,p2 in varchar2) return integer is
    begin
      declare v_return varchar2(30);
      begin
        if p_1 = 'YEAR FROM DATE' then
          select to_char(to_date(p2,'YYYY-MM-DD'),'YYYY')
          into v_return
          from dual;
        end if;
        return to_number(v_return);
      end;
    end;
    /SQL> select extract('YEAR FROM DATE','2003-08-22') from dual;
    EXTRACT('YEARFROMDATE','2003-08-22')
    2003

  • Records missed from DELTA for which changes made only in enhanced fields

    Dear Friends,
    I have enhanced a feild in standard extractor 0UCINSTALLAH_ATTR_2 by adding a z-field in append structure and writing corresponding code in customer exit. In RSA3 also I'm able to see the data getting reflected for enhanced z-fields but when I'm pulling delta those records are not getting extracted for which changes have been made only in Z-FIELDS in R/3 side.
    i.e. if I do not make any changes in std fields of the std. extractor and only change z-fields this record is missed from delta data pulled. Please help urgently.
    Regards,
    Amit Srivastava

    Hi ,
    Some times it happens that the system is not able to capture the delta based on the changes made to the Z - fields :
    You can think of the following options :
    1. You can write a code in the user exit for this thing so that the changes are captured(Not sure how it is done, however had read that it is possible. You may have to explore the same)
    2. Try to change any of the standard fields used for delta along with the custom fields so that the changes get captured.
    3. Extract a full load instead of a delta load. This may depend on various parameters
    I hope you have already checked the extraction.
    Hope the above points help.
    Regards,
    Adarsh Mhatre

  • Additional fields not getting copied from change req to change doc

    Hi,
    I created some addtional customer fields which I added both in change req and change doc.But the entries given to those fields are not getting copied from change req to the change doc as like standard SAP fields are getting copied.
    Please let me know if someone worked on the similar issue.
    Regards,
    M.R

    Hi,
    We have done a similar requirement of adding additional fields in Quotation doc type  at header and item level .
    Also we have got the Reference data of the order being created to flow in to Additional Data B .
    This is purely Abaper's Coding .when you add Additional Fields there is screen logic also to be coded for these screens .
    to get the Reference order data logic has to be written in PBO of the screen which u have added additional fields .
    the reference data will be validated with "VGBEL" field in VBAK table .If VGBEL is not initial then Query the VBAK table for this data in VGBEL into Internal table or work area and update the screen fields in additional data with these fields .
    I have done the same and it is Working Wonderful .
    Try this and Let me know Further. All the Best.
    Thanks,
    DevendraP.

  • COPA - Split of Value from condition type into different value fields

    Dear All,
    Customer is having several free schemes to customer the same is set up by SD and Cost of free goods is attached to One Z condition type, this flows along with Main product as characteristic. So we have Main product cost in VPRS and Scheme cost in Z Condition and there is possibility of more than one scheme cost flowing in one Z condition for single billing document. Whereas customer request is to see the each scheme cost separately in COPA. Since Value from SD will be flowing through only one condition type , it will be difficult to me to Split this in COPA. We have given a thought of having more than one condition type from SD ( one Z condition for one scheme) but this resolve our issue at hand. If we look at long term whenever customer introduces new Scheme new condition type need to be created and related COPA changes etc, Which doesn't seem to be working out.
    Request Experts help in this, thanks in advance for the help.

    Hi Santosh
    Having a Z cond type for each scheme is preferrable.... This would address the issue with Standard SAP itself...
    Reason being, if you dont do that, then you will have to maintain a mapping somewhere in a Z Table where by system would come to know of the ratio between the schemes... This will be more cumbersome to develop and maintain... Still you wanna do that, here is the logic....
    Maintain the schemes in a Z Table... Where each scheme will have a scheme ID - The ratio applicable to various schemes and also the relevant value fields of COPA to be updated for each scheme....
    Now, add a Custom Field to the Sales Order and while creating the SO this field needs to be updated with the scheme ID(Relevant Exit to make it mandatory MV45AFZZ / ZB).... If Scheme ID is populated, your Billing should read the Split from Z Table using Exit RV60AFZZ and Update COPA using Exit COPA0002
    br, Ajay M

  • User defined field in SD and its link to Value field in COPA (??)

    Dear All,
    We have created one "Z" field i.e. user defined field and its in VBRP Table. This is a quantity field. to update the values in this field we have used an exit in sales and distribution module. Now, by defining this exit values are correctly populated in VPRP table on line item basis.
    Requirement here is we need to get this field in COPA, for same i have carried out the quantity field assignment to value field (KE4M).
    Even after this configuration profitability segment is not updated.
    Regards,
    Sayujya
    Edited by: sayu on Mar 15, 2010 10:13 AM

    In the past I did something similar and had to use function module EXIT_SAPLKEAB_001 in enhancement COPA0002 to populate the field.  To use this exit you'll first need to add a user exit id to your valuation strategy (transaction KE4U).  The help on the function module is pretty good, but if you run into a problem let me know.
    thanks,

  • Assign direct material cost to value field in copa while issue to Prod orde

    Dear All,
    My requirement is like this:
    There are some 16 material groups from A to P each containing some materials(finished goods).
    I want to allocate overhead to different material groups(Charecteristic in copa) in COPA using the periodic assesment cycles. I am able to allocate overhead(admin & sales cost) to different value fields in copa from different cost centers.
    I want to analyse the product cost and also the profitability of each material group in COPA using Report painter. Iam able to pull all the costs which i assign to value fields using assessment. But, i am NOT able to get the direct material cost which is issued to production orders using BOM.
    My question is whether we can assign the direct material cost to any user defined value field(material cost value field) while the material is being issued to production orders. Is there any automated way where we can directly assign the direct material cost to value field in copa while issuing the material to Production orders.
    Pls explain me whether we can do it. if yes how?
    Thank you very much in advance.
    Regards,
    Vishnu
    VST-IT.

    PA is a Profitability analysis tool. That means it gets updated when a sale is made, not before. (Except for settlements and assessment of overheads.)
    Goods issues for production gets updated in CO-PC, and needs to be analysed there. If you don't, you loose all the inbuilt tools for variance analysis, cost estimate comparisons, Wip Calculation etc. To the best of my knowledge, a Profitability Segment cannot be used as a cost object in Production Planning, because amongst others, you need to be able to capitalise the produced materials to stock at the end of the production run, or to WIP at the end of the Financial period,which is not possible with PS.
    Similarly, overheads are recorded in CCA and needs to be analysed there.
    If one goes against these big groupings in SAP, you always run into problems.

  • How to create Formula based value field in COPA

    Hi,
    I want to know how to create formula based  value field in COPA
    My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
    factor.
    anybody give some light on the same topic or requirement ?
    Thanks
    Nilesh R

    The key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
    In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
    Now click the "check formuar"-button. Then save.
    Before you can use the key figure in assessment, execute TC KEUG.
    Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
    I hope this made it clearer.
    Regards
    Nikolas

Maybe you are looking for

  • Create a new company DB in Hong Kong Localization

    Hallo, I have to create a new company DB with Hong Kong Localization, but I can't find it in the list. You can see that in the attached file. Should I choose P.R.China Localization and than Hong Kong as Country or may be a bug? Thank you for your coo

  • Update record problem

    drmwv 8; ASP.NET; access 2003 I want to make a record-update page with the wizard. With just 1 record showing on the page, update is working. If I add a repeated region and a navigation bar, I get this errors: System.Data.OleDb.OleDbException: Field

  • Cprojects RPM bapi_bus2175_get_detail

    Hi Guys , When i run the bapi_bus2175_get_detail  i do not get any results populated in e_roleassingment table. i get the values in authorizations table. The actual finish date is also returned in odd formate. i am trying to get the users that can be

  • Production order cost has overun the released  budget of its WBS.

    Dear All, I have got a case where the prod. order cost has exceeded the released budget of its concerned WBS. I found that the budget check is active and working fine for Prod. order and other activities. I am not getting , how this default has occur

  • Comment spécifier le chemin d'enregistrement du pdf via un bouton "saveas" en Javascript ?

    Bonjour, Tout d'abord, j'utilise LiveCycle designer ES3 sur PC. J'ai créé un formulaire comprenant un bouton exécutant un script Java qui ouvre une boite de dialogue "enregistrer sous..." comme celui-ci : \\ Script enregistrer-sous\\ app.execMenuItem