<?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: Short dump when calling kpp_flex_upl in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072030#M1613686</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;Thanks for your response. Please find the below code for submitting the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report     = 'KPP_FLEX_UPL'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selection_table = i_selections&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found       = 1&lt;/P&gt;&lt;P&gt;      no_report       = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assign values to the selections from the other program&lt;/P&gt;&lt;P&gt;  LOOP AT i_selections.&lt;/P&gt;&lt;P&gt;    CASE i_selections-selname.&lt;/P&gt;&lt;P&gt;      WHEN 'P_F_D_D'.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;        i_selections-low = 'X'.&lt;/P&gt;&lt;P&gt;      WHEN 'FILENAME'.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;        i_selections-low = p_save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN 'FILE_ID'.&lt;/P&gt;&lt;P&gt;        i_selections-low = file_id.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN 'P_EX1'.&lt;/P&gt;&lt;P&gt;        i_selections-low = 'X'.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        CLEAR: i_selections-low, i_selections-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    MODIFY i_selections.&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;*export the filename&lt;/P&gt;&lt;P&gt;  EXPORT p_save TO MEMORY ID 'ZFI_CCA_PLAN_DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*submit program&lt;/P&gt;&lt;P&gt;  SUBMIT kpp_flex_upl&lt;/P&gt;&lt;P&gt;   WITH SELECTION-TABLE i_selections[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;NT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 09:58:48 GMT</pubDate>
    <dc:creator>former_member321557</dc:creator>
    <dc:date>2011-07-15T09:58:48Z</dc:date>
    <item>
      <title>Short dump when calling kpp_flex_upl</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072028#M1613684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with one short dump which I'm identify where problem is coming. Here is my issue. We are trying to budjet upload through bespoke txn ZKP06 but internally we are calling standard program kpp_flex_upl by submit with selection screen table to upload excel. Its giving following error "An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was&lt;/P&gt;&lt;P&gt; not caught in&lt;/P&gt;&lt;P&gt;procedure "IMPORT_SELTAB_FROM_MEM" "(FORM)", nor was it propagated by a RAISING&lt;/P&gt;&lt;P&gt; clause.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;When importing the object "%_SELTAB", the component 5 in the dataset&lt;/P&gt;&lt;P&gt;had a different length from the corresponding component of the&lt;/P&gt;&lt;P&gt;target object in the program "RSDBRUNT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The length is 360 in the dataset, but 90 in the program RSDBRUNT" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But When I'm running program kpp_flex_upl seperately its woking fine, not sure where the issue is. Even I didn't found any Note or any help. If someone come across same issue, it would be great if could you please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 09:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072028#M1613684</guid>
      <dc:creator>former_member321557</dc:creator>
      <dc:date>2011-07-15T09:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump when calling kpp_flex_upl</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072029#M1613685</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;Go to transaction code ZKP06 then check systum-&amp;gt;status on the menubar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the pop up you will able to see the customized program used, I think you are calling this standred program from your customized program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While you are calling the program using submit and return , you might be passing some parameter to the program for file path or some other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the length of standred parameters in the standred program and length that you have used for variable in the customized program, I think there is a mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible You can also post your customized code, which can help to ractify the exact issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 09:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072029#M1613685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-15T09:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump when calling kpp_flex_upl</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072030#M1613686</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;Thanks for your response. Please find the below code for submitting the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report     = 'KPP_FLEX_UPL'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selection_table = i_selections&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found       = 1&lt;/P&gt;&lt;P&gt;      no_report       = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assign values to the selections from the other program&lt;/P&gt;&lt;P&gt;  LOOP AT i_selections.&lt;/P&gt;&lt;P&gt;    CASE i_selections-selname.&lt;/P&gt;&lt;P&gt;      WHEN 'P_F_D_D'.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;        i_selections-low = 'X'.&lt;/P&gt;&lt;P&gt;      WHEN 'FILENAME'.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;        i_selections-low = p_save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN 'FILE_ID'.&lt;/P&gt;&lt;P&gt;        i_selections-low = file_id.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN 'P_EX1'.&lt;/P&gt;&lt;P&gt;        i_selections-low = 'X'.&lt;/P&gt;&lt;P&gt;        i_selections-sign = 'I'.&lt;/P&gt;&lt;P&gt;        i_selections-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        CLEAR: i_selections-low, i_selections-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    MODIFY i_selections.&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;*export the filename&lt;/P&gt;&lt;P&gt;  EXPORT p_save TO MEMORY ID 'ZFI_CCA_PLAN_DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*submit program&lt;/P&gt;&lt;P&gt;  SUBMIT kpp_flex_upl&lt;/P&gt;&lt;P&gt;   WITH SELECTION-TABLE i_selections[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;NT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 09:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072030#M1613686</guid>
      <dc:creator>former_member321557</dc:creator>
      <dc:date>2011-07-15T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump when calling kpp_flex_upl</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072031#M1613687</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;Where is the data declaration part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways I have declared the variables as per the standred program's requirement, check out the code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check data type of &lt;STRONG&gt;file_id&lt;/STRONG&gt; and &lt;STRONG&gt;p_save&lt;/STRONG&gt;, same has to be as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : i_selections like RSPARAMS OCCURS 0 WITH HEADER LINE,
      file_id TYPE FILE_ID.

PARAMETERS : p_save TYPE CFFILENAME.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'KPP_FLEX_UPL'
TABLES
selection_table = i_selections
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.

*Assign values to the selections from the other program
LOOP AT i_selections.
CASE i_selections-selname.
WHEN 'P_F_D_D'.
i_selections-sign = 'I'.
i_selections-option = 'EQ'.
i_selections-low = 'X'.
WHEN 'FILENAME'.
i_selections-sign = 'I'.
i_selections-option = 'EQ'.
i_selections-low = p_save.

WHEN 'FILE_ID'.
i_selections-low = file_id.
i_selections-sign = 'I'.
i_selections-option = 'EQ'.

WHEN 'P_EX1'.
i_selections-low = 'X'.
i_selections-sign = 'I'.
i_selections-option = 'EQ'.

WHEN OTHERS.
CLEAR: i_selections-low, i_selections-high.

ENDCASE.
MODIFY i_selections.

ENDLOOP.

*export the filename
EXPORT p_save TO MEMORY ID 'ZFI_CCA_PLAN_DATA'.


*submit program
SUBMIT kpp_flex_upl
WITH SELECTION-TABLE i_selections[].

AT SELECTION-SCREEN on VALUE-REQUEST FOR p_save.
DATA: L_HELP.
  DATA: REPID LIKE  D020S-PROG,
        DYNNR LIKE SY-DYNNR.
  DATA: DYNPREAD LIKE DYNPREAD OCCURS 50 WITH HEADER LINE.
  REPID = SY-REPID.
  DYNNR = SY-DYNNR.
  REFRESH DYNPREAD.
  DYNPREAD-FIELDNAME  = 'P_SAVE'.
  DYNPREAD-STEPL      = '0'.
  APPEND DYNPREAD.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME               = REPID
            DYNUMB               = '1000'
       TABLES
            DYNPFIELDS           = DYNPREAD.
*  l_maske = ',*.*,'.
  L_HELP = p_save+1(1).
  IF L_HELP = ':'.
*    l_def_path = l_path.
  ENDIF.
  LOOP AT DYNPREAD. ENDLOOP.
  p_save = DYNPREAD-FIELDVALUE.
*  write filename to l_maske+5.
*  condense l_maske no-gaps.
  CLEAR p_save.
  CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            DEF_FILENAME     = p_save
            DEF_PATH         = '\'
            MASK             = ',*.*,*.csv;*.txt.'
            MODE             = 'O'
            TITLE            = 'File path'
*                               'Dateiauswahl'(flw)
       IMPORTING
            FILENAME         = p_save
       EXCEPTIONS
            INV_WINSYS       = 01
            NO_BATCH         = 02
            SELECTION_CANCEL = 03
            SELECTION_ERROR  = 04.
  IF SY-SUBRC &amp;lt;&amp;gt; 0. ENDIF. " ok&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 10:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-calling-kpp-flex-upl/m-p/8072031#M1613687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-15T10:13:52Z</dc:date>
    </item>
  </channel>
</rss>

