We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Failed Copy Working Area!

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

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.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Juan_Tamad  
ABAP Developer
achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have an SAP Question? Ask Your Peers at Toolbox for IT

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language