Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sale Order additional data B.

Former Member
0 Kudos

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.

3 REPLIES 3

deepak_dhamat
Active Contributor
0 Kudos

HI ,

Modify data at item level

using index or tab control index

regards

Deepak.

0 Kudos

Hi,

Could you please brief me how to do that.

do i need to write that code in PAI or PBO.

0 Kudos

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.