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

copy header view data from order to complaint

Hi Experts,

We have payment form has a tab view in both complaints & orders. In order, we have cop2complaints button.

when we press copy2complaints button then it has to copy "order payment view" data to the "complaints payment view". Currently it has copy the line items only.

How do we copy header data from the order to complaints.

Order Component : ICCMP_BT_SLO

Complaint Component : ICCMP_BT_COM

in both payment form is added using component usage whereas it's separate component view.

Thank you,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2011 at 06:29 PM


    I guess component for payment is 'ICCMP_PAYMENT'. Put a cursor in one of the payment fields and press F2...

    You can use one of following methods:

    1. Try to call custom controller ICCMP_PAYMENT/CuCoPayment in your complaint view and read context node, if it contains data.

    2. If this doesnt work out then you will have to create a component usage, make some change in WD_USAGE_INITIALIZE and link data between two components.

    below forum might help.

    Copying data between Views/Components...



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      This is happening because there is some binding between context nodes for sales order header and complaint header. But as of now no binding has been created for Payment form....

      If you are finding creating binding difficult then, in Complaint view you can use FM to read payment data from sales order as you already know order number. This data can then be set as default for payment field/s on complaint view.



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.