Equipment Serialno data segment inconsistency

We have build a custom application where we tried to automate the Equipment sales process.
Scenario : Trying to sell Equipment materials in sales order with
multiple line items using a custom development. Each line item in Sales order is associated with serial no is a unique combination with material.
Process steps as followed
1. Will create seperate delivery for each item in the Sales order.
2. Retire Assets
3. Update Material with Retirement value
4. GR done for each delivery using BAPI_GOODSMVT_CREATE using movement type 501.
5. PGI using movement type Z01.
6. Billing document generated.
In step 4, calling BAPI_GOODSMVT_CREATE to do GR by passing serial no
to GOODSMVT_SERIALNUMBER. Table EQBS gets updated, EQUI-S_EQBS is not
getting updated through bapi, if sales order has more than one item.
This is causing problem when we try to return these sales orders, getting short dumps EQUI-S_EQBS flags
are inconsistent with EQBS data.
I found an SAP note where we can correct these flags by running a report, but i would like to find a cause and prevent frombeing happening.
Appreciated your inputs.

Not sure if this is your problem...
I know when you use the AT statements in a LOOP, everything to the right of the key is "*".  You have to make a work area like the structure in your LOOP, move the data to it after the LOOP, and then reference ths structure within the AT/ENDAT statement.
like...
data: w_idoc_sdata like idoc_data-sdata.
loop at idoc_data.
  w_idoc_sdata = idoc_data-sdata.
  at last.
    MOVE w_idoc_sdata TO w_e1edl43.
  endat.

Similar Messages

  • How to Conditionally enable a date segment in flex based on Prior segment

    i need to enable 'Retest Date' - Date segment, only if a prior segment 'Result' has a value 'Fail'.In case 'Result' is passed, the 'Retest Date' should not be enabled.
    Retest Date should allow all possible dates . These values dont come from any table.
    I can use :$FLEX$.Result or :$FLEX.Result_valueset in my where clause of table validated valueset if the datatype is varchar2 . For date type, I have always used validation type as 'None' .Where do i mention the :$FLEX$.Result and what should be the validation type?
    Any ideas about how to achieve the beahviour mentioned above?
    Many Thanks,
    Lal

    Hi,
    Here is the solution:
    http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_3.html
    Best,

  • Help requested on Procedure to Archieve Equipment Master Data

    Hello SAP Gurus,
    We have a requirement to Archive the Equipment Master data in SAP 4.7 system that run on Linux platform with Oracle 10g database. Can anyone of you please guide us with any links or documents which would detail the step by step process on how to do it and what are the consideration that have to be taken in to account.
    Any How To document with step by step process would be of great help as we have not this task before.
    Regards
    Murali

    Thank you for your suggestion
    I was trying to archieve one equipment data in our sandbox system. My functional consultant has set the deletion flag on equipment to be deleted and then we are trying to run SARA tcode for Object PM_EQUI and defined variants needed.
    Preprocessing went through fine next we had run Write Job that too completed successfully and there was a archive session created as well.
    when go to configure Delete in SARA it is showing that there is no data to be selected .  when I look in to CCMS archieve monitor in tcode SAR_SHOW_MONITOR this shows as -  No Method Method assigned !!
    Can you please suggest what can be the issue ? I am clue less as this was my first experience with SARA Tcode.
    Is there any howto document available that give step by step screenshot for archieving ?
    Regards
    Murali

  • Enhancement for Equipment master data

    Hi all
       I want to find an enhancement for Equipment master data. I want to add some customer fields to Equipment data,but i can't find the enhancement.Anybody tell me the Enhancement which be useful for that. thanks.
    BR
    Chris.

    Hi,
    you can add new tab on the screen and provide your custom field on that tab. You have to add a new tab for any Technical Object by doing some configuration changes in SPRO. first go to SPRO and in screen sequences add a new tab sequence against the profile. Now in the function group SAPLXTOB you can see this new tab screen. Do your requirements on this screen.
    Reward if useful and get back to me if you need any help.
    Thanks,
    Anil

  • ABC indicator in PM equipment master data

    Hi expert,
    Can anyone explain about ABC indicator functionality in PM equipment master data
    Thanks
    Rgds,

    Hi Michael,
    As per Application help, ABC indicator signifies:
    An indicator that is assigned by the procedure of ABC analysis.
    The following ABC indicators are possible:
    A - Important
    B - Less important
    C - Relatively unimportant
    According to these criteria, "A" materials are those materials that are of greatest importance for the production operations of a company.
    Examples of use for ABC indicators are vendor master records, material master records, and master records of technical objects.
    You can customize the values in ABC indicator as per your requirement.
    Saurabh.

  • Migration of Equipment Master Data together with PRT data

    Hello Experts,
    we need to migrate Equipment Master Data which have activated the view PRT data. Most of the fields in this view are stored in table CRFH. Is there a way to migrate Equipment Master Data together with the PRT data of the Equipment? All the BAPI's I found do not have an import structure for those fields. Is a batch-input the only way?
    Does anybody know a mass change transaction for Equipments?
    Thank you and Regards
    Christian

    Hi Krishna,
    You can use the standard batch input program RFBIDE00 in LSMW to update the customer master data. However, there might be scenarios where you might be required to update the fields which do not get updated by the standard bacth input program. If any of such fields are defined as mandatory, then you wont be able to use this method directly.
    In such cases you will have to either create a recording to poplate the fields which do not get updated by the standard program and use both the recording and the standard batch input program to update the customer master data OR create a recording for customer master create and use the same in LSMW.
    Best regards,
    Harsh

  • Sharing Data segment

    How is it possible to share the data segment between main thread and the child thread?
    public class Share2 extends Thread{
    static int Data=10;
    public void run ( ) {
    Data=Data+10;
    System.out.println("Data="+Data);
    public static void main (String[ ] args ) {
    Share2 obj=new Share2 ( );
    obj.start ( );
    System.out.println("Data ="+Data);
    Output is different in main and child thread.
    D:\javaprogs\misc\threads>java Share2
    Data =10
    Data=20
    D:\javaprogs\misc\threads>
    Zulfi.

    I have studied that in case of threads data segment &
    code segment is shared but in process, each process
    has a different address space. This is what I want to
    prove that if i have a sharable data then its value
    should be same in both the threads. Over here I have
    main & a child thread but they are not printing the
    same values for Data.
    Zulfi.You need to learn two very important things about thread:
    1) You don't control which thread gets CPU time when. Think (for once) about what implications that might have for your code.
    2) Threads can have local copies of member variables, so that changes to the value by one thread won't necessarily be seen by the other unless you either declare the variable volatile or use synhcronization.

  • Technical ID of Equipment Master Data

    Hi Experts,
    We have maintain tech ID in equipment Master Data.What we are doing we are keep replacing the tech ID for same equipment No (While replacing the equipment ). Now i want to trace the usage of tech ID.I mean to say i want to trace in how many equipment i have used the same tech ID No. Can anybody tell me how can i trace the same.
    AR
    Edited by: Amit  Rana on Aug 17, 2009 1:17 PM

    hi
    i think you can have one Tech ID for one equipment which will be useful for tracking ,if you want one equipment with different Tech ID then you can use the method i specified earlier.
    in the usage list you can find the Tech ID validity from and to ,from which you can trace.and you can create an querry for table display of EQUZ where user can specify the Tech ID and get the output for equipment no
    regards
    thyagarajan

  • Equipment master data : address in "Location" tab

    Hi experts,
    Can someone tell me what the "address" data (in equipment master data, "Location" tab) are for?
    What is an example of business case which will use that "address"?
    Thanks,
    P.

    Hi,
    It is the same address data that is available on equipment header (Ctrl+F5). It could be the address of where the equipment is located or where it operates. Alternatively it might be the contact details for the equipment owner or maintenance company.
    It is similar to maintaining partners but you can use it as suits the business requirements.
    -Paul

  • Archiving and deleting of equipment master data in plant maintenance module

    Hi,
    Can anyone explain me the process to archive and delete the equipment master data in PM module using archiving tools.
    I tried doing it thru t-code SARA, would be grateful if anyone can help me with the steps to follow to archive the equipment master data.
    Thanks in advance,

    Many thanks for your reply,
    I tried doing the same in IDES, but unfortunately the archive file is not getting generated when i write it. I have clearly specified in the variant to create an archive file. Can you please explain how does the system generate an archive file. And also in the customizing " Archiving Object-Specific Customizing " techincal settings, i have maintained the production variant and have marked start automatically.
    Please advise,
    thanks again ,

  • How can i filter just te equipment with date to 31129999 ??

    Hi ,
    How can i filter just te equipment with dateto 31129999 ??  i need just the valid equipment with dateto 31129999 but this char i cant take it to filter, how can i do this?

    In the Update tab of the InfoPackage, you can select the Time-Dependent data. In this, if you only want to extract Equipment Master Data Attributes or Master Data Text for effectivity dates of current date through 31-Dec-9999, you can create a routine for the time interval by updating it as such:
      CONSTANTS: c_max_date TYPE d VALUE '99991231'.
      p_datefrom = sy-datum. "Current Date
      p_dateto   = c_max_date. "Max Date

  • Upload the "Equipment" related data

    Hi all,
    I need to Upload the "Equipment" related data into the SAP syatem.
    Am having the data for the following fields,
    1.Equipment(EQUNR)
    2.Maintenance Plant(SWERK)
    3.Technical Object Type(EQART)
    4.Material Actual(MATNR)
    5.Serial Number from the Tag(SERNR)
    6.Barcode No.used to scan the Equipment(TIDNR)
    7.Plant(B_WERK)
    8.Storage Location(B_LAGER)
    9.Batch (B_CHARGE)
    10.Master Batch(CHARGE)
    Could you please tel me the T-code/Any Information to upload the data through the LSMW.
    Thanks in Advance.
    Regards,
    Kalam A.

    Hi Kalam,
    The Tcode is IE01 and the master table is EQUI, EQBS etc.
    You can also use Bapi to create the equipment.
    BAPI_EQUI_CREATE
    BAPI_EQUI_CREATE_BY_REFERENCE
    <b><REMOVED BY MODERATOR></b>
    Lokesh
    Message was edited by:
            Lokesh Aggarwal
    Message was edited by:
            Alvaro Tejada Galindo

  • MM06E001 - Data Segments

    Hi All,
    I'm trying to understand user-exits.
    Can anybody send me sample code to populate the data segments in the enhancement MM06E001 for the function module EXIT_SAPLEINM_002 to create an outbound IDOC.
    Any input appreciated.
    Meghna

    DATA:  z_e1edp10 LIKE e1edp10,
           z_e1edk09 LIKE e1edk09,
           z_e1edka1 LIKE e1edka1.
    IF int_edidd-segnam = 'E1EDKA1'.
       lv_index = sy-tabix.
       MOVE  int_edidd-sdata  TO  z_e1edka1.
       if z_e1edka1-parvw(2) = 'EK' or
          z_e1edka1-parvw(2) = 'AP'.
          delete int_edidd index lv_index.
          check 0 = 1.
       endif.
    endif.

  • Determine Partner number based on IDoc Data Segments

    Are there any user exits or BADI, which can be used to determine Control record parameters (Partner), based on IDoc Data segments? This is for an Inbound IDoc, into ECC.
    I found EXIT_SAPLEDI1_001. But, this has only control record. It is used to determine control record parameters, by using control record only.
    Thanks,
    Juwin

    Dear Juwin,
    Could you please provide some info. about what you are trying to achieve by trying to determine the partner dynamically?
    If the scenario is something like 'Partner A should get data related to only plant 1000 and Partner B should get data related to only plant 2000', you could use filters in the Distribution model to achieve this.
    BR,
    Aashrith

  • Maintenance & operation costcentre in equipment master data

    We are going to create some equipment related to equipment categories Mechanical (M) & Electrical  (E)(Both categories are related to maintenance equipments. And we have two cost centre one for Maintenance (12900 ) & second for operation (12901 ).Kindly suggest me out of these two which one should be default cost centre in equipment master data.
    AR

    Hi
    you are booking all your expences on the asset correct i.e on equipment
    equipment is run by operations
    so the master Data should contain only operation cost enter
    As per as budgeting is concern
    you should give yearly budgeting to Operations
    based on their total expenses is nothing but operation Budget +Maint budget
    so the workcenter which you are using that activity type is calacultaed based on cost in Kp26
    Regards
    chandrashekhar Ingole

Maybe you are looking for

  • Help With Buttons Please. Deadline Looming

    Hi everyone, I am having a major brain block today. My problem is simple... and I cannot fix it. too tired. I have a menu the has NO overlays. Just a simple graphic that I made a button on top using the Apple Square Red Shape that comes with DVDSP. I

  • BPEL - Fault Policy Management

    Hi All I trying to implement the fault policy management in oracle soa suite 10.1.3.5 and I am facing a problem in it. I have defined the process level policies in the fault-bindings.xml file as shown below and its not working. <faultPolicyBindings>

  • Append ouput to a file

    Hi everyone,  I have a below script that I would like the output to be written to a file.  A file will have the below output along with computer name.  How would I do that?  I will be running this script multiple times so I would like all the output

  • Names of correlation properties

    Hello. What is the best practice: - give same name to all properties in correlation set - give each property own name I quite don't understand philosophy of naming properties. When all properties in correlation set has same name then all looks same i

  • Cannot create xmlindex with structured component

    Hello everybody, I want to create an XMLIndex with structured components on a table named BID_XWH. The table stores rows that are valid against the following XML Schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/20