cancel
Showing results for 
Search instead for 
Did you mean: 

Equipment installation and dismantling historical data

former_member204457
Active Participant
0 Kudos

Hi Experts,

We're in process of implementing PM for a new client. As part of data takeover the client wants us to record the historical installation and dismantling of equipment at functional locations.

This is an example of data:

Equipment          Installation Date               Dismantling Date               Functional Location    

20000056           08-23-2012 16:29:12          10-18-2013 15:34:19          07-3064528

20000056           10-18-2013  15:35:22          03-06-2014 15:57:15          07-3064528

20000059            08-13-2014  11:00:00                                                 07-3044533

There are 2 IDoc that I found in LSMW

PIECEOFEQUIPMENT_INSTALLATFUNC

PIECEOFEQUIPMENT_DISMANTLEATFU

This is the problem I've. I cannot run the LSMWs to update installation on mass. When I run the 'Installation' LSMW, it will run successfully for the 1st record but it will stop for the 2nd and 3rd because it cannon install the equipment since it hasn't been dismantled. This means that I've to run the dismantling LSMW which basically defeat the purpose

Is there anyway for me to record the historical equipment installation and dismantling at FLOC using the IDOCs? Have you had such a requirement from a client previously and if so how did you upload the data in the system?

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

peter_atkin
Active Contributor
0 Kudos

Cyrus Minab

Why not use a BAPI instead of an IDoc, say BAPI_EQMT_INSTALLFL.

PeteA

former_member204457
Active Participant
0 Kudos

Hi Pete

The BAPI behaviour is similar to IDoc. You need the BAPI_EQMT_INSTALLFL to install and then use BAPI_EQMT_DISMANTLEFL to dismantle. I need a function that can handle both installation and dismantling.

former_member215526
Active Participant
0 Kudos

Hi Cyrus Minab,

Taking the idea of ​​PeteA, why not to apply these two BAPI in some LSMW process, ie in the LSMW you can put some ABAP logic in the option "Maintain Field Mapping and Conversion Rules" step and control with some field. (this information will be in your file upload structure)

IF <> "I" so execute BAPI_EQMT_INSTALLFL

IF <> "D" so execute BAPI_EQMT_DISMANTLEFL.

You must be careful to respect the sequence as you show us above in the file. for example

I/D     Equipment     Date                         Functional Location

I         20000056        08-23-2012 16:29:12          07-3064528

D        20000056       10-18-2013 15:34:19          07-3064528

I            20000056        10-18-2013  15:35:22          07-3064528

.....

I hope that is not a crazy idea

Regards,

Xavier

former_member204457
Active Participant
0 Kudos

Hi Xavier,

I understand what you suggesting. In LSMW, change object types, I'm only allowed to put one method, what method should I put down here?

former_member215526
Active Participant
0 Kudos

Hi Cyrus,

In my point of view, please try with this option.

It is a method of creation but you will not create , only use the structure it has.

- Maintain Source Fields: with the same has when you will use with PIECEOFEQUIPMENT_INSTALLATFUNC / DISMANTLEATFU and the new "I/D"

- Maintain Field Mapping and Conversion Rules: don´t put TCODE, only put in EQUNR a new rule ABAP with the logic.


I Hope this addresses your request.


Regards,

Xavier

marc_marco
Contributor
0 Kudos

Hello Cyrus,

You can achieve this with LSMW and  IBIP  ( structure IBIPEQUI )

You need to build your source file  in this way ( 1 record for install and 1 record for dismantal)

Equipment          Installation Date                 Dismantling Date               Functional Location   

20000056           08-23-2012 16:29:12                                                    07-3064528

20000056                                                      10-18-2013 15:34:19     

20000056           10-18-2013  15:35:22                                                   07-3064528

20000056                                                      03-06-2014 15:57:15        

20000059            08-13-2014  11:00:00                                                  07-30445

in dismantle please use  IBIPEQUI-DISMANTLE  = X

Regards,

Mark