Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Copa Profitability Segment created under Invoice, but some values not captured.

$
0
0

Hi All,

 

During saving on Invoice, some values in COPA Profitability Segment are not captures for unknown reason.

 

Here are the regular missing fields:

1) Ship-To Party

2) Payer

3) Customer

 

Note:

The issues pattern mostly same customer number that created same time.

The invoice is schedule in background jobs via VF06.

 

Current scenario:

1) Upon the background jobs via VF06 has been finished, 2 invoices will be created.

2) In Copa Profitability Segment, the 1st invoice fields (Ship-To Party, Payer and Customer) values were there.

3) In Copa Profitability Segment, the 2nd invoice fields (Ship-To Party, Payer and Customer) values were gone.

 

Program behavior:

1) 1st invoice (No fields are missing)

- In standard include LV60AA58 (Populate pricing data into TKOMK - Pricing Header), it will loop at least 4 times according to the number of line item it have for the respective sales order. For example, if a sales order have 2 line items (Item 1 and Item 2) then it will loop for item 1 for 2 time and item 2 for another 2 time again.

- The purpose of the loop is to find out their partner function respectively.

- Upon finished loop, it will go to standard include LV60AA16 (Prepare to call up COPA_PROFITABILITY_SEGMENT function) and all the fields (Ship-To Party, Payer and Customer) are populated with values.

 

2) 2nd invoice (Regular missing fields)

- In standard include LV60AA58 (Populate pricing data into TKOMK - Pricing Header), it will loop 2 times only.
- The purpose of the loop is to find out their partner function respectively.

- At the first loop, the program should look for Ship-To Party with partner function 'WE' but at the end it look for another partner function 'RE' instead which is wrong.

- At the second loop, the program is not look for any partner function.

- Upon finished loop, it will go to standard include LV60AA16 (Prepare to call up COPA_PROFITABILITY_SEGMENT function) and all the fields (Ship-To Party, Payer and Customer) are not populated with values.

 

Expected result:

1) In Copa Profitability Segment, the 1st invoice fields (Ship-To Party, Payer and Customer) values are there.

2) In Copa Profitability Segment, the 2nd invoice fields (Ship-To Party, Payer and Customer) values are also there.

 

Please suggest how could this happens and what could be the reasons and solutions.

 

Thanks & Regards,

Richard


Viewing all articles
Browse latest Browse all 3280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>