Posts

Showing posts from June, 2011

SAP - BDC XD02 - Mass Update For Customer marketing details ( Annual Sales, Currency and Sales year)

Image
REPORT zcustomer_marketing_upload. TYPE-POOLS: truxs, slis. TYPES: BEGIN OF x_upload, kunnr TYPE kna1-kunnr, umsa1 TYPE kna1-umsa1, uwaer TYPE kna1-uwaer, umjah TYPE kna1-umjah, END OF x_upload. TYPES: BEGIN OF x_msg, kunnr TYPE kna1-kunnr, msgtyp(7) TYPE c, message(200) TYPE c, END OF x_msg. DATA: it_upload TYPE TABLE OF x_upload, wa_upload TYPE x_upload. DATA: it_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE. DATA: it_bdcmsg1 TYPE STANDARD TABLE OF bdcmsgcoll, wa_bdcmsg1 TYPE bdcmsgcoll, it_bdcmsg2 TYPE STANDARD TABLE OF bdcmsgcoll, wa_bdcmsg2 TYPE bdcmsgcoll. DATA: i_raw_data TYPE truxs_t_text_data, v_fname TYPE rlgrap-filename. * Table for collecting messsages DATA: it_msgtab TYPE STANDARD TABLE OF bdcmsgcoll , wa_msgtab TYPE bdcmsgcoll. DATA: it_msg TYPE STANDARD TABLE OF x_msg, wa_msg TYPE x_msg. DATA: gd_layout TYPE slis_layout_alv, fieldcatalog TYPE slis_t_fieldcat_alv, wa_fieldcatalog TYPE slis_fieldcat_alv. DATA: t_msg(100) TYPE c. ...