Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Re: How pass period in this function module FMKU_0050_CREATE_WITH_COMMIT

$
0
0

Hi mahapatra,

   This function is ok,Under is part of source code.

 

*****header info

       wa_header-fm_area = ls_data-fm_area.

*****转换版本格式

       call function 'CONVERSION_EXIT_ALPHA_INPUT'

         exporting

           input  = ls_data-version

         importing

           output = ls_data-version.

 

       wa_header-version = ls_data-version.

       wa_header-docdate = sy-datum.

       wa_header-doctype = 'SF00'.

       wa_header-docstate = '1'.

       wa_header-process = 'ENTR'.

 

*****item & period info

       l_num = l_num + 1.

       ls_item-item_num = l_num.

       condense ls_item-item_num.

       ls_item-fisc_year = ls_data-fisc_year.

       ls_item-budcat = '9F'.

       ls_item-budtype = 'BI'.

       ls_item-fund = ls_data-fund.

       ls_item-funds_ctr = ls_data-funds_ctr.

       ls_item-cmmt_item = ls_data-cmmt_item.

       ls_item-trans_curr = 'CNY'.

       ls_item-trans_curr_iso = 'CNY'.

       if ls_data-budget_period = 0.    "if budget_period is 0,need input total amount

         ls_item-total_amount = ls_data-total_amount.

         ls_item-distkey = '1'.

       endif.

       ls_item-valtype = 'B1'"预算 未确认

*      ls_item-budget_period = ls_data-budget_period.

       append ls_item to lt_item.

       clear:ls_item.

 

       if ls_data-budget_period ne 0.

         ls_period-item_num = l_num.

         condense ls_period-item_num.

         ls_period-budgeting_period = ls_data-budget_period.

         ls_period-period_amount = ls_data-total_amount.

 

         append ls_period to lt_period.

         clear:ls_period.

       endif.


Viewing all articles
Browse latest Browse all 9069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>