Work order header information from BAPI_ALM_ORDERHEAD_GET_LIST

Upfront I'll admit that this question likely falls outside of MII as I am getting bad results in SE37 as well.  Was hoping others in this group have experience with this.
When I use BAPI_ALM_ORDERHEAD_GET_LIST there are several work orders that do not get returned, and I can't figure out why, or even what is the common thread between them.  The missing orders are viewable via iw33, and information can also be returned from BAPI_ALM_ORDER_GET_DETAIL.
Right now, the only thing I pass in OPTIONS_FOR_ORDERID with a range of orders (ie 20 or so).  Orders are returned in the correct range, just not the one I am looking for.
Rod

Hi Rod,
The only thing I can think of is that there are times where orders (or other objects) are created outside of normal procedures.  My experience was with Batch histories, but if the objects are not created in the normal process (a nebulous term at best), they will sometimes not be stored in all the proper tables.  Can you check the processing history of the orders missing to see if there are any discrepancies there? 
Otherwise, you may need to get some ECC side help.  The ABAP code in the underlying function module may direct you to all the tables which should be populated with the correct data so you can check which tables are not populated. 
An alternative option for getting the work order header information would be to go back to the old reliable RFC_READ_TABLE.
Good luck,
Mike
Edited by: Michael Appleby on Feb 12, 2011 4:13 PM

Similar Messages

  • Read header information from an e-mail that is an attachment to another e-mail

    I've written a macro using VBA code within Outlook 2010 that will extract header information from an e-mail and then save it to a csv file.  The code works well, but unfortunately, the header information I need is within e-mails that are sent to
    me as attachments.  Which means that I am opening the attachment and then running the macro to get the header information.  Is there a way for VBA to open the attached e-mail and read its header?
    Ideally, I would like to write code that will cycle through all of the e-mails in a folder, open the e-mails that are attachments and save off the header information.
    Any help or suggestions would be greatly appreciated.
    Thank you for your time.

    You should try the Exchange Development forum
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • How to refer the work order status value from a different transaction in the step handler?

    Hi All,
    I have a requirement to check the status of the work order from a different transaction before doing some logic in the current transaction. The following transactions are done to replicate the issue
    1)changing the status to ONSITE to edit the work order (transaction 1)
    2)Adding some information which will do some logic (transaction 2)
    3)Completing the work order (transaction 3)
    The transaction 2 will have some logic and will be executed only if the status is COMP but even though the status is COMP now (transaction 3) my condition check in the logic is showing as ONSITE status(transaction.status=ONSITE) and it fails. How can i get the latest status of the work order in the device? Please advice

    Hi Jason,
    The CompleteWorkOrderFinish sub action does have Apply action (screenshot 1) and the transaction definition (screenshot 2)of CompleteWorkOrderFix transaction with the only property Status which has the following settings (screenshot 3)
    Also I am trying to add a status property in EditMeterFitDetaisl transaction and update this value with the current status of the work order using object collections filtering with key value. Please let me know if that approach can be followed. Thanks

  • Unable to upload PM Work Order Header Status

    Hi,
    I have made LSMW for tcode: IW31. I have a requirement to upload legacy data to SAP with their existing header status.
    For instance:
    I have a work order which got a header status complete and I want to upload this work order with its status. So, how can I upload different work orders with their different header status.
    Do let me know as soon as possible.
    Thanks for the contribution.
    Regards,
    Yahya

    Yes, you are right. Originally it should be the way you answered but requirement is to upload data with respect to their order status from legacy.
    In addition, is there any possiblity that I can create one complete LSMW for transaction IW31 OR IW32?
    This is asked because I am unable to upload data in Operatoins Tab
    Thanks.
    Regards,
    Yahya

  • Losing Header Information from Siteminder

    We have been working to migrate several of our internal CF8 sites over to a new CF11 server. I have only been supporting CF for about a year, so I'm afraid I am not as knowledgeable as I should be.
    Most of our sites are working correctly; however, we are encountering a unique issue with a site called Workforce Tracking. It utilizes a header variable (RACFGROUPS) that is returned by Siteminder. This is handled by the application.cfm file, with the relevant section below:
    When I navigate to devworkforcetracking2.localnetwork.com/Jobs/, the default index.cfm page gets loaded, the application file is called, and the RACFGROUPS header information is available. I have been using CFOUTPUT on the variable for debugging:
    However, if I try to navigate to workforcetracking.localnetwork.com/Jobs/index.cfm (or any site under /Jobs/), I receive this error message:
    This is despite the fact that the exact same index.cfm file is being called.
    I contacted our Siteminder team, and they provided me with a file to test if the RACFGROUPS variable is being received by other file types inside that folder. The header information is working correctly for their test file.
    As far as we can tell, our setup between CF8 and CF11 is identical. We have been picking over this site for quite some time, trying to figure out why the header information is available for /Jobs/ but not for anything under it, and we have not had any luck.
    Anyone run into this before? Any advice?

    In my case, if I show headers via an ASP page, I see all 27 headers.  When I show the same headers from a CFM page, I only see 24 headers.  And the 3 missing headers are the last 3 headers listed on the ASP page.
    I have enabled debug logging for isapi_redirect.log.  The log only shows 24 headers (see below).
    Is there a limit to the number of headers that isapi_redirect.dll supports?
    I am running ColdFusion 11 Enterprise on Windows Server 2008 32 bit.
    [Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3944): Forwarding request header usertype : Employee
    [Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3973): Service protocol=HTTP/1.1 method=GET host=10.4.101.59 addr=10.4.101.59 name=devasicint.internal.local port=80 auth= user= uri=/secureint/headerinfo.cfm
    [Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3985): Service request headers=24 attributes=0 chunked=no content-length=0 available=0

  • Standard IDOC/BAPI to create work order in CRM from ECC PS

    Hello Guys,
    Any input on any standard IDOC/BAPI I could use to create a work order in SAP CRM based on the data feed from SAP ECC (Project systems)?
    Any help on this would be really appreciated.

    Hii.
    Did u get answer of SAP-> XI->CRM. IF so, share wid us.
    I m stuck in same kinda scenario

  • Work Order Header Short Text & Operation Short Text Issue

    Hi All,
    There is one issue while creating the work Order through IW31. When I put the Header Short Text same short text is transpose in to the First Operation short text as per STD SAP behaviour but if I change First Operation short text in creation(IW31) and save and come back in IW32 or IW33 it is showing the same Header Short Text  but not changed one.
    Why it is so???
    I  Want to Edit the First Operation short text in IW31 only not in IW32.
    If anybody have explaination on this please let me know.Its SAP BUG????
    I am Using ECC6.0
    BR
    Rakesh

    Hello Pete,
    No i don't want same short text at Operation short text. Actually when i am in TC IW31 creating Order By default Header Short text is transfer to Operation Short text as per SAP STD functionality when at the same time i change the Operation short text and save and come back and see the Order in IW33 & IW32 i am not able see the changed Operation short text which i changed at  IW31 while creation of order.It showing the same short text of order Header .Why so.......????
    BR
    Rakesh

  • Remove Header Information from PDF Report

    Is there a way to not have the Filters and Variables Information show on a report that is emailed from the BeX Broadcaster as PDF document? We are having issues with the information being displayed having gone from being single spaced to having large gaps between the lines. Or has anyone else had a similar issue and knows how to remove the extra lines?

    Hello John,
    In TX RSCUSTV27 it is possible to maintain default templates.
    For broadcasting, the default template is 0QUERY_TEMPLATE_BROADCAST_PDF.
    The template can be edited so filters and variables can be removed.
    BR
    Ondrej

  • Reading MP3 header information from file

    Hi,
    Im currently using the JMF bean to play a specified location. Such as a media player would do. Now I would like to read the ehader information of MP3 files - if provided as a source. How can I access this data ?
    thanks,
    detlef

    You need to read about the .DWG file format somewhere. Use some binary file editor like Ultraedit and try to understand the file's layout.
    Hint: if it is a binary format, do not use "readLine". Read the raw bytes and try to get the structure of the file piecewise.

  • How is functional location linked with work order tables

    Hi, Experts:
    I am working on a BW project to extract Plant Maintenance data from R/3 to BW system. We need to get work order data with related Functional Location data togather. When check the 2 tables AFIH for Work Order header and AUKF for Order master data, I don't see Functional Location field in neither of the 2 tables.
    Can anyone please tell me how (by which table/field) Functional Location data in table IFLOT is linked to a Work Order stored in tables AFIH and AUKF?
    Many Thanks,
    Jenny

    Hi, Thyagarajan:
    Thanks for the reply! I tried to get the values of ILOAN from table AFIH. And pass the value to the field ILOAN in ITOB. However, no data returned from ITOB. The ILOAN in AFIH has different set of values from the ILOAN in ITOB.
    Any suggestions?
    Thanks,
    Jenny

  • How is the object link populate into work order - IW31

    Hello,
    I am new in PM and am in the process of trying to picking up the concept.
    Question:
    When I create a maintenance order (IW31), how are all the relevant data being pull out and populate into the work order?
    For example, 
    The maintenance plan includes functional area and equipment object, material objects, and task list object.
    Next, you have the equipment master, which also includes the task list, and functional location.
    Finally, you have the task list which includes the Maintenance BOM component.
    Hence, when I create the PM order via IW31, how are all those object information pull out and import into the order? What is the sequence? I am confused on this.
    Thanks
    Daniel

    Daniel,
    When the work order is created from the maintenance plan it copies the maintenance item data into the order e.g. Floc, Equipment, Order Type, Main Work Centre, Priority, etc.
    The operations for the order are determined from the task list assigned to the maintenance item dependent upon the rule governed by the maintenance plan type (performance, strategy,etc).
    PeteA

  • Displaying Work Order System and User Statuses in IW37 Search

    I'd like to display the work order header system and user statuses along with the operation system and user statuses in an IW37 search but couldn't find an entry as such in the IW37 'change layout' dialog box.
    David Macindoe

    David Macindoe,
      That Order header information isn't available in IW37 report.You may have to use IW37N report or enhance /copy IW37 report to get this information.
    Regards
    Narasimhan

  • Is there a way to create a corrective work order off a prevenative workore

    Hello,,
    Is there a way to create a corrective work order off a preventive/inspection work order. Or is there a way to indicate that a corrective work order was created from preventive/inspection work order. In addition is there a way to report these changes.
    Thanks.

    Yes, first take your PM WO#, and go to Transaction IW36<p>
    <p>
    This process is how to create a "sub-order"<p>
    <p>you will be asked to enter in the "superior order", in this case it will be the PM Work Order you want to be the "parent"

  • IW21 Retrieving the maintenance cycle text while creation of work order

    Hi Experts,
    My requirement is to display the maintenance cycle text on the print preview while creating a work order via transaction IW21.
    Since the print preview is clicked before saving the work order, the data from the work order has not been updated in the database tables (AFVC, PLWP).
    Hence, the maintenance cycle text will have to be accessed through a runtime structure.
    The text has to be fetched in a subroutine program which is called from the SAPscript.
    I tried accessing the global data while debugging. However, the maintenance cycle text does not seem to be present.
    Please help.
    Regards,
    Anusha

    It is inappropriate to produce a SAPScript prior to save, IMHO.  What prevents the user from changing something after the print preview was done in this case?
    At any rate, you'll find that some data values, like document numbers, etc., are not set until the user has saved the document.   The document needs to be saved, and SAPScript generated at the end of that process.

  • How to change order header data before SAVE in CRM 2007

    Hi,
    I want to modify service order header value before saving it, to achieve this :
    1) Implemented BADI ORDER_SAVE
    2) in the method CHECK_BEFORE_SAVE, read order details by using FM CRM_ORDER_READ and done all validations.
    3) Now i want modify one field value. how to do that ?
    i came to know that by using FM CRM_ORDER_MAINTAIN or CRM_ORDERADM_H_MAINTAIN_OW data can be update/modify.
    Is this right ? what are the parameters i need to pass and exactly in which method i have use this FM.
    I want to pass the value in CRMT_ORDERADM_H_WRK(ET_ORDERADM_H) structure i.e. only for one filed.
    Please let me know how it can be done.
    Thanks
    Bhanu

    Hi,
    I am using following code, please correct if it is wrong.
    DATA : IS_ORDERADM_H_COM  TYPE CRMT_ORDERADM_H_COM,
               CT_ORDERADM_H  TYPE  CRMT_ORDERADM_H_COMT,
               IT_INPUT_FIELDS    TYPE CRMT_INPUT_FIELD_TAB,
               WA_INPUT_FIELDS    TYPE CRMT_INPUT_FIELD,
               IT_FIELD_NAMES     TYPE CRMT_INPUT_FIELD_NAMES_TAB,
               WA_FIELD_NAMES     TYPE CRMT_INPUT_FIELD_NAMES,
               IT_SERVICE_H       TYPE  CRMT_SERVICE_H_COMT,
               WA_SERVICE_H       TYPE  CRMT_SERVICE_H_COM.
    After reading order header data from "'CRM_ORDER_READ", pass header data to below structure
        MOVE-CORRESPONDING EW_ORDERADM_H TO IS_ORDERADM_H_COM.
       IS_ORDERADM_H_COM-ZZFLD00000Y = '123456'.  <== want to save value in this field created on service header screen by using AET
        APPEND IS_ORDERADM_H_COM TO CT_ORDERADM_H.
        WA_SERVICE_H-REF_KIND = 'A'.
        WA_SERVICE_H-REF_GUID = EW_ORDERADM_H-GUID.
        WA_SERVICE_H-MODE     = 'B'.
        APPEND WA_SERVICE_H TO IT_SERVICE_H.
        WA_INPUT_FIELDS-REF_GUID = EW_ORDERADM_H-GUID.
        WA_INPUT_FIELDS-REF_KIND    = 'A'.
        WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'. <= Is this right ?
       WA_INPUT_FIELDS-LOGICAL_KEY =  ? what is nothing but logical key
        WA_FIELD_NAMES-FIELDNAME  = 'ZZFLD00000Y'.
        WA_FIELD_NAMES-CHANGEABLE = 'X'.
        APPEND WA_FIELD_NAMES TO IT_FIELD_NAMES.
        WA_INPUT_FIELDS-FIELD_NAMES = IT_FIELD_NAMES.
        APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
       IT_SERVICE_H                  = IT_SERVICE_H <= is this required ?
        CHANGING
           CT_ORDERADM_H              = CT_ORDERADM_H
          CT_INPUT_FIELDS                = IT_FIELD_NAMES
         EXCEPTIONS
           ERROR_OCCURRED                = 1
           DOCUMENT_LOCKED               = 2
           NO_CHANGE_ALLOWED             = 3
           NO_AUTHORITY                  = 4
           OTHERS                        = 5.
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    awaiting for your replies
    Thanks
    Bhanu
    Edited by: Bhanupracash on Apr 6, 2011 2:14 PM

Maybe you are looking for