Skip to Content
avatar image
Former Member

add a "flash point" property using "BAPI_BUS1077_CREATE".

Hi,

Someone know how to add a "flash point" property using "BAPI_BUS1077_CREATE".

Or if you can correct my code.

l_prop_header_wa-primarykey  = 28. "int. key
  l_prop_header_wa-flgprimkey  = abap_true.
  l_prop_header_wa-foreignkey  = l_sub_header_wa-primarykey.
  l_prop_header_wa-flgfrgnkey  = l_sub_header_wa-flgprimkey.
  l_prop_header_wa-subchacat   = 'SAP_EHS_1014_009'. "ODOR
  APPEND l_prop_header_wa TO l_prop_header_tab.

*   prepare the VALUE tab

  CLEAR l_prop_val_wa.
  l_prop_val_wa-primarykey  = 281.
  l_prop_val_wa-flgprimkey  = abap_true.
  l_prop_val_wa-foreignkey  = l_prop_header_wa-primarykey.
  l_prop_val_wa-flgfrgnkey  = l_prop_header_wa-flgprimkey.
  l_prop_val_wa-sequence    = 1.
  APPEND l_prop_val_wa TO l_prop_val_tab.

*   prepare the VALUE ASSIGNMENT ASSESSMENT tab

*  REFRESH: l_prop_assess_tab.
  CLEAR l_prop_assess_wa.
  l_prop_assess_wa-primarykey  = 2811.
  l_prop_assess_wa-flgprimkey  = abap_true.
  l_prop_assess_wa-foreignkey  = l_prop_val_wa-primarykey.
  l_prop_assess_wa-flgfrgnkey  = l_prop_val_wa-flgprimkey.
*  l_prop_assess_wa-assessment  = '1'.
APPEND l_prop_assess_wa TO l_prop_assess_tab.

*   prepare the LINES FOR DATA TAB

*  REFRESH: l_prop_data_tab.
  CLEAR l_prop_data_wa.
  l_prop_data_wa-primarykey  = 2812.
  l_prop_data_wa-flgprimkey  = abap_true.
  l_prop_data_wa-foreignkey  = l_prop_val_wa-primarykey.
  l_prop_data_wa-flgfrgnkey  = l_prop_val_wa-flgprimkey.
  l_prop_data_wa-char_value  = '20'.      " Flash point value
  L_PROP_DATA_WA-name_char   = 'SAP_EHS_1014_009_VALUE'. " Flash point
  l_prop_data_wa-oper_inc    = 0.
  APPEND l_prop_data_wa TO l_prop_data_tab.

*   prepare the LINES FOR DATA TAB

*  REFRESH: l_prop_data_tab.
*  CLEAR l_prop_data_wa.
*  l_prop_data_wa-primarykey  = 2813.
*  l_prop_data_wa-flgprimkey  = abap_true.
*  l_prop_data_wa-foreignkey  = l_prop_val_wa-primarykey.
*  l_prop_data_wa-flgfrgnkey  = l_prop_val_wa-flgprimkey.
*  l_prop_data_wa-char_value  = 'ZACT-N09.00803340'.      " value
*  L_PROP_DATA_WA-name_char   = 'SAP_EHS_1014_009_METHOD'. "
*  l_prop_data_wa-oper_inc    = 0.
*  APPEND l_prop_data_wa TO l_prop_data_tab.
*   prepare the LINES FOR VALUE ASSIGNMENTS

*  REFRESH: l_prop_usage_tab.
  CLEAR l_prop_usage_wa.
  l_prop_usage_wa-primarykey  = 2814. "int. key
  l_prop_usage_wa-flgprimkey  = abap_true.                 " + JMC
  l_prop_usage_wa-foreignkey  = l_prop_val_wa-primarykey.  " + JMC
  l_prop_usage_wa-flgfrgnkey  = l_prop_val_wa-flgprimkey.  " + JMC
  l_prop_usage_wa-val_area    = 'REG_WORLD'.
  l_prop_usage_wa-mastertabl  = 'ESTVA'.
  l_prop_usage_wa-rating      = 'PUBLIC'. " added by BE001376 .
  l_prop_usage_wa-ACT_IND     = abap_true.
  APPEND l_prop_usage_wa TO l_prop_usage_tab.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 15, 2011 at 02:08 PM

    > l_prop_data_wa-char_value = '20'. " Flash point value

    > L_PROP_DATA_WA-name_char = 'SAP_EHS_1014_009_VALUE'. " Flash point

    Coding looks ok to me - try to add the flashpoint with a unit.

    L_PROP_DATA_WA-MEAS_UNIT1 = DEGC.

    or this could work to l_prop_data_wa-char_value = '20 °C'.

    Does the coding work if you just add the phrase?

    BTW: Quite dangerous stuff there with a Flahspoint of 20 °C 😉

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Christoph Bergemann

      Hi Christoph,

      Thank you for your tips but i'm still beginner in SAP world and I couldn't find your note.

      I read that OSS notes are SAP notes to fix problems but i didn't found noone of these notes.

      I will be thankful if you can explain a bit more.