Update SO after creating missing condition record

Hi Gurus,
I was getting error message that missing MWST condition in Order, then I investigated and created missing condition record in VK11. Now I would like to update the Sales order and tried update tab on condition but invain.
Initially the document was created on 17.11.2008 and today condition record was created 18.11.2008.
Kindly help me in resolving this.
Thanks
Bawa

Dear Bawa,
While creating Condition Record "MWST" in VK11/ 12;
What were the Dates maintained in Fields:
1. Valid From (try with back-date maintenance)
2. Valid To (Maintain as 31.12.9999)
Once done, try to Update with "G - Copy pricing elements unchanged and redetermine taxes", in Sales Order.
Best Regards,
Amit

Similar Messages

  • FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE

    Hello vikas,
    I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
    Is there ay function module to update or create the condtion records,
    if u have any example interface program to update conditions records please send me.
    regards
    ram.

    This must be your compiler output.
    Basically, it is telling you two things that are wrong - in syntax.
    1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
    The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
    2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
    It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines.

  • How to find who has created the condition records

    hi all,
    in POF1 condition records were created.for material and plant.how to find who has created condition records for the material and plant.
    is there any way to find who has created please help me out.
    thanks
    sunny

    Hi,
    There are two ways of finding the who has created the ondition record.
    01. This is through the sales order-> Item details level-> condtion Tab----> Select the condition type and click on dispaly condition record below in the same creen. Then  Goto tab on the menu and select the overview of the condition record. After do so you will have the details of diffrenr tabs. In this you need to select the Administrative data for the person who had created the condition record.
    02. Goto T. Code VK13 and give your condition type for which you need to find the person created the record. Select the header details tab for the person who had created the record.
    Hope this is fine with you.
    Bye & Enjoy SAP.
    Koganti

  • ERROR Message while creating Rebate condition record T code VBO1

    Dear Experts,
    I am getting error message while creating rebate condition record T code-VBO1-Error Msg-862 system cannot read the structure for table,because of this i could not create condition record.
    Please give the solution to create condition record.
    Regards
    siva

    Hi,
    You said you are trying to do this stuff in IDES right.
    If you are using IDES provided by a company and where many people play on IDES, then you can get many such issues...
    This is by our experience.  Today you do something in IDES and tommorow that thing or config is screwed up by others.
    If you have your own IDES, then check the suggestion given by the forum Guru's.
    Regards,
    SB

  • New Custom field to be created in condition records

    Hi,
    I have a requirement where-in there is a need to create new custom field (30 chars) as there is no standard field in condition record screen which can be used because of lenght limitation.
    This new field needs to be populated from incoming inbound idoc (COND_A04).
    Kindly provide me necessary changes that needs to be made to achieve this.
    Thanks
    Rama

    Dear Rama,
    Add this field in below structure
    If field is for header than add in structure - KOMKAZ
    For for item KOMPAZ
    After add this new field in stcture, That field available in field catelog. Add this field in field catelog and than maintain this field in pricing table.
    Also mapp this new field value in below pricing exit.
    Program : MV45AFZZ
    User exit for header: USEREXIT_PRICING_PREPARE_TKOMK.
    User exit for item : USEREXIT_PRICING_PREPARE_ITEM
    Regards,
    Haresh

  • How to create the condition record by ABAP program

    Hi Friends,
    I want to create/change the condition record of PR00 by ABAP program. It seems that there have no such BAPI/standard function can help on this. Can any one of you point out a way to me?? Thanks in addvance.
    Joe GR.

    Joe,
      Check with below FM..
    BAPI_PRICES_CONDITIONS.
    Check this link:
    Re: Sample code for  BAPI_PRICES_CONDITIONS
    examples....
    http://www.4ap.de/abap/bapi_prices_conditions.php
    Two useful threads on Same topic
    Re: Sample code for  BAPI_PRICES_CONDITIONS
    Re: Problem with BAPI_PRICES_CONDITIONS
    BAPI_PRICES_CONDITIONS
    Please check this sample code from other thread.
    wtable1-table_no = '306'.
    wtable1-applicatio = 'V'.
    wtable1-cond_type = 'ZPR0'.
    wtable1-operation = '009'.
    wtable1-varkey = '13001001USD 000000000050068946'.
    wtable1-valid_to = '99991231'.
    wtable1-valid_from = '20051101'.
    wtable1-cond_no = '$000000001'.
    APPEND wtable1 TO table1.
    wtable2-operation = '009'.
    wtable2-cond_no = '$000000001'.
    wtable2-created_by = sy-uname.
    wtable2-creat_date = '20051022'.
    wtable2-cond_usage = 'A'.
    wtable2-table_no = '110'.
    wtable2-applicatio = 'V'.
    wtable2-cond_type = 'ZPR0'.
    wtable2-varkey = '13001001USD 000000000050068946'.
    wtable2-valid_from = '20051101'.
    wtable2-valid_to = '99991231'.
    APPEND wtable2 TO table2.
    wtable3-operation = '009'.
    wtable3-cond_no = '$000000001'.
    wtable3-cond_count = '01'.
    wtable3-applicatio = 'V'.
    wtable3-cond_type = 'ZPR0'.
    wtable3-scaletype = 'A'.
    wtable3-scalebasin = 'C'.
    wtable3-scale_qty = '1'.
    wtable3-cond_p_unt = '1'.
    wtable3-cond_unit = 'EA'.
    wtable3-calctypcon = 'C'.
    wtable3-cond_value = '454'.
    wtable3-condcurr = 'USD'.
    APPEND wtable3 TO table3.
    CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
    EXPORTING
    PI_initialmode = 'X'
    PI_BLOCKNUMBER =
    TABLES
    ti_bapicondct = table1
    ti_bapicondhd = table2
    ti_bapicondit = table3
    ti_bapicondqs = table4
    ti_bapicondvs = table5
    to_bapiret2 = table6
    to_bapiknumhs = table7
    to_mem_initial = table8
    EXCEPTIONS
    update_error = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    READ TABLE table6 WITH KEY type = 'E' TRANSPORTING NO FIELDS.
    IF sy-subrc = 0.
    loop at table6 into ret.
    write: / ret-type, ret-message, ret-id, RET-LOG_NO, RET-LOG_MSG_NO,
    RET-MESSAGE_V1, RET-MESSAGE_V2, RET-MESSAGE_V3, RET-MESSAGE_V4,
    RET-PARAMETER,RET-ROW,RET-FIELD.
    endloop.
    ELSE.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *EXPORTING
    WAIT =
    IMPORTING
    return = ret
    ENDIF.
    Don't forget to reward if useful....

  • Missing Condition record price in PO history tab

    Hi
    I have a scenario where in the condition record values are coming in conditions tab of PO and the discounts are calculated and shows net price which is less than the Gross price in conditions tab, But when i check in Purchase order history tab, for goods receipt, only Gross price is coming not the Net price.
    can any one help in this??

    Hi,
       The po price will be greyed out if the price is determined based on discount or similar conditions. You have to change the price at item level - conditions tab.
       But in your issue, the PO is already having subsequent documents. (Hope you found the issue in dev only, not in PRD) You may cancel the already posted documents (GR and IR). Now, correct the condition type (acrual flag in M/06) and then assign the acrual key against the condition type in the pricing schema in M/08. Assign the GL account for the acrual key in OBYC. Create a new PO and test the scenario again.
    Regards,
    AKPT

  • Bapi to create a condition record

    hi,
    is there any standard bapi for creating ,changing and deleting a pricing record using VK11,VK12.
    any other function module will solve the problem.

    Hi Ajith,
       You can use <b>IDOC approach</b> also for doing teh same solution. Yo get Create/Change/ Delete Option as per indicator passed:
    Refer Code below.
    *&      Form  map_idoc_structure
          Map E1KOMG, E1KONH, E1KONP segment fields
    FORM map_idoc_structure
                  USING fp_condition_table TYPE kotabnr
                        fp_rate            TYPE z_cs_cpp_rate
                        fp_condition_type  TYPE kschl
                        fp_rate_type       TYPE z_cs_file_type.
    *-- Local Data Declaration
      DATA: lw_e1komg TYPE e1komg, "Filter seg. with separated condition key
            lw_e1konh TYPE e1konh, "Data from condition header
            lw_e1konp TYPE e1konp, "Conditions Items
            lv_delete TYPE konp-loevm_ko. " Delete Indicator
    *-- IDoc data internal table
      DATA: i_idoc_data TYPE TABLE OF edidd
                        INITIAL SIZE 0
                        WITH HEADER LINE.
      CLEAR: lw_e1komg,
             lw_e1konh,
             lw_e1konp,
             lv_delete,
             v_segnum,
             w_e1komg,
             v_rate_type.
      REFRESH i_idoc_data.
      v_rate_type = fp_rate_type.
      PERFORM conversion_alpha_input
          USING w_crp_data-kunnr CHANGING w_crp_data-kunnr.
      PERFORM conversion_matn1_input
         USING w_crp_data-matnr CHANGING w_crp_data-matnr.
    E1KOMG: Filter segment with separated condition key
      i_idoc_data-segnam  = 'E1KOMG'.
      lw_e1komg-kvewe     =  c_usage_cond_tab.
      lw_e1komg-kotabnr   =  fp_condition_table.
      lw_e1komg-kappl     =  c_cond_type.
      lw_e1komg-kschl     =  fp_condition_type.
    CONCATENATE p_vkorg p_vtweg p_spart p_hienr p_matnr
      CONCATENATE w_crp_data-vkorg w_crp_data-vtweg
                  w_crp_data-kunnr w_crp_data-matnr
                  INTO lw_e1komg-vakey.
      lw_e1komg-vakey_long = lw_e1komg-vakey.
      lw_e1komg-vkorg      = w_crp_data-vkorg.
      lw_e1komg-vtweg      = w_crp_data-vtweg.
      lw_e1komg-spart      = w_crp_data-spart.
      lw_e1komg-kunnr      = w_crp_data-kunnr.
      lw_e1komg-matnr      = w_crp_data-matnr.
      i_idoc_data-sdata = lw_e1komg.
      APPEND i_idoc_data TO i_idoc_data.
    Segment E1KONH - condition header
      i_idoc_data-segnam  = 'E1KONH'.
      lw_e1konh-datab     = w_crp_data-datab.
      lw_e1konh-datbi     = w_crp_data-datbi.
      lw_e1konh-knuma_pi  = v_promotion.
      lw_e1konh-knuma_ag  = v_sales_deal.
      i_idoc_data-sdata = lw_e1konh.
      APPEND i_idoc_data TO i_idoc_data.
      IF fm_process_type EQ c_pt_dep.
        lv_delete = c_x.              " Deletion Indicator
      ENDIF.
    Segment E1KONP - condition items
      i_idoc_data-segnam = 'E1KONP'.
      lw_e1konp-kschl     = fp_condition_type.
      lw_e1konp-kbetr     = fp_rate.
      lw_e1konp-konwa     = w_crp_data-waers.
      lw_e1konp-kpein     = v_cond_pric.
      lw_e1konp-kmein     = v_cond_unit.
      lw_e1konp-knuma_pi  = v_promotion.
      lw_e1konp-knuma_ag  = v_sales_deal.
      lw_e1konp-loevm_ko  = lv_delete.
      i_idoc_data-sdata = lw_e1konp.
      APPEND i_idoc_data TO i_idoc_data.
    *-- Post Idoc for Creating Pricing Condition
      PERFORM post_idoc
             TABLES i_idoc_data.
    ENDFORM.                    " map_idoc_structure
    *&      Form  post_idoc TABLES i_idoc_data.
          Post Idoc for Creating Pricing Condition
    FORM post_idoc
              TABLES i_idoc_data STRUCTURE edidd.
    *-- Local data declaration
      DATA: lv_komg         LIKE komg,         " Condition Structures
            lv_subrc        LIKE sy-subrc,     " Sy-subrc
            lw_messages     TYPE rsuvm_msg,    " Message Description
            lw_idoc_status  TYPE bdidocstat.   " ALE IDoc status
      DATA: idoc_contrl                        " IDoc Control data
                LIKE edidc OCCURS 1 WITH HEADER LINE.
    *-- Initialize Internal Tables
      CLEAR:  t_konh,
              t_konp,
              t_konm,
              t_konw,
              i_idoc_status,
              t_kona.
      REFRESH: t_konh,
               t_konp,
               t_konm,
               t_konw,
               i_idoc_status,
               t_kona,
               i_messages.
    This code is taken from IDOC_INPUT_COND_A
      PERFORM fill_appl_structures(saplvkoi)
                      TABLES i_idoc_data
                             t_konh
                             t_konp
                             t_konm
                             t_konw
                             i_idoc_status
                             t_kona
                       USING lv_komg
                             lv_subrc
                             idoc_contrl-docnum
                             idoc_contrl-mestyp.
      IF lv_subrc = 0.
    This code is taken from IDOC_INPUT_COND_A
        PERFORM idoc_in_datenbank(saplvkoi)
                  TABLES idoc_contrl
                         t_konh
                         t_konp
                         t_konm
                         t_konw
                         i_idoc_status
                         t_kona
                  USING  lv_komg
                         lv_subrc
                         idoc_contrl-docnum.
        IF lv_subrc = 0.
          COMMIT WORK AND WAIT.
        Endif.
    Reward points if this Helps.
    Manish
    Message was edited by: Manish Kumar

  • How to create STO Condition record for a condition Type ?

    I am doing config for STO.
    in MEK1 , it is asking for Vendor, but in my case I am doing STO by using delivery VL01 and receipt by MIGO.
    I want to know abt- How to create Condition Record for STO so that STO order will have Moving Average Price f Material.
    Sorry I m new to MM so pls help.

    Solved

  • FM or BAPI for creating/deleting condition records for an output type

    Hi all,
               what is the FM or BAPI for creating and deleting the condition records for a Z(custom) output type.

    You can use trasaction SXDA_TOOLS.....
    object type BUS3003
    program type BINP
    program/method RM06IBI0
    but the fields must be sequentially written in the txt, with every space inclusive....

  • Create new condition record combination in MRM1

    I want to create a new combination of partner function/vendor  in condition record. Is it possible ?

    Hi Pradeep,
    There are some good number of threads available in abap-general forum on this.There is a good code given by ferry in this thread.http://Sample code for  BAPI_PRICES_CONDITIONS
    Regards,
    Madhu.

  • OC4j10.1.2CMP bean not updating field after creating a record in the table.

    I have a simple table in Oracle 9i database:
    SQL> desc temp_tbl
    Name Null? Type
    OPER_ID NOT NULL NUMBER(5)
    OPER_STS_TM_DT NOT NULL DATE
    OPER_STS_CD NUMBER(2)
    First 2 fields are the Primary Key. last field is standalone. No FK references.
    I generate a CMP bean using Jdeveloper 10.1.2 for this table.
    Then I try to insert a record into this table and update the oper_sts_cd field.
    Problem: CMP inserts the record correctly, but does not update the field: oper_sts_cd, even though trace indicates that the field has been updated.
    ( shown in pgm below).
    THE SAME CODE WORKED in OC4J9.0.4 Container.
    Since we upgraded to 10g Rel2 ( OC4J10.1.2) , it does not.
    Code:
    Session Bean:
    package model;
    import java.rmi.RemoteException;
    import java.sql.Timestamp;
    import java.util.Calendar;
    import javax.ejb.CreateException;
    import javax.ejb.FinderException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class SessionEJBBean implements SessionBean
    public void ejbCreate()
    public void ejbActivate()
    public void ejbPassivate()
    public void ejbRemove()
    public void setSessionContext(SessionContext ctx)
    private TempTblLocalHome getTempTblLocalHome() throws NamingException
    final InitialContext context = new InitialContext();
    return (TempTblLocalHome)context.lookup("java:comp/env/ejb/local/TempTbl");
    public void createOperation() throws RemoteException
    try
    TempTblLocalHome tempHome = (TempTblLocalHome) this.getTempTblLocalHome();
    System.out.println("Succcess loading Temp Entity EJB");
    Timestamp currDate = new Timestamp(Calendar.getInstance()
    .getTimeInMillis());
    TempTblLocal tempLocal = tempHome.create(new Long("1294"),currDate,new Long("1") );
    System.out.println("created Temp Op=" + tempLocal.getOperId() + " date=" + tempLocal.getOperStsTmDt() );
    //tempLocal.setOperStsCd(new Long("" + 1) );
    Long stsTypeCd = new Long("1");
    System.out.println("Putting long value in db=" + stsTypeCd + "-");
    tempLocal.setOperStsCd(stsTypeCd);
    System.out.println("Stored value in db=" + tempLocal.getOperStsCd() );
    catch( NamingException ne)
    throw new RemoteException(ne.getMessage());
    catch(CreateException ce)
    throw new RemoteException(ce.getMessage());
    ejb-jar (generated)
    <entity>
    <description>Entity Bean ( CMP )</description>
    <display-name>TempTbl</display-name>
    <ejb-name>TempTbl</ejb-name>
    <local-home>model.TempTblLocalHome</local-home>
    <local>model.TempTblLocal</local>
    <ejb-class>model.TempTblBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>model.TempTblPK</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>TempTbl</abstract-schema-name>
    <cmp-field>
    <field-name>operId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>operStsTmDt</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>operStsCd</field-name>
    </cmp-field>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params/>
    </query-method>
    <ejb-ql>select object(o) from TempTbl o</ejb-ql>
    </query>
    </entity>
    <container-transaction>
    <method>
    <ejb-name>TempTbl</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    orion-ejb-jar.xml (generated):
    <entity-deployment name="TempTbl" data-source="jdbc/Marcs_DS" table="MARCS.TEMP_TBL">
    <primkey-mapping>
    <cmp-field-mapping>
    <fields>
    <cmp-field-mapping name="operId" persistence-name="OPER_ID" persistence-type="NUMBER(5)"/>
    <cmp-field-mapping name="operStsTmDt" persistence-name="OPER_STS_TM_DT" persistence-type="DATE"/>
    </fields>
    </cmp-field-mapping>
    </primkey-mapping>
    <cmp-field-mapping name="operId" persistence-name="OPER_ID" persistence-type="NUMBER(5)"/>
    <cmp-field-mapping name="operStsTmDt" persistence-name="OPER_STS_TM_DT" persistence-type="DATE"/>
    <cmp-field-mapping name="operStsCd" persistence-name="OPER_STS_CD" persistence-type="NUMBER(2)"/>
    </entity-deployment>

    >
    Srini.r wrote:
    > I have added a new field in IT0006
    > Srini R
    Have you done this through PM01?
    ~Suresh

  • How do i update Apps after creating a new Apple ID?

    I created a new Apple ID to seperate my account from mmy Son's account.  We've had the same account going to two different phones since he was in Middle School - he is now in college and with iCloud I really don't want all his music and contacts etc.
    The problem is - even though I set my iPhone (3GS) to access my new account - it's not allowing me to update Apps that are currently on my phone purchased under my old account.  It asks me for the password to the old Apple ID.
    Is  there a way to update the Apps I already purchased though my new account?

    If you know the old password, it should allow you to update.
    However, if you want to redownload the app fresh, you will have to delete it from your phone first.  Also, delete it from your iTunes so it will not try to sync the old version back on.
    NOTE:  The deleting/redownload app worked for me when I switched AppleIDs, but I also wiped the phone and started with a fresh library in iTunes.  I did this because I wanted no trace of my old AppleID anywhere.  I was able to redownload apps with my new ID, and everything now is tied to my new one.

  • Unable to create or update object after creating database

    I have installed Oracle 8.1.6 on a Solaris server (with documentation, cause I'm not expert of Unix).
    Next I have created a database and a user (with the doc too !!)
    I can make select on all the objects of this database (system tables for example). I have created one test table without any problem. Now I can't create any table or update the table on the server or on a client (the sql + froze). The select orders work. I tried to restard the server but the problem is the same.
    Thank you very much for your help

    There are no error ! (alert.log)
    The sql plus (on the client or on the server) froze when I launch the create or update command. The select command works.
    Thank you very much.

  • Regarding PO creating with condition record Using Session method

    Hi All,
    I am facing the following problem during po creation using BDC session method.
       If there is error in any of the record in the PO upload file and if we jump to next record during batch input session, system changes data of previous correct record.
    Example u2013 Consider following data
    Matl code     Matl Description     Qty     UoM     Price
    98652565     Floater08 EPS Insert -with sta     15000     EA     171
    60890125     INSERT (PACKAGING) Wellpappe T     14000     EA     52.3
    65646353     INSERT CASE PACKAGING, univers     10000     EA     56.9
    98725563     Shipper-2nd-NA-Bubble TS.1850     9000     EA     213.4
    Consider that record 2 (60890125) contain wrong data. If we skip this record and move to next record 65646353, system executes previous correct record (98652565) and changes net price of that record (here its 171) to 56.9. If record 3 is also wrong, it will capture price from record 4 and will put it for record 1.
    If anyone know the solution, Please let me know.
    Thanks in Advance.

    Hi Prasad,
    You may not be clearing some workarea in the program while looping or while sending data to screens, clear workareas when required.
    If you still face the same issue, try posting the code here, lets see, whats the problem is.
    Rgds,
    Sripal

Maybe you are looking for