cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for changing equipment description

Former Member
0 Likes
3,395

Hi

I am trying to change equipment description of an equipment and would like to know which BAPI I can use.

I tried using the below BAPI but am not sure if it is the right one:

function = conn.get_function("BAPI_EQUI_CHANGE")

Note: I am using nwrfc ruby library to make calls to SAP.

I am very new to SAP and would appreciate your guidance on this

Thanks much!

Accepted Solutions (0)

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor

if you want to change the short description (40 characters) yes it's the correct BAPI

  • Pass the equipment number (18 character) to parameter EQUIPMENT
  • Pass the new description to subfield DESCRIPT of structured parameter DATA_GENERAL
  • Pass an 'X' to to subfield DESCRIPT of structured parameter DATA_GENERALX (indicate that the corresponding field is to be updated)

Once BAPI_EQUI_CHANGE called, analyze the returned RETURN parameter, look for error

  • subfied TYPE = 'E', message text in MESSAGE subfield

If no error call BAPI_TRANSACTION_COMMIT to validate the changes

SimoneMilesi
Active Contributor
0 Likes

Are you sure, Raymond? Shouldn't be better BAPI_EQUIPMENT_SAVEREPLICA?

RaymondGiuseppi
Active Contributor
0 Likes

Is BAPI_EQUIPMENT_SAVEREPLICA released in your version?

SimoneMilesi
Active Contributor
0 Likes

Ops!

I'm not sure to be honest: I used it for a massive upload and found no problems.

Never tought to check if it was release 🙂

RaymondGiuseppi
Active Contributor
0 Likes

Don't worry, I also found some program of mine where it was called...

Its documentation start with 'This function module is used for creating and changing equipment. Its function corresponds to the function modules BAPI_EQUI_CREATE and BAPI_EQUI_CHANGE.' ... and actually, in source code, it call the other 2 BAPI FM...