on 2015 Mar 10 4:10 PM
Hi everybody,
I would like to use BAPI_BUS1077_GETDETAIL to read the hazard inducers. Splitting the process into two steps, I first do
CALL FUNCTION 'BAPI_BUS1077_GETDETAIL'
EXPORTING
scenario = espap_info_only_scenario
flg_header = 'X'
flg_properties = 'X'
IMPORTING
flg_abort_on_error = lv_abort
TABLES
return = lt_retbapi
sub_header = lt_sub_header
prop_header = lt_prop_header
prop_val = lt_prop_val.
which correctly fills the lt_* tables as I verified for a test case.
In the next step, I would like to read the data in EST0F by calling
CALL FUNCTION 'BAPI_BUS1077_GETDETAIL'
EXPORTING
scenario = espap_info_only_scenario
FLG_HEADER = 'X'
FLG_PROPERTIES = 'X'
FLG_DANG_GOOD_DATA = 'X'
IMPORTING
flg_abort_on_error = lv_abort
TABLES
return = lt_retbapi
sub_header = lt_sub_header
prop_header = lt_prop_header
PROP_VAL = lt_prop_val
PROP_TAB07 = lt_prop_tab07
PROP_TAB0B = lt_prop_tab0b
PROP_TAB0D = lt_prop_tab0d
PROP_TAB0F = lt_prop_tab0f.
While this function sets neither the error flag nor any messages, it does not fill any data into lt_prop_tab0*.
Thanks in advance for any suggestions,
kind regards
Christoph
Request clarification before answering.
Dear Christoph,
You should pass FLG_PROP_DATA = 'X' in EXPORTING parameter and PROP_DATA = lt_prop_data in TABLES parameter, in order to read the data in EST0F.
Also, if your requirement is just to read the hazard inducers, then you can call the above BAPI in a single step by passing SUBCHACAT as SAP_EHS_1022_032 (Hazard Inducer) to the table parameter PROP_HEADER.
Thanks and Regards,
Kannan Veerapandian.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.