cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

> 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

christoph_bergemann
Active Contributor
0 Kudos

Hello

please check these OSS notes. They could may be help you to understand how to use the BAPIs. Check the Marketplace by using BAPI _BUS1077*, or function group "C1F2" or "C1F5" key words to find more OSS.

162801

768514

819824

1074977

1110727

1111161

1247216

1411237

1279642

1492413

800918

May be one of these Notes helps.

Wih best regards

C.B.

Edited by: Christoph Bergemann on Apr 17, 2011 6:38 PM

Edited by: Christoph Bergemann on Apr 17, 2011 6:39 PM

Former Member
0 Kudos

I find the error Thanks a lot.

It was the l_prop_header_wa-subchacat .

Thanks for tips.

Former Member
0 Kudos

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.

Answers (0)