<?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: LSMW with Coding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080496#M730585</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;You can see the editor in step: Maintain field mapping and conversion rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this step, you can enable the menu option: Extras-&amp;gt;Display Variant and all the check boxes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after you enable this, you can double click on Field Mapping screen to get ABAP editor &amp;amp; introduce the ABAP coding whereever you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Murugesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 04:06:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T04:06:58Z</dc:date>
    <item>
      <title>LSMW with Coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080493#M730582</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 want to do &amp;lt;b&amp;gt;LSMW with Coding&amp;lt;/b&amp;gt;, only with coding.....plz help....from which step, we can go to ABAP Editor...in LSMW....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Anil Kumar&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 03:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080493#M730582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T03:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW with Coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080494#M730583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LSM Workbench: Data Import Program&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Program:      /1CADMC/SAP_LSMW_READ_00000008&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date:         2006/03/02&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Time:       18:40:30&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User:          KARTHIK.P&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Project:       ZVRSDZ&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Subproject:    ZVRSD&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Object:        ZVRSD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;report /1CADMC/SAP_LSMW_READ_00000008&lt;/P&gt;&lt;P&gt;  message-id /sapdmc/lsmw_obj_070.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Additional data definitions and table declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;include:&lt;/P&gt;&lt;P&gt;  /sapdmc/sap_lsmw_read_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Source structure definitions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of LSMW_DEST,&lt;/P&gt;&lt;P&gt;    TABLENAME(030) type C,&lt;/P&gt;&lt;P&gt;    OBJTYPE(004) type C,&lt;/P&gt;&lt;P&gt;    OBJNAME(110) type C,&lt;/P&gt;&lt;P&gt;    VERSNO(005) type C,&lt;/P&gt;&lt;P&gt;    KORRNUM(020) type C,&lt;/P&gt;&lt;P&gt;    AUTHOR(012) type C,&lt;/P&gt;&lt;P&gt;    DATUM(010) type C,&lt;/P&gt;&lt;P&gt;    ZEIT(008) type C,&lt;/P&gt;&lt;P&gt;    LOEKZ(001) type C,&lt;/P&gt;&lt;P&gt;    ORIGIN(001) type C,&lt;/P&gt;&lt;P&gt;    VERSMODE(001) type C,&lt;/P&gt;&lt;P&gt;    LASTVERS(005) type N,&lt;/P&gt;&lt;P&gt;    FIRSTVER(005) type N,&lt;/P&gt;&lt;P&gt;    RELS(004) type C,&lt;/P&gt;&lt;P&gt;    MANDT(003) type C,&lt;/P&gt;&lt;P&gt;    KEYLEN(005) type C,&lt;/P&gt;&lt;P&gt;    TABLEN(005) type C,&lt;/P&gt;&lt;P&gt;    DEFVERSN(005) type C,&lt;/P&gt;&lt;P&gt;    FULL_VER(001) type C,&lt;/P&gt;&lt;P&gt;    ARCHIVED(001) type C,&lt;/P&gt;&lt;P&gt;  end of LSMW_DEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of TRAN_DEST,&lt;/P&gt;&lt;P&gt;    __record__(30).&lt;/P&gt;&lt;P&gt;        include structure LSMW_DEST.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  end of TRAN_DEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of str_DEST.&lt;/P&gt;&lt;P&gt;        include structure LSMW_DEST.&lt;/P&gt;&lt;P&gt;data:recnr_000001 type i.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  end of str_DEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  DEST like sorted table&lt;/P&gt;&lt;P&gt;      of str_DEST&lt;/P&gt;&lt;P&gt;      with non-unique key&lt;/P&gt;&lt;P&gt;                      recnr_000001&lt;/P&gt;&lt;P&gt;      with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table(s) for field names&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of top_DEST occurs 0,&lt;/P&gt;&lt;P&gt;    f000001(30),&lt;/P&gt;&lt;P&gt;    f000002(30),&lt;/P&gt;&lt;P&gt;    f000003(30),&lt;/P&gt;&lt;P&gt;    f000004(30),&lt;/P&gt;&lt;P&gt;    f000005(30),&lt;/P&gt;&lt;P&gt;    f000006(30),&lt;/P&gt;&lt;P&gt;    f000007(30),&lt;/P&gt;&lt;P&gt;    f000008(30),&lt;/P&gt;&lt;P&gt;    f000009(30),&lt;/P&gt;&lt;P&gt;    f000010(30),&lt;/P&gt;&lt;P&gt;    f000011(30),&lt;/P&gt;&lt;P&gt;    f000012(30),&lt;/P&gt;&lt;P&gt;    f000013(30),&lt;/P&gt;&lt;P&gt;    f000014(30),&lt;/P&gt;&lt;P&gt;    f000015(30),&lt;/P&gt;&lt;P&gt;    f000016(30),&lt;/P&gt;&lt;P&gt;    f000017(30),&lt;/P&gt;&lt;P&gt;    f000018(30),&lt;/P&gt;&lt;P&gt;    f000019(30),&lt;/P&gt;&lt;P&gt;    f000020(30),&lt;/P&gt;&lt;P&gt;  end of top_DEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of upl_0007 occurs 0,&lt;/P&gt;&lt;P&gt;    record(000266),&lt;/P&gt;&lt;P&gt;  end of upl_0007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of upl_bin occurs 0,&lt;/P&gt;&lt;P&gt;    record(72),&lt;/P&gt;&lt;P&gt;  end of upl_bin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table(s) for split at delimiter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  tab_spl(000110) occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Buffer of maximum length&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  g_max_buffer(000286).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select-option for wildcard value in file names&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen begin of block selopts3&lt;/P&gt;&lt;P&gt;                 with frame title text-003.&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;  so_wldcd for /sapdmc/lsofiw-wildcardvalue no-display.&lt;/P&gt;&lt;P&gt;selection-screen end of block selopts3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_project = 'ZVRSDZ         '.&lt;/P&gt;&lt;P&gt;  g_subproj = 'ZVRSD          '.&lt;/P&gt;&lt;P&gt;  g_object = 'ZVRSD          '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read object data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform read_object_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reset counters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform reset_counters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reset tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform reset_tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open output file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform open_output_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write header record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform write_header_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read content of files into internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform read_frontend_file using '0007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at DEST .&lt;/P&gt;&lt;P&gt;    add 1 to g_cnt_records_read.&lt;/P&gt;&lt;P&gt;    add 1 to g_cnt_transactions_read.&lt;/P&gt;&lt;P&gt;    check so_tcntr.&lt;/P&gt;&lt;P&gt;    add 1 to g_cnt_transactions_transferred.&lt;/P&gt;&lt;P&gt;    move-corresponding DEST&lt;/P&gt;&lt;P&gt;      to tran_DEST                          .&lt;/P&gt;&lt;P&gt;    tran_DEST-__record__ =&lt;/P&gt;&lt;P&gt;      'DEST'.&lt;/P&gt;&lt;P&gt;    assign tran_DEST to &amp;lt;g_buffer_char&amp;gt;&lt;/P&gt;&lt;P&gt;          casting type c.&lt;/P&gt;&lt;P&gt;    g_record_length = strlen( &amp;lt;g_buffer_char&amp;gt; ).&lt;/P&gt;&lt;P&gt;    g_hex_record_length = g_record_length.&lt;/P&gt;&lt;P&gt;    transfer g_hex_record_length to g_filename.&lt;/P&gt;&lt;P&gt;    if g_record_length &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      assign g_max_buffer(g_record_length) to &amp;lt;g_buffer&amp;gt;.&lt;/P&gt;&lt;P&gt;      &amp;lt;g_buffer&amp;gt; = &amp;lt;g_buffer_char&amp;gt;.&lt;/P&gt;&lt;P&gt;      transfer &amp;lt;g_buffer&amp;gt; to g_filename.&lt;/P&gt;&lt;P&gt;      perform update_statistics_used using 'DEST '.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    add 1 to g_cnt_records_transferred.&lt;/P&gt;&lt;P&gt;    perform indicate_progress.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Final message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform final_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close output file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  close dataset g_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form routines&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  include:&lt;/P&gt;&lt;P&gt;    /sapdmc/sap_lsmw_read_forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  check_user_select_options&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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_FLG_TRANSFER  text&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 check_user_select_options changing p_flg_transfer.&lt;/P&gt;&lt;P&gt;  p_flg_transfer = no.&lt;/P&gt;&lt;P&gt;  p_flg_transfer = yes.&lt;/P&gt;&lt;P&gt;endform.                    "check_user_select_options&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 04:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080494#M730583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T04:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW with Coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080495#M730584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can do dcoding in LSMW .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 5th step u can do coding&lt;/P&gt;&lt;P&gt;there is one button called RULE  double click on that button u can get the pup window in that there one options called ABAP-CODEselect thata button .once u select that button it will opens the ABAP editor intila screen .you can write the code accodring to your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward is usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 04:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080495#M730584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T04:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW with Coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080496#M730585</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;You can see the editor in step: Maintain field mapping and conversion rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this step, you can enable the menu option: Extras-&amp;gt;Display Variant and all the check boxes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after you enable this, you can double click on Field Mapping screen to get ABAP editor &amp;amp; introduce the ABAP coding whereever you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Murugesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 04:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-with-coding/m-p/3080496#M730585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T04:06:58Z</dc:date>
    </item>
  </channel>
</rss>

