Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Thank you. I don't have a reference document number though. Are you putting an actual document in the header?
| | | ---------------Original Message--------------- From: sapwes Sent: Thursday, December 30, 2010 1:43 PM Subject: f-22 write off BAPI Here is a snippet - hopefully it will come through. * Build Document Header. * CLEAR gs_documentheader. gs_documentheader-bus_act = c_rfbu. gs_documentheader-username = sy-uname. gs_documentheader-header_txt = c_written_off. gs_documentheader-comp_code = p_row-bukrs. gs_documentheader-doc_date = sy-datum. gs_documentheader-pstng_date = sy-datum. gs_documentheader-trans_date = sy-datum. gs_documentheader-fisc_year = lv_gjahr. gs_documentheader-fis_period = lv_monat. gs_documentheader-doc_type = c_dg. gs_documentheader-ref_doc_no = p_row-belnr. ******************************************************** * Build records for Credit Item ******************************************************** * * Build GL Account Credit Item. * CLEAR gs_accountgl. ADD +1 TO lv_itemno_acc. gs_accountgl-itemno_acc = lv_itemno_acc. gs_accountgl-gl_account = p_row-hkont. gs_accountgl-item_text = c_written_off. gs_accountgl-acct_type = c_d. gs_accountgl-doc_type = c_dg. gs_accountgl-comp_code = p_row-bukrs. gs_accountgl-fis_period = lv_monat. gs_accountgl-fisc_year = lv_gjahr. gs_accountgl-pstng_date = sy-datum. gs_accountgl-customer = p_row-kunnr. gs_accountgl-profit_ctr = p_row-prctr. gs_accountgl-de_cre_ind = c_h. APPEND gs_accountgl TO gt_accountgl. | | __.____._ Copyright © 2010 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | dboyd SAP Development Enthusiast
Contributed 100 posts in a group to earn a Bronze Achievement Most Popular White Papers In the Spotlight _.____.__ |