<?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 Problem in BDC for cj02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418445#M1548993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv done recording in shdb fo  tcode cj02.&lt;/P&gt;&lt;P&gt;i hv written driver program for the same. when i run the program, no data is getting updated, though it goes through all the fields captured in recording.&lt;/P&gt;&lt;P&gt;it gives the following msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_TRANSACTION CJ02 Return code =     0  RECORD:          0&lt;/P&gt;&lt;P&gt;S Field PRPS-USR04 (1) input value is longer than screen field&lt;/P&gt;&lt;P&gt;S Field PRPS-USR06 (1) input value is longer than screen field&lt;/P&gt;&lt;P&gt;S Data not changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaspal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please do not use SMS speak.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Oct 28, 2010 11:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Oct 2010 08:22:29 GMT</pubDate>
    <dc:creator>former_member355168</dc:creator>
    <dc:date>2010-10-28T08:22:29Z</dc:date>
    <item>
      <title>Problem in BDC for cj02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418445#M1548993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv done recording in shdb fo  tcode cj02.&lt;/P&gt;&lt;P&gt;i hv written driver program for the same. when i run the program, no data is getting updated, though it goes through all the fields captured in recording.&lt;/P&gt;&lt;P&gt;it gives the following msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_TRANSACTION CJ02 Return code =     0  RECORD:          0&lt;/P&gt;&lt;P&gt;S Field PRPS-USR04 (1) input value is longer than screen field&lt;/P&gt;&lt;P&gt;S Field PRPS-USR06 (1) input value is longer than screen field&lt;/P&gt;&lt;P&gt;S Data not changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaspal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please do not use SMS speak.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Oct 28, 2010 11:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418445#M1548993</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2010-10-28T08:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BDC for cj02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418446#M1548994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got a message on numeric user fields of WBS, I suppose you used a MOVE to fill BDCDATA-FVAL field, so you got a 0000...0000000000001234.00 value, right justified with zero left padding (field is 132 character long...) where a 1234.00 is expected, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result you always pass a zero value, never changing the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can &lt;/P&gt;&lt;P&gt;- use a local temporary character type variable to reduce length of data (To get the length of the variable to use -&amp;gt; SE11 / PRPS / data elements / domains and get output length) &lt;/P&gt;&lt;P&gt;- Programmatically remove leading zeroes to FVAL.&lt;/P&gt;&lt;P&gt;- use a WRITE (with CURRENCY of UNIT when required) and not a MOVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 09:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418446#M1548994</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-10-28T09:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BDC for cj02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418447#M1548995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply Raymond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hv not used MOVE statement to fill BDCDATA-FVAL field.  I hv not make any changes in INCLUDE bdcrecx1 include file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u tell me, while recording, after entered all the data , when i choose save,  is this save will also be captured???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JAspal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 10:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418447#M1548995</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2010-10-28T10:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BDC for cj02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418448#M1548996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The form BDC_FIELD of bdcrecx1 perform an implicit conversion of data to a character field (using an [COMPUTE] BDCDATA-FVAL = received parameter) Map the data before calling this form to a field of  correct length. (There is not need for character fields, but you may require such pogrammaticaly mapping for any field with conversion, where external and internal format differ : amout, quantity, date, fields with special conversion-exit like material number, WBS element and the like, especially if your program read data from database table.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tips: usually i use my own bdc_field form replacing the compute with a write statement.&lt;/EM&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM bdc_field USING fnam fval.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  WRITE fval TO bdcdata-fval.
  APPEND bdcdata.
ENDFORM.
FORM bdc_field_qty USING fnam fval unit.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  WRITE fval UNIT unit TO bdcdata-fval.
  APPEND bdcdata.
ENDFORM.
FORM bdc_field_amt USING fnam fval curr.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  WRITE fval CURRENCY curr TO bdcdata-fval.
  APPEND bdcdata.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;EM&gt;Ref: [Conversion Rules for Elementary Data Types|http://help.sap.com/abapdocu_70/en/ABENCONVERSION_ELEMENTARY.htm]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you should have a value for OK_CODE field in the recording. in you generated program there should be something like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=SAVE'. " or  BUCH or any similar function code&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reports generated by SHDB are not always "final" versions of a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, try to put a breakpoint before CALL TRANSACTION and check bdcdata content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 11:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc-for-cj02/m-p/7418448#M1548996</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-10-28T11:25:33Z</dc:date>
    </item>
  </channel>
</rss>

