Anyone know a simple way to reject a PO in background?

G'Day folks,
Does anyone have a shortcut, secret function module or equivalent to BAPI_PO_RELEASE to reject a Purchase Order on 4.7? There's BAPI_PO_RESETRELEASE, but alas no reject.
I admit I'm being a little bit lazy here but
a) an hour searching/debugging has been fruitless
b) this seems normal enough that someone's come across this before, and
c) it's hometime and I'm hoping someone has a simple answer
Any input appreciated,
Mike
(Crossposted to WUG and SDN)

Take a look at this:
method reject_po.
  data: lc_po       type ref to cl_po_header_handle_mm,
        ls_document type mepo_document.
*  prepare creation of PO instance
  ls_document-doc_type    = 'F'.
  ls_document-process     = mmpur_po_process.
  ls_document-trtyp       = 'V'.
  ls_document-doc_key(10) = po_number.
  ls_document-initiator-initiator = mmpur_initiator_rel.
*  object creation and initialization
  create object lc_po.
  lc_po->for_bapi = mmpur_yes.
  call method lc_po->po_initialize( im_document = ls_document ).
  call method lc_po->set_po_number( im_po_number = po_number ).
  call method lc_po->set_state( cl_po_header_handle_mm=>c_available ).
*  read purchase order from database
  call method lc_po->po_read
    exporting
      im_tcode     = 'ME29N'
      im_trtyp     = ls_document-trtyp
      im_aktyp     = ls_document-trtyp
      im_po_number = po_number
      im_document  = ls_document.
  if lc_po->if_releasable_mm~is_rejection_allowed( ) = mmpur_yes.
    call method lc_po->if_releasable_mm~reject
      exporting
        im_reset = space
      exceptions
        failed   = 1
        others   = 2.
  endif.
  call method lc_po->po_post
    exceptions
      failure = 1
      others  = 2.
endmethod.

Similar Messages

  • FB4. Anyone know a "SIMPLE" way to add scroolbars to the application AHHHHHHH

    Some of my users have 800x600 resolution set and thus the app is not visible in IE, since FB4 removed the scroll policy feature from the app, WHYYYYYYY.
    Does anyone have a simple solution. I tried skinning using a boarder but that fails as I have other components that will not play nice with the external boarder.

    There are a couple of options I can think of:
    1. Add a Scroller to a custom Application Skin (useful if you intend to reuse this). Create a copy of the ApplicationSkin and add the Scroller around the contentGroup:
        <s:Scroller height="100%" width="100%">
            <s:Group id="contentGroup" left="0" right="0" top="0" bottom="0" />       
        </s:Scroller>
    http://butterfliesandbugs.wordpress.com/2009/03/13/how-to-add-a-scrollbar-to-a-gumbo-appli cation/
    2. Surround your Application MXML with a Scroller. Add your MXML components within the Group.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:Scroller width="100%" height="100%">
         <s:Group>
                <!-- insert your content here --> 
         </s:Group>
        </s:Scroller>
    </s:Application>

  • Does anyone know a simple way of creating read-only DMGs from card media?

    We're looking for a simple workflow to copy/archive card media from cameras.
    Can anyone recommend a utility / Droplet / Applescript that will create a read-ony DMG directly from mounted card media?
    Preferably something where the disk name of the DMG can be set when its created.
    Thanks!
    Nick

    Thanks! That's a handy start.
    I'll take a look at the command line options of hdiutil. Ultimately, we're looking for a workflow for non-terminal users so I imagine we'll wrap it up in AppleScript.
    The idea is to make a simple drag+drop process for people shooting digital video to archive card media as read-only  dmgs with custom reel names. Something like...
    - select the card/folder (or drag onto AppleScript)
    - enter name and location of dmg in file dialogue
    - create and verify dmg
    Cheers
    Nick

  • I am over this virus-like intrusion of Yahoo instead of my normal google search engine. If I can't get it fixeed I am back to IE or Chrome. Firefox is allowing this which is pathetic. Does anyone know a simple way to get rid of yahoo?

    Suddenly after upgrading I can't get rid of a Yahoo home page. Really annoying

    Try RIGHT clicking on different areas of the toolbars on Firefox, mainly try right clicking on/around the url bar & forward/back navigation buttons. When you get the correct spot if will give you a menu with the toolbars available (whether or not they're active) and a couple other options. Just uncheck the Yahoo one & you should be all set.
    As you say though it may be some other bar disguised as a yahoo bar. Any chance you can get a screen shot of it & post it here?

  • I have huge amount of data on a windows external drive and want to transfer to a Mac drive.  Does anyone know an easy way to do this?  I have almost 2TB of data to transfer.  Thanks.

    I have huge amount of data 2TB on a windows Fantom external drive and want to transfer to a Mac drive.  Does anyone know an easy way to do this?  Thanks.  I have an IMac 3.5 GHz Intel Core i7.  I haven't bought a Mac external yet. 

    Move your data to a new Mac - Apple Support

  • I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this?

    I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this? I have found GearGrip's LCD harness so that I can do carry-on onto the plane...  Or maybe use a Pelican Case to do it as a "checked bag"? Or any other suggestions??! Please help!
    Thanks so much!!

    I don't recommend you send the iMac in a checked bag. Might get damaged.
    Check the airlines website for carry on guidelines.
    Or, if you have the original box that the iMac came in, if you have someone who can pick up the iMac for you, send it ahead Fed Ex and insure the package.
    Just make sure the display is covered to protect it. A blanket perhaps.
    Aloha ...

  • Anyone know of a way to adjust the top and side MARGINS of a document printed from iOS numbers? The default margins are too wide. Need more working space.

    Anyone know of a way to adjust the top and side MARGINS of a document printed from iOS numbers? The default margins are too wide. Need more working space.

    Open the document,
    Tap the Tools icon (upper right).
    Tap Document Set up.
    Drag the margins to the position you wish (the actual margin width sould display as you are doing this).

  • Anyone know of a way to backup SMS messages for FREE on a Mac?

    Anyone know of a good program to extract SMS messages from the iphone, or the backup file located in /Library/Application Support/MobileSync/Backup on a mac? Something that is able to put it into a .txt file or anything that is legible?
    And most importantly, that is firmware 3.0 friendly, works on an iphone 3GS (obviously but just incase) and is free? I saw some online but you have to pay for them and some aren't even iPhone OS 3.0 compatible. Only 2.0
    Or does anyone know of a way to do this yourself by navigating the files in the backup folder?
    Lastly... anyone know of a way to put old SMS's back on an iPhone if you decide to do a new restore instead of one from a backup? Many thanks!

    Thanks neuroanatomist. That was really helpful, but when I went in and looked in my SMS folder, I opened it under notepad and it was all garbled and hard to read. It didn't look like in my iphone of indicating conversations between me and another person. I could see my conversations, but they where all mixed in with numbers and weird characters I've never seen before. You wouldn't happen to know of another program out there that can put it perhaps like in a word doc. or even excel sheet? Something that's just organized. Thanks.
    Anyone else care to help me out with some mac community friendly advice? Thanks!

  • Hi Guys does anyone know of a way i can get cyclops speed camera alert to work through bluetooth incar hands free kit , i used to be able to connect it via an app called drivesafely but this app is no longer available in apple store ????????????

    Hi Guys does anyone know of a way i can get cyclops speed camera alert to work through bluetooth incar hands free kit , i used to be able to connect it via an app called drivesafely but this app is no longer available in apple store ????????????

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

  • Hi guys, I recently got a new MacBook Pro with a USB Superdrive. A disc won't eject, does anyone know of a way to eject it? I'm in Morocco for the next 10 days so going to an Apple store is not possible. Any help would be gratefully received, thanks

    Hi guys, I recently got a new MacBook Pro with a USB Superdrive. A disc won't eject, does anyone know of a way to eject it? I'm in Morocco for the next 10 days so going to an Apple store is not possible. Any help would be gratefully received, thanks

    Five ways to eject a stuck CD or DVD from the optical drive
    Ejecting the stuck disc can usually be done in one of the following ways:
      1. Restart the computer and after the chime press and hold down the
          left mouse button until the disc ejects.
      2. Press the Eject button on your keyboard.
      3. Click on the Eject button in the menubar.
      4. Press COMMAND-E.
      5. If none of the above work try this: Open the Terminal application in
          your Utilities folder. At the prompt enter or paste the following:
            /usr/bin/drutil eject
    If this fails then try this:
    Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes.

  • My daughter made an iMovie project using picures from her Camera Roll and then delted the pictures from her camera roll and now she can not export the project.  Does anyone know of a way to still export this project?

    My daughter made an iMovie project using picures from her Camera Roll and then delted the pictures from her camera roll and now she can not export the project.  Does anyone know of a way to still export this project?

    jkrijgsman wrote:
    Does anyone have a good workaround for burning a DVD from an iMovie project now that iDVD is no longer around?
    There's Toast.
    http://www.roxio.com/enu/products/toast/titanium/
    $79.99
    Final Cut Pro X will also burn DVDs.
    $299.99
    How large is your movie?  Is it possible that you could output it as a QuickTime file and then burn that as a data DVD?  Is uploading to YouTube an option?
    Matt

  • My aunt recently upgraded her software to ios 6 and lost all of her contacts.  However, when I updated my software this did NOT happen.  She hasn't backed up to iCloud, so does anyone know of a way to restore her contacts without the iCloud?

    My aunt recently upgraded her software to ios 6 and lost all of her contacts.  However, when I updated my software this did NOT happen.  She hasn't backed up to iCloud, so does anyone know of a way to restore her contacts without the iCloud?

    Her contacts would be wherever she put them
    The iphone is designed to be synced to your computer or cloud service regularly.  If she failed to do this, then they are likely gone.

  • I travel for work and use iCloud - I can not use back to my mac because i use a Verizon MiFi wireless that does not have NAT-PMP or UPnP. Does anyone know of a way to get around this problem

    I travel for work and use iCloud - I can not use back to my mac because i use a Verizon MiFi wireless that does not have NAT-PMP or UPnP. Does anyone know of a way to get around this problem

    All ISP-provided equipment is junk. You could get a decent router and connect it to the Verizon router in bridge mode. It should cost about $ 30.

  • I want to have a screensaver from apple tv similar to visualizer in itunes. Does anyone know of a way I can achieve this?

    I want to use a screensaver on my apple tv similar to visualizer in itunes. Does anyone know a way of doing this or is there any discussion by apple to add this feature in the future. I often use the apple tv in multiple rooms for get togethers and do not want photos playing during those events. I wish there was a better screensaver option.

    There has been discussion about this, i'm sure if you do a search you will find them. However, this is not possible at the current time. Since we are all users here we won't know if an update will bring this.

  • Anyone know of a way to import .mov file extension files into imovie '09?

    Great forum. Thanks.
    I can't seem to import a movie file with a ".mov" suffixe.
    Most of the older finished work i have is in that format. I have since begun exporting files with the ".m4v" file extension and they are able to be imported.
    Anyone know of any program available which will convert these ".mov" files to something that is more compatible with importing into imovie '09, or perhaps I am completely so asleep at the wheel I missing something staring me in the face?
    Any help either way would be appreciated.

    How about any free conversion programs that would allow me to convert files from .mov to a format that is more compatible with importing into imovie? If not I guess QTP will be the way to go.
    No, the clips were shot using a SONY HD Handycam. The compression occured during the exporting of the finished clip. Instead of using "export movie" under Share in imovie, I used the "Export using Quicktime" option in order to keep the file size down. It did not give me any indication that choosing that option would prevent me from re-importing the finished piece back into imovie for an edit. It seems odd to offer an export option that is not compatible with importing into the the very program being used to export the file.
    I simply want to be able to either re-import these ".mov" files back into imovie '09, or convert them to a file format that will allow me to at least open them in imovie '09. Any help to that end is greatly apprecited.
    Thanks

Maybe you are looking for

  • How to merge data in icloud from different devices into one before restoring?

    I have 2 devices listed on my icloud. Two of them are lost phones.  I want the data from both devices to be on my new iphone. It is easy enough to restore one of them (which I have done) but how do i know restore from the other one?  Is there any sim

  • How to replace a DVD drive on G4

    I have a G4 running OSX 10.4.9 purchased in 2003 with a Pioneer DVD-RW DVR-105. It has not mounted for some time now, any discs either CD or DVD are not seen by the system. The hardware profile knows it is there (hence how I know what type it is) but

  • Fonts malfunctioning in Photoshop CS5

    Hi, I've got a problem with certain fonts in Photoshop CS5 running on Windows 7. Normally in the drop-down menu of the fonts list, there's an "O" or "TT" symbol next to each font to signify if it's OpenType or TrueType respectively. However, there ar

  • Vendor search by matchcode - account group authorisation

    We have various vendor account groups including one for paying employee expenses. We are finding that users with access to vendor matchcode search can see vendors for all account groups (including employees) listed in the search even though we have r

  • How to automate layer stack creation including layer masks based on filename?

    Hi Can someone help me to create a script that would automate the creation of layers including a layermask, based on filenames. E.g. Unwrap_001_diffuse.jpg Unwrap_001_mask.jpg Unwrap_002_diffuse.jpg Unwrap_002_mask.jpg The image with the suffix "_dif