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.

Similar Messages

  • 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.

  • I need to modified or changes in Ordering Document of Sales order

    Dear All,
    Currently i have a task to modified the changes in Ordering Document of Sales Order where
    Products
    You have ordered the products described below for use in the U.S., and not for resale, unless otherwise specified.
    Currency Used On This Document........
    Changes required in U.S. ----- Pakistan
    Please advice how can i do this.

    How does one remove the following text from the Ordering Document that is generated from Sales Order Preview and Print?
    "Products
    You have ordered the products described below for use in the U.S., and not for resales unless otherwise specified"

  • Change in document type while creating billing document from sales order

    While creating billing document from Sales order it is creating with document type RV which is standerd one but i want to change Document type.
    How can i change it?
    Regards
    Raj

    Hi
    If you use another existing document type, check that it has a number range suitable to you.  Else create a new 'z' type and assign an entirely new number range, not used in the other doc types.
    It is useful to make the FI document number the same number.  If I understand from the forums, the FI number range must be external.  Search the forum for this.  It is very useful for the Finance people.
    Kind regards
    Dawn
    Edited by: Dawn Verrell on Sep 9, 2010 4:10 PM

  • Trigger partner determination when ship-to is changed on the sales order

    Hi,
    Here is my scenario...
    I am defaulting my rail carrier partner function based on the ship-to party partner function into the sales order using the standard configuration i.e. by maintaining SH as entry in the "source" field for rail carrier partner function of the sales document partner determination procedure. Every thing is fine until the ship-to party in the order is not changed by the user. when the user changes the ship-to party the carrier is not re-determined (the old rail carrier partner function which defaulted into the order from the old ship-to party record stays in the document). I know standard SAP doesn't re-determine partners. Can anyone came accross this issue?
    I would like to know if there is an user exit that i could use and write a code to trigger parter determination when a ship-to partner is changed in the sales order.
    -Sree.
    Edited by: SREE on Sep 15, 2008 4:40 PM

    Hi,
    Try to use user exit FORM USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ.
    Regards,

  • Program for mass change in the sales order.

    Hi,
      I have a requirement where If we make changes in  the availability check rule of the material master(for e.g. 02 to 01),then the same rule should be changed in the sales order as well.
      Though this will be changed for the new orders but is there any program which we can run manually or in the background in order to make changes in the old sales orders.
    Regards
    Karan

    Hi,
            U cannot change checking group or checking rule for availabillity check at sales order level, u can change requirements type.
            If u want to change requirements type determined into sales orders, which  r already created go to t.code MASS and select the object type sales orders and press execute, select sales order item data on tables tab,and select requirements type on fields tab and press execute.specify sales documents number from and to and item numbers, and press execute and specify the new value and press carryout mass change button and then save.
    with regards,
    kirankumar vemula

  • Changing address in sales order item level

    Dear very good mng
    i want to know , i am trying to change ship to party address in sales order line item level
    but showing Gray mode only ..  i have maintained Sales document item level ( partners) Removed check box not modifiable
    And i activated Item partners check box at partner tab
    even i am not able to change address in sales order item level plz tell me
    Thanks a lot

    Hi Madhuri
    I  have checked my self.system does allow to change different ship to Party on line Item level .
    Please do the following steps .
    1. Replace/delete  the WE partner Number ( Example -1) in my case  in change mode.
    2. system will show some error message as show below while deleting or replacing WE with some other ship to Party code.
    3. Ignore the message and go ahead  . Please put the new Partner's number and double click
    address Screen will Pop up . You can Change the address .
    Hope this helps .Let me know for more clarification needed .
    Regards
    Santosh Verma

  • Change of existing sales order (WCEM 3.0 SP1)

    Hi all,
    does anyone of developed the feature to change a existing sales order?
    Any hint to do it the best way?
    Thanks in advance,
    Meikel

    Hi Meikel,
    personally i haven't modified the sales order, but i did something in relationship to service orders. Both types are transaction documents in kind of the same but both using a different transaction type-id.
    Within WCEM the GenIL Layer has been integrated, which kind of gives you the chance to create, read & modify those transaction documents.  The java interfaces which SAP has build is calling behind the scene the corresponding ABAP RFC function - should be the same as the WebUI does. This function is used for the e-service integration and should provide you what you need.
    Just another hint: Not sure if my change request has been applied, but take a closer look into the toString() output of the GenIL (container) objects. When i was initially using it, the toString returned the string representation from the current object up to the root (excluding the child elements). Unfortunately this made it tought to understand the current status of the document. If my change request was applied, then you should get the output of current objects including all child elements recursively - if not, then just overwrite the toString() and generate a XML like output. That will safe you a lots of time to understand what is actually happening and within a short timeframe you  can implement your logic.
    Cheers,
    Andreas

  • 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

  • Preventing an 'Invoice To' address being changed in a Sales Order.

    I was wondering how to prevent an 'invoice to' address from being changed in a sales order in SAP?
    I only want one person to be able to change this information.  Can this be done?
    Hope someone can help me

    Hello Gordon,
    I found your answer about overwriten of address data in sales documents.
    What ist SBO_SP_TransactionNotification?
    Thanks for your help.
    Petra Schober

  • Attached documents in sales order disappears in Invoice

    Hi All,
    I attach some documents in change mode of sales order and when i see the Invoice it disappears. Can someone help me what settings or which object if activated can carry the attached documents from sales order to Invoice.
    Thanks.....

    Hi,
    Please refer to this link. A similar situation has been discussed in this link.
    File to copied from one tcode to another tcode
    Let me know if you are still having issues with this.
    Regards,
    Rohan Gudavalli

  • Unable to change the existing sales order

    Hi
    I need to change the existing sales order document which was already created and replicated into R/3.The following error has been giving
    "Document is being distributed - Changes are not possible".
    Can anybody help me how to change the document.
    early response would be rewarded,.
    Regards
    Vikram

    Hi Vikram,
    The problem is caused by a program error.
    Please follow the SAP Note for complete information.
    SAP Note : 718065
    Regards,
    Johnny.
    Reward with points if it helps.

  • How to Change Division On sales order

    Hii Guy,
    How to change Division on sales order after been save ?
    my user wrongly enter division code while creating sales order. the SO already have PGI and not yet been invoice.

    Best Practice is to go PGR and then cancel Delivery.Then Go to VA02 and change the Division.
    You can customize the Division at Sales Docuement Type by De-Selecting the Check Box of Item Division.It means the division will be copied from the Header Level of Customer Master Data.
    Best Regards,
    Ankur

  • 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 !!!

  • Populating the Partners from Sales document (Customer/Sales order/delivery)

    Hi All,
    Is there any way to Populate the Partners which are mantained in Sales document (Customer/Sales order/delivery) into Customer Quality notification (Q1)
    Presently only Sales to party and ship to party is getting populated when we create Q1 notification.
    Thanks in advance
    jay

    Explore :
    Quality notification>Notifcation creation->partner->Define partner fuction procedure->Assign Partner Functions to Notification Type--->
    Check here whether you can get here the partner function.

Maybe you are looking for

  • Lost attachments in Mac Mail ...

    I have an email thread (quite a long one). In one of the emails sent to me was an important document, it was sent as an attachment. I am trying to retrieve this document, however, when I go to find that particular message in the thread I cannot click

  • Application Error message takes more time in ECC

    Hi All, I am working soap to proxy synchronous scenario. when call is success i am able to get the response immediately from ECC within 2 to 3s. when there is any application error in ECC it is taking more time to send back the fault message to SAP P

  • F.01 TCODE for balnce sheet printing

    Hi We are using F.01 transaction for balance sheet printing. We are facing problem in printing previous year values ( 2006 ) How to upload these values. PLS. explain the flow. In the sapscript the values which are used for printing are ERP18,ECP18 et

  • Recieved a Warning in Repair Permissions

    Back again, I just recieved a Warning while doing a Repair Permission Warning:SUID file"System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/A RDAgent"has been modified and will not be repaired What is this and should I have conce

  • Can you retrieve document from the output folder?

    OK, this was a stupid thing to do, I know.  But I'm hoping there is a solution. I spent the past two days editing a 600+ page document that I produced using the Printed Documentation SSL.  Unfortunately, I didn't copy it out of the output folder.  Th