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

i_journalentry_tp dump FI_WT_AR_GET_WTAK

cesar_gr
Participant
0 Kudos
263

Hi team

I have this dump when i use i_journalentry_tp to post a Fi document

cesar_gr_0-1736388817804.png

 

in my case y only create a demo code in a SE38 report using I_JOURNALENTRYTP 

    DATA lt_new TYPE TABLE FOR ACTION IMPORT i_journalentrytp~Post.

    INSERT VALUE #(
        %cid   = to_upper( cl_uuid_factory=>create_system_uuid( )->create_uuid_x16( ) )
        %param = VALUE #(
            companycode            = '1000'
            createdbyuser          = sy-uname
            accountingdocumenttype = 'SA'
            documentdate           = '20250108'
            postingdate            = cl_abap_context_info=>get_system_date( )
            DocumentReferenceID    = |RAP: { sy-uname }|
            _glitems               = VALUE #(
*                ( glaccountlineitem = '1' glaccount = '0011002080' _currencyamount = VALUE #( ( journalentryitemamount = '-100.55' currency = 'EUR' ) ) )
                ( glaccountlineitem = '1' glaccount = '824004' CostCenter = '12008'  _currencyamount = VALUE #( ( journalentryitemamount = '-10.55' currency = 'ARS' ) ) )
*                ( glaccountlineitem = '2' glaccount = '0070200000' _currencyamount = VALUE #( ( journalentryitemamount = '100.55' currency = 'EUR' ) ) ) ) ) )
                ( glaccountlineitem = '2' glaccount = '130011' _currencyamount = VALUE #( ( journalentryitemamount = '10.55' currency = 'ARS' ) ) ) ) ) )
           INTO TABLE lt_new.

    MODIFY ENTITIES OF i_journalentrytp
           ENTITY journalentry
           EXECUTE post FROM lt_new
           FAILED DATA(ls_failed_deep)
           REPORTED DATA(ls_reported_deep).


but I have a dump. My system is S/4HANA private edition 2023


I debug and jump over the function in update task, because the table parameter LT_WTAK was empty in may case 

cesar_gr_0-1736388012037.png

and then it works  

cesar_gr_1-1736388107845.png

but I don't understand why the I_journalentry_tp call this function module as FB01 do if behaviour can't call functions in update task 


Could someone solve this dump?

Best regards!

Accepted Solutions (0)

Answers (0)