Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for creating Equipment record

Former Member
0 Likes
7,030

Hi All,

I need to create an equipment record. I am using BAPI_EQUI_CREATE.

I donu2019t see any parameters in the BAPI to update

1) the partner details (like partner function, partner number)

2) the physical location details(Country,Region,Postal code etc) of the end customer

where the machine is installed. But BAPI has a field to pass u201CAddress numberu201D but

how should I generate address number using the address details. They are new and

not yet existing in the system. Is there a function module/BAPI to just create a

address and get address number?

3) by default the equipment record is created it gets status u201CALVBu201D . I need to

change it to u201CECUSu201D (meaning it is at Customer location).

Are these possible with BAPI_EQUI_CREATE or is there any other function module or different BAPI ?

I have also checked BAPI_EQUIPMENT_SAVEREPLICA but did not find much useful.

Thanks in advance.

Sonali.

8 REPLIES 8
Read only

former_member194669
Active Contributor
0 Likes
3,163

Try following these steps:

Call fm BAPI_EQUI_CREATE

then change of partner

call fm PM_PARTNER_INIT

then

call fm PM_PARTNER_MAINTAIN

then for change status

call fm STATUS_CHANGE_EXTERN

or

call fm STATUS_CHANGE_INTERN

I think this will help you out

a®

Read only

0 Likes
3,163

Thank You for the reply!

Changing the status function module works but I need to still try out the function modules for attaching partners.

Is there a way to attach the address details to equipment record?

Thanks,

Sonali.

Read only

0 Likes
3,163

Have to checked the import tab DATA_GENERAL and its have field READ_ADRNR , whether that can be used ?

a®

Read only

0 Likes
3,163

I think READ_ADRNR can be used but how to get the ADRNR number? I have the Machine location address but I don't want to create as a separate "Customer" inorder to generate the ADRNR.

Is there a way to generate ADRNR just using the Name,Country,Region etc details??

Thanks,

Sonali.

Read only

0 Likes
3,163

Hi Sonali,

Use these Fms to generate Address Number

 
ADDR_INSERT
ADDR_NUMBER_GET
ADDR_MEMORY_SAVE
ADDR_MEMORY_CLEAR

Thanks

Naresh

Read only

0 Likes
3,163

Thank you Naresh!

Read only

0 Likes
3,163

Hi,

I was just viewing your post. Can you reply what are the parameters needs to be passed to update partner in equipment master in the following FMs.

call fm PM_PARTNER_INIT

then

call fm PM_PARTNER_MAINTAIN

then for change status

Thanks

Read only

Former Member
0 Likes
3,163

Completed.