cancel
Showing results for 
Search instead for 
Did you mean: 

copy header view data from order to complaint

Former Member
0 Kudos

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,

Cha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

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.

Regards,

BJ

Former Member
0 Kudos

I have added Payment view into header complaints header details screen.

Now issue : In complaints Header details view we have reference order field, if i enter the sales order number as a reference number in that field , then it's fetch all the sales order header views data to the complaints header views i.e partner view, Business Context view, etc except custom added Payment view.

Hope i made the statment clear. Please suggest how to make relation ship .

Componet : iccmp_BT_COM/reference

Former Member
0 Kudos

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.

regards,

BJ