cancel
Showing results for 
Search instead for 
Did you mean: 

Using EXTENSIONIN within BAPI_CATIMESHEETMGR_CHANGE

Former Member
0 Kudos

Hi,

Within my Webdynpro application I want to update the text that user normally can enter within SAP/R3 (CATS - Record working times). I use the parameter EXTENSIONIN to default the values

- STRUCTURE: “ BAPI_TE_CATSDB”

- VALUEPART1: “ 36 Desciption of the entered hours.”

I get an error message in return saying TABLE_INDEX_INVALID, when I try to run this BAPI within SAP, transaction SE37. I gues there's something wrong with the recordnumer, but I don's know how to enter a valid value.

Anyone an idea how to solve this?

Thanks.

Twan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I think you are aloso facing same problem, which I have faced.

I have got the solution from note#901354.

So I have made the changes in the following code of include LBAPICATSF01

form move_extension_to_custom using p_extensionin type BAPIPAREX

changing p_custom type bapi_te_catsdb.

*{ REPLACE TSEK900096 1

*\ FIELD-SYMBOLS:

*\ <f_container> TYPE x,

*\ <f_any> TYPE x.

FIELD-SYMBOLS: "note : 901354

<f_container> TYPE c,

<f_any> TYPE c.

*} REPLACE

ASSIGN p_extensionin TO <f_any> CASTING.

ASSIGN p_custom TO <f_container> CASTING.

<f_container> = <f_any>+30.

endform. " move_extension_to_custom

In short you have to apply note 901354 to change field-symbols data type from X to C.

I hope this will solve your problem.

-Haresh