02-04-2017 12:16 PM
Hi all ,
Firstly, i know that ~PROCESS_ITEM method is prefered to modify item data. But, my requirement is non-match so that i have to check a custome field in header. That is why i have to modify item data (plifz) in ~POST method.
But, i tried to set-data but it is not working. Can you lead me to solve it ? However, i tried userexit when save button clicked but not working to modify standard field.
~POST METHOD
***************************************************************
CALL METHOD im_header->get_items
RECEIVING
re_items = lt_items_cl.
LOOP AT lt_items_cl INTO ls_item.
CLEAR ls_items.
CALL METHOD ls_item-item->get_data
RECEIVING
re_data = ls_items.
ls_items-plifz = '990'.
ls_item-item->set_data( ls_items ).
APPEND ls_items TO lt_items.
ENDLOOP.
****************************************************************
M.Ozgur Unal
02-17-2017 6:36 AM
Hi all ;
That's why i cant solve my problem .
Regards.
M.Ozgur Unal
02-04-2017 12:27 PM
Hi Mehmet,
POST( ) is also not the right place to change the data. It is intended for database operations, e.g. save to a custom table.
I suggest to move your logic to the CHECK( ) method.
JNN
02-04-2017 12:35 PM
Hi Jacques Nomssi,
I tried but check method might not give permission to set_data ...
Regards.
M.Ozgur Unal
02-04-2017 12:50 PM
02-04-2017 12:53 PM
Actually, i can not use PROCESS_ITEM() because of not working PROCESS_HEADER() method when a custom field is changed in header.
Is there any advice for solution ?
M.Ozgur Unal
02-09-2017 3:51 PM
Hi Mehmet,
you might have problem with the firewall, check https://archive.sap.com/discussions/thread/207031
JNN
02-13-2017 9:31 AM
Mehmet,
Check SAP Service Market place,if there is any information document on "firewall" which is being discussed here so that you will have more info before proceeding with the changes.
K.Kiran.
02-17-2017 6:36 AM
Hi all ;
That's why i cant solve my problem .
Regards.
M.Ozgur Unal