Skip to Content
author's profile photo Former Member
Former Member

ABAP Program to upload accrual object using ACAC_OBJECT_MODIFY_EXT

I have a requirement to develop an RFC to call the ACAC_OBJECT_MODIFY_EXT function module for accrual upload. I have created the BAPI / ALE interface for it to be used in LSMW. However the program returns a DUMP when calling the function module because of the parameter passed. I need help with this. A program using this function module would do it for me.

Here is the interface for the FM


CALL FUNCTION 'ACAC_OBJECT_MODIFY_EXT' "

* EXPORTING

* is_assignments = " ace_assignments

* it_accounts = " aceds_accounts_t

* it_params = " aceds_param_t

* id_effdate = " ace_effdate

* is_post_params = " aceps_manual_posting_params

* id_testrun = 'X' " ace_testrun

IMPORTING

ed_data_created = " flag

ed_data_changed = " flag

et_docitems = " aceps_ace_doc_extended_t

et_return = " bapiret2_t

et_accdoc_return = " ace_accdoc_return_t

CHANGING

cs_object = " acac_object_header_ext

ct_object_items = " aceds_items_t

.

Typical error:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was

not caught in

procedure "ZBAPIACCRUALUPLOAD" "(FUNCTION)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The call to the function module "ACAC_OBJECT_MODIFY_EXT" is incorrect:

The function module interface allows you to specify only

fields of a particular type under "IT_ACCOUNTS".

The field "ACCOUNTS" specified here is a different

field type

.

Attached to the file is the source code of the rfc i am trying to create( ZBAPIACCRUALUPLOAD)

Regards,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 12, 2014 at 04:13 AM

    Hi,

    Can you declare like below , hopefully with header line is not required.

    DATA : ACCOUNTS TYPE ACEDS_ACCOUNTS_T,

    refer this include ACAC_GENERIC_DATA_TRANSF_F10

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2014 at 09:55 AM

    Hi,

    Thanks for your suggestion, but when I remove the with header line, it also shows that table does not have header line. P|ease I would like a simple program that uses this FM passing all its parameters.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.