Getting Transport Request List from Clients

Hi,
I need to fetch all the transport request list which exist in other clients from development client. Is there any function module to fetch the data.
Can someone provide me the code so that it will be useful for coding in my program.
People will be rewarded for the solution which helps me a lot.
Thanks,
Jyothi

Hi,
You will like the french comment
*   Procédure P_FIND_DATA.                                             *
form p_find_data.
  data : it_request     type tmsiqreqs ,
         it_tmp_request type tmsiqreqs with header line ,
         it_e070        type sorted table of e070
                             with header line
                             with unique key trkorr .
  data : begin of it_trfunction occurs 10 ,
           domvalue_l type domvalue_l ,
           ddtext     type val_text ,
         end   of it_trfunction ,
         begin of it_trstatus occurs 10 ,
           domvalue_l type domvalue_l ,
           ddtext     type val_text ,
         end   of it_trstatus ,
         begin of it_trimpflg occurs 10 ,
           domvalue_l type domvalue_l ,
           ddtext     type val_text ,
         end   of it_trimpflg .
* Recherche des données sur le système C27.
  call function 'TMS_UIQ_IQD_READ_QUEUE'
    exporting
      iv_system               = 'C27'
      iv_domain               = 'DOMAIN_D27'
    importing
      et_requests             = it_request.
  it_tmp_request[] = it_request[].
  loop at it_tmp_request
       where owner  in s_bname
       and   trkorr in s_trkorr.
    move-corresponding it_tmp_request to it_data.
    move : it_tmp_request-sysnam to it_data-csysnam ,
           it_tmp_request-impflg to it_data-cimpflg ,
           it_tmp_request-maxrc  to it_data-cmaxrc .
    append it_data.
    clear  it_data.
  endloop.
* Tri.
  sort it_data.
* Recherche des données sur le système P27.
  refresh : it_tmp_request, it_request.
  call function 'TMS_UIQ_IQD_READ_QUEUE'
    exporting
      iv_system               = 'P27'
      iv_domain               = 'DOMAIN_D27'
    importing
      et_requests             = it_request.
  it_tmp_request[] = it_request[].
  loop at it_tmp_request
       where owner  in s_bname
       and   trkorr in s_trkorr.
    read table it_data
         with key trkorr = it_tmp_request-trkorr.
    if sy-subrc eq space.
      move : it_tmp_request-sysnam to it_data-psysnam ,
             it_tmp_request-impflg to it_data-pimpflg ,
             it_tmp_request-maxrc  to it_data-pmaxrc .
      modify it_data
             transporting : psysnam pimpflg pmaxrc
             where trkorr = it_tmp_request-trkorr.
    else.
      move-corresponding it_tmp_request to it_data.
      move : it_tmp_request-sysnam to it_data-psysnam ,
             it_tmp_request-impflg to it_data-pimpflg ,
             it_tmp_request-maxrc  to it_data-pmaxrc .
      append it_data.
      clear  it_data.
    endif.
  endloop.
* Recherche des données générales sur l'ordre.
  select trkorr trfunction trstatus as4user as4date as4time
         into corresponding fields of table it_e070
         from e070
         where as4user in s_bname
         and   strkorr eq space
         and   trkorr  in s_trkorr.
* Recherches des textes desciptifs.
  select domvalue_l ddtext
         into table it_trfunction
         from dd07t
         where domname    eq 'TRFUNCTION'
         and   ddlanguage eq sy-langu.
  select domvalue_l ddtext
         into table it_trstatus
         from dd07t
         where domname    eq 'TRSTATUS'
         and   ddlanguage eq sy-langu.
  select domvalue_l ddtext
         into table it_trimpflg
         from dd07t
         where domname    eq 'TRTPIMPFLG'
         and   ddlanguage eq sy-langu.
* Enregistre les informations dans la table IT_DATA.
  loop at it_data.
    read table it_e070
         with key trkorr = it_data-trkorr.
    if sy-subrc eq space.
*     Recherche libelle du code TRFUNCTION.
      read table it_trfunction
           with key domvalue_l = it_e070-trfunction.
      if sy-subrc eq space.
        move it_trfunction-ddtext to it_data-trfunctiont.
      endif.
*     Recherche libelle du code TRSTATUS.
      read table it_trstatus
           with key domvalue_l = it_e070-trstatus.
      if sy-subrc eq space.
        move it_trstatus-ddtext to it_data-trstatust.
      endif.
*     Recherche libelle du code CIMPFLG.
      read table it_trimpflg
           with key domvalue_l = it_data-cimpflg.
      if sy-subrc eq space.
        move it_trimpflg-ddtext to it_data-cimpflgt.
      endif.
*     Recherche libelle du code PIMPFLG.
      read table it_trimpflg
           with key domvalue_l = it_data-pimpflg.
      if sy-subrc eq space.
        move it_trimpflg-ddtext to it_data-pimpflgt.
      endif.
      move-corresponding it_e070 to it_data.
      modify it_data.
      delete it_e070
             where trkorr = it_data-trkorr.
    endif.
  endloop.
* Ajoute les ordres qui n'ont pas encore été liberrés.
  loop at it_e070.
    clear it_data.
    move-corresponding it_e070 to it_data.
*   Recherche libelle du code TRFUNCTION.
    read table it_trfunction
         with key domvalue_l = it_e070-trfunction.
    if sy-subrc eq space.
      move it_trfunction-ddtext to it_data-trfunctiont.
    endif.
*   Recherche libelle du code TRSTATUS.
    read table it_trstatus
         with key domvalue_l = it_e070-trstatus.
    if sy-subrc eq space.
      move it_trstatus-ddtext to it_data-trstatust.
    endif.
*   Recherche libelle du code CIMPFLG.
    read table it_trimpflg
         with key domvalue_l = it_data-cimpflg.
    if sy-subrc eq space.
      move it_trimpflg-ddtext to it_data-cimpflgt.
    endif.
*   Recherche libelle du code PIMPFLG.
    read table it_trimpflg
         with key domvalue_l = it_data-pimpflg.
    if sy-subrc eq space.
      move it_trimpflg-ddtext to it_data-pimpflgt.
    endif.
    append it_data.
  endloop.
  sort it_data.
* Recherche des libellés des ordres.
  loop at it_data.
    select single as4text
           into it_data-as4text
           from e07t
           where trkorr eq it_data-trkorr
           and   langu  eq sy-langu.
    if sy-subrc eq space.
      modify it_data.
    endif.
  endloop.
* Modifie les codes pour positionner les icones.
  loop at it_data.
    case it_data-cmaxrc.
      when '    '.
        move '@EB@' to it_data-cmaxrc.
      when '0000'.
        move '@08@' to it_data-cmaxrc.
      when '0004'.
        move '@09@' to it_data-cmaxrc.
      when others.
        move '@0A@' to it_data-cmaxrc.
    endcase.
    case it_data-pmaxrc.
      when '    '.
        move '@EB@' to it_data-pmaxrc.
      when '0000'.
        move '@08@' to it_data-pmaxrc.
      when '0004'.
        move '@09@' to it_data-pmaxrc.
      when others.
        move '@0A@' to it_data-pmaxrc.
    endcase.
    modify it_data.
  endloop.
endform.                     " P_FIND_DATA

Similar Messages

  • Prevent import of transport request for certain client

    Hello.
    I have two clients in TST system.
    I would like to delete one client.
    How can I prevent import of transport request for certain client?
    At hte same time users must transport request into other client in TST system.
    Is it possible?
    I know next features:
    1.
    se37-->
    SCCR_LOCK_CLIENT
    SCCR_UNLOCK_CLIENT
    2.
    tp locksys SID (from OS level)
    but they use for all client (for whole system).
    Best regards,
    Denis

    se37-->
    SCCR_LOCK_CLIENT
    SCCR_UNLOCK_CLIENT
    These are Client Specific not Cross client. So if you want to delete a client just Schedule the Delete Job and lock the client and no body would be able to transport on that client. I hope i understand your question properly.
    Regards,
    Subhash

  • How to Delete Transport request for Delete client

    Hi guys,
    We are going for upgrade from 46C to ECC.
    we found client XXX does not exists but Transport request for the client XXX does exists. so we plan to delete it or release it before going to upgrade.
    But SAP does not allow me to delete or release it. Is there any special way to deal this issue.
    Please suggest me.
    Thanks
    Jaichan

    You could have the lost client XXX recreated again by system administrator using a "minimal" client copy (just users), should take only minutes and not much disk space.
    Then you can release or delete the transports, afterwards delete the client again.
    I don't know another way of doing it.
    Thomas
    P.S. all the other replies so far do not take into account that you cannot change transports that were created in a different client.
    P.P.S did you ever look at the long text for message TK056? This clearly explains your options here
    To transfer the request to the current client, proceed as follows:
    1. Go to the request overview.
    2. Position the cursor on the request and choose Request/task -> Display/change.
    You are asked if you want to copy the request and all tasks belonging to it to the current client.
    3. Answer "Yes".
    The request is copied to the current client, and can then be edited as normal.
    Note
    For this procedure, you require the "Change source client" authorization contained in the SAP standard authorization S_CTS_TR_ALL.
    You can copy only your own requests to another client.
    In order to copy other users' requests, you first have to assign them to you.
    You can reassign the request to you in another client only if the original client no longer exists (prerequisite: You want all client-specific entries to be deleted).
    I was not aware of this up to right now...

  • I recently lost my iPhone, how do i get my contact list from my last back up on iTunes into my android phone in the meantime before i get a new iPhone?

    My iPhone was recently stolen and i had all my contact phone number which i need quite urgently on the spare android phone am using in the in, how do i get my contact list from my last back up on iTunes into my android phone in the meantime before i get a new iPhone?

    Hi If you have them on your PC, just copy them and you will need to enter, each one on Android phone by typing, them in. Cheers Brian

  • I have a Verizon LG Versa cell phone, how do I get my contact list from there to my new iphone 4?

    I have a Verizon LG Versa cell phone, how do I get my contact list from there to my new iphone 4?

    Matt,
       My new iPhone 4 is on the way from Verizon, and I too am moving on from the LG Versa (a poor man's iPhone) so I've researched this.  I trust you have been using the backup assistant on the LG phone to backup your contacts?  If so, and you investigate the app store you will see an app for doing the same task on you new iPhone.  Initially it will take you LG contacts you have backed up at Verizon to their new home on the iPhone.
    According to user comments there appear to be a couple of issues with the app you need to be aware of:
       1.  It will not automatically backup your iPhone, you will need to initiate updates in the future on your own.  and
       2.  You will see in the comments, that there have been some issues with length of backup when you add lots of contact photos to your list.
       This coupled with the address book sync from your computer should make your list whole, in fact the move to the iPhone will allow me to consolidate my address book with my cell phone contacts.  Then once I remove the duplicates all will be right with the world.
    Steve

  • How can I get my contact list from my I phone 5 to my I pad?

    how can I get my contact list from my I phone 5 to my I pad air?

    One way is via iCloud. Settings > iClouds > Contacts on for both.

  • Trying to get my contact list from Outlook Express to fly over to my new iPAD. Appreciate any suggestions.

    Trying to get my contact list from Outlook Express to fly over to my new iPAD.  Will appreciate any suggestions.

    Outlook Express accesses an address book app called Windoze Contacts for contact info, which the iPad supports syncing contacts with. This is selected under the Info tab for your iPad sync preferences with iTunes.

  • I get recent contact lists from another device

    I get recent contact lists from another device. I have two iPhones on my account and this is the first time I have ever shared recent contacts from separate contact lists.

    Please elaborate.

  • Transport request to all clients in system from STMS

    Hello colleagues,
    Wich parameters should we activate so that every transport request wich is imported in our test systems updates all available clients in the system?
    Kindest Regards

    Hi Enrique,
    That should be part of extended transport protocol. Check [this|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1b/9dc2d6e59911d184810000e8a57770/content.htm] URL for ETP. Also have a look at [this|Auto import from one client to another with in same system; thread, where your question is being answered.
    Kind regards,
    Mark

  • Transport request deleted from buffer how to retain it?

    Hi geeks please help me.
    As the support package upload,i have found that some transport request request are blocking the support package upload.The error issued was Queue_not_empty .I went to command prompt to get the list of transport request with status "will not be import because it is tagged".
    then to remove them from the buffer I executed commands
    tp addtobuffer <tr.request> <SID> pf=<path of tp profile> U1 tag=SPAM
    tp delfrombuffer <tr.request> <SID> pf=<path of tp profile> tag=SPAM
    .But now I see the transport request in the queue is in "RED" status.
    I need to retain the transport request and reimport it.Is there any way to do that?
    I have both K-file and R-file corresponding to this requests in cofile and data directories respectively.
    Regards
    Syamkrishnan

    Hi Syamkrishnan,
    just copy the cofile and data file in the transport directory, then go to STMS click on Extras -> Other requests -> Add and add the transport to the queue.. then just reimport.
    Hope this help
    Juan
    Please reward with points if helpful

  • Inconsistant transport requests after local client copy

    Dear experts,
    our IT department just made a local client copy with profile SAP_ALL, by which all the transport requests had been copied, too, including quite a lot of workbench and customizing orders in status changeable. I'm supposed to do some basic setup and cleanup in the new client, but I'm confronted with problems like objects being locked in orders/requests that cannot be changed in the new client, as they belong to the original source client.
    How can I get rid of those inconsistencies? I'd preferred the new client without transports and without locked objects. Is it really necessary that I clean up this mess manually? Would it have been better to clean this up before the client copy? Or could we just do the client copy with another profile in order to avoid those problems?
    Thanks for your appreciated help
    Andreas

    Hello,
    Transports are NEVER part of a client copy.
    In fact all the data of your transports is stored in tables that are client independent (E07* tables).
    This means that you can view (not edit) always all transports from all clients in a specific system.
    When you want to edit or release a transport the source client is important (in which client was the transport originally created).
    This is stored in table E070C for all transports and can not be overruled.
    So I recommend that you don't clean anything related to transports after a client copy because this will also impact the other clients !
    Success.
    Wim

  • Transport Request copy between clients in the same system

    I have one workbench request needs to transported across all our client in the QA system
    Development system has 3 clients - D001,D002,D003(client)
    I am supposed to do the development works in the D001 client.
    Unfortunatel I did in the D002 client.
    But our transport route is D001 --->Q001only.
    Is their any way I can copy the Transport request from D002 to D001 and then release D001-Q001.
    I am able to repeat the same work relevant to D002 client.But there is no transport request is creating for the new
    work in D001.
    Please advise on this.
    Advance Thanks

    Hi,
    You cannot copy a transport request from one client to another. Try to make a client copy so that the changes you made to D002 client will get effected in D001.
    Hope this helps.
    Assign points if useful.
    Venkat

  • How to delete i.e. clear the pending access requests list from Access request page in SharePoint 2013

    Hi Team,
    I am site collection admin of a SP13 site. The issue is we have added some of the users manually after we got requests from them for site access. But this has left those users as pending on Access requests page. We don't want that list to stack up.
    I can not decline those requests as those users will be notified with declined mail. I searched for clearing the list of those pending requests but did't find any guidelines for this. 
    Is there any way I can do this. Any help is appreciated thanks in advance  

    You might consider using PowerShell to remove unwanted items from the "Access Requests" list of the web site.  This list holds all of the access requests including pending, declined and approved.  The following example demonstrates removing
    the first item from the list.  Please note, I'm not aware whether or not there are any negative side effects to removing items from this list so doing so would be at your own risk.
    $web = get-spweb https://yoursharepointsite
    $list = $web.lists["Access Requests"]
    $list.items[0].delete()

  • Issues with creating transport request for cross client changes???

    Hi,
    In our ECC 6.0 dev system, functional team makes all their configurations in client 100.But ABAP team is using another client 120 to create /modify ABAP objects.
    So all workbench requests getting created in client 120.
    I would like to have all customizing/work bench requests created and released from  client 100.Is is possible to re-assign all work bench requests created in cleint 120 to client 100?
    Thanks
    Ram
    Message was edited by:
            rama subramaniam

    Hi Rama,
                 If u r making any workbench changes that means they are repository
                 objects it will reflect entire system. I dont think we need to import them
                  into the same system once again. Hw ever we can do that by scc1.
    Regards,
    Vamshi.

  • Transporting request to two clients

    Hi Experts,
    We have two clients(100 and 200) in production system.
    1. If we transport client-independent request to any client 100 or 200, will it effect entire system?
    2. Shall we have to transport client dependent request to production 2 times?( first to 100 and second to 200 via STMS)?
    3. Using SCC1 shall we pull the request from client 100 to 200? is it right process in production?
    Please advise..Thanks in advance
    Regards
    Veera

    Hi,
    We have two clients(100 and 200) in production system.
    1. If we transport client-independent request to any client 100 or 200, will it effect entire system? - yes
    2. Shall we have to transport client dependent request to production 2 times?
    ( first to 100 and second to 200 via STMS)?   ..... yes
    3. Using SCC1 shall we pull the request from client 100 to 200? is it right process in production?     -
    yes
    1. All Workbench requests are Client-Independant
    2. Alll Customization requests are known as Client dependant.
    Thanks
    Siva

Maybe you are looking for

  • How many times can you attempt the restrictions passcode?

    I've forgotten the restrictions passcode I set on my iPod. Since I don't want to perform a complete systems reset just yet, I want to try to attempt remembering my passcode... how many times can I try the restrictions passcode without permanently loc

  • Project will not play, but video in event library will

    Sorry for the quality, it was the quickest setting I could upload. The video explains it pretty well. http://www.youtube.com/watch?v=l2D126H3mGM

  • What are basic and dynamic disks?

    Basic disks and dynamic disks are two types of hard disk configurations in Windows. Most personal computers are configured as basic disks, which are the simplest to manage. Dynamic disks can make use of multiple hard disks within a computer to duplic

  • Debugging Report which is scheduled in background

    Hi all,         How to  debug a report which is scheduled in background. Thanks in advance                                                                                 Ranjith

  • Windows boots up then just a black display toshiba satellite L455-S5009 laptop

    Windows boots up then just a black display toshiba satellite L455-S5009 laptop Serial #XXXXXXXXX cant get any help fro holding down FN key while hitting F5 key only can see little white circles, I am using my HP laptop to submit this, please help thi