cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between process selections and package selections in PaPM

0 Kudos

Dear SAP community,

In PaPM system SP20, we have a writer function reading data from calculation function and writing results to a data dictionary table with writer type set to Delete and Insert.
When the writer function is triggered through PaPM using only the process template selections for company code, the writer implements selective deletion on target table and works fine for subsequent runs.
However, when the writer is invoked through a custom Fiori application by passing package selections for company code instead of process selections, the selective deletion feature no longer works. Is there a way of achieving this functionality using only package selections?

Thank you for your assistance in advance.

Best Regards,

Vinda

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member650362
Participant
0 Kudos

Dear vinda_thali ,

With respect to the selective delete and insert capabilities of a Writer, this can only be done through a selection via Process Template or thru a selection definition in a Writer's Input Tab. This is further discussed in my blog post PaPM Writer: Delete and Insert.

I can see you are aiming for the same behavior however, thru a custom Fiori application by passing package selections instead of process selections. The thing with selective Delete and Insert is the "Delete" part happens PRIOR run. Package Selection for instance is being defined DURING Runtime via Remote Call in the Run Manager for example if you are executing a Writer function straight from the Modeling Environment hence, would not have any effect as far as the selective deletion part of the Selective Delete and Insert scenario is concerned.

Best regards,
Rainier

vinda17
Member
0 Kudos

Hi Rainier,

Thank you for the explanation. And sorry for the super late response. We were able to achieve this functionality through a workaround involving joins to combine new and historical data preceding the execution of writer.

Best Regards,

Vinda

akki0785
Participant
0 Kudos

Hi Vinda,

You can embed the Process instance link in your custom fiori tile. SO it will navigate user to PaPM screen of process instance. This will perform the delete and Insert functionality as needed.

Regards,

Akshay

0 Kudos

Hi Akshay,

Thank you for your response.

The process is set up in Fiori in a way that it directly triggers the writer function in PaPM by passing the package selections and parameters. Although process template ID can also be passed from Fiori as one of the variables to writer function run, the solution does not seem optimal if we have a large number of company codes for which individual process templates then need to be created and passed accordingly. From the end user perspective, only Fiori screen navigations are expected while processing occurs in PaPM in the backend. So, we may not be able to divert the user to PaPM activities screen.

Best Regards,

Vinda