Get Idoc structure and contents from Shipment Number

Hi all,
We have a 3rd Party Logistics company who wants to send us back minimal shipment data to enable us to update our shipment details.  They want to send us the shipment number, and vehicle information.  My tests (and SAP's documentation) have indicated that in order to modify a shipment via the message type SHPADV, you need to have the complete Shipment Idoc structure filled in in order for the idoc to process successfully.
My client has indicated that they want to use IDoc processing to manage the shipment updates.
Does anyone know of a FM that can be used to fill the shipment Idoc structures if only a shipment number is filled in?  Or do the structures have to be modified manually?  For example, these is a function called 'IDOC_READ_COMPLETELY' which populates all the segment details if an Idoc number is entered.  I want something similar, but for a document number, in this instance, a shipment number. 
Cheers,
Steve

Roger,
Thanks for this suggestion.  I chose to go down another path which I put up here for those who have this problem in the future.
I have passed the shipment number and just the fields that require modification into user exit EXIT_SAPLV55K_020, and recorded the passed in values into variables.
I then executed the <b>idoc_output_shpmnt</b> idoc, which, when the shipment number is passed in to the nast-objky field, reads the required shipment data and populates the idoc_data table with the segment details as per sending the document out.  But the FM doesn't actually call the ALE layer, so I then loop through the idoc_data table, modifying the fields that need to change with the values I've saved in the variables, and passed the modified idoc_data tables back into the <b>idoc_input_shpmnt</b> FM.  Worked a treat.
Cheers,
Steve

Similar Messages

  • LSMW - Report to get IDOC failures and its external reference number

    Hi All,
    I'm currently using LSMW for data migration in CRM, for Business Partner and transaction data.
    I need to generated a report which covers the idocs which have failed and the external identifier for which it has failed. Currently the IDOC reports that are available OOB provide the IDOC number and the reason for failure. It will be great if I can get the external identifier of the transaction as well.
    I searched for a report in SAP but could not find any which gives this functionality.
    Please advice.
    Thanks in advance.

    Hi,
    1.)If you want the ouput in the same report program which triggers the idoc, it is better to use the control record information.
    You will get IDoc Number from XEDIDC(check the below code) and you can store the idoc number into an internal table if more idoc is expecting to be triggered.
         call function 'MASTER_IDOC_DISTRIBUTE'
              exporting
                MASTER_IDOC_CONTROL        = EDIDC
              tables
                COMMUNICATION_IDOC_CONTROL = XEDIDC
                MASTER_IDOC_DATA           = XEDIDD
              exceptions
                others                     = 5.
       read table xedidc index 1.
      append xedidc-docno to it_docno.
    And finallly use this to display in the output.
    2.) if u want it in a seperate report, then select based on date, idoctype, messagetype
    Regards,
    Sajith

  • My family and I share the same account of apple. I'm getting phone calls and messages from my mothers and my number and  vice versa. is there anything we can do

    my family and I share the same account of apple. I'm getting phone calls and messages from my mothers and my number and  vice versa. is there anything we can do

    The short solution is to go to Settings > FaceTime > iPhone Cellular Calls OFF.
    However, as Csound points out, you should not really be sharing an Apple ID with anyone. See: How to Stop Sharing an Apple ID.
    (Note that I am affiliated with that site, and some pages contain ads).

  • I can't erase all data and content from my iPhone 4s. It says iCloud account not verified, when it only asks for my Apple ID to erase all data and content.

    It's really been puzzling me, I've never logged in the Apple site on a laptop before - I have been getting the same message 'Unable to verify iCloud account' every time I try and erase all data and content from my iPhone 4s. When I go to iCloud on my laptop and sign in using my Apple ID it signs me in. These are the same log in details I am prompted for when trying to erase all data/content from the phone. If anybody could point me in the direction that would be really appreciated. Thanks

    Hi.
    Yes, I recently changed my Apple ID password - around 2 weeks ago when I bought the phone.
    Does anyone know if you need to do the IOS update to be able to restore all data and content? I have not installed the new update on either of my iPhone 4S's yet.
    The phone I am trying to reset was sold to me by a friend and when it was it had already been reset and it was on the language selection screen.

  • How do I get airplay to display content from my MacBook Pro?

    How do I get airplay to display content from my MacBook Pro?

    Turn on Airplay is display settings.
    Select Airplay mirroring to Apple TV.
    I Will assume you have already connected the Apple TV to your wifi and computer in the settings on the Apple TV.
    that should do it.... Unless you need more information.

  • My old computer is broken, so how do i get my music and photos from my iPod onto my new computer

    my old computer is broken, so how do i get my music and photos from my iPod onto iTunes on my new computer. It says it can only be synced to 1. but my old 1 is broken.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    Keep in mind that the recovered photos will not be in their full resolution, but instead will be the scaled down versions that were optimized in size and resolution to fit your iPod's smaller LCD screen.
    B-rock

  • How can i know who get my photos and messages from my icloud???

    How can i know who get my photos and messages from my icloud???

    Nobody, except the persons who have your username and password or with whom you share photos streams would be able to see anything from you.

  • How can i know who get my photos and messages from my icloud???, How can i know who get my photos and messages from my icloud???

    How can i know who get my photos and messages from my icloud???

    The following website gives you an overview on how your iCloud data is encrypted: https://support.apple.com/kb/HT4865 So as long as you don not share your Apple ID with someone else, everything should be fine.

  • I'm new to Mac. I have an iPhone and a Mac Mini.  My original iTunes was on a Windows computer that crashed.  So, all of my iTunes Music and Movies are gone.  How do I get the movies and music from my iPhone to the new Mac Mini?

    I'm new to Mac. I have an iPhone and a Mac Mini.  My original iTunes was on a Windows computer that crashed.  So, all of my iTunes Music and Movies are gone.  How do I get the movies and music from my iPhone to the new Mac Mini?

    If you still have the crashed Win computer, you may be able to recover your music and movies from the hard drive. If you have a friend with a hard drive USB connection kit and a PC, they should be able to help.  Otherwise, check locally for computer services that might do that for you (I think Best Buy Geek Squad may be able to help). If the drive itself is in good shape, it shouldn't be too expensive. 

  • How to get my photos and music from my iphone to my hp laptop without having windowed on my laptop

    i just got anew hp laptop.  it does not have windows.  I want to be able to link my iphone with my laptop but don't know how.  want to be able to get my photos and music from my phone to my laptop and be able to load music on to my ipod. Is this possible to do

    I think there is still no APP or a way to copy music or videos from Iphone to PC. Pictures can be copied when you access the storage of the iphone from PC. Not sure if you are using other laptop before with itunes where you organize everything about your iphone. If you have, copy the Itunes folder from My Music folder and paste it on the new laptop you have, (you need to install Itunes first on your new laptop before doing this)

  • How do I get my contacts and calendars from Icloud to outlook?

    I am sure this question has been asked before, but I cannot find the answer. My hard drive on my PC crashed recently. I installed a new one and downloaded my files. I have my mail working fine, but cannot figure how to get my calendars and contacts from icloud to outlook. I am using Outlook 2007 with Windows 7. Any help will be appreciated. Thanks Russ

    Set up and log in to iCloud on both devices
    Settings-iCloud - log in with your Apple ID &amp; password

  • How do I get my apps and music from my phone to itunes.

    How do I get my apps and music from my phone to itunes.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How to I delete all contact on my iPhone at once. These are contacts ABOVE the contact folder that says From My Mac. I do not want to erase all of the other settings and content from my iPhone -- just the contacts.

    How to I delete all contact on my iPhone at once? These are contacts ABOVE the contact folder that says, "From My Mac."
    Someone said create a new empty folder on the computer and sync to that -- didn't work .
    Another person said, "Reset information in settings to restore to the default." That would erase ALL of the conetent I have on the phone and I do not want to erase all of the other settings and content from my iPhone -- just the contacts.
    There has to be a better way than gong through and deleting one-by-one.

    Go into Settings...Mail, Calendar and Contacts and siwtch off the Contacts section from the account in question.
    The phone should ask you if you want to keep or erase the contacts stored on you phone.
    However, if they aren't synched to anything and only exist on your iPhone, you'll have to delete them all one by one

  • How do i get my songs and data from my old mac onto my pc so that i can copy it onto my new ipod touch

    how do i get my songs and data from my old mac onto my pc so that i can copy it onto my new ipod touch

    jrswish wrote:
    When I plugged in my new one it cleared all my song and apps out of my current itunes.
    Are you sure of that?  Check in the Library.  Click on the Apps icon to see all apps.  Similarly click on the Music icon to see the songs.

  • I recently had to re-install Outlook on my laptop. How do I get my calendar and contacts from my phone to my Outlook?

    i recently had to re-install Outlook on my laptop. How do I get my calendar and contacts from my phone to my Outlook?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

Maybe you are looking for