Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from Juan_Tamad on Mar 12 at 1:35 AM did you try to debug the program before posting it here? check the values of im_header before asking. :D
| | | ---------------Original Message--------------- From: Eric Wijaya Sent: Friday, March 09, 2012 9:40 AM Subject: Failed Copy Working Area! Here some of my code in BADI : DATA: lwa_ekko_in_dlv TYPE mepoheader, lwa_ekpo_in_dlv TYPE purchase_order_item, lit_ekpo_in_dlv TYPE purchase_order_items, lwa_item_in_dlv TYPE mepoitem, lit_ekko_dlv TYPE STANDARD TABLE OF ekko, lit_ekpo_dlv TYPE STANDARD TABLE OF ekpo, lwa_ekko_dlv TYPE ekko, lwa_ekpo_dlv TYPE ekpo. "Populate ekko and ekpo data * Get ekko data lwa_ekko_in_dlv = im_header->get_data( ). lwa_ekko_dlv-ebeln = lwa_ekko_in_dlv-ebeln. lwa_ekko_dlv-bsart = lwa_ekko_in_dlv-bsart. lwa_ekko_dlv-lifnr = lwa_ekko_in_dlv-lifnr. lwa_ekko_dlv-bedat = lwa_ekko_in_dlv-bedat. APPEND lwa_ekko_dlv TO lit_ekko_dlv. "Why lwa_ekko_dlv get value from lwa_ekko_in_dlv???? " Get ekpo data lit_ekpo_in_dlv = im_header->get_items( ). LOOP AT lit_ekpo_in_dlv INTO lwa_ekpo_in_dlv. lwa_item_in_dlv = lwa_ekpo_in_dlv-item->get_data( ). lwa_ekpo_dlv-ebeln = lwa_item_in_dlv-ebeln. lwa_ekpo_dlv-ebelp = lwa_item_in_dlv-ebelp. lwa_ekpo_dlv-matnr = lwa_item_in_dlv-matnr. lwa_ekpo_dlv-menge = lwa_item_in_dlv-menge. lwa_ekpo_dlv-meins = lwa_item_in_dlv-meins. lwa_ekpo_dlv-txz01 = lwa_item_in_dlv-txz01. APPEND lwa_ekpo_dlv TO lit_ekpo_dlv. "Why lwa_ekpo_dlv get value from lwa_ekpo_in_dlv? ENDLOOP. Any comment? | | Reply to this email to post your response. __.____._ | _.____.__ |