Change Documents for Sales Order (VA03)

Hello,
Is it possible to track changes to the text (VA03 - Header Detail - Text Tab) from a Sales Order by using change documents?
Thanks in advance for your help,
CL

I don't think that is possible. These are getting stored in Longtext (ie STXH & STXL) by retrieving this also we need to use fm READ_TEXT.
and also in change document table CDPOS fields VALUE_NEW & VALUE_OLD have length limit of 254.

Similar Messages

  • Change pointer for Sales Order

    Hi,
    Using change pointers I want to create an IDOC when ever a specific field in the sales order line item is changed. I have activated the change pointer for message type ORDRSP. Also maintained the following entries in BD52
    VERKBELEG(Object) VBAP(Table) ABGRU(field).
    After this when I change this field at the sales order line item, it inserts entries into change pointer table.
    But my problem is creating IDOC's from those change pointer entries. I am not sure which function module (MASTERIDOC_CREATE_XXXXX) works for this.
    Anyhelp on this highly appreciated.
    Thanks
    Ram

    Hi Ram,
    I don't think so you can use change pointer for sales order changes. Usually, it is done through transaction code<b> NACE</b> - configuring condition for output type.
    You can setup requeirement in procedure control to trigger IDoc ORDRSP for any changes in item level.
    Hope this will help you and give an idea.
    Regards,
    Ferry Lianto

  • New/Change Indicator for Sales Order IDoc

    Hi Gurus,
    Does anyone knows if there's a field in the IDoc Segment for ORDERS that shows or indicate if it's a new or changed order.
    We are sending IDocs to our freight company for sales order, but we are trying to see if there's a way we can let them know if its a new or changed IDoc for sales order.
    Is there any field for this or any work around on this?
    Thanks for your help.

    Segment Field ACTION is not been changed. I've just tested it and made changes to the Sales Order, the ACTION field is still carrying "000".
    Like thomas said, can this be because I'm using message type ORDRSP instead of ORDCHG?
    Does this make any difference?
    Edited by: Basil Balogun on May 10, 2011 4:54 PM
    Edited by: Basil Balogun on May 10, 2011 9:43 PM

  • Change document in Sales order ( VERKBELEG )

    Hi
    We added new feild in VBAP table & the in the data element change document checkbox is also choosen .
    In the Sales order the user presses a button - a popup comes & data is selected & populated in this new feild .
    But inspite of change document being set & in the FM VERKBELEG_WRITE_DOCUMENT this data coming in data is not getting updated .Has anybody faced such problem & if so what is the solution to this
    best regards
    Deepak

    Try this, simple report... Here we check the new value of credit  status field VBUK-CMGST and if it is 'D' we know that someone used VKM* transaction to release the document. Also you need to format the sales order number with leading zeros so it occupies all 10 digits and pass it to CDHDR-OBJECTID field (and not CHANGENR field). In the below code I am using select option for sales order number, so I know it will be formatted with leading zeros and so select on CDHDR will be successful.
    *& Report  ZTV_TEST
    REPORT  ztv_test.
    TABLES: vbak, cdhdr.
    SELECT-OPTIONS: s_saldoc FOR vbak-vbeln OBLIGATORY,
                    s_udate FOR cdhdr-udate.
    RANGES: r_objid FOR cdhdr-objectclas.
    DATA: ls_cdhdr TYPE cdhdr,
          ls_cdpos TYPE cdpos.
    IF NOT s_saldoc IS INITIAL.
      LOOP AT s_saldoc.
        MOVE-CORRESPONDING s_saldoc TO r_objid.
        CONDENSE: r_objid-high, r_objid-low.
        APPEND r_objid.
      ENDLOOP.
    ENDIF.
    CHECK NOT r_objid[] IS INITIAL.
    SELECT *
      INTO ls_cdhdr
      FROM cdhdr
            WHERE objectclas = 'VERKBELEG' AND
                  objectid IN r_objid AND
                  udate IN s_udate AND
                  tcode LIKE 'VKM%'.
      SELECT SINGLE *
        INTO ls_cdpos
        FROM cdpos
          WHERE objectclas = ls_cdhdr-objectclas AND
                objectid = ls_cdhdr-objectid AND
                changenr = ls_cdhdr-changenr AND
                tabname = 'VBUK' AND
                fname = 'CMGST' AND
                value_new = 'D'.
      IF sy-subrc = 0.
        WRITE:/ ls_cdhdr-objectid(10), ls_cdhdr-username,
                ls_cdhdr-udate, ls_cdhdr-utime.
      ENDIF.
    ENDSELECT.

  • Configration documents for Sales Orders

    Hi Experts,
    Please help me to understand for the concept for Sales orders.
    IF any one is having nay customizing documents it will be helpful
    Thanks once again,
    Regards
    Prajith P

    Hi prajith,
    Try this link,         http://help.sap.com/bp_crmv12007/CRM_DE/BBLibrary/html/BBlibrary.htm
    you can get some document to read.
    Regards
    senthil

  • Create and Change functionality for Sales order

    Hii All,
                Can any one please suggest me any Standard program or BAPI or IDOC for Sales order, it should cover create as well as change fuctionality of Sales order.
    this is very urgent to me.
    Suitable Answer will be Rewarded.
    Thankyou,
    Shobha.

    For change you can use:
    BAPI_SALESORDER_CHANGE         Sales order: Change Sales Order
    For create you have the following choices:
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESDOCU_CREATEFROMDATA with business object 'BUS2032'
    The difference between the create ones is the functionality you get e.g. create_from_data2 is the 'most powerful' but you also have to provide the most data. It just depends on what you want it to do.
    In terms of IDOCS:
    message type:
    SALESORDER_CREATEFROMDAT201 or
    SALESORDER_CREATEFROMDAT202 or
    ORDERS05
    Hope that helps,
    Michael
    Here is an example we use, you might want to populate additional fields or leave fields out in case you want different data to be transferred to the IDOC - however some fields are mandatory.
    create the order header structure
      ls_header-doc_type   = ls_screen-order_type.
      ls_header-sales_org  = gc_vkorg_aa01.
      ls_header-distr_chan = gc_distr_aa.
      ls_header-division   = gc_divis_aa.
      ls_header-purch_no   = ls_screen-po_num.
      ls_header-po_method  = ls_screen-po_source.
      ls_header-ship_cond  = ls_screen-ship_cond.
    create partner input table (sold to)
      ls_partner-partn_role = gc_role_sold.
      ls_partner-partn_numb = ls_screen-sold_to.
      APPEND ls_partner TO lt_partner.
    create partner input table (ship to)
      ls_partner-partn_role = gc_role_ship.
      ls_partner-partn_numb = ls_screen-ship_to.
      APPEND ls_partner TO lt_partner.
    items are added by looping at a table
        ls_item-material = <fs_upload>-matnr.
        ls_item-req_qty  = <fs_upload>-quantity.
      process the quantity, it needs to be three decimals, because it
      will be moved into a string in the BAPI and divided by 1000 before
      it is moved back into a number field (1.500 => 001500 => 1.5)
        ls_item-req_qty = ls_item-req_qty * 1000.
      truncate remaining decimal places if exist (1.2525 => 1252.5 => 1252 => 1.252)
        ls_item-req_qty = trunc( ls_item-req_qty ).
        price is taken from the file
          ls_item-cond_type = gc_cond_so_upld_price.
          ls_item-cond_val1 = <fs_upload>-price.
        condition one (price) is multiplied by 10 in the BAPI
          ls_item-cond_val1 = ls_item-cond_val1 / 10.
        no discount
          ls_item-cd_type2   = gc_cond_so_upld_disc.
          ls_item-cd_value2  = 0.
        ls_item-item_categ = ls_screen-item_cat.
          APPEND ls_item TO lt_item.
    then BAPI is called
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
        EXPORTING
          order_header_in           = ls_header
          business_object           = gc_bus_obj
        IMPORTING
          SALESDOCUMENT             = lv_vbeln
          RETURN                    = ls_return
        tables
          order_items_in            = lt_item
          order_partners            = lt_partner.
      IF ls_return-type NE gc_msgty_error AND
         ls_return-type NE gc_msgty_abend.
      No errors where found
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ELSE.
      There was an error or abend
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF.

  • Change documents for planned order

    HI ,
    My issue is that My client is creating planned orders manually. He is changing them if required( like quantity or dates) . Now he is asking that he require change documents relating to change he has done to the planned order. He wants to mention the reason behind the change in SAP.
    Please help me to resolve this issue
    Thanks in advance
    vinay

    Dear,
    Planned order is a tempapry object...cannot have a change document for that.
    Once production order is created in Std SAP planned order is deleted..what will you do with change number against the pklanned order reference...
    Please advice your client to use production order if required.
    If you want to have that you need to change the SAP std code
    Edited by: Rajesha Vittal on Feb 8, 2008 4:16 PM

  • Change document for internal orders - RKAUFTRAG

    I am trying to trigger a workflow event using change document RKAUFTRAG (internal order).  It works when I change the internal order, but not when I CREATE an internal order.  Any help?

    Hi Kenneth,
    I am facing the same problem for object class RKAUFTRAG, for creation i am not getting the data.
    please let me know the user-exit.
    it will realy helpful for me.
    with regards,
    Debdutta Dey

  • Creating change log for sales order

    hi all,
    i want to create change log for any given sales order if it exists.
    can any one tell me how to do that??

    Hi Gouri,
    CDHDR and CDPOS are the tables for all change history.
    CDHDR contains the details such as who made the change, when, using what tcode and the change type ie. update, delete.
    CDPOS contains the field name which was changed, its old value and its new value.
    The change document object is VERKBELEG for sales documents.
    The object value is the SD document number with leading zeros.
    The following link will be also useful.
    http://www.sap-img.com/ab024.htm
    Regards,
    Nitin.

  • Change status for sales order in crmd_order

    Hi,
    I am creating a report which has to change for all sales order with status "Open" to status "Processed". Is there any function or bapi to do this ?? Supposing, there is no function, which tables do i have to change ???
    thanks in advance!!!
    Maria

    Mmmm it doesn't work... I have tried this:
        CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
          EXPORTING
      CHECK_ONLY                = ' '
            OBJNR                     = i_crmd_orderadm_h-guid
            USER_STATUS               = 'I1003'
      SET_INACT                 = ' '
      IV_REF_KIND               =
      IV_OBJECT_TYPE            =
      IV_NO_1O_MAINTAIN         =
    IMPORTING
      STONR                     =
    EXCEPTIONS
       OBJECT_NOT_FOUND          = 1
       STATUS_INCONSISTENT       = 2
       STATUS_NOT_ALLOWED        = 3
       OTHERS                    = 4.
    If sy-subrc = 0.
    endif.
    But noting has change in tag Status in tx. CRMD_ORDER.. still have in "system status": In process and in "User status": Order Rep Processed.
    Thanks in advance !!!

  • Triggering event through Change Management for Sales order

    I am working on three different scenarios of workflow which is triggered on change of sales order.  I am trying to put conditions in SWEC for the workflows to start but not sure how to go about it.  I created change doc object VERKBELEG and assigned bus2032 and changed as my event.  I inserted a value in condition editor like vbap_(fieldname)_new etc.  Nothing seem to be working.
    I would like to know once we assign event here in SWEC, should we also assign and activate it in the triggering tab of workflow or just create an entry in the linkage table.
    Please guide me as to how I need to work on the sales order change.  I am basically want to trigger a sales order only when a field value is updated or inserted which pertains to my requirement.
    Thank you very much.

    Karthik,
    My problem is still not resolved.  I am trying to put something like this.  Let me know if you have were able to do this in any other way.
    DATA : i_cdhdr LIKE cdhdr OCCURS 0 WITH HEADER LINE.
    DATA : lt_editpos LIKE cdshw OCCURS 0 WITH HEADER LINE.
    DATA : it_vbap LIKE vbap OCCURS 0 WITH HEADER LINE.
    DATA : flag(1) TYPE c.
    DATA : text LIKE message-msgtx.
    DATA: BEGIN OF ITAB OCCURS 10.
            INCLUDE STRUCTURE cdshw.
    DATA:   UDATE LIKE CDHDR-UDATE,
            USERNAME LIKE CDHDR-USERNAME,
            CHANGENR LIKE CDHDR-CHANGENR,
            VBELN(10),
            POSNR(6),
            ETENR(4),
            INDTEXT(200),
      END OF ITAB.
    data : lv_vbeln like vbap-vbeln.
    data : lv_posnr like vbap-posnr.
    SELECT vbeln posnr FROM vbap INTO TABLE it_vbap WHERE
                                           vbeln = '               ' AND
                                           posnr = .
    i_cdhdr-objectclas = 'VERKBELEG'.
    i_cdhdr-objectid   =  '      '.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              objectclass       = 'VERKBELEG'
              objectid          = '            '
              username          = space
              time_of_change    = i_cdhdr-utime
         TABLES
              i_cdhdr           = i_cdhdr
         EXCEPTIONS
              no_position_found = 1
              OTHERS            = 2.
    IF sy-subrc EQ 0 AND NOT i_cdhdr[] IS INITIAL.
      sort i_cdhdr by CHANGENR UDATE UTIME descending.
      LOOP AT i_cdhdr.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
             EXPORTING
                  changenumber      = i_cdhdr-changenr
             TABLES
                  editpos           = lt_editpos
             EXCEPTIONS
                  no_position_found = 1
                  OTHERS            = 2.
      ENDLOOP.
    **change in fname is eq lprio delete the records.
    loop at lt_editpos.  
        if lt_editpos-fname = 'LPRIO' and
           lt_editpos-CHNGIND = 'U' and
           lt_editpos-F_NEW = '03' and
           lt_editpos-tabname = 'VBAP'.
          flag = 'X'.
            concatenate lt_editpos-fname lt_editpos-f_new into text.
          exit.
        elseif lt_editpos-fname = 'KEY' and
               lt_editpos-CHNGIND = 'I' and
               lt_editpos-tabname = 'VBAP'.
          lv_vbeln = lt_editpos-tabkey+3(10).
          lv_posnr = lt_editpos-tabkey+13(6).
          select single * from vbap into it_vbap where
                                           vbeln eq lv_vbeln and
                                           posnr eq lv_posnr.
          if sy-subrc = 0 and it_vbap-lprio = '03'.
            flag = 'X'.
             concatenate lv_vbeln lv_posnr it_vbap-lprio into text.
            exit.
          endif.
        endif.
      endloop.
    endif.

  • Change indicator for sales orders

    Hi All,
    I would like to know when a change is done to a sales order (in VA02), in order to automatically change its status to the default.
    Does SAP stores a flag that indicates whether the order was changed?
    Thanks!
    Amit

    Hi Amit,
    Whenever any changes done to any object(eg. Sales Order, Material Master, Customer Master,etc.) in SAP, it is recorded in change document table CDHDR. This table records following important fields,
    Object Value
    Old Value
    New Value
    Change date
    Time
    Transaction(By which changes are done)
    So you can find all the changes done to your sales order in this table.
    Just Run SE16 >> Table CDHDR >> put your sales order no in field OBJECT VALUE and execute.
    I hope this answers your question.
    Regards,
    Mohit

  • Change document for Maintenance Order Basic Start date

    Hi Gurus,
    I want to trace the changes to MO basic start date. But the change document indicator for MO Basic start date is not enabled.
    Is there anyother option to trace the changes to MO Basic start date??
    Thanks,
    Prabhu.

    Prabhu,
    Not all fields are tracked for changes.
    In the past we have developed some functionality to add these missing fields to the change documents.
    In this case you could utilise IWO10009 (at save event) to save the change documents.
    PeteA

  • Change Document - for purchase order

    Hi all,
    when i make some changes in the purchase order(ME22N) it is stored in the table CDPOS but when i change the delivery address field this alone is not stored. what may be the reason? and how to do it?
    can anyone help me in this?
    helpfull answers will be rewarded with points..
    Thanks,
    Murali.

    Saquib,
    No, this is not directly linked to the customer or vendor master. What happens is, during PO creation the delivery address is picked up from the address of the plant, but that can be updated via both BAPI and transaction.Each time this address gets changed, SAP generates a new ADRNR and store that address in ADRC.
    This might help you in future in case you face such situation. I faced this only a few months and that's why I remeber this so clearly.
    Murali,
    Please award points and close the thread if it helped you.

  • How to create or update 'change document' for crm order

    Hi all,
       i want to create or update change document records via program . And which method could be used (FM or ...) ?
      I find there is a fm 'CRM_ORDER_WRITE_DOCUMENT' . But seems not available?
      any good idea ?
    BR.

    Hello
    You can refer to FM:CRM_ORDER_CHANGE_DOCS_CREATE. In this FM, the change documents are set.
    But I don't recommend to create or change standard change document by your own logic because of view of the internal control. Changing the change document by user own logic has possibility to make the falsification.
    Regards,
    Masayuki

Maybe you are looking for