Skip to Content
0

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

Jan 24 at 10:52 PM

187

avatar image
10 |10000 characters needed characters left characters exceeded

Already tried the transaction BAPI?

0

What transaction BAPI?

0

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?

0

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

0
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Sergiy Katerinich
Feb 01 at 01:31 PM
0

Hi,

SAPMEINT uses MEASUREM_DOCUM_RFC_SINGLE_001 BAPI. Please consult SAP Note 2226006.

Regards,

Sergiy

Show 6 Share
10 |10000 characters needed characters left characters exceeded

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

I did mention it. Isn't it enough? ;)

0

Hi Sergiy,

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

Kind regards,

Neil Morgan

0

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

0

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

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

0
Yogini Thorat Feb 06 at 07:32 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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
Nic Teunckens Mar 01 at 01:50 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

I don't have a measurement document number.

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

0
Nic Teunckens Mar 01 at 11:32 PM
0

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") ...?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
christian libich Mar 01 at 01:33 PM
0

You may be able to use RFC ALM_MEREP_041_GETDETAIL

Regards,
Christian

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

0

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

1
Nic Teunckens Mar 02 at 02:59 PM
0

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.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

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.

2p0mm.png (34.0 kB)
0

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.

0

Hi Nic,

I can get "MSAM10_MEAS_POINT_GETDETAIL" to return a Measurement Document if I use SE37,

BUT

When I call "MSAM10_MEAS_POINT_GETDETAIL" from MII it does not return anything!! (No error or Result)

This is very frustrating.

Neil Morgan

0

I can understand, it all seems much more complicated than we anticipated ...

I would suggest getting into contact with SAP Support on this, I have no experience with MII ...

0