on 2010 Dec 13 11:57 AM
Hello Experts,
I'm trying to create some Work Areas using FB CBIH_WA30_WA_CREATE.
The problem is, that I do not receive any error message, the waid is given automatically and is counted upwards every time I start my program. But in Table CCIHT_WAH there is no new entry.
In SQL-Trace I can only see selects but no updates or inserts. Is there any Commit FB I have to use?
Here is my test-ABAP. Probably just a flag is missing - but I do not find it.
wa_addinfo-valdat = sy-datum.
*Header Daten
wa_data-head-watype = 'TS'.
wa_data-head-wainitstat = 'I0448'. " = 'AC'.
wa_data-head-authgrp = 'ALL'.
wa_data-head-mtnlangu = 'DE'.
wa_data-head-waplant = '0001'.
APPEND wa_data TO it_data.
CALL FUNCTION 'CBIH_WA30_WA_CREATE'
EXPORTING
i_addinf = wa_addinfo
i_flg_check_only = p_check
i_flg_fill_exterror = 'X'
i_flg_header = 'X'
i_flg_work_area = 'X'
IMPORTING
e_flg_lockfail = lock
e_flg_error = error
e_flg_warning = warning
TABLES
x_api_wka_tab = it_data
EXCEPTIONS
no_object_specified = 1
parameter_error = 2
internal_error = 3
convmode_set_failed = 4
OTHERS = 5.
WRITE: sy-subrc.
Thanks in advance for your help
Kind regards
Philip
Request clarification before answering.
Hi Philip,
Work areas in EHS are created in "buffer" first, in order to control transactional behavior. Therefore entries created with CBIH_WA30_CREATE are only available within this buffer. In order to make them persistently available in DB, another function module call is needed, e.g. CBIH_WA30_WA_SAVE_TO_DB.
Kind regards,
Joachim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 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.