cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Function in a Sequence Not Working

Former Member
0 Kudos

Hi All,

We have defined a Custom Function and it has got a class (ZCL_IP_DERIVE_XXX_XXXX).

Further, in the IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE method of this class, we have defined a logic of appying a new Index (Sales Curve) and the forecast values are uplifted accordingly.

This Custom functon of Applying a new Index is one od the step in a Planning Sequence.

When I try to execute only the step of applying function in the modeler, I get the output as required and I can see them accurate in the trace.

But If I execute the entire sequence either step by step or at one go, the function is not applied. In the messages, it says step1 to 7 are executed. But there is no change done to the records read.

I doubt the values written back in the function are refreshed as soon as the come out of the step. Correct me if I am wrong.

The Values are read and written abck to the table C_TH_DATA.

Are we populating the right table? Do let me know if I need to change anything in the sequence.

Regards,

Harika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check in planning sequence,if you have any other planning functions running before it and changing the records,bcoz of which it is not able to read and write proper data.

Or else if it not the case then Put a break-point and check as suggested.

regards,

Indu

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check for the index that u r passing to planning sequence ,at the back of button.If it is the only sequence See the messages in the excel after executing the button and then rectify the errors..Check in the cube with the same filter's if the data is availabe.

Regards,

Indu

Former Member
0 Kudos

Thanks for your replies.

As suggested, the problem was with in the sequence as in the step before the function is applied, they are getting deleted...smll change in the code fixed the issue.

But now, when I try to run the same sequence on a button in a workbook, it doesnt work.

I checked the sequence behind the button. it is assosciated with the same one defined.

But no clue why it doesnt work.

Also, please let me know if there is any option to unhide the fields on the workbook in design mode.

Regards,

Harika

Former Member
0 Kudos

Hi.

If you run your planning sequence via modeles or RSPLS_PLSEQ_EXECUTE does it work ?

Is your problem only with runnung planning sequence via workbook ?

Do you see any system messages (X read, Y generated, Z changed) ?

Regards.

Former Member
0 Kudos

Hi Harika,

did you try debugging the planning sequence already? Set a break-point in your exit implementation. Create a user-independent variant for your planning sequence in the planning modeller and use report RSPLS_PLSEQ_EXECUTE (SE38) to run your planning sequence with your variant. Check if your break-point is hit and if it is hit how the algorithm behaves.

Regards Matthias