Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Net due date in payment proposal list

anuja_gdhodnge
Participant
0 Kudos

Hello All,

My requirement is to add Net Due Date value on payment proposal list in F110 transaction.

For this i have added zznet_due_date field in the structure "CI_REGUP_LST".

After adding this field into this structure , i can see Net_due_date field on the layout of payment proposal list.

To display the  value in the Net_due_date. I have added below  code in BTE2110.

FUNCTION ZSAMPLE_INTERFACE_00002110.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(I_REGUH) LIKE  REGUH STRUCTURE  REGUH

*"  TABLES

*"      T_REGUP STRUCTURE  REGUP

*"      T_REGUP_LST STRUCTURE  REGUP_LST

*"  CHANGING

*"     VALUE(C_REGUH_LST) LIKE  REGUH_LST STRUCTURE  REGUH_LST

*"----------------------------------------------------------------------

   types : begin of ty_t052,

             ZTERM type DZTERM,

             ZTAG1 type DZTAGE,

             ZTAG2 type DZTAGE,

             ZTAG3 TYPE DZTAGE,

          end of ty_t052.

data : it_t052 type table of ty_t052,

       wa_t052 like line of it_t052.

select single zterm ztag1 ztag2 ztag3

       from t052

       into wa_t052

       where zterm = t_regup_lst-zterm.

if wa_t052-ztag3 gt 0.

   t_regup_lst-zznet_due_date = t_regup_lst-zfbdt + wa_t052-ztag3.

elseif wa_t052-ztag2 gt 0.

   t_regup_lst-zznet_due_date = t_regup_lst-zfbdt + wa_t052-ztag2.

elseif wa_t052-ztag1 gt 0.

   t_regup_lst-zznet_due_date = t_regup_lst-zfbdt + wa_t052-ztag1.

else.

   move t_regup_lst-zfbdt to t_regup_lst-zznet_due_date.

endif.

ENDFUNCTION.

When i debug this code , value is coming in t_regup_lst.

but when i check the payment proposal list in f110 then no value is coming in Net_due_date field.

Please find the debugging screen shot attached herewith.

Please help.

Regards,

Anuja Dhondge

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hey,

you forgot to append the value to this internal table, only you pass the value to the structure not in internal table.

just write:

append t_regup_lst[].

It will solve your problem.

Thanks,

Satya

1 REPLY 1

Former Member
0 Kudos

Hey,

you forgot to append the value to this internal table, only you pass the value to the structure not in internal table.

just write:

append t_regup_lst[].

It will solve your problem.

Thanks,

Satya