<?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: user exit logic problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720859#M895729</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;Check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = '0001'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = sname "sales doc is given here&lt;/P&gt;&lt;P&gt;object = 'VBBK'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = tlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not tlines is initial.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tlines.&lt;/P&gt;&lt;P&gt;CASE sy-tabix.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;ztable-field1 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;ztable-field2 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;ztable-field3 = tlines-tdline.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ztable SET field1= ztable-field1&lt;/P&gt;&lt;P&gt;field2= ztable-field2&lt;/P&gt;&lt;P&gt;field3 = ztable-field3&lt;/P&gt;&lt;P&gt;WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2008 10:44:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-07T10:44:30Z</dc:date>
    <item>
      <title>user exit logic problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720857#M895727</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;This is regarding to the user exit problem IN VA01.&lt;/P&gt;&lt;P&gt;we are having a ztable with 3 filds. when ever a sales order is &lt;/P&gt;&lt;P&gt;created then the header text in the sales order text type acceptance number &lt;/P&gt;&lt;P&gt;should be populated into this 3 filds ie 3lines of header text into 3 filds &lt;/P&gt;&lt;P&gt;each line into each field. We have written a code in include MV45AFZZ.&lt;/P&gt;&lt;P&gt;our code is like this..&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = '0001'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = sname "sales doc is given here&lt;/P&gt;&lt;P&gt;object = 'VBBK'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = tlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tlines.&lt;/P&gt;&lt;P&gt;CASE sy-tabix.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;ztable-field1 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;ztable-field2 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;ztable-field3 = tlines-tdline.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ztable SET field1= ztable-field1&lt;/P&gt;&lt;P&gt;field2= ztable-field2&lt;/P&gt;&lt;P&gt;field3 = ztable-field3&lt;/P&gt;&lt;P&gt;WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is working fine when the user is giving the header text&lt;/P&gt;&lt;P&gt;when creating the order , suppose if he wont&lt;/P&gt;&lt;P&gt;give the header text it is giving the error message while &lt;/P&gt;&lt;P&gt;saving the order like "Text id 103039900.. language EN not found".&lt;/P&gt;&lt;P&gt;so please tell me how to handle this, ie when ever the&lt;/P&gt;&lt;P&gt;user gives the header text then only the &lt;/P&gt;&lt;P&gt;ztable should be populated if the user wont give the text&lt;/P&gt;&lt;P&gt;the sales order should be saved without giving this message , it means we need to&lt;/P&gt;&lt;P&gt;bypass the function module .&lt;/P&gt;&lt;P&gt;please give the answers.&lt;/P&gt;&lt;P&gt;Thank you so much for all the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720857#M895727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: user exit logic problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720858#M895728</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;just use &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;condition or check data&lt;/P&gt;&lt;P&gt;like if itlines[] is not initial.&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;with Regards&lt;/P&gt;&lt;P&gt;Rohan Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720858#M895728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: user exit logic problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720859#M895729</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;Check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = '0001'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = sname "sales doc is given here&lt;/P&gt;&lt;P&gt;object = 'VBBK'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = tlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not tlines is initial.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tlines.&lt;/P&gt;&lt;P&gt;CASE sy-tabix.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;ztable-field1 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;ztable-field2 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;ztable-field3 = tlines-tdline.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ztable SET field1= ztable-field1&lt;/P&gt;&lt;P&gt;field2= ztable-field2&lt;/P&gt;&lt;P&gt;field3 = ztable-field3&lt;/P&gt;&lt;P&gt;WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720859#M895729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: user exit logic problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720860#M895730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = '0001'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = sname "sales doc is given here&lt;/P&gt;&lt;P&gt;object = 'VBBK'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = tlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tlines.&lt;/P&gt;&lt;P&gt;CASE sy-tabix.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;ztable-field1 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;ztable-field2 = tlines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;ztable-field3 = tlines-tdline.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;if  tlines[] is not initial.&lt;/P&gt;&lt;P&gt;UPDATE ztable SET field1= ztable-field1&lt;/P&gt;&lt;P&gt;field2= ztable-field2&lt;/P&gt;&lt;P&gt;field3 = ztable-field3&lt;/P&gt;&lt;P&gt;WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720860#M895730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: user exit logic problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720861#M895731</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;While calling the function module READ_TEXT use the exceptions&lt;/P&gt;&lt;P&gt;(There are exceptions for the FM READ_TEXT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID	               Text ID invalid&lt;/P&gt;&lt;P&gt;LANGUAGE	Invalid language&lt;/P&gt;&lt;P&gt;NAME	                Invalid text name&lt;/P&gt;&lt;P&gt;NOT_FOUND	Text not found&lt;/P&gt;&lt;P&gt;OBJECT	                    Invalid text object&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK  Reference chain interrupted&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE   &lt;/P&gt;&lt;P&gt;                                   Archive handle invalid for access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check if the table TLINES is not initial before looping it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-logic-problem/m-p/3720861#M895731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:47:28Z</dc:date>
    </item>
  </channel>
</rss>

