06-27-2011 11:30 AM
Hi,
I have created 2 z fields in sale order additional data b at item level.
but when user is entering any data in that field,same data is getting displayed for all line items.
how to control that for particular item for which user has entered.
Data Entered in z fields are used only for display purpose which are used for some calculations.
06-27-2011 12:35 PM
HI ,
Modify data at item level
using index or tab control index
regards
Deepak.
06-27-2011 12:38 PM
Hi,
Could you please brief me how to do that.
do i need to write that code in PAI or PBO.
06-27-2011 12:45 PM
hi,
in PAI usercommand module
use loop endloop for internal table which store item level data
loop at item level data
user command module
endloop.
in module driving program .
module
read table it_issue index tab_ctl-current_line transporting no fields.
if sy-subrc = 0.
it_issue-kostl = p_kostl.
it_issue-ktext = p_ktext.
it_issue-for_sys = p_for_sys.
modify it_issue from it_issue index tab_ctl-current_line.
clear it_issue.
else.
it_issue-kostl = p_kostl.
it_issue-ktext = p_ktext.
it_issue-for_sys = p_for_sys.
append it_issue .
clear it_issue.
endif.
endmodule .
regards
deepak.