<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error in Proportional Factor Calculation Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-proportional-factor-calculation-program/m-p/2855799#M669397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have not been able to attach the document, I will explain  the problem in full as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business scenario - Consider a factory having 5 different customers (which is known as Customer_rs). We need to supply stock to each of them based on their past consumption. So to forecast this, we calculate a factor known as proportional factor based on the data we have for previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to calculate the PF for a period, we need to create a profile in /sapapo/sdp94 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the profile, the profile can be seen by clicking on SPD94 and going to selection-screen button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to calculate PF , we need to go to transaction /sapapo/mv8v .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here we will have to give the selection id that was saved in SDP94.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this process has to be automated and a program has been created to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A description of how the program works  is as given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we try to calculate the proportional factor with this program , the following error is obtained :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#145;There are no plannable characteristic combinations.&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing the same parameters that were passed by the SDP94 transaction to the standard function module for saving the selection ids. This is shown in the below screenshots.&lt;/P&gt;&lt;P&gt;In spite of this we are getting the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to delete the selection ids,click on delete option in the program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is even if we click on delete , the PPF data will be stored in the database inspite of deleting the selection profiles .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone help me out with  this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;P&gt;                                                                                Now we will have to give the selection description&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the profile can be seen by going to SDP94 and clicking on selection profile button.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to calculate PF, go to transaction /sapapo/mv8v&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute and give following inputs&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will forecast the PF for the period 01.09.2007 to 21.02.2007 based on data from 21.04.2007 to 20.05.2007&lt;/P&gt;&lt;P&gt;Click on other settings&lt;/P&gt;&lt;P&gt;Here we will have to give the selection id that was saved in SDP94.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this process has to be automated and a program was created to do this.&lt;/P&gt;&lt;P&gt;A description of how the program is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id. &lt;/P&gt;&lt;P&gt;This is the excel sheet that is used to load data into /sapapo/mc8v to calculate the PF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon executing, the ids have been created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters passed to standard function module in order to save the selection id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate PF using the program, the following happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error screen is generated with the message &amp;#145;There are no plannable characteristic combinations.&amp;#146;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing the same parameters that were passed by the SDP94 transaction to the standard function module for saving the selection ids. This is shown in the below screenshots.&lt;/P&gt;&lt;P&gt;In spite of this we are getting the error.&lt;/P&gt;&lt;P&gt;When IV_POPUP_SEL_DESCRIPTION is passed, a popup will be displayed where the selection description will have to be entered. I am passing the same selection description here as is picked by the program.( H3HPCDEL00110096, H3HPCDEL00110063)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this, we need to go to SDP94 and after going to selection window, we need to save the selections as shown in the following screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the selection id one by one.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on save selection&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Click on save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for all ids created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate the PF using the program, it is seen to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what needs to be done is that we need to avoid going to SDP94 in order to save the selections after the ids are created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the Program works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se38&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the selection has to be saved. For that, follow the following procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on selection window.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the ids.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select and then press &amp;#147;save&amp;#148;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for every id.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only then can proportional factor be calculated.&lt;/P&gt;&lt;P&gt;Now go to program and select Calc_ppf, with filepath to excel sheet as the sel_ids will be pulled from the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to sdp94 and load the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load data.&lt;/P&gt;&lt;P&gt;And make sure, data view is TDP_VIEW_PROP as shown&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPF will be shown for the period chosen in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to delete the selection ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the program and give file path of the excel sheet and execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection profiles will be deleted as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But PPF data will be stored in the database inspite of deleting the selection profiles. And ppf can be shown by selecting the basepack and the sales area.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click load data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Business scenario - Consider a factory having 5 different customers (which is known as Customer_rs). We need to supply stock to each of them based on their past consumption. So to forecast this, we calculate a factor known as proportional factor based on the data we have for previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to calculate the PF for a period, we need to create a profile in /sapapo/sdp94&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it is done in standard transaction /SAPAPO/SDP94&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important pushbuttons and their functions&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on selection window.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the selections&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on save selection&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A break-point has been set in the standard program to show what all parameters are being passed to the standard function module /SAPAPO/MCPSH_SELECTION_SAVE used to save the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we will have to give the selection description&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the profile can be seen by going to SDP94 and clicking on selection profile button.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to calculate PF, go to transaction /sapapo/mv8v&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute and give following inputs&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will forecast the PF for the period 01.09.2007 to 21.02.2007 based on data from 21.04.2007 to 20.05.2007&lt;/P&gt;&lt;P&gt;Click on other settings&lt;/P&gt;&lt;P&gt;Here we will have to give the selection id that was saved in SDP94.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this process has to be automated and a program was created to do this.&lt;/P&gt;&lt;P&gt;A description of how the program is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id. &lt;/P&gt;&lt;P&gt;This is the excel sheet that is used to load data into /sapapo/mc8v to calculate the PF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon executing, the ids have been created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters passed to standard function module in order to save the selection id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate PF using the program, the following happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error screen is generated with the message &amp;#145;There are no plannable characteristic combinations.&amp;#146;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing the same parameters that were passed by the SDP94 transaction to the standard function module for saving the selection ids. This is shown in the below screenshots.&lt;/P&gt;&lt;P&gt;In spite of this we are getting the error.&lt;/P&gt;&lt;P&gt;When IV_POPUP_SEL_DESCRIPTION is passed, a popup will be displayed where the selection description will have to be entered. I am passing the same selection description here as is picked by the program.( H3HPCDEL00110096, H3HPCDEL00110063)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this, we need to go to SDP94 and after going to selection window, we need to save the selections as shown in the following screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the selection id one by one.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on save selection&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Click on save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for all ids created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate the PF using the program, it is seen to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what needs to be done is that we need to avoid going to SDP94 in order to save the selections after the ids are created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the Program works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se38&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the selection has to be saved. For that, follow the following procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on selection window.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the ids.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select and then press &amp;#147;save&amp;#148;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for every id.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only then can proportional factor be calculated.&lt;/P&gt;&lt;P&gt;Now go to program and select Calc_ppf, with filepath to excel sheet as the sel_ids will be pulled from the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to sdp94 and load the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load data.&lt;/P&gt;&lt;P&gt;And make sure, data view is TDP_VIEW_PROP as shown&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPF will be shown for the period chosen in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to delete the selection ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the program and give file path of the excel sheet and execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection profiles will be deleted as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But PPF data will be stored in the database inspite of deleting the selection profiles. And ppf can be shown by selecting the basepack and the sales area.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click load data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 10:14:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T10:14:43Z</dc:date>
    <item>
      <title>Error in Proportional Factor Calculation Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-proportional-factor-calculation-program/m-p/2855798#M669396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed an ABAP Program to calculate Proportional Factor(PF) as below. &lt;/P&gt;&lt;P&gt;Generally,to calculate the PF for a period , we need to use transaction /sapapo/sdp94 to create a profile .After doing that , to calculate PF we need to go transaction /sapapo/mv8v .&lt;/P&gt;&lt;P&gt;Now,the given program has three options :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Create : To create the selection-ID by taking &amp;#145;area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#146; as name of the selection-ID . Here we need to give the excel sheet that is used to load data into /sapapo/mc8v to calculate PF.&lt;/P&gt;&lt;P&gt;2)Calculate PF : This option is used to calculate proportional factor.&lt;/P&gt;&lt;P&gt;   Now if we try to calculate PF ,I get an error message saying there are no &lt;/P&gt;&lt;P&gt;   plannable characteristic combinations .&lt;/P&gt;&lt;P&gt;3) Delete : This option is used to delete the selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error in this program which I have explained with the document attached in this mail . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could anyone help me out with this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program is as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;report ZRSNORMS_PPF&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ZAPO_DATA_DECLARATION_PPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE Z_APO_FORMS_PPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = syst-repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     field_name          = p_file1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STATIC              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_name           = p_file1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK_TOO_LONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS              = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM READ_DATA TABLES I_PROFILE&lt;/P&gt;&lt;P&gt;                           I_EXEL&lt;/P&gt;&lt;P&gt;                           IT_PROFILE_NAME&lt;/P&gt;&lt;P&gt;                    USING P_FILE1&lt;/P&gt;&lt;P&gt;                    CHANGING W_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM SAVE_SELECTION TABLES I_EXEL&lt;/P&gt;&lt;P&gt;                                IT_SAVE_SEL&lt;/P&gt;&lt;P&gt;                                IT_PROFILE_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IT_GRP-OBJNAM = 'ZRSBASPCK'.&lt;/P&gt;&lt;P&gt;  APPEND IT_GRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_GRP INTO W_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND W_GROUP TO IT_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  G_PAREAID = 'ZRSPAHPC'.&lt;/P&gt;&lt;P&gt;  G_MVIEW = 'ZRSPAHPC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  G_COUNT = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF CREATE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_SAVE_SEL INTO W_SEL_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF W_SEL_SAVE-IOBJNM = '9AVERSION' AND SY-TABIX &amp;gt; 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      G_COUNT = G_COUNT + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE IT_PROFILE_NAME INDEX G_COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      G_NAME = IT_PROFILE_NAME-F_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION '/SAPAPO/MCPSH_SELECTION_SAVE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_SELID                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_FLG_USED_FOR                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IV_PAREAID                     = G_PAREAID&lt;/P&gt;&lt;P&gt;         IV_MVIEW                       =  G_MVIEW&lt;/P&gt;&lt;P&gt;         IV_SEL_DESCRIPTION             = G_NAME&lt;/P&gt;&lt;P&gt;         IT_SELECTION                   = IT_SEL_SAVE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_OBJECTS                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IT_SEL_GROUP                   = IT_GROUP&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_POPUP_SEL_DESCRIPTION       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EV_SELID                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EV_SEL_DESCRIPTION             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DUPLICATE_SELECTION            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_SELECTION             = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INCONSISTENT_DATABASE          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DUPLICATE_DESCRIPTION          = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_DESCRIPTION            = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_PERMISSION                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELID_INVALID                  = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR IT_SEL_SAVE[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND W_SEL_SAVE TO IT_SEL_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF W_SEL_SAVE-IOBJNM = '9AVERSION' AND SY-TABIX = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND W_SEL_SAVE TO IT_SEL_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND W_SEL_SAVE TO IT_SEL_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  G_COUNT = G_COUNT + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE IT_PROFILE_NAME INDEX G_COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  G_NAME = IT_PROFILE_NAME-F_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION '/SAPAPO/MCPSH_SELECTION_SAVE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_SELID                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_FLG_USED_FOR                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IV_PAREAID                     = G_PAREAID&lt;/P&gt;&lt;P&gt;     IV_MVIEW                       =  G_MVIEW&lt;/P&gt;&lt;P&gt;     IV_SEL_DESCRIPTION             = G_NAME&lt;/P&gt;&lt;P&gt;     IT_SELECTION                   = IT_SEL_SAVE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_OBJECTS                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IT_SEL_GROUP                   = IT_GROUP&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_POPUP_SEL_DESCRIPTION       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EV_SELID                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EV_SEL_DESCRIPTION             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DUPLICATE_SELECTION            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_SELECTION             = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INCONSISTENT_DATABASE          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DUPLICATE_DESCRIPTION          = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_DESCRIPTION            = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_PERMISSION                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELID_INVALID                  = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IV_GROUP = 'ZRSBASPCK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_SEL_SAVE INTO w_confirm_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND w_confirm_sel TO it_confirm_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION '/SAPAPO/MSDP_SH_OBJ_LIST_BUILD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IV_PAREAID           = G_PAREAID&lt;/P&gt;&lt;P&gt;     IV_MVIEW             = G_MVIEW&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IV_DVIEW             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IV_FROMDATE          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IV_ENDDATE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IV_NO_POPUPS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ET_SH_OBJECTS        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    INVALID_INPUT        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    INTERNAL_ERROR       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OTHERS               = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CLEAR IT_SEL_SAVE[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if calc_ppf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CALC_PPF TABLES I_EXEL&lt;/P&gt;&lt;P&gt;                          BDCTAB&lt;/P&gt;&lt;P&gt;                          IT_PROFILE_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if del_prof = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT I_EXEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate i_exel-area I_EXEL-BASE INTO DEL_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM /SAPAPO/TS_SELKO INTO IT_TS_SELKO&lt;/P&gt;&lt;P&gt;WHERE SEL_DESRCIPTION = DEL_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEL_PROFILE = IT_TS_SELKO-SELECTIONID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPAPO/MCPSH_SELECTION_DELETE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IV_SELID                    = DEL_PROFILE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_FLG_CONFIRM_TRANS        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_ENTRY                    = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DELETION_NOT_POSSIBLE       = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                      = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INCLUDE   ZAPO_DATA_DECLARATION_PPF .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: t_ts_selpo type /sapapo/ts_selpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF T_EXEL,&lt;/P&gt;&lt;P&gt;       PROF_DATFRM TYPE DATS,&lt;/P&gt;&lt;P&gt;       PROF_DATTO TYPE DATS,&lt;/P&gt;&lt;P&gt;       FORCAST_FROM TYPE DATS,&lt;/P&gt;&lt;P&gt;       FORCAST_TO TYPE DATS,&lt;/P&gt;&lt;P&gt;       AREA(60),&lt;/P&gt;&lt;P&gt;       BASE(60),&lt;/P&gt;&lt;P&gt;       POPID(60),&lt;/P&gt;&lt;P&gt;       RATING(60),&lt;/P&gt;&lt;P&gt;       RS(60),&lt;/P&gt;&lt;P&gt;       END OF T_EXEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_profile,&lt;/P&gt;&lt;P&gt;       obj(30),&lt;/P&gt;&lt;P&gt;       val(60),&lt;/P&gt;&lt;P&gt;       end of t_profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of t_profile_name,&lt;/P&gt;&lt;P&gt;       f_name(60),&lt;/P&gt;&lt;P&gt;       end of t_profile_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: G_COUNT TYPE I VALUE 0.&lt;/P&gt;&lt;P&gt;*TYPES: T_SAVE_SEL LIKE IT_SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_subrc TYPE sy-subrc,&lt;/P&gt;&lt;P&gt;      I_TS_SELPO TYPE Table of t_ts_selpo with header line,&lt;/P&gt;&lt;P&gt;      I_EXEL TYPE Table of t_EXEL with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IV_GROUP TYPE /SAPAPO/IOBJNM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_PROFILE_NAME TYPE TABLE OF T_PROFILE_NAME WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_profile type table of t_profile with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/sapapo/ts_iobj_selection_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: IT_SEL_SAVE TYPE /sapapo/ts_iobj_selection_tab,&lt;/P&gt;&lt;P&gt;      w_SEL_SAVE type /SAPAPO/TS_IOBJ_SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_CONFIRM_SEL TYPE /SAPAPO/SH_SEL_RANGE_TAB,&lt;/P&gt;&lt;P&gt;      W_CONFIRM_SEL TYPE /SAPAPO/SH_SEL_RANGE_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF T_SAVE_SEL,&lt;/P&gt;&lt;P&gt;       IOBJNM(30),&lt;/P&gt;&lt;P&gt;       SIGN,&lt;/P&gt;&lt;P&gt;       OPTION(2),&lt;/P&gt;&lt;P&gt;       LOW(60),&lt;/P&gt;&lt;P&gt;       HIGH(60),&lt;/P&gt;&lt;P&gt;       END OF T_SAVE_SEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_SAVE_SEL TYPE TABLE OF T_SAVE_SEL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF T_GRP,&lt;/P&gt;&lt;P&gt;      OBJNAM(30),&lt;/P&gt;&lt;P&gt;      END OF T_GRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_GRP TYPE TABLE OF T_GRP WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="13" type="ul"&gt;&lt;P&gt;DATA DECLARATION FOR FUNC MODULE **************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_GROUP TYPE /SAPAPO/TS_GROUP_BY_TAB,&lt;/P&gt;&lt;P&gt;      W_GROUP TYPE /SAPAPO/TS_GROUP_BY_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: G_PAREAID TYPE /SAPAPO/TS_PAREAID,&lt;/P&gt;&lt;P&gt;      G_MVIEW TYPE /SAPAPO/PB_MVIEW,&lt;/P&gt;&lt;P&gt;      G_NAME TYPE /SAPAPO/TS_SEL_DESCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="17" type="ul"&gt;&lt;P&gt;BDC TABLES ***************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: bdcdata LIKE bdcdata  OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BDCTAB like BDCDATA occurs 0 with header line.&lt;/P&gt;&lt;P&gt;DATA : w_file type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************BDC ERROR TAB ***************************&lt;/P&gt;&lt;P&gt;DATA : xcount1 TYPE i,&lt;/P&gt;&lt;P&gt;       xstat TYPE i,&lt;/P&gt;&lt;P&gt;       xmsgv1 LIKE balm-msgv1,&lt;/P&gt;&lt;P&gt;       xmsgv2 LIKE balm-msgv2,&lt;/P&gt;&lt;P&gt;       xmsgv3 LIKE balm-msgv3,&lt;/P&gt;&lt;P&gt;       xmsgv4 LIKE balm-msgv4,&lt;/P&gt;&lt;P&gt;       xmessage(80) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF t_errlog OCCURS 0,&lt;/P&gt;&lt;P&gt;        sno TYPE i,&lt;/P&gt;&lt;P&gt;        message(80) TYPE c,&lt;/P&gt;&lt;P&gt;        END OF t_errlog.&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: DEL_PROFILE TYPE /SAPAPO/SELECTIONID2,&lt;/P&gt;&lt;P&gt;      DEL_NAME(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************DUPLICATE NAME TAB **************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_NOT_PROCESSED TYPE TABLE OF /SAPAPO/TS_SELPO WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="14" type="ul"&gt;&lt;P&gt;DELETE TAB *****************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: IT_TS_SELKO TYPE TABLE OF /SAPAPO/TS_SELKO WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_file1 TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: create type c radiobutton group g1,&lt;/P&gt;&lt;P&gt;            calc_ppf type c radiobutton group g1,&lt;/P&gt;&lt;P&gt;            del_prof type c radiobutton group g1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include           Z_APO_FORMS_PPF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Include           Z_APO_FORMS_PPF&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  READ_DATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_I_PROFILE  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_I_EXEL  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IT_PROFILE_NAME  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_P_FILE1  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_W_SUBRC  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM READ_DATA  TABLES   P_I_PROFILE STRUCTURE I_PROFILE&lt;/P&gt;&lt;P&gt;                         P_I_EXEL STRUCTURE I_EXEL&lt;/P&gt;&lt;P&gt;                         P_IT_PROFILE_NAME STRUCTURE IT_PROFILE_NAME&lt;/P&gt;&lt;P&gt;                USING    P_P_FILE1&lt;/P&gt;&lt;P&gt;                CHANGING P_W_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : iexcel LIKE zexcel_read OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;         G_DATE TYPE DATS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_name(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR  p_w_subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename    = p_p_file1&lt;/P&gt;&lt;P&gt;      i_begin_col = 1&lt;/P&gt;&lt;P&gt;      i_begin_row = 1&lt;/P&gt;&lt;P&gt;      i_end_col   = 62&lt;/P&gt;&lt;P&gt;      i_end_row   = 50000&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern      = iexcel.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     inconsistent_parameters = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     upload_ole              = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS                  = 3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    p_w_subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT iexcel WHERE row &amp;gt; 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM CONVERT_DATE CHANGING G_DATE iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    p_i_EXEL-PROF_DATFRM = G_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM CONVERT_DATE CHANGING G_DATE iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      p_i_EXEL-PROF_DATTO  = G_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM CONVERT_DATE CHANGING G_DATE iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      p_i_EXEL-FORCAST_FROM = G_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0004'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM CONVERT_DATE CHANGING G_DATE iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      p_i_EXEL-FORCAST_TO = G_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0005'.&lt;/P&gt;&lt;P&gt;      p_i_EXEL-AREA = iexcel-value.&lt;/P&gt;&lt;P&gt;      p_i_profile-obj = 'ZRSAREA'.&lt;/P&gt;&lt;P&gt;      p_i_profile-VAL = iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append p_i_PROFILE.&lt;/P&gt;&lt;P&gt;      clear p_i_PROFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0006'.&lt;/P&gt;&lt;P&gt;      p_i_EXEL-BASE = iexcel-value.&lt;/P&gt;&lt;P&gt;      p_i_profile-obj = 'ZRSBASPCK'.&lt;/P&gt;&lt;P&gt;      p_i_profile-VAL = iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         append p_i_PROFILE.&lt;/P&gt;&lt;P&gt;      clear p_i_PROFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0007'.&lt;/P&gt;&lt;P&gt;      p_i_EXEL-POPID = iexcel-value.&lt;/P&gt;&lt;P&gt;      p_i_profile-obj = 'ZRSPOPULN'.&lt;/P&gt;&lt;P&gt;      p_i_profile-VAL = iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         append p_i_PROFILE.&lt;/P&gt;&lt;P&gt;      clear p_i_PROFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0008'.&lt;/P&gt;&lt;P&gt;    p_i_EXEL-RATING = iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF iexcel-col = '0009'.&lt;/P&gt;&lt;P&gt;      p_i_EXEL-RS = iexcel-value.&lt;/P&gt;&lt;P&gt;      p_i_profile-obj = 'ZRSCUSTMR'.&lt;/P&gt;&lt;P&gt;      p_i_profile-VAL = iexcel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append p_i_PROFILE.&lt;/P&gt;&lt;P&gt;      clear p_i_PROFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append p_i_EXEL.&lt;/P&gt;&lt;P&gt;      clear p_i_EXEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at P_I_EXEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate P_I_EXEL-AREA P_I_EXEL-BASE INTO L_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_it_profile_name-f_name = l_name.&lt;/P&gt;&lt;P&gt;append P_it_profile_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " READ_DATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CONVERT_DATE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_G_DATE  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_IEXCEL_VALUE  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CONVERT_DATE  CHANGING P_G_DATE&lt;/P&gt;&lt;P&gt;                            P_IEXCEL_VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                            CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DATE_EXTERNAL                  = p_iexcel_value&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCEPT_INITIAL_DATE            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   DATE_INTERNAL                  = p_g_date&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_EXTERNAL_IS_INVALID       = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " CONVERT_DATE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SAVE_SELECTION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_I_EXEL  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IT_SAVE_SEL  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IT_PROFILE_NAME  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SAVE_SELECTION  TABLES   P_I_EXEL STRUCTURE I_EXEL&lt;/P&gt;&lt;P&gt;                              P_IT_SAVE_SEL STRUCTURE IT_SAVE_SEL&lt;/P&gt;&lt;P&gt;                              P_IT_PROFILE_NAME STRUCTURE IT_PROFILE_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_PAREAID(40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at p_i_exel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_it_save_sel-iobjnm = '9AVERSION'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-LOW = '000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;CLEAR P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_it_save_sel-iobjnm = 'ZRSAREA'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-LOW = P_I_EXEL-AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;CLEAR P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT P_I_EXEL-BASE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_it_save_sel-iobjnm = 'ZRSBASPCK'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-LOW = P_I_EXEL-BASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;CLEAR P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT P_I_EXEL-POPID IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_it_save_sel-iobjnm = 'ZRSPOPULN'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-LOW = P_I_EXEL-POPID.&lt;/P&gt;&lt;P&gt;APPEND P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;CLEAR P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT P_I_EXEL-RS IS INITIAL.&lt;/P&gt;&lt;P&gt;p_it_save_sel-iobjnm = 'ZRSCUSTMR'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_it_save_sel-LOW = P_I_EXEL-RS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;CLEAR P_IT_SAVE_SEL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write 'hi'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CLEAR P_IT_SAVE_SEL[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*submit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " SAVE_SELECTION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CALC_PPF&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_I_EXEL  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_BDCTAB  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IT_PROFILE_NAME  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CALC_PPF  TABLES   P_I_EXEL STRUCTURE I_EXEL&lt;/P&gt;&lt;P&gt;                        P_BDCTAB STRUCTURE BDCTAB&lt;/P&gt;&lt;P&gt;                        P_IT_PROFILE_NAME STRUCTURE IT_PROFILE_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PERIOD_FROM TYPE /SAPAPO/BASIS_VON_BIS,&lt;/P&gt;&lt;P&gt;      PERIOD_TO TYPE /SAPAPO/BASIS_VON_BIS,&lt;/P&gt;&lt;P&gt;      TRANSFER_FORM TYPE /SAPAPO/TARGET_VON_BIS,&lt;/P&gt;&lt;P&gt;      TRANSFER_TO TYPE /SAPAPO/TARGET_VON_BIS,&lt;/P&gt;&lt;P&gt;      SEL_PROFILE TYPE /SAPAPO/SEL_TXT.&lt;/P&gt;&lt;P&gt;DATA: SEL_NAME(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_TEMP TYPE SY-DATUM,&lt;/P&gt;&lt;P&gt;       L_TEMP1 TYPE SY-DATUM,&lt;/P&gt;&lt;P&gt;       L_TEMP2 TYPE SY-DATUM,&lt;/P&gt;&lt;P&gt;       L_TEMP3 TYPE SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT P_I_EXEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_TEMP&lt;EM&gt;0(2) = P_I_EXEL-FORCAST_FROM&lt;/EM&gt;6(2). "passed date&lt;/P&gt;&lt;P&gt;L_TEMP&lt;EM&gt;2(2) = P_I_EXEL-FORCAST_FROM&lt;/EM&gt;4(2). "passed Month&lt;/P&gt;&lt;P&gt;L_TEMP&lt;EM&gt;4(4) = P_I_EXEL-FORCAST_FROM&lt;/EM&gt;0(4). "passed year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_TEMP1&lt;EM&gt;0(2) = P_I_EXEL-FORCAST_TO&lt;/EM&gt;6(2). "passed date&lt;/P&gt;&lt;P&gt;L_TEMP1&lt;EM&gt;2(2) = P_I_EXEL-FORCAST_TO&lt;/EM&gt;4(2). "passed Month&lt;/P&gt;&lt;P&gt;L_TEMP1&lt;EM&gt;4(4) = P_I_EXEL-FORCAST_TO&lt;/EM&gt;0(4). "passed year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_TEMP2&lt;EM&gt;0(2) = P_I_EXEL-PROF_DATFRM&lt;/EM&gt;6(2). "passed date&lt;/P&gt;&lt;P&gt;L_TEMP2&lt;EM&gt;2(2) = P_I_EXEL-PROF_DATFRM&lt;/EM&gt;4(2). "passed Month&lt;/P&gt;&lt;P&gt;L_TEMP2&lt;EM&gt;4(4) = P_I_EXEL-PROF_DATFRM&lt;/EM&gt;0(4). "passed year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_TEMP3&lt;EM&gt;0(2) = P_I_EXEL-PROF_DATTO&lt;/EM&gt;6(2). "passed date&lt;/P&gt;&lt;P&gt;L_TEMP3&lt;EM&gt;2(2) = P_I_EXEL-PROF_DATTO&lt;/EM&gt;4(2). "passed Month&lt;/P&gt;&lt;P&gt;L_TEMP3&lt;EM&gt;4(4) = P_I_EXEL-PROF_DATTO&lt;/EM&gt;0(4). "passed year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERIOD_FROM = L_TEMP2.&lt;/P&gt;&lt;P&gt;PERIOD_TO = L_TEMP3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer_form = L_TEMP.&lt;/P&gt;&lt;P&gt;TRANSFER_TO = L_TEMP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate P_I_EXEL-AREA P_I_EXEL-BASE INTO SEL_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEL_PROFILE = SEL_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using '/SAPAPO/RMDP_SHARE_VERSION_M' '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BPAREAID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'PAREAID'&lt;/P&gt;&lt;P&gt;                              'ZRSPAHPC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FLG_AREA'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BPAREAID'&lt;/P&gt;&lt;P&gt;                              'ZRSPAHPC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using '/SAPAPO/RMDP_SHARE_MANAGER' '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=UCOMM1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'Z_DATE-HIGH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'B_VER'&lt;/P&gt;&lt;P&gt;                              '000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'B_KENN'&lt;/P&gt;&lt;P&gt;                              '9AVCORHIST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'B_DATE-LOW'&lt;/P&gt;&lt;P&gt;                              PERIOD_FROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'B_DATE-HIGH'&lt;/P&gt;&lt;P&gt;                              PERIOD_TO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VERSION'&lt;/P&gt;&lt;P&gt;                              '000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'Z_DATE-LOW'&lt;/P&gt;&lt;P&gt;                              transfer_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'Z_DATE-HIGH'&lt;/P&gt;&lt;P&gt;                              TRANSFER_TO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FLG_ONE'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using '/SAPAPO/RMDP_SHARE_MANAGER' '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'SEL_TXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SEL_TXT'&lt;/P&gt;&lt;P&gt;                               SEL_PROFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using '/SAPAPO/RMDP_SHARE_MANAGER' '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using '/SAPAPO/RMDP_SHARE_VERSION_M' '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'PAREAID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_transaction using '/SAPAPO/MC8V'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM /SAPAPO/TS_SELKO INTO IT_TS_SELKO&lt;/P&gt;&lt;P&gt;WHERE SEL_DESRCIPTION = sel_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction '/SAPAPO/MC8V'&lt;/P&gt;&lt;P&gt;         using bdctab&lt;/P&gt;&lt;P&gt;         mode 'A'&lt;/P&gt;&lt;P&gt;         update 'L'&lt;/P&gt;&lt;P&gt;         messages into it_messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table  it_messtab lines xcount1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_messtab index xcount1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_messtab WHERE msgtyp = 'E'&lt;/P&gt;&lt;P&gt;                                 OR msgtyp = 'A'.&lt;/P&gt;&lt;P&gt;            MOVE It_messtab-msgv1 TO xmsgv1.&lt;/P&gt;&lt;P&gt;            MOVE It_messtab-msgv2 TO xmsgv2.&lt;/P&gt;&lt;P&gt;            MOVE It_messtab-msgv3 TO xmsgv3.&lt;/P&gt;&lt;P&gt;            MOVE It_messtab-msgv4 TO xmsgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'MESSAGE_PREPARE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;         LANGUAGE                     = sy-langu&lt;/P&gt;&lt;P&gt;          msg_id                       = It_messtab-msgid&lt;/P&gt;&lt;P&gt;          msg_no                       = It_messtab-msgnr&lt;/P&gt;&lt;P&gt;         MSG_VAR1                     = xmsgv1&lt;/P&gt;&lt;P&gt;         MSG_VAR2                     = xmsgv2&lt;/P&gt;&lt;P&gt;         MSG_VAR3                     = xmsgv3&lt;/P&gt;&lt;P&gt;         MSG_VAR4                     = xmsgv4&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         MSG_TEXT                     = xmessage&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         FUNCTION_NOT_COMPLETED       = 1&lt;/P&gt;&lt;P&gt;         MESSAGE_NOT_FOUND            = 2&lt;/P&gt;&lt;P&gt;         OTHERS                       = 3&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE sy-tabix TO t_errlog-sno.&lt;/P&gt;&lt;P&gt;      MOVE xmessage TO t_errlog-message.&lt;/P&gt;&lt;P&gt;            APPEND t_errlog.&lt;/P&gt;&lt;P&gt;            CLEAR t_errlog..&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR BDCTAB[].&lt;/P&gt;&lt;P&gt;CLEAR SEL_NAME.&lt;/P&gt;&lt;P&gt;CLEAR P_I_EXEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " CALC_PPF&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0424   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0425   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_dynpro  USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt; CLEAR bdcTAB.&lt;/P&gt;&lt;P&gt;  bdcTAB-program  = program.&lt;/P&gt;&lt;P&gt;  bdcTAB-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcTAB-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND bdcTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0494   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_TRANSFER_FROM  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field  USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR bdcTAB.&lt;/P&gt;&lt;P&gt;  bdcTAB-fnam = fnam.&lt;/P&gt;&lt;P&gt;  bdcTAB-fval = fval.&lt;/P&gt;&lt;P&gt;  APPEND bdcTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-proportional-factor-calculation-program/m-p/2855798#M669396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Proportional Factor Calculation Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-proportional-factor-calculation-program/m-p/2855799#M669397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have not been able to attach the document, I will explain  the problem in full as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business scenario - Consider a factory having 5 different customers (which is known as Customer_rs). We need to supply stock to each of them based on their past consumption. So to forecast this, we calculate a factor known as proportional factor based on the data we have for previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to calculate the PF for a period, we need to create a profile in /sapapo/sdp94 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the profile, the profile can be seen by clicking on SPD94 and going to selection-screen button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to calculate PF , we need to go to transaction /sapapo/mv8v .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here we will have to give the selection id that was saved in SDP94.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this process has to be automated and a program has been created to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A description of how the program works  is as given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we try to calculate the proportional factor with this program , the following error is obtained :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#145;There are no plannable characteristic combinations.&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing the same parameters that were passed by the SDP94 transaction to the standard function module for saving the selection ids. This is shown in the below screenshots.&lt;/P&gt;&lt;P&gt;In spite of this we are getting the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to delete the selection ids,click on delete option in the program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is even if we click on delete , the PPF data will be stored in the database inspite of deleting the selection profiles .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone help me out with  this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;P&gt;                                                                                Now we will have to give the selection description&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the profile can be seen by going to SDP94 and clicking on selection profile button.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to calculate PF, go to transaction /sapapo/mv8v&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute and give following inputs&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will forecast the PF for the period 01.09.2007 to 21.02.2007 based on data from 21.04.2007 to 20.05.2007&lt;/P&gt;&lt;P&gt;Click on other settings&lt;/P&gt;&lt;P&gt;Here we will have to give the selection id that was saved in SDP94.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this process has to be automated and a program was created to do this.&lt;/P&gt;&lt;P&gt;A description of how the program is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id. &lt;/P&gt;&lt;P&gt;This is the excel sheet that is used to load data into /sapapo/mc8v to calculate the PF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon executing, the ids have been created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters passed to standard function module in order to save the selection id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate PF using the program, the following happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error screen is generated with the message &amp;#145;There are no plannable characteristic combinations.&amp;#146;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing the same parameters that were passed by the SDP94 transaction to the standard function module for saving the selection ids. This is shown in the below screenshots.&lt;/P&gt;&lt;P&gt;In spite of this we are getting the error.&lt;/P&gt;&lt;P&gt;When IV_POPUP_SEL_DESCRIPTION is passed, a popup will be displayed where the selection description will have to be entered. I am passing the same selection description here as is picked by the program.( H3HPCDEL00110096, H3HPCDEL00110063)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this, we need to go to SDP94 and after going to selection window, we need to save the selections as shown in the following screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the selection id one by one.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on save selection&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Click on save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for all ids created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate the PF using the program, it is seen to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what needs to be done is that we need to avoid going to SDP94 in order to save the selections after the ids are created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the Program works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se38&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the selection has to be saved. For that, follow the following procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on selection window.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the ids.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select and then press &amp;#147;save&amp;#148;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for every id.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only then can proportional factor be calculated.&lt;/P&gt;&lt;P&gt;Now go to program and select Calc_ppf, with filepath to excel sheet as the sel_ids will be pulled from the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to sdp94 and load the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load data.&lt;/P&gt;&lt;P&gt;And make sure, data view is TDP_VIEW_PROP as shown&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPF will be shown for the period chosen in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to delete the selection ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the program and give file path of the excel sheet and execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection profiles will be deleted as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But PPF data will be stored in the database inspite of deleting the selection profiles. And ppf can be shown by selecting the basepack and the sales area.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click load data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Business scenario - Consider a factory having 5 different customers (which is known as Customer_rs). We need to supply stock to each of them based on their past consumption. So to forecast this, we calculate a factor known as proportional factor based on the data we have for previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to calculate the PF for a period, we need to create a profile in /sapapo/sdp94&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it is done in standard transaction /SAPAPO/SDP94&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important pushbuttons and their functions&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on selection window.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the selections&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on save selection&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A break-point has been set in the standard program to show what all parameters are being passed to the standard function module /SAPAPO/MCPSH_SELECTION_SAVE used to save the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we will have to give the selection description&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the profile can be seen by going to SDP94 and clicking on selection profile button.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to calculate PF, go to transaction /sapapo/mv8v&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute and give following inputs&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will forecast the PF for the period 01.09.2007 to 21.02.2007 based on data from 21.04.2007 to 20.05.2007&lt;/P&gt;&lt;P&gt;Click on other settings&lt;/P&gt;&lt;P&gt;Here we will have to give the selection id that was saved in SDP94.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this process has to be automated and a program was created to do this.&lt;/P&gt;&lt;P&gt;A description of how the program is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id. &lt;/P&gt;&lt;P&gt;This is the excel sheet that is used to load data into /sapapo/mc8v to calculate the PF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon executing, the ids have been created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters passed to standard function module in order to save the selection id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate PF using the program, the following happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error screen is generated with the message &amp;#145;There are no plannable characteristic combinations.&amp;#146;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing the same parameters that were passed by the SDP94 transaction to the standard function module for saving the selection ids. This is shown in the below screenshots.&lt;/P&gt;&lt;P&gt;In spite of this we are getting the error.&lt;/P&gt;&lt;P&gt;When IV_POPUP_SEL_DESCRIPTION is passed, a popup will be displayed where the selection description will have to be entered. I am passing the same selection description here as is picked by the program.( H3HPCDEL00110096, H3HPCDEL00110063)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this, we need to go to SDP94 and after going to selection window, we need to save the selections as shown in the following screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the selection id one by one.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on save selection&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Click on save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for all ids created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we try to calculate the PF using the program, it is seen to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what needs to be done is that we need to avoid going to SDP94 in order to save the selections after the ids are created by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the Program works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se38&lt;/P&gt;&lt;P&gt;Program zrsnorms_ppf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give file path of excel sheet.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute.&lt;/P&gt;&lt;P&gt;This will create the selection id by taking &amp;#147; area&lt;EM&gt;basepack&lt;/EM&gt;RS&amp;#148; as name of id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new selection ids can be seen by going to /sapapo/sdp94 &lt;/P&gt;&lt;P&gt;And clicking on selection profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the selection has to be saved. For that, follow the following procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on selection window.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the ids.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select and then press &amp;#147;save&amp;#148;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for every id.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only then can proportional factor be calculated.&lt;/P&gt;&lt;P&gt;Now go to program and select Calc_ppf, with filepath to excel sheet as the sel_ids will be pulled from the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed,&lt;/P&gt;&lt;P&gt;BDC is called to input data to transaction /sapapo/mc8v to calculate ppf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to sdp94 and load the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on load data.&lt;/P&gt;&lt;P&gt;And make sure, data view is TDP_VIEW_PROP as shown&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPF will be shown for the period chosen in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to delete the selection ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the program and give file path of the excel sheet and execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection profiles will be deleted as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But PPF data will be stored in the database inspite of deleting the selection profiles. And ppf can be shown by selecting the basepack and the sales area.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click load data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 10:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-proportional-factor-calculation-program/m-p/2855799#M669397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T10:14:43Z</dc:date>
    </item>
  </channel>
</rss>

