Skip to Content
author's profile photo Former Member
Former Member

Sale Order additional data B.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 27, 2011 at 11:35 AM

    HI ,

    Modify data at item level

    using index or tab control index

    regards

    Deepak.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.