<?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: Dump problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392432#M190574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the variables &lt;/P&gt;&lt;P&gt;DATA : lv_ctrl_area LIKE zgfld-lowval.&lt;/P&gt;&lt;P&gt;DATA : lv_progrp LIKE grpdynp-name_coall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the same data elements as what is being done in the BAPI Parameters. that should resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't look at the reason in the dump and post the same here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers and close the thread if the issue is resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2006 11:38:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-29T11:38:52Z</dc:date>
    <item>
      <title>Dump problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392431#M190573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have got dump while executing BAPI&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;May be with the lv_ctrl_area.&lt;/P&gt;&lt;P&gt;How can i resolve the problem.&lt;/P&gt;&lt;P&gt;Is it because of wa_bapiret2 ?&lt;/P&gt;&lt;P&gt;Please  help me out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_profit_center .  &lt;/P&gt;&lt;P&gt;  DATA : lv_ctrl_area  LIKE zgfld-lowval.&lt;/P&gt;&lt;P&gt;  DATA : lv_progrp LIKE grpdynp-name_coall. &lt;/P&gt;&lt;P&gt;  DATA : BEGIN OF gt_hier_nodes OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE bapiset_hier.&lt;/P&gt;&lt;P&gt;  DATA : END OF gt_hier_nodes.&lt;/P&gt;&lt;P&gt;  DATA : BEGIN OF gt_hier_values OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE bapi1116_values.&lt;/P&gt;&lt;P&gt;  DATA : END OF gt_hier_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : wa_bapiret2 TYPE  bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lowval&lt;/P&gt;&lt;P&gt;                FROM  zgfld&lt;/P&gt;&lt;P&gt;                INTO  lv_ctrl_area&lt;/P&gt;&lt;P&gt;                WHERE category = 'KOKRS'&lt;/P&gt;&lt;P&gt;                AND   fieldname = 'KOKRS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_progrp = p_progrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_PROFITCENTERGRP_GETDETAIL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      controllingarea = lv_ctrl_area&lt;/P&gt;&lt;P&gt;      groupname       = lv_progrp&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return          = wa_bapiret2&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      hierarchynodes  = gt_hier_nodes&lt;/P&gt;&lt;P&gt;      hierarchyvalues = gt_hier_values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 11:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392431#M190573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T11:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dump problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392432#M190574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the variables &lt;/P&gt;&lt;P&gt;DATA : lv_ctrl_area LIKE zgfld-lowval.&lt;/P&gt;&lt;P&gt;DATA : lv_progrp LIKE grpdynp-name_coall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the same data elements as what is being done in the BAPI Parameters. that should resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't look at the reason in the dump and post the same here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers and close the thread if the issue is resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 11:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392432#M190574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T11:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dump problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392433#M190575</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;&lt;/P&gt;&lt;P&gt;Declare Internal tables Like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : lv_ctrl_area   LIKE BAPICO_GROUP-CO_AREA.  " or KOKRS
DATA : lv_progrp      LIKE BAPICO_GROUP-GROUPNAME. " or BAPISET_GROUPNAME
DATA : gt_hier_nodes  type table of  bapiset_hier.
DATA : gt_hier_values type table of bapi1116_values.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it solves ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 12:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392433#M190575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T12:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dump problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392434#M190576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel the Dump is due to the error in the internal table declaration. consider this code(Data Declaration Part).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  test.

DATA : salesdocument	  TYPE	bapivbeln-vbeln.

DATA : it_quotation_header_in TYPE bapisdhd1 OCCURS 0    WITH HEADER LINE.

DATA : it_quotation_header_inx TYPE bapisdhd1x OCCURS 0   WITH HEADER LINE.


DATA : reit_text1 TYPE bapiret2 OCCURS 0    WITH HEADER LINE.
DATA : reit_text2 TYPE bapiret2 OCCURS 0    WITH HEADER LINE.


DATA : it_quotation_items_in TYPE bapisditm OCCURS 0    WITH HEADER LINE.
DATA : it_quotation_items_inx TYPE bapisditmx OCCURS 0    WITH HEADER LINE.


DATA : it_quotation_partners TYPE bapiparnr OCCURS 0    WITH HEADER LINE.

DATA : it_quotation_schedules_in     TYPE   bapischdl OCCURS 0    WITH HEADER LINE.

DATA : it_quotation_schedules_inx    TYPE  bapischdlx OCCURS 0    WITH HEADER LINE.



CONSTANTS c_x(1) TYPE c VALUE 'X'.

*QUOTATION_HEADER_IN
it_quotation_header_in-doc_type    =  'ZQT'.
it_quotation_header_in-sales_org   =  '1000'.
it_quotation_header_in-distr_chan  =  '01' .
it_quotation_header_in-division    =  '01'.
APPEND  it_quotation_header_in.

*quotation_header_inx
it_quotation_header_inx-updateflag   =   c_x.
it_quotation_header_inx-doc_type     =   c_x.
it_quotation_header_inx-sales_org    =   c_x.
it_quotation_header_inx-distr_chan   =   c_x.
it_quotation_header_inx-division     =   c_x.
APPEND it_quotation_header_inx.

*quotation_items_in
it_quotation_items_in-itm_number  = '000010'.
it_quotation_items_in-material    = '50000555555162861'.
APPEND  it_quotation_items_in.

*quotation_items_inx
it_quotation_items_inx-itm_number = '000000'.
it_quotation_items_inx-updateflag = c_x.
it_quotation_items_inx-material   = c_x.
APPEND it_quotation_items_inx.

*quotation_partners
it_quotation_partners-partn_role  =  'SP'.
it_quotation_partners-partn_numb  =  '005455599'.
it_quotation_partners-itm_number  =  '000000'.

APPEND   it_quotation_partners.
CLEAR   it_quotation_partners.

it_quotation_partners-partn_role  =  'SH'.
it_quotation_partners-partn_numb  =  '000034548'.
it_quotation_partners-itm_number  =  '000000'.

APPEND  it_quotation_partners.

*QUOTATION_SCHEDULES_IN
it_quotation_schedules_in-itm_number =  '000010'.
it_quotation_schedules_in-req_qty    =  '10.000'.

APPEND it_quotation_schedules_in.


*QUOTATION_SCHEDULES_INX
it_quotation_schedules_inx-itm_number  = '000010'.
it_quotation_schedules_inx-updateflag  =  c_x.
it_quotation_schedules_inx-req_qty     =  c_x.
APPEND it_quotation_schedules_inx.


CALL FUNCTION 'BAPI_QUOTATION_CREATEFROMDATA2'
  EXPORTING
    quotation_header_in     = it_quotation_header_in
    quotation_header_inx    = it_quotation_header_inx
    convert                 = c_x
  IMPORTING
    salesdocument           = salesdocument
  TABLES
    return                  = reit_text1
    quotation_items_in      = it_quotation_items_in
    quotation_items_inx     = it_quotation_items_inx
    quotation_partners      = it_quotation_partners
    quotation_schedules_in  = it_quotation_schedules_in
    quotation_schedules_inx = it_quotation_schedules_inx.


IF sy-subrc = 0 AND NOT salesdocument IS INITIAL.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = reit_text2.

ENDIF.


LOOP AT  reit_text1.
  WRITE : /  reit_text1-type,
             reit_text1-id,
             reit_text1-number,
             reit_text1-message.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 12:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392434#M190576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T12:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dump problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392435#M190577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Sam Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: gsetc.&lt;/P&gt;&lt;P&gt;CONSTANTS:  g_class TYPE setclass VALUE gsetc_profitcenter_setclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_group  TYPE pcgrp MEMORY ID pcg OBLIGATORY,&lt;/P&gt;&lt;P&gt;            p_kokrs  TYPE kokrs NO-DISPLAY,&lt;/P&gt;&lt;P&gt;            receiver LIKE tbdlst-logsys NO-DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Include for Selection screen events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INCLUDE gs_dxtest_include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM main USING p_group p_kokrs receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&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; FORM main&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; Create an IDOC from a cost center group&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_SETID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  P_RECEIVER&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 main USING p_group    TYPE ksgru&lt;/P&gt;&lt;P&gt;                p_kokrs    TYPE kokrs&lt;/P&gt;&lt;P&gt;                p_receiver TYPE logsys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lt_hier      TYPE STANDARD TABLE OF bapiset_hier,&lt;/P&gt;&lt;P&gt;        lt_values    TYPE STANDARD TABLE OF bapi1116_values,&lt;/P&gt;&lt;P&gt;        lt_receivers TYPE STANDARD TABLE OF bdi_logsys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_PROFITCENTERGRP_GETDETAIL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      controllingarea = p_kokrs&lt;/P&gt;&lt;P&gt;      groupname       = p_group&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      hierarchynodes  = lt_hier&lt;/P&gt;&lt;P&gt;      hierarchyvalues = lt_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND p_receiver TO lt_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ALE_PROFITCENTERGRP_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      controllingareaimp = p_kokrs&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      hierarchynodes     = lt_hier&lt;/P&gt;&lt;P&gt;      hierarchyvalues    = lt_values&lt;/P&gt;&lt;P&gt;      receivers          = lt_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MESSAGE s840(gs) WITH p_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "main&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 12:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-problem/m-p/1392435#M190577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T12:44:55Z</dc:date>
    </item>
  </channel>
</rss>

