Skip to Content
avatar image
Former Member

Read composition data using FM C1F2_SUBSTANCES_READ

Hallo everyone,

I want the composition data of specifications (For example nutrition value composition - SAP_RMS_1012_005) for specifications. The values for the different composition are available in the table ESTVP.

i supose that I can read these compositions with the C1F2_SUBSTANCES_READ. But I am struck with passing parameters for this function mudule.

I gave the following parameters to the FM:





X_API_HEADER_TAB - a single specification key for the field SUBID

when i run the FM I get internal program error. Could someone please help me out?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 11, 2015 at 12:49 AM


    You can use BAPI_BUS1077_GETDETAIL by passing below parameters

    Scenario : 01



    SUB_HEADER : table - Pass specification number to SUBSTANCE

    You can find composition details under PROP_COMPONENT table.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 12, 2015 at 03:01 PM

    Hi Premalatha,

    I think that what you are looking for can be achieved using the standard SAP functionality from CG02.  Please look into using the Output Variant option.  Here you can pick the Composition you need the data of and have it output directlly into MS Excel.



    Add comment
    10|10000 characters needed characters exceeded

  • Nov 21, 2015 at 01:48 PM


    the use of existing APIs/BAPis in EHS are discussed e.g. in this document to a certain extent:

    SAP EHS Management for Beginners

    Without understanding the APis/BApis and there purpose and how to use them, you will not get proper solution.These APIs etc. are not "documented"well. Especially that you would like to use is not released for customer purpose

    Without knowledeg of your business scenario and which data you really need; bno help is possible.

    Hint of Niraj is helkping may be. In EHS classic you can use some suitable output variant to get the data. This can be done as well by "external" caller (not using CG02)


    Add comment
    10|10000 characters needed characters exceeded