SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of Equipment master throught Emigall

Former Member
0 Kudos

Hi Fritz,

Good Day!

I need to create a Emigall object for Equipment Master, which we can't

handle in LSMW because of the volume of data, I am using the same object as

used for Device of ISU.

The object name is EQUIPMENT in company ZISU. I have used those fileds only

which are required to create a equipmetn master in STW. While uploading the

data I am getting an error " Enter a valid device category" which is a

device category of ISU.

Can we do this or do we need to create some other customization in this case

Thanks for your support Fritz.

Regards,

Robert.

1 ACCEPTED SOLUTION

friedrich_keller
Contributor
0 Kudos

Robert,

With the DEVICE migration object (of course independant of the name of the object) you can only migrate IS-U devices which is basically an equipment plus some IS-U specific data. I understand that you want to migrate 'only' equipments. There is no standard migration object available for this. But you can easily create your own EQUIPMENT migration object in generating a BAPI migration object using the BAPI_EQUI_CREATE function module as the service function module.

Knd regards,

Fritz

View solution in original post

21 REPLIES 21

friedrich_keller
Contributor
0 Kudos

Robert,

With the DEVICE migration object (of course independant of the name of the object) you can only migrate IS-U devices which is basically an equipment plus some IS-U specific data. I understand that you want to migrate 'only' equipments. There is no standard migration object available for this. But you can easily create your own EQUIPMENT migration object in generating a BAPI migration object using the BAPI_EQUI_CREATE function module as the service function module.

Knd regards,

Fritz

0 Kudos

Hi Fritz,

Thank you for your invaluable support.

well i have made a custom object, and i wanted to know what to keep in the RETURN Structure,

and return field in the Migration object.

Good Day!!

Regards,

Robert.

0 Kudos

Robert,

the RETURN structure is not marked as generated by default because it is a return structure. No action needed from your end. The BAPI returns its error messages in this structure and the load program is evaluating the messages. If there is an error message of type Error the load program signals an error and writes the error message into the application (error) log.

Kind regards,

Fritz

0 Kudos

Dear Fritz,

Thank you for your support,

I was following your instructions and i created my own custom Zequipment Master in Emigall.

But as i try to upload the data in it, it gives me an error "Enter a Valid Devlce category"

can you suggest me what can i do to rectify this error as it is a critical part of data migration for my project.

Regards,

Robert.

0 Kudos

Robert,

I'd assume that you did not transfer a valid value in the DATA_GENERAL-DIVISION field. Please check for valid values on the transfer sub-screen on the field maintenance screen. What is the message number?

Kind regards,

Fritz

0 Kudos

Hi Fritz,

Let me tell you what have i done in steps and the fields that i have generated.

step 1.

I created a function module that you suggested and then i saved it with my name as ZEQUIPMENT.

Step 2.

The following fields are present in the migration object after creation.

SERVICE MODULE: ISU_M_EQUI_INSERT

AUTO STRUC.TYPE: ISUMI_DEVICE_AUTO

RETURN STRUCTURE:AUTO

STRUCTURE TYPE: ISUMI_DEVICE_AUTO.

0 Kudos

Hi Fritz,

Let me tell you what have i done in steps and the fields that i have generated.

step 1.

I created a function module that you suggested and then i saved it with my name as ZEQUIPMENT.

Step 2.

The following fields are present in the migration object after creation.

SERVICE MODULE: ISU_M_EQUI_INSERT

AUTO STRUC.TYPE: ISUMI_DEVICE_AUTO

RETURN STRUCTURE:AUTO

STRUCTURE TYPE: ISUMI_DEVICE_AUTO.

0 Kudos

Robert,

You just copied the DEVICE migration object. This does not change the function of it. You need to create a new migration object from scratch because there is no standard migration object available to create equipments. As I said before: You can easily create your own EQUIPMENT migration object in generating a BAPI migration object using the BAPI_EQUI_CREATE function module as the service function module.

Kind regards,

Fritz

0 Kudos

Hi Fritz,

Yes sorry i by mistakenly was working on the wrong company and i have created that as it was suggest by you in your article, i have asked the PM consultant to get back to me if they are facing any futher issues.

I will get back to you once i go and check if there are any issues while i am loading the data according to the given specification and their requirement.

Thank you for all the support,

Regards,

Robert

0 Kudos

Hi Fritz,

Status2 (User)-STSXU

Valid From-DATAB

Valid To-DATABI

Class-KLASSE

Text for Object Type-EARTX

Division-SPARTE

Start Up Date-BAUJJ

Name 1-NAME1

Name 2-NAME2

House no-HOUSE_NUM1

Street-STREET

City-CITY1

Region-REGION

Postcode-POST_CODE1

Country-COUNTRY

Telephone-TEL_NUMBER

Fax-FAX_NUMBER

Main Asset Number-ANLNR

Asset Sub Number-ANLUN

Controlling Area-KOKRS

Partner Function-PARVW

Partner-PARNR

Name-NAME_LIST.

I would require to add this additional fields in my customized Migration Object ZEQUIP_MAST from the BAPI_EQUIP_MAST.

I read your notes and i think we can customize the above fields in this migration object but i would like to know and need your guidance for the proper development of the object up to the customer level and the data loading requirements.

Regards,

Robert.

0 Kudos

the BAPI used is BAPI_EQUI_CREATE .

0 Kudos

Hello Robert,

I am not sure what you want to tell me when saying 'I would require to add this additional fields in my customized migration object'. I did a quick check and some of the fields of your list are available in the BAPI such as

DATA_GENERAL-ASSET_NO (Main Asset Number) and DATA_GENERAL-SUB_NUMBER (Asset Subnumber). Why can't you use them?

Kind regards,

Fritz

0 Kudos

Hi,

well i need other fields in my equipment master that i have just mentioned you.As i mentioned it to you that my requirement is to upload a equipments for the Non-ISU equipments through Emigall.so i need other fields as well for the equipment master object to be used for the requirement to load the data for the same.

So for the above mentioned fields i want to add them to my equipment master.

can we do that?

Good Day!!

Regards,

Robert.

0 Kudos

Hi,

I am still having issues with the equipment master that i created in emigall with the BAPI 'BAPI_EQUI_CREATE'

as the data loading requirement is quite similar to the transaction IE01 requirement is asking for the Controlling area and WBS element.

I WOULD ALSO LIKE TO KNOW WHAT ARE THE WAYS WHERE WE CAN TRANSFER THE ADDRESS FROM same for the Equipment Master.

can we use the business partner for the address part.

Regards,

Robert

0 Kudos

Hi,

I am still having issues with the equipment master that i created in emigall with the BAPI 'BAPI_EQUI_CREATE'

as the data loading requirement is quite similar to the transaction IE01 requirement is asking for the Controlling area and WBS element.

I WOULD ALSO LIKE TO KNOW WHAT ARE THE WAYS WHERE WE CAN TRANSFER THE ADDRESS FROM same for the Equipment Master.

can we use the business partner for the address part.

Regards,

Robert

0 Kudos

Hi Robert,

What equipment category your are giving in the file?? It seems like a config issue. Try passing the same values to the EMIGALL structures as you are passign when trying to manaully create an Equipment.

Thanks,

Sachin

0 Kudos

Robert,

I did some research. Please confirm you are referring to the data as copied below from the documentation.

Kind regards,

Fritz

*******************************************

Definition

Partners (business partners) are internal and/or external organizational units. For example, internal partners can be logistics and sales departments that perform services. External partners can be customers as service recipients and vendors as supporting service providers. A partner can be a natural or a legal entity. You can use partners in CS- and PM processing.

The following partner types are delivered with the Standard System:

Customer

Contact person

Vendor

User

Personnel number

Organizational unit

Position

Partner Function

You define partner functions in Customizing for Plant Maintenance and Customer Service. They are freely definable and always refer to a partner type. Standard functions exist (for example, goods recipient) and you can also define your own functions.

Partner Determination Procedure

The partner determination procedure is a grouping of partner functions. It specifies which partner functions are permitted or must always be specified for a particular business transaction (for example, for the processing of a service or maintenance order). In Customizing you define the partner determination procedure and assign partner functions to it. If functions are assigned to the partner determination procedure, you can assign the partner determination procedure to an object (for example, to a notification type).

Integration

You can assign partners to the following objects: Functional location and equipment

0 Kudos

Robert,

I did some further research. It seems there is no BAPI available to create extended data for equipments and function locations. I consider as the only option using the function modules ALM_ME_PARTNER_MAINTAIN (partners) and ALM_ME_ADDR_TECH_CHANGE (addresses) to add the requested data. This would have to be done in a separate BAPI migration object.

Please mind that the function module ALM_ME_PARTNER_MAINTAIN cannot serve as a service function modules for the BAPI migration objects to be created. You need to encapsulate it in an own z-function modules with a slightly changed parameter interface (your own function module must have a return parameter named RETURN instead of ES_BAPIRET2). Inside your function module just calls the ALM_ME_PARTNER_MAINTAIN function module.

I hope this helps.

Kind regards,

Fritz

0 Kudos

Hi Fritz,

Thanks for reply,sorry for asking in a different thread of question.

Well i have used the BAPI_OBJCL_CREATE for the object class and when i am doing the DB_UPDATE it is not showing me an error and its uploading the values that should give us an error while putting those values manually.

How can i make sure those errors are detected.

This is happening for all the Equipment Master Migration Object,

As i have used the BAPI_EQUI_CREATE in a custom Module,which would incorporate the Address fields also along with the Equipment Create,

And the rest we have taken care with the Help of another custom FM to update user status and Classification.

but the same problem lies with it as the FM is updating User status and Classification even if they do not exist.

Can you please help.

Then FM you gave me does not have these field in the FM.

so i have created my own Z FM to accommodate both the Creation of Equipment and Address part,do you have some other FM in your mind that i can use to update the Address for Equipment.

How can i add an address to an equipment in a equipment master

the fields required as name1 ,name2 ,street number number,street,post code,city,region,country telephone and fax.

0 Kudos

Robert,

I am afraid but I don't know of any other standard FM that can do the requested job ...

Cheers,

Fritz

0 Kudos

Hi robert,

To update the Address for Equipments, have a look at the object FUNCLOCCHA and try to build your own object on the same lines.

In the stadnard object, ISU_M_FUNCLOC_CHANGE is being used and inside that, ITOB_FUNCLOC_MODIFY_SINGLE function module is being called. You can copy ISU_M_FUNCLOC_CHANGE into your own FM for equipment, keep the code same and change the call to FM ITOB_FUNCLOC_MODIFY_SINGLE to call ITOB_EQUIPMENT_MODIFY_SINGLE instead,

This should then update the address for equipments.

Regards,

Sachin.