<?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 Code Logic for adding a segment to quotes in exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-logic-for-adding-a-segment-to-quotes-in-exit/m-p/5067746#M1177510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an user exit to add a segment to Quotes.Order05 idoc . I want to add a segment to E1EDP05 with values from table konv. for this i am using EXIT_SAPLVEDE_002 and the include ZXVDEU02. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: WA_E1EDP05 LIKE E1EDP05.

Types: begin of t_konv,
*include fileds from konv.
KSCHL LIKE KONV-KSCHL,
BETRG LIKE KONV-KWERT,
KRATE LIKE KONV-KBETR,
UPRBS LIKE KONV-KPEIN,
MEAUN LIKE KONV-KMEIN,
KOEIN LIKE KONV-WAERS,
END OF T_KONV.

DATA: it_KONV TYPE STANDARD TABLE OF t_KONV INITIAL SIZE 0,
      wa_KONV TYPE t_KONV.


IF INT_EDIDD-SEGNAM EQ 'E1EDP05'.
MOVE INT_EDIDD-SDATA TO WA_E1EDP05.
WA_E1EDP05-ALCKZ = '+'.

LOOP AT XVBAP.

SELECT kschl kwert kbetr kpein kmein waers FROM konv INTO CORRESPONDING FIELDS OF TABLE it_KONV
                                      WHERE KNUMV EQ XVBAK-KNUMV
                                     and kposn eq XVBAp-posnr and KSCHL eq 'VPRS'.
loop at it_KONV into WA_KONV .
WA_E1EDP05-KSCHL = WA_KONV-KSCHL.

WA_E1EDP05-BETRG = WA_konv-betrg.
WA_E1EDP05-KRATE = WA_konv-KRATE.
WA_E1EDP05-UPRBS = WA_konv-UPRBS.
WA_E1EDP05-MEAUN = WA_konv-MEAUN.
WA_E1EDP05-KOEIN = WA_konv-KOEIN.
MOVE WA_E1EDP05 TO INT_EDIDD-SDATA.
append INT_EDIDD.

endloop.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&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;But the out output is not what i desired. It has too many E1EDP05 sements with + sign and most of the fileds in the segment are 0s. Is there something wrong with my logic or code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i wanted to debug this user exit i am not able hit this include even if i set a break point in it. any advice on how to debug this code please. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appriciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jan 27, 2009 2:26 PM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code tags added and subject title made slightly more meaningfull&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2009 12:55:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-27T12:55:37Z</dc:date>
    <item>
      <title>Code Logic for adding a segment to quotes in exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-logic-for-adding-a-segment-to-quotes-in-exit/m-p/5067746#M1177510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an user exit to add a segment to Quotes.Order05 idoc . I want to add a segment to E1EDP05 with values from table konv. for this i am using EXIT_SAPLVEDE_002 and the include ZXVDEU02. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: WA_E1EDP05 LIKE E1EDP05.

Types: begin of t_konv,
*include fileds from konv.
KSCHL LIKE KONV-KSCHL,
BETRG LIKE KONV-KWERT,
KRATE LIKE KONV-KBETR,
UPRBS LIKE KONV-KPEIN,
MEAUN LIKE KONV-KMEIN,
KOEIN LIKE KONV-WAERS,
END OF T_KONV.

DATA: it_KONV TYPE STANDARD TABLE OF t_KONV INITIAL SIZE 0,
      wa_KONV TYPE t_KONV.


IF INT_EDIDD-SEGNAM EQ 'E1EDP05'.
MOVE INT_EDIDD-SDATA TO WA_E1EDP05.
WA_E1EDP05-ALCKZ = '+'.

LOOP AT XVBAP.

SELECT kschl kwert kbetr kpein kmein waers FROM konv INTO CORRESPONDING FIELDS OF TABLE it_KONV
                                      WHERE KNUMV EQ XVBAK-KNUMV
                                     and kposn eq XVBAp-posnr and KSCHL eq 'VPRS'.
loop at it_KONV into WA_KONV .
WA_E1EDP05-KSCHL = WA_KONV-KSCHL.

WA_E1EDP05-BETRG = WA_konv-betrg.
WA_E1EDP05-KRATE = WA_konv-KRATE.
WA_E1EDP05-UPRBS = WA_konv-UPRBS.
WA_E1EDP05-MEAUN = WA_konv-MEAUN.
WA_E1EDP05-KOEIN = WA_konv-KOEIN.
MOVE WA_E1EDP05 TO INT_EDIDD-SDATA.
append INT_EDIDD.

endloop.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&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;But the out output is not what i desired. It has too many E1EDP05 sements with + sign and most of the fileds in the segment are 0s. Is there something wrong with my logic or code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i wanted to debug this user exit i am not able hit this include even if i set a break point in it. any advice on how to debug this code please. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appriciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jan 27, 2009 2:26 PM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code tags added and subject title made slightly more meaningfull&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 12:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-logic-for-adding-a-segment-to-quotes-in-exit/m-p/5067746#M1177510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Code Logic for adding a segment to quotes in exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-logic-for-adding-a-segment-to-quotes-in-exit/m-p/5067747#M1177511</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;The main program SAPLXVDE of exit EXIT_SAPLVEDE_002 is set like System program so it needs to active the System Debbuging to debug that kind of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after activing debugging go to Setting-&amp;gt;System Debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 13:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-logic-for-adding-a-segment-to-quotes-in-exit/m-p/5067747#M1177511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T13:03:51Z</dc:date>
    </item>
  </channel>
</rss>

