How to use FM CRM_ORDER_READ using only object_id(sales doc)

Hello Experts,
I need to get the details for a given sales document in
CRM(crmd_orderadm_h-object_id). I want to use FM CRM_ORDER_READ
to get the details of a sales doc but my problem is where to put the object_id
value. ANy simple example would be highly appreciated.
Thanks a lot guys and take care!

DATA:BEGIN OF i_order_h OCCURS 0.
        INCLUDE STRUCTURE crmd_orderadm_h.
DATA:END OF i_order_h.
SELECT *
    INTO CORRESPONDING FIELDS OF TABLE i_order_h
    FROM crmd_orderadm_h
   WHERE object_id    IN s_obj_id.
  DATA: i_header_guid   TYPE crmt_object_guid_tab ,
        i_et_partner    TYPE crmt_partner_external_wrkt,
        i_et_orderadm_i TYPE crmt_orderadm_i_wrkt,
        i_et_product_i  TYPE crmt_product_i_wrkt,
        i_et_pricing_i  TYPE crmt_pricing_i_wrkt,
        i_et_schedlin   TYPE crmt_schedlin_wrkt,
        i_et_sales      TYPE crmt_sales_wrkt.
LOOP AT i_order_h.
CLEAR i_header_guid.
    REFRESH  i_header_guid.
    APPEND i_order_h-guid TO i_header_guid.
    CLEAR: i_et_partner,
           i_et_orderadm_i,
           i_et_product_i,
           i_et_pricing_i,
           i_et_sales,
           i_et_schedlin.
    REFRESH: i_et_partner,
           i_et_orderadm_i,
           i_et_product_i,
           i_et_pricing_i,
           i_et_sales,
           i_et_schedlin.
    CALL FUNCTION 'CRM_ORDER_READ'
      EXPORTING
        it_header_guid = i_header_guid
      IMPORTING
        et_partner     = i_et_partner
        et_orderadm_i  = i_et_orderadm_i
        et_product_i   = i_et_product_i
        et_pricing_i   = i_et_pricing_i
        et_sales       = i_et_sales
        et_schedlin    = i_et_schedlin.
    IF sy-subrc = 0.
    ENDIF.
ENDLOOP.
Message was edited by:
        EastViking

Similar Messages

  • How to make plant in shipping cond tab for line item in sales doc mandatory

    Hi
    How to make plant as mandatory for a sales document say quotation mandatory ? I went to SPRO-> Basic Fucntion - > log of incomplete terms ->  Define incomplete Groups -> B.selected sales -Item -> Created new procedure Z001 with fielda VBAP - WERKS ,selected screen name PDE2 and checked warning check box.
    When i goto Assign incompleteness procedures I donot have option to assign it sales document item level procedure i will only get sales doc header procedure to assign it to document type quotation.
    How to make plant as mandatory for each line item in quotation?
    Thanks,
    Vaishnavi

    Include: MV45AFZB
    Form  USEREXIT_CHECK_VBAP
    In our business scenario, we have used the same ,But  Plant is mandatory only for 1st line item-
    source code:
    IF vbak-vkorg = '1000' OR vbak-vkorg = '2000'.
        IF sy-tcode = 'VA31' OR
           sy-tcode = 'VA11' OR
           sy-tcode = 'VA21' OR
           sy-tcode = 'VA41' OR
           sy-tcode = 'VA01' .
          IF vbap-werks IS INITIAL AND
             vbap-posnr EQ '000010'.
            MESSAGE e398(00) WITH 'Please enter the plant for first line'.
          ENDIF.
        ENDIF.
      ENDIF.
    Help:
    Through this form exit we are making the "plant' field (for the ist  &*
    & line item ) mandatory for the sales document . This interns helps us &
    & to create the sales document numner according to the plant (Region)  &
    *& of the Plant
    Hope it clears. take assistance of your ABAPer.

  • How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat.

    How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We had this working using Messages and Facetime (on the new machine) talking to my existing iChat account. One day last week, when Facetime rang, my kids answered on the iPad. Dang! Now it's all fouled up! The new iMac won't see my AIM account name and shows that I'm offline, because the iPad is off. We were able to call using "most recent call" in Facetime, but now I can't go and control that new iMac remotely to help with some email concerns the user is having. I'm trying to not personalize this too much, but it's grandkids talking to Grandma and Mom and Dad trying to solve new machine hiccups. Normally, I could just go in via iChat and control the other machine and troubleshoot, but I can't do it with Facetime only. My buddy list doesn't see  the other computer even though we are connected on Facetime right now. My name is not highlighted for the other computer. What could have gone so wrong?
    Any help would be appreciated.

    How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We had this working using Messages and Facetime (on the new machine) talking to my existing iChat account. One day last week, when Facetime rang, my kids answered on the iPad. Dang! Now it's all fouled up! The new iMac won't see my AIM account name and shows that I'm offline, because the iPad is off. We were able to call using "most recent call" in Facetime, but now I can't go and control that new iMac remotely to help with some email concerns the user is having. I'm trying to not personalize this too much, but it's grandkids talking to Grandma and Mom and Dad trying to solve new machine hiccups. Normally, I could just go in via iChat and control the other machine and troubleshoot, but I can't do it with Facetime only. My buddy list doesn't see  the other computer even though we are connected on Facetime right now. My name is not highlighted for the other computer. What could have gone so wrong?
    Any help would be appreciated.

  • Acmcneill1ug 14, 2014 7:16 AM I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great. When check how much memory I am using, with only Safar

    Acmcneill1ug 14, 2014 7:16 AM
    I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great.
    When check how much memory I am using, with only Safari open I am using 3.9 and more of her 4.0 memory. She is very. very slow in processing. I had 4000
    trash to clean out and it took her over an hour to expel. Also for some reason Safari will not allow me to click on a link, in my G-mail, and let it go to the page.
    It has a sign saying a pop-up blocker is on and will not let me do it. I must open the stamp to look at my e-mails and if I have redirected link now I can do it.
    I have not changed my preferences so where is this pop-up blocker?
    I have looked at preferences on Safari and Google, which I do not understand Google, and do not see where this blocker could be.
    Malware is something I want to make sure is not on my computer. Tech Tool Pro 6 is all I know of and it does not detect Malware.
    Help.
    Ceil

    Try Thomas Reed's Adware removal tool. He posts extensively in the communities.
    Malware Guide - Adware
    Malware Discussion

  • I have 12 core with Quatro 4000 and 5770, I want to use dual monitor setup, monitors are NEC with Spectraview-II.  How do I connect?  4000 only has 1 Display Port and 1 DVI.  5770 has 2 of each, if I use both 5770 Display Ports, does the 4000 contribute?

    I just bought a 12 core with Quatro 4000 and 5770, I want to use dual monitor setup, monitors are NEC with Spectraview-II.  How do I connect?  4000 only has 1 Display Port and 1 DVI.  5770 has 2 of each, if I use both 5770 Display Ports, does the 4000 contribute any work at all?  I read where on a PC they would work together, but on a MAC they do not.
    I read that Display Port has higher band width than DVI, NEC monitors for best performance they recommend using DIsplay Port.
    When I was setting this up I looked at a Nvidia Quadro 4000, unfortunately it was for PC, it had 2 Display Ports, in the Mac version they reduce it to one.  I did not think there could be a difference.
    Mainly want to use it for CS6 and LR4.
    How to proceed??? 
    I do not want to use the Quadro 4000 for both, that would not optimize both monitors, one DP and 1 DVI.  Using just the 5770 would work but I do not think the 4000 would be doing anything, and the 5770 has been replaced by the 5870.more bandwidth.
    Any ideas, I am a Mac newbie, have not ever tried a Mac Pro, just bought off ebay and now I have these problems.
    As a last resort I could sell both and get a 5870.  That would work, I'm sure of that, it's just that I wanted the better graphics card.
    Thanks,
    Bill

    The Hatter,
    I am a novice at Mac so I read all I can.  From what I understand the NEC monitors I bought require Display Port for their maximum performance.  The GTX 680 only has DVI outputs.  Difference from what I understand is larger bandwidth with the DP.
    You said I have the 4000 for CUDA.  I am not all that familiar with CUDA and when I do read about it I do not understand it. 
    A concern I have is, that if I connect the 2 high end NEC monitors via the 5770, using it's 2 Display Ports I would have nothing connected to the 4000.  Is the 4000 doing anything with nothing connected?  I read where in a PC system the 2 cards would interact but in a Mac system they do not.
    Bottom line, as I see it, the 4000 will not be useful at all to me, since I want a dual monitor set-up.
    So far the 5870 seems the best choice, higher band width than the 5770, and it has 2 Display Ports to optimize the NEC monitors.
    I'm not sure how fine I am splitting hairs, nor do I know how important those hairs are.  I am just trying to set up a really fast reliable system that will mainly be used for CS6 and LR4.  Those NEC monitors are supposed to be top notch.

  • I am trying to pair my cell phone and tablet using Messages   App,  but only MMS messages will come through on my tablet.   I've tried pairing and unpaired,  reinstalling app on my tablet,  and can't figure it out.   Any idea how to fix this?

    I am trying to pair my cell phone and tablet using Messages   App,  but only MMS messages will come through on my tablet.   I've tried pairing and unpaired,  reinstalling app on my tablet,  and can't figure it out.   Any idea how to fix this?
    Thanks

    I Shared my most ridiculous situation but didn t log under your problem.
    sorry, I gave you your answer under sunshine99 or Dianna. I want out and you want in.
    if you not find just email me at [removed]
    thanks
    Personal information removed as required by the Verizon Wireless Terms of Service
    Message was edited by: Admin Moderator

  • How do I make one (and only one) device use my Apple ID and iCloud account?

    How do I make one (and only one) device use my Apple ID and iCloud account? I currently have an iPad mini, iPhone 5, and MacBook pro attached to my apple accounts, but I want only my iPhone 5 to be assosiated with either one. Whenever I use any of the three devices, I get a notification on the other two telling me that these devices are now using these accounts from these services, etc. and I want these notifications to stop, along with the devices using to them. How do I do this? I completely reset the iPad mini so I don't know how I'm still getting notifications from it, and I deleted and signed of of all of my accounts everywhere I could find on my Mac. So, to restate exactly what I want to do, I want ONLY my iPhone 5 to use ANY of my Apple/iCloud accounts and ONLY it can receive emails, iMessages, and FaceTime calls. Thanks!

    If you want to disconect your Mac from iCloud, go to System Preferences>iCloud and click Sign Out.  If you only want to stop using iCloud email, just uncheck Mail.  To stop iMessage, open the Messages app, go to Messages>Preferences, click the Accounts tab, click your iCoud ID on the left-hand side, then to the right click Sign Out.  To stop FaceTime, open the FaceTime app, then click "Apple ID" then click Sign Out.
    On your iPad, go to Settings>iCloud and tap Delete Account (or if you only want to stop using iCloud email, turn Mail off).  For FaceTime, go to Settings>FaceTime, tap the ID and sign out.  For iMessage, go to Settings>Messages>Send & Receive, tap the ID and sign out.

  • HT201269 my pc crashed and i no longer have the music i used to have, how can i sync my ipod  w/ out loosing  all of my  music.  and also how do i update  my ipod only has  a partial version of ios4

    My pc crashed and i no longer have the music i used to have, how can i sync my ipod  w/ out loosing  all of my  music.  and also how do i update  my ipod only has  a partial version of ios4

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.  USe your backup copy to put everything on the new computer, then sync.

  • I have a WD 2 tb hard drive that I want to use to back up my Mac Pro quad core.  How do I create a back up startup disk?  Also, when I used Time macine, it only backed up users and not the system or library folders.  Ideas?

    I have a WD 2 tb hard drive that I want to use to back up my Mac Pro quad core.  How do I create a back up startup disk?  Also, when I used Time macine, it only backed up users and not the system or library folders.  Ideas?

    Welcome to Apple Support Communities
    Time Machine should be enough to make a backup of your files. Also, it should back up all folders, so open System Preferences > Time Machine > Options, and make sure that there are no folders included in the excluded items list.
    If you want to create a bootable clone of your hard drive, you need to use an app like Carbon Copy Cloner or the Disk Utility's Restore feature > http://pondini.org/OSX/DU7.html

  • How do i uninstall iphoto? it was preinstalled on my macbook pro when I bought it used and I can only update with the previous owners password.

    how do i uninstall iphoto? it was preinstalled on my macbook pro when I bought it used and I can only update with the previous owners password.

    Do you have the current MacOS X version 10.10.2?
    Then you can simply move iPhoto from the Applications folder to the Trash,
    sign into the App Store with your own AppleID
    reload the "Featured" main page of the AppStore with ⌘R,
    then download iPhoto with your own AppleID.
    Make a backup of your iPhoto Library, before your launch the new iPhoto the first time,
    If your current system is not Yosemite, you can only buy a boxed iLife 11 version of iPhoto to install it independent of the previous owner.

  • When I try to use the internal hard drive as a scratch disk I get this error "unable to set scratch disk- the selected directory is on write protect or non-writable media.  Any ideas on how to fix this.  It only happens in fcp.

    When I try to use the internal hard drive as a scratch disk I get this error "unable to set scratch disk- the selected directory is on write protect or non-writable media.  Any ideas on how to fix this.  It only happens in fcp.

    By internal, I assume you're referring to your systems (boot) drive. Is it, by chance, a partitioned dive?
    Also…although many people successfully use their systems drives as scratch disks, over time you'll have better results using a dedicated drive for your media.
    Good luck.
    Russ

  • Hi, im not able to backup all ma contact to my icloud using my iphone 3gs. only 290 out of 600 contact gets backup in icloud, though i hav enough memory. How to fix it ?? I want to transfer my contacts from 3gs to 5s

    Hi, im not able to backup all ma contact to my icloud using my iphone 3gs. only 290 out of 600 contact gets backup in icloud, though i hav enough memory. How to fix it ??

    I have had similar issues backing up to iCloud. Thy only thing I have found to work every time is backing up to iTunes and then doing a restore to my new device. That includes iPhone 6.

  • I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up ever

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

  • I have an iPhone, but cannot use it at this time. So Im trying to text off my iPod, but it only comes up as my email. How do I make it use my iPhone number?

    I have an iPhone, but cannot use it at this time. So Im trying to text off my iPod, but it only comes up as my email. How do I make it use my iPhone number?

    The iPod will only have a phone numnber for Messages and FaceTime if the same ID is currently being used with an iPhone with iOS 6 and and that ID is used for Messages and faceTime.
    There is no way to add a phone number to an iPod otherwise.
    Also, on the iPod yoo can only send and receive Messages from other users who use the Apple Messages app.

  • I can't log in the App store because an from Zambia which is not listed in Apple outlets. How do i go around this as apple products are using globally and not only in the listed countries. My product is a Mac book pro.

    I can't log in the App store because am from Zambia which is not listed in Apple outlets. How do i go around this as apple products are used globally and not only in the listed countries. My product is a Mac book pro. i feel this limits how i can use my product

    Unfortunately you have taken an Apple product outside of the area where Apple currently does business. There isn't legally a way around this. Apple cannot license apps to you where you currently live.

Maybe you are looking for

  • Itunes 10.7 update not working

    I clicked on the update button in itunes, the Apple Software Update window appeared and downloaded the update, then started installing the update.  It is still installing after over half an hour...it seems like it is stuck.  The update is running, bu

  • How do I create an AppleDouble "dot-underscore" file from the command line?

    We're going through a process of migrating NetWare shares to Windows shares (without File Services for Macintosh) where I work. One concern is that the NetWare shares are shared as AFP volumes to the Macs. All the finder info and metadata for the fil

  • Order of javascript jquery declarations matters?

    hi guys. trying to understand this whole jquery/javascript methodology but getting stumped. i'm using ddsmoothmenu for a horizontal menu http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm prettyPhoto lightbox for photo galleries http://www.no

  • How do I fix Calendar getting stuck with updating to iOS5?

    I have a 3rd generation iPod Touch.  I updated to iOS5 this summer, but some programs/apps got very slow, but the biggest, consistent problem is the Calendar app.  It gets stuck, it launches and the calendar is "empty" even though there are series of

  • NEED HELP WITH RESOLUTION AND QUALITY?

    hi guys i have been making these vector type portraits in photoshop for the last couple weeks, it has all been going well until, when some one puts it up as a display picture on facebook etc the quality is not as good as when i just view the picture