Skip to Content
0
Former Member
Jun 06, 2008 at 07:37 AM

Write the correspondense container without ISU SAMPLE function modules

324 Views

Hi,

i must write a function module, which must write a table into the correspondence container, with some information (contract, move-in document, etc.)

I wrote the function module to the end and i am by the test now, but it didnt works...

I tell you the logic of my report, please tell me if i made errors.

Logic:

1. i make a COKEY with funcmod FKK_CREATE_COKEY

2. Fill the header information with COKEY, COTYP, FORMKEY and datum

3. i make a HEADER with funcmod FKK_FLDS_2_HEADER with COKEY and COTYP '0017' and headerinformation

4. Then i make an export to the database:

EXPORT t_begr_custom_key FROM lt_custom_cluster

TO DATABASE dfkkcodclust(co)

ID ed_cokey.

5. SELECT * FROM dfkkcodclust INTO TABLE lt_dfkkcodclust

WHERE relid = 'CO' AND

cokey = ed_cokey.

6. Then i must use this:

CALL FUNCTION 'FKK_CORR_SINGLE_INDICATOR_SET'.

But i dont know why?

7. And for the end:

CALL FUNCTION 'FKK_WRITE_CORR'

EXPORTING

i_fkkcoinfo = lw_fkkcoinfo "Info field

TABLES

t_dfkkcodclust = lt_dfkkcodclust "The table what i want to write to the correspondence container

CHANGING

c_dfkkcoh = lw_dfkkcoh_satz. "Header info

At the end of the report, i didnt see any changes in the DB nor everywhere.

Why didnt it work?

Please help, thank you!

Regards,

Zoltan Berkes