cancel
Showing results for 
Search instead for 
Did you mean: 

I need a BAPI to read Measurement documents given a Measurement Point.

Former Member
0 Kudos

I need a BAPI that will return the latest measurement document for a given Measurement point.

JL23
Active Contributor
0 Kudos

Already tried the transaction BAPI?

Former Member
0 Kudos

What transaction BAPI?

JL23
Active Contributor
0 Kudos

Based on this comment I have to assume that the tag SAP ERP is wrong, as ERP has a transaction called BAPI which allows you to find BAPIs by alphabet and application.

In which system are you?

JL23
Active Contributor
0 Kudos

I changed the tags from ERP to MII

Former Member
0 Kudos

I need to know the name of a BAPI that will return Measurement Point readings!

It does not matter that I will be using this BAPI in MII. It will not be a MII BAPI (I don't think there are MII BAPIs)

I don't know what "tag" BAPI's fall into, but I doubt that MII is apropriate.

Former Member
0 Kudos

I tried BAPI (transaction) but cannot find anything relating to Measurement Points.

Accepted Solutions (0)

Answers (6)

Answers (6)

NTeunckens
Active Contributor
0 Kudos

Hello Neil

Another round ...

See if RFC "MSAM10_MEAS_POINT_GETDETAIL" Provides you with (all) the Data. It is RFC-Enabled, but I can only Get 1 MeasDoc when Using a MeasurePoint (and I see an ErrMsg "ALM_ME 024") ... How does this work out for you?

It needs some Form of Customizing, by which the Default number of Documents / Historic data is fetched. Upon debugging I set that to a High Number instead of '1' thus receiving a wide range of MeasurementDocuments ...

Hope this helps

Nic T.

Former Member
0 Kudos

Hi Nic,

I have tried this RFC via SE37 and it returns nothing. No error and no data.

I also tried it in my MII action and it returned an error indicating that the Measurement Point did not exist. It does exist.

You mentiona Default number of Documents. Do you know what parameter that is? I am only filling in the MEASPOINT parameter.

NTeunckens
Active Contributor
0 Kudos

Strange, I could make it work. However, this RFC is aimed at returing Data regarding Equipment and FunctionalLocation, so what are those Meas.Points attached to in your case?

In this RFC, an internal FM "MSAM_MO_CMASTER_DATA_GETDETAIL" is called that determines is described 'Get Customization Settings maintained for various Master Data', and it would return Settings stored from Tables "MSAM_CEQUIPPRF" / "MSAM_CFUNLOCPRF" / "MSAM_CMASTRDAT".

Now, for me too this Customizing returns no results, but the Below Code in the RFC allows for 1 (latest) Document-record to be requested :

*---------------------------------------------------------*
* Get the business data fetch the no of measurement documents
* as per maintianed in Customizing,if not fetch the
* last measurement history
*---------------------------------------------------------*
    IF ls_master_settings-meas_no_docs IS INITIAL.
      lv_no_of_docs = 1.
    ELSE.
      lv_no_of_docs = ls_master_settings-meas_no_docs.
    ENDIF.<br>


That way, it results in 1 record of "MEASUREMENT_HISTORY" which is Described as 'MSAM Measurement document structure'. So by Default I only get the Last record, by setting some kind of MasterData(?) (or by Altering the NoOfDocs via Debugging to '50'), I get some Result.


This has proven to be a lot more Difficult that I imagined, so I would revert to SAP Support if this RFC is not applicable to your case.


Nic T.

NTeunckens
Active Contributor
0 Kudos

I see value in the Answer by yogini.thorat, as "MSAM_MEAS_POINT_GETDETAIL" would serve your Purpose. You could expose this as a Custom RFC by adding a Wrapper around it ("ZMSAM_MEAS_POINT_GETDETAIL" as RFC, calling "MSAM_MEAS_POINT_GETDETAIL") ...?

Former Member
0 Kudos

Hi Nic,

That sound good, but I have no access to create custom RFCs.

Is there not a standard RFC to read all measurement documents for a Measurement Point???

Regards,

Neil Morgan

NTeunckens
Active Contributor
0 Kudos

See RFC "MEASUREM_DOCUM_RFC_SINGLE_002" as a means to Read / Create / Update ... Check the RFC Documentation.

Former Member
0 Kudos

I don't have a measurement document number.

I need a functions that returns details of Measurement Documents when I provide a Measurement Point.

former_member185280
Active Contributor
0 Kudos

You may be able to use RFC ALM_MEREP_041_GETDETAIL

Regards,
Christian

Former Member
0 Kudos

I just tried this BAPI/FM/RFC but it does not return any details on the Measurement Documents for the Measurement Point.

former_member185280
Active Contributor

I was able to get a response with details from MII. Also with the FM MSAM10_MEAS_POINT_GETDETAIL mentioned below. FYI when calling from MII I had to pad the Measuring point with leading zeros. If you are doing this and still having an issue be sure to do an authorization trace for the RFC connection user.

Regards,
Christian

former_member554321
Participant
0 Kudos

Hello Neil,

Following are some FM, may be useful for u

MSAM_MEAS_POINT_GETDETAIL
MSAM_MEAS_POINT_GETLIST
MSAM_ML_MEAS_POINT_GETDETAIL
MSAM_MO_ML_MEAS_HISTORY
MSAM_MO_ML_MEAS_POINT_HEADER

Regards

Former Member
0 Kudos

I have tried these, But they cannot be be used for 'remote'calls.

SAP returns CALL_FUNCTION_NOT_REMOTE when I try and use these.

Regards

Neil

0 Kudos

Hi,

SAPMEINT uses MEASUREM_DOCUM_RFC_SINGLE_001 BAPI. Please consult SAP Note 2226006.

Regards,

Sergiy

Former Member
0 Kudos

Hi Serigiy,

I thought that this BAPI was for creating documents.

I can find no mention of the SAP note you mention anyware in SAP...

0 Kudos

I did mention it. Isn't it enough? 😉

Former Member
0 Kudos

Hi Sergiy,

SAP Note 2226006 does not exist in SAP. Is this the correct number?

Kind regards,

Neil Morgan

0 Kudos

Hi Neil,

It does exist. If the following link does not work for you, then it is likely a matter of authorization for your account:

https://launchpad.support.sap.com/#/notes/2226006

Regards,

Sergiy

Former Member
0 Kudos

The BAPI (RFC) you mentioned is for creating Measurement documents.

The SAP note you mention has field mappings but does not mention anything about BAPIs

0 Kudos

Have you tried searching by "BAPI" in the document?