cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CBIH_WA30_WA_CREATE

philip_munz
Explorer
0 Kudos
154

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)

Ask a Question