Changing KBETR value on condition table(XKONV) in VA01/VA02

Hi Experts,
     I need your help, i am trying to change the KBETR value on condition table XKONV.
user exit name : MV45AFZZ.
FORM NAME  : USEREXIT_SAVE_DOCUMENT.
it's allowing me to change the values but those changed values are not saving in the database. how can do this and is there any usexit or BADI to change the condition values(xkonv).
i am waiting for ur answers.
Thanks & Regards.
Priya Papana.

Hi!
Try using this, this is working in modifications modus (VA02):
LOOP AT xkonv.
IF xkonv-updkz IS INITIAL.
MOVE-CORRESPONDING xkonv TO ykonv.
APPEND ykonv.   "old line
xkonv-updkz = 'U'.   "if there was not manual modification
do your modifications
ENDIF.
MODIFY
ENDLOOP.
In VA01 it is a bit other, because all of the items has the UPDKZ = 'I' code, so there is no need for this modification, only yours.
Test it a lot!
Regards
Tamás
Message was edited by:
        Tamás Nyisztor

Similar Messages

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Change field value in standard table

    Hello Experts,
    Could you please guide me to change i.e update field CESS value in standard table j_1irg23d.
    Thanks and regards,
    Sirisha

    Hi sirisha,
    if you want to change the value in the CESS field of j_1irg23d table. ( sales tax )
    since it is a standard table dont try to do it using update ot modify statsments.. standard tables are updated using standard transaction and it is not advicable to change using abap statments..
    just try to find a bapi or field module to update that field in the j_1irg23d table.
    1) To find a bapi or function module just do a whereused list on the table name you may get some fms or bapi
    2) check the forum you may get some links on it..
    Regards
    Satish Boguda

  • HR API User Hooks - Can I use to change a value in the table the API for?

    I am trying to initialize a descriptive flexfield on per_all_people_f. I originally tried doing the initialization using a “before row insert” database trigger directly on the table per_all_people_f. Seems to work great in the People form (PERWSHRG), but does not seem to work consistently when a new employee is entered through a template like Enter Employees (PERWSQHM).
    Does anyone know if you can use an API User Hook to initialize a value on one o the tables the API is inserting? For example, could I put a "Before Process" user hook on the "Create_ Employee" API to change the value of a descriptive flexfield?
    Any other good ideas?
    Currently I have a concurrent request that runs once every 30 minutes to default the descriptive flexfield. The delay is causing issues.

    In such cases you should write the code to default the values in the front end PUIs. As one person pointed out, User hooks are provided either to validate the already entered values, or to insert/update data in some custom tables but not for updating values in the same table where data is being inserted/updated.
    BTW for your information:-
    Person form (People Enter and Maintain) does not use APIs so anything written inside the user hook would be ignored by the application when this form is used. (The reason is this is one of the oldest form in HRMS, was created even before the concept of user hook came).
    Template form PERWSQHM uses APIs, so user hook is called when this form is used to create/update the data.
    Hope this is useful.

  • Change / Edit  or Deleting condition table

    I have created some condition tabl;es in MM Purchasing but I need some additional fileds in the condition table , but this table is not getting edited or I can not add the field in the table . How I can do this
    If I want to delete / remove the field in existing table , there is no such option . How I can do this
    How I can delete existing table other than standard condition table

    Go to M/04 and select Condition table and go to Menu Condition - Delete / Shift F2

  • How to when press the button and can change the value in the table?

    this is my code so far with a table and a button..how can i make it when press the button and the data in table change..
    * SimpleTableDemo.java is a 1.4 application that requires no other files.
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class SimpleTableDemo extends JPanel {
    private boolean DEBUG = false;
    private JPanel button;
    private JButton enter;
    public SimpleTableDemo() {
    super(new BorderLayout());
    //button.setBackground(Color.pink);
    //setForeground(Color.pink);
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    enter = new JButton("Press me");
    //Add the scroll pane to this panel.
    buildButton();
    add(scrollPane, BorderLayout.NORTH);
    add(button, BorderLayout.CENTER);
    private void buildButton(){
    button = new JPanel();
    button.add(enter);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("SimpleTableDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SimpleTableDemo newContentPane = new SimpleTableDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Cross-post:
    http://forum.java.sun.com/thread.jspa?threadID=676105

  • User exit or Badi for changing the lead time in ATP check in VA01/VA02

    Hi All,
    Currently, SAP standard functionality takes up the lead times maintained in material master to create the schedule lines in the sales order in VA01. I am looking for some user exiit/Badi/Enhancement point where I can change the lead time. This is somewhat urgent so any help in this regard is appreciated.
    Regards,
    Sandeep
    Edited by: Sandeep Gaitonde on Sep 1, 2011 9:16 PM

    Hi Sandeep,
    These are the user exits will trigger in va01 .
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    Please check this and post .
    Regards,
    Madhu.

  • Condition table for access sequence (taxes calculation procedure)

    Hi,
    We need to perform tax calculation procedure in which there will be fields in condition table for a particular access sequence such that whenever we give the Country, Region and city in the condition table it will pick up the corresponding tax value.
    Condition table field -- KOTABNR.
    Path -->
    FI --  **** -- Taxes on sales / purchase -- Check calculation procedure -- Access sequences.
    Select tax calc say for country US with jurisdiction and check acess sequence. There we have condition table referred to as 53 and we can see the fields by clicking on fields.
    How to create a new condition table.
    Please guide me through asap.
    Thanks and regards,
    Priyajit Ghosh

    Hi,
    This does not allow us to create a new condition table. However we are allowed to change a standard SAP standard condition table. Is there any way to create a new Z table (condition table) . Please revert back asap.
    Thanks and regards,
    Priyajit

  • HOW TO DELETE A CONDITION TABLE??

    HI
    DOES ANYONE KNOWS HOW TO DELETE CONDITION TABLE?
    THANKS

    Vikas,
    Do you want to delete a pricing condition table?
    T-Code: V/04
    In Change Mode, enter the condition table number and press enter. You can delete the condition table using menu Condition>Delete
    If this condition table is part of a access sequence then you have to remove the table from the access sequence and then delete the table using the steps above.
    Chandan

  • Create condition table

    Can anybody explain how to create a condition table in a detailed manner step by step?
    Thanks in advance for the answers.

    HI
    You can change and maintain the condition tables in the standard system. You can also create new condition tables to meet the needs of your own organization. You create and maintain condition tables in Customizing.
    From the initial screen of Customizing for Sales and Distribution, you reach the condition table screens by choosing Basic functions --> Pricing -->Pricing Control -->Define condition tables. Then select the mode you want to work with (create, change, display).
    ou can create new condition tables to meet the pricing needs of your organization. When you create a new condition table, you select a combination of fields from the list of allowed fields. The selected fields define the key for the subsequent condition records.
    Before you select the fields for the key, there are two things to consider:
    The sequence (or hierarchy) of the fields
    Which fields you want to appear in the header and item areas of the corresponding fast-entry screens
    Important Fields
    In sales, the fields you should take into consideration are Sales organization and Distribution channel. The sales organization is nearly always used as a criteria in pricing, because different sales organizations often want to use their own prices, discounts, and surcharges. If you use the sales organization as a criterion in pricing, you should also use the distribution channel. If you do not want to establish different prices, discounts, and surcharges for each distribution channel, use the field anyway. In Customizing for Sales, you can use one distribution channel as a reference for all others (thereby sharing the same pricing data).
    Deciding the Sequence of Fields
    The order of the fields in a condition table affects the performance of the system during pricing. Two general guidelines will help you create an efficient condition table:
       1. If you select fields that are connected to the structure of your organization (for example, sales organization and distribution channel), assign the fields according to the level of general applicability: Put the most general field, for example, the sales organization in the highest position and the most specific field in the lowest.
       2. After organizational fields, place fields from the document header before those that come from the item level. (For example, Customer comes before Material)
    After you have selected the fields for the key on the screen where you maintain and define condition tables, choose F16 Generate to generate the table in the system. Generation prepares the condition table for storing condition data.

  • Issue in condition table passing in BAPI BAPI_PO_CREATE1 when uploading PO

    hi everyone,
      I am trying to upload PO data (header, item, conditions)from file. Some of my main code as follows:
    i have pasted the code for assigning values to condition table and passing in  bapi..once i execute the bapi in debug mode..PO not created, no values in condition tables. rest of the table values are fine..
    W_BAPIMEPOCOND-ITM_NUMBER = '000001'.
      W_BAPIMEPOCOND-COND_ST_NO = '001'.
      W_BAPIMEPOCOND-COND_TYPE = 'PB00'.
      W_BAPIMEPOCOND-COND_VALUE = '1000'.
      W_BAPIMEPOCOND-CURRENCY = 'KES'.
      APPEND W_BAPIMEPOCOND TO I_BAPIMEPOCOND.
      CLEAR W_BAPIMEPOCOND.
    W_BAPIMEPOCOND-ITM_NUMBER = '000001'.
      W_BAPIMEPOCOND-COND_ST_NO = '000'.
      W_BAPIMEPOCONDX-COND_TYPE = 'X'.
      W_BAPIMEPOCONDX-COND_VALUE = 'X'.
      W_BAPIMEPOCONDX-CURRENCY = 'X'.
      APPEND W_BAPIMEPOCONDX TO I_BAPIMEPOCONDX.
      CLEAR W_BAPIMEPOCONDX.
      ENDLOOP.
    LOOP AT I_BAPIMEPOHEADER INTO W_BAPIMEPOHEADER.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     = W_BAPIMEPOHEADER
       POHEADERX                    = W_BAPIMEPOHEADERx
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
      PARK_COMPLETE                =
      PARK_UNCOMPLETE              =
    IMPORTING
       EXPPURCHASEORDER             = EXPPURCHASEORDER
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = RETURN
       POITEM                       = I_BAPIMEPOITEM
       POITEMX                      = I_BAPIMEPOITEMX
      POADDRDELIVERY               =
       POSCHEDULE                   = I_BAPIMEPOSCHEDULE
       POSCHEDULEX                  = I_BAPIMEPOSCHEDULEX
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
      POCONDHEADER                 =
      POCONDHEADERX                =
       POCOND                       = I_BAPIMEPOCOND
       POCONDX                      = I_BAPIMEPOCONDX
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
      POCOMPONENTS                 =
      POCOMPONENTSX                =
      POSHIPPING                   =
      POSHIPPINGX                  =
      POSHIPPINGEXP                =
      SERIALNUMBER                 =
      SERIALNUMBERX                =
      INVPLANHEADER                =
      INVPLANHEADERX               =
      INVPLANITEM                  =
      INVPLANITEMX                 =
      NFMETALLITMS                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    Thanks in advance!!

    Hi Balaji,
    I suppose it's a simple copy paste error. Refer the code higlighted below:
    W_BAPIMEPOCOND-ITM_NUMBER = '000001'.
    W_BAPIMEPOCOND-COND_ST_NO = '001'.
    W_BAPIMEPOCOND-COND_TYPE = 'PB00'.
    W_BAPIMEPOCOND-COND_VALUE = '1000'.
    W_BAPIMEPOCOND-CURRENCY = 'KES'.
    APPEND W_BAPIMEPOCOND TO I_BAPIMEPOCOND.
    CLEAR W_BAPIMEPOCOND.
    W_BAPIMEPOCONDX-ITM_NUMBER = '000001'.
    W_BAPIMEPOCONDX-COND_ST_NO = '000'.
    W_BAPIMEPOCONDX-COND_TYPE = 'X'.
    W_BAPIMEPOCONDX-COND_VALUE = 'X'.
    W_BAPIMEPOCONDX-CURRENCY = 'X'.
    Regards,
    Pranav.
    Edited by: Pranav Mandelia on Sep 30, 2011 1:52 PM

  • Function module to change the value for pricing condition type

    Hello experts,
    I want to change the value for pricing condition type for an item in the transaction CRMD_ORDER.
    I used many function modules but none are working.
    Please kindly suggest a function module that will change the value for a condition type .
    I have used the following function module but its not working, please correct the coding if anything needs to be changed or added. Please help me .
    Thank you.
    CLEAR PRCD_COND.
         SELECT SINGLE * FROM PRCD_COND WHERE KPOSN = WA_ORDERADM_I-GUID AND
                                              KSCHL = COND_TY.
      IF SY-SUBRC = 0.
    *    MOVE-CORRESPONDING PRCD_COND TO L_COND_CHG.
    *    CLEAR L_COND_CHG-KBETR.
        L_COND_CHG-STUNR = PRCD_COND-STUNR.
        L_COND_CHG-KBETR = COND_PRC.
    *    L_COND_CHG-KSCHL = COND_TY.
        INSERT L_COND_CHG INTO TABLE T_COND_CHG.
    L_HEAD_GUID = CRMD_ORDERADM_H-GUID.
    L_ITEM_GUID = WA_ORDERADM_I-GUID.
    INSERT L_HEAD_GUID INTO TABLE HEAD_GUID.
    INSERT L_ITEM_GUID INTO TABLE ITEM_GUID.
        CALL FUNCTION 'CRM_ORDER_READ'
         EXPORTING
           IT_HEADER_GUID                    = HEAD_GUID
           IT_ITEM_GUID                      = ITEM_GUID
         IMPORTING
           ET_ORDERADM_H                     = LT_ORDERADM_H
           ET_ORDERADM_I                     = LT_ORDERADM_I
           ET_PRIDOC                         = IT_PRIDOC_RD
           ET_DOC_FLOW                       = T_DOC_FLOW
    *     CHANGING
    *       CV_LOG_HANDLE                     =
    *     EXCEPTIONS
    *       DOCUMENT_NOT_FOUND                = 1
    *       ERROR_OCCURRED                    = 2
    *       DOCUMENT_LOCKED                   = 3
    *       NO_CHANGE_AUTHORITY               = 4
    *       NO_DISPLAY_AUTHORITY              = 5
    *       NO_CHANGE_ALLOWED                 = 6
    *       OTHERS                            = 7
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRI_COND.
    INSERT L_PRI_COND INTO TABLE PRI_COND.
    LOOP AT IT_PRIDOC_RD INTO LS_PRIDOC_RD.
    MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRIDOC_CHG.
    L_PRIDOC_CHG-PRIC_COND = PRI_COND.
    L_PRIDOC_CHG-REF_GUID = LS_PRIDOC_RD-GUID.
    L_PRIDOC_CHG-COND_CHANGE = T_COND_CHG.
    INSERT L_PRIDOC_CHG INTO TABLE PRIDOC_CHG.
    ENDLOOP.
    LOOP AT LT_ORDERADM_H INTO LS_ORDERADM_H .
    MOVE-CORRESPONDING LS_ORDERADM_H TO L_HEADER.
    INSERT L_HEADER INTO TABLE HEADER.
    ENDLOOP.
    LOOP AT LT_ORDERADM_I INTO LS_ORDERADM_I.
    MOVE-CORRESPONDING LS_ORDERADM_I TO L_ITEM.
    INSERT L_ITEM INTO TABLE ITEM.
    ENDLOOP.
    L_FIELD-FIELDNAME = 'STUNR'.
    INSERT L_FIELD INTO TABLE FIELD.
    L_FIELD-FIELDNAME = 'KBETR'.
    L_FIELD-CHANGEABLE = 'X'.
    INSERT L_FIELD INTO TABLE FIELD.
    L_INPUT-FIELD_NAMES = FIELD.
    L_INPUT-REF_KIND = 'E'.
    L_INPUT-REF_GUID = LS_PRIDOC_RD-GUID.
    L_INPUT-OBJECTNAME = 'PRIDOC'.
    INSERT L_INPUT INTO TABLE INPUT.
        CALL FUNCTION 'CRM_ORDER_MAINTAIN'
         EXPORTING
           IT_PRIDOC                     = PRIDOC_CHG
         IMPORTING
           ET_EXCEPTION                  = EXCEPT
         CHANGING
           CT_INPUT_FIELDS               = INPUT.
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    REFRESH EXCEPT.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        IT_OBJECTS_TO_SAVE         = HEAD_GUID
    *   IV_UPDATE_TASK_LOCAL       = FALSE
    *   IV_SAVE_FRAME_LOG          = FALSE
    *   IV_NO_BDOC_SEND            = FALSE
    *   IT_ACTIVE_SWITCH           =
    IMPORTING
       ET_SAVED_OBJECTS           = SAVED
       ET_EXCEPTION               = EXCEPT
       ET_OBJECTS_NOT_SAVED       = UNSAVED
    * CHANGING
    *   CV_LOG_HANDLE              =
    * EXCEPTIONS
    *   DOCUMENT_NOT_SAVED         = 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.
    COMMIT WORK AND WAIT.

    Hi,,
    To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to Update with immediate start
    Alternatively u can use this function module.
    CRM_STATUS_DATA_SAVE_DB
    BAPI_CUSTOMERCRM_CHANGE (If u wish to use a bapi for this).
    Also , Let me know what error you got when implementing other function module.Does the function module didnt return any error but still the value is not changed for pricing condition type?

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • Wants to change value in Condition Tab ( ZOTL ) of PO

    Dear Expert,
    I was created subcontracting PO with item category L. In condition tab I put value 10,000 for other charges by mistake I want to change that value 1,000.
    PO quantity is 1000 and I did GR of 600 material quantity for that purchase order.
    Is there any possibility to change condition value without reverse back GR ?
    or any other condition in which I cancel the value in difference ?
    or any other way to settle that PO and invoice payment ?
    Please provide the solution.  
    Thanks,
    Farrukh khan

    Hi,
    only solution is without cancel or revese GR is to do Credit memo for that vendor.
    Thanks & Regards
    Suresh

Maybe you are looking for