Reg : Issuing Idocs after changes to orders

Hi Frens ,
I am having one query .
Idoc to be issued everytimes changes occur in a sales order.
May be from VA02 or may be from end user's program.
can i use cdhdr or cdpos table in my requirement (VOFM).
or is there any fields are available in communication structre ( kompbv1 , komkbv1) OR is there any other way to do it .
Thanx and regards,

Hi Amitav,
I repost here in case you are not watching both threads.  Please feel free to reward both answers!!
Hi Amitav,
This is a tricky one.
There is a field that it set within SAPMV45A processing (r185d-dataloss) which is set to X if a standard SAP field hase been changed in the order.
So, here is what I would suggest you do:
1. set up your output condition type as 'multiple issueing'.  This will ensure that every time you go into change a sales order the output type is proposed
2. In the userexit USEREXIT_SAVE_DOCUMENT_PREPARE I would export to memory (using the sales order number as the key) the value of r185d-dataloss
3. In your requirement import from memory the value of the field r185d-dataloss (clearing the memory entry afterwards)
4. If the value is X then pass the requirement, otherwise fail it
This way, your requirement will always reject the output type until the document is saved.  If it is saved and there were changes, during update processing the requirement will pass and the output will be generated.
If you want to avoid IMPORT/EXPORT from memory then you could use the technique described in my blog: /people/brad.williams/blog/2005/04/25/userexits--how-do-i-access-inaccessible-data
Hope that that makes sense. 
Cheers,
Brad

Similar Messages

  • Inbound Idoc Create/Change Purchase Order

    Hi All,
    I have to do a inbound Idoc scenario for create as well as change Purchase Order.
    Which is the IDoc type for Create/Change purchase order.
    I went through this form found that ORDERS05 can be used but I am not sure this can be used for both create as well change Purchase Order.
    If ORDERS05 can be used then which is Process code,Function Module and Message type for both create and change Purchase order.
    I also found that IDoc type PORDCR102 can be used for  create Purchase order and PORDCH02 can be used for change Purchase order,but i don't want to use two Idoc types.
    Please suggest.
    Thanks in advance.
    Regards,
    John

    Hi John,
    For creating a IDoc for PO, whenever a PO is created/Changed, it has to be configured in Parter Profile(WE20) for a particular Partner in Outbound Paramtrs tab.
    Give ORDERS05 in Message Type and select the line & go to Display.
    In the screen which appears , choose tab Message Control and give the Process code
    ME10 - Creation of PO
    ME11 - Changes to PO & check the Change Message.
    Give respective Output Message Type & Application(VF) for PO.
    Create Output types for a vendor in T.Code MN04, else take help from MM Consultant.
    Create a PO & save. Then make some changes in Po & again save.
    Now IDoc will be created while saving the Po & IDocs will be created whenver you make changes to PO and saving it.
    Hope It helps.
    Regards,
    Anbalagan

  • Availability quantity after changing sales order -

    Hi experts,
    where is the settings for availability quanity for assembly order..
    problem is..
    after creating sales order when we wanted to do change ..that time i am not getting availability quantity..
    Thanksin Advance,
    Anthyodaya...

    Hello,
    I hope you  are using the  Standard Assembly  to  Order strategy,in ATO if any changes in Sale order like  Delivery date, Quantity  will pass to  production Order directly,vice Versa any changes in production Order will be passed back to  Sale Order.
      Generally in ATO availability check will be carried out at component level, Based on the availability date of component , the delivery  date get adjusted.  
      Now explain me , what changes you have done in sale order, either date  or quantity, what message you are  getting  during  your availability  check.
    Regards
    Pradeep

  • Visualisation issues even after changing gfx.direct2d.disabled to be true

    I had a really weird defect rendering text and pictures. Searched in the net and found out the resolution to change the value of gfx.direct2d.disabled from false to true. Things went better and now I see pages well. However I still discover issues especially with drop-down menus - I can't see any of them. Also if for example my download finishes the little pop-up window which appears at the bottom right corner is visualized in the same manner - blurred white-blue lines with nothing that can be distinguished. I'd be glad if I could send you a snapshot. The problem does not persist in other browsers , so it's not a hardware one.

    Hello, toggle the '''gfx.direct2d.disabled''' to false again, and toggle the '''gfx.content.azure.enabled''' to false, and check firefox again, otherwise try to
    disable hardware acceleration in Firefox, go from Firefox button > Options Oprions > Advanced > General > Browsing: "Use hardware acceleration when available" [ ].
    thank you

  • Revoke release of Plant maintenance order after change is done to the order

    Hi
    I need to know if thorugh some configuration I could enable the feature which revokes the release of a plant maintenance order after certain change is done to the order. Please help.
    Thanks,
    Ankbat

    hi
    you cannot revoke the status of released after changing the order. you can explore the use of user status profile
    regards
    thyagarajan

  • After changing the context path, felix console, I can not checkout content via vlt.

    Hi everyone,
    I have the following issue. After changing the context path, via felix console, I can not checkout the content via vlt. Before that, I could checkout without any problems.
    I am using CQ5.5, CRX2.3, context path: /Test
    That is what I am trying:
    vlt -v --credentials admin:admin co http://localhost:23310/Test/server/crx.default
    Connecting via JCR remoting to http://localhost:23310/Test/server
    [WARN ] Authentication required to access repository descriptors
    [ERROR] checkout: com.day.jcr.vault.vlt.VltException: Unable to mount filesystem
    caused by: javax.jcr.ItemNotFoundException: Not Found
    caused by: org.apache.jackrabbit.webdav.DavException: Not Found
    Other versions I tried:
    vlt -v --credentials admin:admin co http://localhost:23310/crx
    vlt --credentials admin:admin co http://localhost:23310/Test/server
    vlt --credentials admin:admin co http://localhost:23310/Test
    vlt --credentials admin:admin co http://localhost:23310/Test/crx
    To verify if I could connect to the instance properly I started CRXDE
    and try to connect to "http://localhost:23310/Test"
    After click the ok button I got that error:
    No file system is defined for scheme: jcr
    Part of the .log file (.crxde):
    eclipse.buildId=unknown
    java.version=1.6.0_37
    java.vendor=Apple Inc.
    BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE
    Framework arguments:  -keyring /Users/peterwimsey/.eclipse_keyring -showlocation
    Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/peterwimsey/.eclipse_keyr
    ing -showlocation
    !ENTRY org.eclipse.core.resources 2 10035 2012-11-25 19:01:19.268
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to
    recover changes.
    !ENTRY org.eclipse.osgi 4 0 2012-11-25 19:04:14.363
    !MESSAGE Application error
    !STACK 1
    java.lang.reflect.InvocationTargetException
            at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
            at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau
    ncher.java:110)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav
    a:79)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
            at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
            at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)
            at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65)
            at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107)
            at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)
            at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100)
            at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6)
    Any tips or hints are welcome.
    In the case you need more information, just leave a note.
    Thanks in advance for your help.
    Best regards,
    Peter

    The VLT works fine with the above URL change but How to fix "CRXDE" Initialization error if a context path is defined?
    I have a context path defined /Test and when I am trying to login to CRXDE with URL as http://localhost:4502/Test, I am getting below Initialization Error.
    Any workaround as Which URL should work while logging to repository (with context path) using CRXDE 1.0.1
    eclipse.buildId=unknown java.version=1.6.0_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments:  -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.osgi 4 0 2013-04-25 17:50:23.802 !MESSAGE Application error !STACK 1 java.lang.reflect.InvocationTargetException at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121) at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
    at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55) at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50) at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65) at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107) at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350) at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100) at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6) at com.day.cq.ide.init.SetupWorkspaceOperation.execute(SetupWorkspaceOperation.java:119) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118) ... 13 more Root exception:
    Thanks.

  • Changing the order, changes my calculation

    I have a simple calculation. When I now change the order of my price list from ascending to descending, my total price changes too. In Numbers 2, this didn't happen. What can I do to make Numbers 3 act like Numbers 2?
    Thanks for helping!
    Ruben
    Total price after changing the order:

    Hi rmgffi,
    In other words, the formula you think says "Pieces Apples x Dollor Apple Price" is really Calculation::B2 x Price::B2. When you do your sort, you change what is in B2 so your results change. Numbers used to assume we wanted to follow the cell after a sort but that lead to its own difficulties. I can't tell you what they are but the people who where there seem to like this current way better. So now we create sort-safe tables.
    If there is a chance of a close match sending you to the wrong row you may want VLOOKUP or to use OFFSET and MATCH as both VLOOKUP and MATCH will let you require an exact match.
    quinn

  • Issue with printing production order after changes through CO02

    Hi,
    Currently I have one issue with printing production order changes through CO02. If I go for print, all the operations are captured in printout. But after the print, if I add any new operations to this production order, and then go for print, its not capturing the newly added operations. Also, there is information popup coming "Copies will be printed for order. Original list already printed". This message effectively means, even after changes, when I go for print functionality, its just going for printing copies of original printed list.
    Can anyone help me out to get the newly added operations reflected in the print through CO02 ?
    Regards,
    Shiva

    Hi Shiva,
    Refer SAP note 28887.
    Source: http://www.sapfans.com/forums/viewtopic.php?f=9&t=308577
    Please search /google before posting queries.
    Regards,
    SuryaD.

  • IDoc Issues when creating a Sales Order in CRM System

    Hi All,
    We have a BSP application in place which allows the customers to create orders online. This BSP application is linked to R/3. The R/3 BSP application remotely calls a custom code in the CRM system which creates an IDOC for the CRM Order and the IDOC is processed and a CRM Order gets created. In the BSP page we have given a provision to the client to enter a Requested Delivery Date which is mapped to the delivery date in CRM system.
    Now comes the problem. When the customer creates an order, he enters the requested delivery date but the order which is getting created is not being populated with the date entered in the screen but with the current date.
    But when I try and reprocess the IDOC through WE19 without changing any IDOC data records the order gets created with the date which was entered in the webpage.
    Any pointers regarding what is happening?
    Regards,
    Karthik

    Hi Karthik,
    Just check on the field date, this request delivery date in CRM.
    Does it come from date profile? If it does, then try to remove the
    date rule or any default value for this date.
    Alternatively, I am afraid you have to separately save the date
    after first IDOC document creation is done. Seems that the default
    value taken place (and replaced) after the document has created.
    Hope this helps.
    Gun.

  • IDoc Configuration for Production Order Creation and Change

    Hi All,
    Please Help me out for IDoc Configuration for Production Order Creation and Change
    I have found the IDoc for Production Order
    Messgae Type : LOIPRO and IDoc type : LOIPRO01
    Actually my requirment is to send the (LOIPRO01 )IDoc from SAP R/3 to XI system ,when ever the Production Order Created and Changed,
    I have done following Configurations:
    1. RFC Destination created for XI system
    2. PORT was created for XI
    3. Partner profile created WE20 and LOIPRO01 IDoc is added in OutBound Perameter.
    I need to know how to do the followning.
    1. How do i configure the outbound Production order idocs when Production Order is created or changed.
    2. in NACE (Output control) which is the Application for Production Order.
    3. How can I set IDoc as output Type for Production Order Creation.
    Thanks in advance
    Dhanabal T

    Hi Michal,
    I know that it is the old thread but still want to get clarified from you out of curiosity.
    Unlike other IDOC, i actiavated change pointers for LOIPRO
    1.message and idoc type is linked
    2.function module , message type , idoc type is linked
    function module used is CLOI_MASTERIDOC_CREATE_LOIPRO
    3.BD64, distribution model is created and distributed
    4. port and partner profile is in place.
    5. IDOC is not getting generated after creating the process order.
    do we need to activate the change documents for the message type in BD52,
    if yes can you please provide the object types for the same.
    or i am missing something else. please guide me in this regards.
    Thanks in advance for your time.
    S.Janagar

  • Automatic ORDCHG Change Purchase Order after Order response from Vednor

    Hi
    How to trigger Change Purchase Order action after receiving PO Confirmation - Order Response from Vendor.
    The scenario is that Order Confirmation vednors sends contains delivery date or delivery qunatity variance within defined tolerances. In such cases it is acceptable to allow automatic PO change.
    This is an EDI scenario. Idocs ORDRSP and ORDCHG in use.
    Thanks for hints.
    Mariusz

    - For automatic document adjustment, you must make the necessary settings in Customizing (SPRO ->Materials Management->Purchasing->Conditions->Automatic Document Adjustment). The system logs all the relevant purchasing documents and can therefore determine all the documents affected by a change to a condition.                                    
    - This is only possible for purchasing documents for which follow-on documents (goods receipt, invoice receipt) do not exist.           
    - Before you run this report, you must have run report RMEBEIN4 (creation of worklist for automatic document adjustment).

  • Getting IDOC after Purchase Order creation

    Hey,
    i need to get the XML-data from the IDOC which is created right after the creation of a purchase order with TR ME21N.
    I tried the following user exits:
    MM06E001- EXIT_SAPLEINM_002
    MM06E001- EXIT_SAPLEINM_011
    but it seems the program doesnt run into them, even if they're active as exit in my project.
    Can anyone tell me how can i do that ? Maybe over an event ?
    thanks and any help will be rewarded,
    oliver

    Hi Tejas,
    I do not know about Trading Contract but what all I can say it that Check if Change pointers are getting written Once the PO has been created, If "Yes" then probably you do not have to do anything for craetion of Purchanse Order. You can use RBDMIDOC Program to create IDOCs from change pointers.
    Refer [this|http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm] for more information on change pointers.
    Regards
    Shital

  • Issue while updating(Changing) quantity on line at quick sales order form

    Hi,
    I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
    Although the same logic works exactly as required in 11.5.9.
    There is a custom logic, post booking line status is Awaiting Shipping.
    Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
    The quantity here is the difference between the original quantity and the new entered quantity.
    And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
    Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
    The logic is perfect in 11.5.9 and no additional insert is being made.
    Kindly help and give some ideas for the possible reason the issue.
    Please ask for more information if required.
    Thanks,
    Vishal

    Hi Mahendra,
    I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
    Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
    Kindly suggest any other options.

  • Issue in transporting changed material type using ALE-IDOC

    Hi All,
    I am sending the material master data from one system to another using ALE-IDOC.The issue is that teh material type is not getting sent from one system to another after changing the material type.I mean the changes in material type are not getting updated.I will be indeed thankful if anyone can guide me resolve this issue.
    Thanks.

    Hi,
    Not all the fields that are changed in material master are sent in the Idoc. Material type is one such field.
    Create change pointer on some other field ex. net value or material desc. and transfer the material type changes under it.
    KR Jaideep,

  • Automatically Trigger a Idoc when a sale order Document is changed

    Hi Experts,
    Currently Idoc is pushed manually through sale order change transaction " VA02 " menu path
    " extras - > output - > header - > edit "
    I have done the nace settings for output types & condition records . Now that the Idoc gets triggered automatically
    when a document is created in VA01 transaction. Is there any other settings required such that the IDoc can be sent automatically once the document is changed and saved through VA02 transaction also.
    Or do I need to process the IDoc through user exit of VA02. Kindly advice how to proceed with it.
    sathish
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Mar 17, 2011 12:48 PM

    In Partner profile(WE20), you can make one mor entry similar to  existing record with check box enable, under Message control tab.means maintain the below details, Application, message type, process code and enable the change check box.
    After making entry in WE20, you can change sales order and save the application.It may work.

Maybe you are looking for

  • Crystal 8.5 compiler

    I am new to this so I apologise if I am posting in the wrong area.  Recently my machine crashed and had to be reloaded.  During the process I lost the ability to compile Crystal 8.5 reports. Does anybody know, where can I get a copy of the compiler?

  • Contract opportunity for flex skin developer

    Hi, I'm looking for an experienced Flex developer to help me reskin my web service. I will supply the graphic design and a fullly functional system with about six screens implemented in Flex 3.5. Good communication and teamwork is a must since we'll

  • Using The Connect Command

    Hi, If i want to connect from one instance to several instances then from SQL plus I can use connect command and connect one by one. But when i am writing a PL SQL package does the same trick works? means For Instance A(sysdate :: 22/07/07) and B(sys

  • Menu componenet which will display and rotate the images on the screen

    Hi, Since from last 15 days i am trying to develop a menu component, which should be displayed consistently in all the emulators in the sun wireless toolkit,based on the screen size. So if anybody has idea of doing so using any logic please.... help

  • On Adium how to view chat history?

    On Adium, how do you view all the history of your chat? On Skype it's simple because you can click on 'view history - all' on the top of the talk window