Enhancement in IDOC_INPUT_ORDERS not saving changes after order creation

I have an enhancement at the beginning of the IDOC_INPUT_ORDERS function module used to create sales orders via EDI.  In the enhancement, I take the data records and make some changes to some quantities and units of measure.  After making these changes, I let the function module continue on as normal.  The order does get created with my changes in them, however, the IDoc doesn't reflect my changes.
Here's an example:  An EDI order comes in with 6 EAs of a material.  In my enhancement, I change it from 6 EAs to 2 3PK.  I then let it go on its way.  The order gets created fine with 2 3PKs, however the IDoc after its a ll done still says 6 EAs. 
The enhancement runs before the FM puts the data into the tables it uses. I tried using the last user exit to open the IDoc and editing it there using the EDI_DOCUMENT_OPEN_FOR_EDIT FM but it says its open. 
Can anyone give me any clues on how to make my changes stick to the IDoc?
Thanks,
Curtis

Ok, I figured out why it's not saving.  Not realizing it, but the tables are passed into the FM by reference, so what I'm changing is only a copy.  So what I tried to do is use the 004 (I've also tried the 005) user exits to try to update the actual DB.  I used the following FMs (EDI_DOCUMENT_OPEN_FOR_EDIT, EDI_CHANGE_DATA_SEGMENTS, and EDI_DOCUMENT_CLOSE_EDIT).  The problem is that I can't change them because the IDoc is still open.
Does anyone have any ideas on how I can achieve my goal of changing the IDoc?
Thanks,
Curtis

Similar Messages

  • Stocks App not saving changes

    My stocks app is not saving changes no matter what changes I make.  After making a change, I'll exit the app, re-enter and it defaults back to a whole bunch of stuff I didn't add.
    Can someone help me with this, I'm not sure where to even start!

    Nadia Bielawa wrote:
    This did not help at all.  I'm not about to restore my iPhone and set everything up again, there must be a simpler solution. 
    Th simple solution is restart.
    If that fails,  thenreset.
    If that fails, then restore from backup.
    If that fails, then restore as new.
    If that fails then make an appointment at the genius bar.

  • IDVD 06 not saving changes?

    Greetings. I teach an adult ed class in iLife. Unfortunately, the lab has old single 533 G4s. When we use iDVD 06, the program is not saving changes made in the different drop zones, etc. We place elements in drops zones, tell the program to save, quit and relaunch...nothing saved.
    This problem was repeated by a student on his G5 at home.
    Any ideas?
    Thanks.
    Michael Colin
    Mac G4 Single 533   Mac OS X (10.4.4)   Problem on G4 and G5

    Hw much free space is left on the macs?
    Plenty. These are very small projects we're working on.
    Thanks for the response.
    Michael
    Mac G4 Dual 533   Mac OS X (10.3.9)  

  • Sale order 'value changes' after invoice creation

    Experts,
    A sale order was created / shipped / invoiced. The invoice did not go to accounting because of credit auth error. We have a procedure to fix it and then release it to accounting (transaction VFX3). All OK until this point.
    While fixing the auth error, an user changed the freight condition value in the sale order. Then invoice is released to accounting. Now, the value of freight in order and invoice match. How is it possible to change the value of an invoice after its creation?
    Any input would be appreciated.
    UV

    when the value is changed in the sale order, it would automatically transfer
       the new pricing to the existing open SD invoice pending accounting entry??
    Certainly not.  The control is in VTFL where if you select the billing item category for the combination of your delivery type and billing type, you can see a field "Pricing Type".  If you maintain any value other than "B", system will copy the price from sale order to billing and you can, as I said above, can change manually in billing.  On the other hand, if you have maintained "B" in the above field, system will not  consider sale order price but will check your pricing condition maintained in VK11 which you can check in VK12 or VK13.
    thanks
    G. Lakshmipathi

  • ABAP - BDC transaction not saving changes to records

    I am trying to write my first ABAP code using BDC recording.  Essentially I would like to flag the "Final Delivery" field (EKPO-EGLKZ) for a range of documents by recording transaction MASS.
    The code runs without errors - but the changes are not saved.  I have run the code in "Processing Mode: A" (Display all screens) and the program successfully loops through each record & saves the updated fields.  When I look at the documents in ME23N the changes have not been saved.   Running the MASS transaction manually results in the changes being successfully saved so I can rule out any data validation issues.
    Does anyone know why the changes refuse to save when running the code below?
    I have considered trying to use BAPI_PO_CHANGE instead of BDC, but I am new to ABAP and I thought the BDC code would be less complex.
    report Z_MASS_REMOVE_FDI_DCI
           no standard page heading line-size 255.
    include bdcrecx1.
    TYPES: BEGIN OF ty_tab,
    MASSOBJTYP(7),
    MASSVARNAM(7),
    DOCNO(9),
    ITEM(1),
    END OF ty_tab.
    DATA : it_tab TYPE STANDARD TABLE OF ty_tab.
    DATA : wa_tab TYPE ty_tab.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'X:\STO.TXT'
    * FILETYPE = 'ASC
    has_field_separator = 'X'
    TABLES
    data_tab = it_tab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    END-OF-SELECTION.
    LOOP AT it_tab INTO wa_tab.
    WRITE:/ wa_tab-MASSOBJTYP,
    wa_tab-MASSVARNAM,
    wa_tab-DOCNO,
    wa_tab-ITEM.
    PERFORM open_group.
    perform bdc_dynpro      using 'SAPMMSDL' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MASSSCREEN-OBJECT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MASSSCREEN-OBJECT'
                                  wa_tab-MASSOBJTYP.
    perform bdc_field       using 'MASSSCREEN-VARNAME'
                                  wa_tab-MASSVARNAM.
    perform bdc_dynpro      using 'SAPMMSDL' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MASSSCREEN-OBJECT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=NEXT'.
    perform bdc_dynpro      using 'SAPLMASS_SEL_DIALOG' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MASSFREESEL-LOW(01)'.
    perform bdc_field       using 'MASSFREESEL-LOW(01)'
                                  wa_tab-DOCNO.
    perform bdc_dynpro      using 'SAPLMASS_SEL_DIALOG' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MASSFREESEL-LOW(02)'.
    perform bdc_field       using 'MASSFREESEL-LOW(02)'
                                  wa_tab-ITEM.
    perform bdc_dynpro      using 'SAPLMASS_SEL_DIALOG' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CRET'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MASSFREESEL-LOW(01)'.
    perform bdc_dynpro      using 'SAPLMASSINTERFACE' '0200'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=FDAE'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'NR_ITEMS'.
    perform bdc_dynpro      using 'SAPLMASSINTERFACE' '0200'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'NR_ITEMS'.
    perform bdc_dynpro      using 'SAPLMASSMSGLIST' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REOML-MSGTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=EXIT'.
    perform bdc_transaction using 'MASS'.
    ENDLOOP.
    PERFORM close_group.

    Where is BDC_INSERT.
    If u use OPEN and CLOSE_group u need to use INSERT_GROUP also to update in database.
    A session will be created and u nedd to run the Session in Sm35 in order to update the database.
    Edited by: Ranjith Kumar on Sep 18, 2008 6:41 AM

  • Mail not saving changes in Mailbox Behaviors

    For one of my accounts since the upgrade to Mavericks when I enter the Mailbox Behaviors section, I found that Drafts, Junk and the one under Trash named Store Deleted messages on the server is checked.
    I uncheck them because I doon't want them checked. I Save the changes I made then go back to that account and the same ones I just unchecked are now checked again. Its not saving what I just unchecked.
    What the heck is wrong?
    Also noticed that in OSX 10.8 I could drag all my email accounts to a different order than the way they are now listed. Can't do that now.

    Thanks for discovering this issue being connected to drafts. I have trouble with this for a couple of months as well.
    Since you assume it to be connected to "drafts", I suggest to deselect "Store draft messages on the server" for your IMAP-Account. I just did this for myself, to see if it helps, and can't give you results yet. Maybe you just wanna try simultaneously. I guess, the reason for our problem could me some messy communication between Mail and the server, where one party get's confused.
    Greetings
    Paul

  • IWeb NOT showing changes after publishing

    I had 2 sites I created with iweb. I made some changes on one, but not only did it not show any changes after I published it but said there was an error. I could access the site when I entered my basic domain name, but not through iweb. I deleted BOTH sites and started from scratch. Saved my work and tried publishing at least 5 different times. It STILL shows my DELETED sites (which I can't even see on my computer because I DELETED THEM!). MobileMe account is current. Domain name current.
    Anyone else having these issues? ANy idea what to do?
    Thanks

    But did you delete your site folder from MobileMe too? It's all very well deleting your site from iWeb, but if you really want to delete it and start again, you also need to delete your site folder and index file from MobileMe. Log into MobileMe and then go to your iDisk and delete the files from there too and then re-publish from iWeb and your new pages should show.

  • Crystal Reports 8.5 not saving changes to report criteria

    When I use the formula editor to add new criteria to the report criteria formula, the changes are not saved when the report is closed.  It doesn't seem to matter how I exit the formula editor, and I've even tried "save as" and saving the report to a new name prior to closing.  When I reopen the report, the changes are gone.
    Sometimes the changes don't even last that long - they often disappear while doing a refresh. 
    Are there and known bugs that I haven't found - or better yet, any solutions?

    Hi Roberta.
    I've had this happen a few times as well.  Usually though a message will come up at some point in time saying.  If the report is locked when you open it, either because someone else has the same file opened in Crystal or if you open the report from an e-mail attachement, a message will come up saying something in the lines of the report cannot be saved and it must be saved to a new file. 
    When you do the Save As, where are you saving it to?  Try creating a new folder and saving it to that folder.  You should have full permissions to the new folder and I'm hoping it will save.  I just want to eliminate any problems with permissions.  After you save the file, check the properties of the file.  Did the file's date and time update or does it still have the original date? 
    When you open the report in Crystal, go to File on the menu bar and make sure Save Data with Report is not checked.  Make your changes and rerun the report and save it again.  See if that helps. 
    These are the two common problems I've had when this happens to me. 
    Hope this helps,
    Brian

  • NOT SAVING CHANGES OR EDIT'S!!PLEASE HELP

    hey guys,
    i had this problem before along with many others, with the earlier vers of iphoto. until apple gave us the fix...now agin with 5.0.4.any changes or edits(redeye fix) are not saved to any of my pics!!
    is anybody else having this problem??
    is there a fix or update??
    please help......thanks.

    Hi sunny,
    Check the permissions on the Library and Pictures folder. If they are set for you, make sure the library is not locked.
    Get info on the iPhoto Library folder
    screenshot of how the "get info" window should look for your user
    If edits are not saved it could be the image files are locked, especially if these files came from another computer or sent to you in email. Do a "get info" on these files and unlock them.

  • PR should not change after PO Creation without Unrelease

    Hi,
    We want that User cann't change the PR after PO Creation.
    For Ex.:- We create a PR with 10 Qty., release it and also create PO with 10 Qty.. Now after PO creation with same qty, no one can change PR (Qty, Purchase Group etc...)..
    If User Un-release the PO and PR, then user should be able to change in PR...
    Please guide...

    Thanks a lot dear..
    After doing this, i create a new PR and PO with 10 qty... After PO, i unrelease the PR and change the Qty from 10 to 15 nos..then system shows an error message Requisition already converted into purchase order...
    But when we change 10 qty to 5 qty, PR allow the same... I want to insert another check here, that user cann't insert less than qty there... There should also be a Message there in system...
    Please guide...

  • Aironet 1242ag - not saving changes

    dear friends...
    i am struggling with this devices now from some time.. not sure where is the mistake ...when i am trying to configure wireless device (AP) from web using exprerss setup or nornal manual mode .. it is not saving any changes.. means clicking on apply button does not do anything ..  infact its not getting clicked... please see the screen shot attaced ..my express setup menu is different then the one mentioned in this link
    http://happyrouter.com/how-to-configure-a-cisco-wireless-access-point-ap-from-scratch
    any still if you make any changes and refresh the page it comes back to 10.0.0.1 ip which is shown on the screen shot...
    guys any help will be really appreciated ...
    or if someone can also share the commands to configure the same... but before commands i want to sort out my above issues...

    Hi,
    The simpleset configuration would be something like as below.
    dot11 ssid TEST
       vlan 1
       authentication open
    interface Dot11Radio1
    encryption vlan 1 mode wep mandatory
    interface Dot11Radio1
    encapsulation dot1Q 1 native
    no ip route-cache
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface Dot11Radio0
    encryption vlan 1 mode wep mandatory
    interface Dot11Radio0
    encapsulation dot1Q 1 native
    no ip route-cache
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface FastEthernet0
    encapsulation dot1Q 1 native
    no ip route-cache
    duplex auto
    speed auto
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    interface BVI1
    ip add x.x.x.x y.y.y.y (where x.x.x.x is the ip address whichyou want to assign and y.y.y.y is the subnet mask)
    ip default-gateway x.x.x.x (where x.x.x.x is default gateway which you want to use)
    Hope that helps
    Regards
    Najaf
    Please rate when applicable or helpful !!!

  • SF300-24 is not saving configuration after reboot

    Dear All,
    I have a couple of SF300-24 switches. When I made needed configurations using CLI or GUI and then saved all configurations. The problem is that switches do not save configurations after reboot. Please assist.
    Thank you in advance

    Hi Vsevolod,
    I guess you have performed the function to copy the running configuration to the startup configuration as per the screen capture below.
    The current released version of code does not have a supported CLI only a menu accessable via console, SSH or telnet.  New code coming out this month supports a CLI, so I am surprised by your comments regarding CLI.
    If you have a early beta release of software version 1.1  with CLI, I would suggest you call into the Small Business Support Center  to get the problem looked at.
    I am using the beta code on my ten port SG300   and 48 port SF300 , but had no difficulty saving configurations in old or beta versions of firmware.
    If you are still having trouble after reading this post, please contact the SBSC  at ;
    http://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html
    regards Dave

  • Cisco Prime Soft Appliance not saving changes to syslog.conf

    Greetings,
    I'm having an issue with the syslog.conf file on a Cisco Prime LMS 4.2.4 soft appliance with a Solaris base.  My workplace uses local4 as the logging facility for its network devices, and according to a discussion I found on this site, I need to add the line:
    local4.info  /var/log/syslog_info
    I have attempted this several times; we're approaching at least 5 attempts today.  I have attached text files created from putty logs where I've attempted to make the necessary change.  I appreciate any assistance the community can provide.
    Regards,
    Rob

    Hi, Afroz,
    I really appreciate your assistance, but I'm afraid my hopes have been dashed.  The syslog.conf reverted to its original configuration.  I will go through my steps to be sure that I understood your suggestion properly.
    I edited the syslog.conf to put all messages from local4 in /opt/CSCOpx/conf/syslog-entries.txt.  Then, I exited the shell to the console, issued the 'write mem' command, and closed the session.  Upon my reconnection, I found that my changes to the syslog.conf were not saved.
    Did I make the correct edits in the correct places?  Another question, is this bug present in the versions of Prime LMS running Linux and/or Windows, or does it only exist in the soft appliance running Solaris?
    Regards,
    Rob
    Edit:
    I'm reading the "Installation and Migration of Cisco Prime" PDF, and it gives me the impression that Cisco Prime is only supported as Windows, Solaris, and soft appliance installations.  Is that correct?  If it is correct, then installation of Cisco Prime LMS is not supported on other Linux distros such as Ubuntu Server, CentOS, Fedora, etc.?
    My thanks.

  • Hwmon[0-3] not persistent, changes after reboot

    I have a problem with conky, which refuses to start because it can't find my hwmon sensors.
    ls /sys/class/hwmon/ -al
    total 0
    drwxr-xr-x 2 root root 0 2009-09-12 15:48 .
    drwxr-xr-x 37 root root 0 2009-09-12 15:48 ..
    lrwxrwxrwx 1 root root 0 2009-09-12 15:50 hwmon0 -> ../../devices/LNXSYSTM:00/device:00/PNP0A08:00/device:03/ATK0110:00/hwmon/hwmon0
    lrwxrwxrwx 1 root root 0 2009-09-12 16:08 hwmon1 -> ../../devices/platform/coretemp.0/hwmon/hwmon1
    lrwxrwxrwx 1 root root 0 2009-09-12 16:08 hwmon2 -> ../../devices/platform/coretemp.1/hwmon/hwmon2
    lrwxrwxrwx 1 root root 0 2009-09-12 15:50 hwmon3 -> ../../devices/platform/w83627ehf.656/hwmon/hwmon3
    These symlinks seem to change after each reboot. So when I refer to hwmon3 sensor 2, this sensor might suddenly point to coretemp.0 instead of w83627ehf.656.
    Is there any way to make hwmon[0-3] always point to the same sensor? Thanks.

    coretemp.0 is the name of a directory in /sys/bus/platform/devices/
    temp = show the temperature
    1 = sensor number inside the directory coretemp.0
    ls /sys/bus/platform/devices/
    Lists all the sensors you can use. For example, if you want to use coretemp.0, you add the following to .conkyrc:
    ${platform coretemp.0 temp 1}
    So if you use:
    ${platform coretemp.0 temp 1}
    Conky will show the value of:
    /sys/bus/platform/devices/coretemp.0/temp1_input

  • PR derelease should not be allowed after  PO creation

    Dear Friends
    I have created a PR, released , then PO is created with reference to PR. After that I came back to me54n and cancel the PR release. As per our Business Practice it should not allow to cancel the PR release after PO creation.
    I have maintained message 06 076/06 400 and 06 608 as error message.
    The changeability indicator is also maintained as '1' against the release indicator'2'.
    I don't want to go for any Badi implementation or user exit. Is there any solution in standard SAP
    Thanking you
    Tapan

    Even I tried this testing but it seems like not working. I this is standard SAp behaviour. 
    Check this OSS notes 493900
    1. Question :
    Why can I modify a purchase requisition although I set the changeability of
    the release indicator to '1' ('Cannot be changed')?
    Answer :
    The purchase requisition is not modifiable via a purchasing transaction
    like ME52 or ME52N. But it is possible to change the purchase requisition
    from any other external application like sales order, planned order,
    maintenance order or network.
    The Changeability functionality only concerns the purchasing transactions.
    This is intended and a new release strategy determination takes place if
    there is a modification of the data in the external application.
    But logically why the user is cancelling the PR after PO creation? Even if they cancel the PR it doesnt impact the PO which is already created. Even if they cancel and re release the PR and try to create a new PO, system wont allow you to create new PO stating that PR is already ordered. Even though it looks strange but it doesnt harm the procurement.

Maybe you are looking for