<?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: cdpos tabkey separation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601961#M1568448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare 1 variable of 10 character v_po&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than using offset and length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_po = v_tab+0(10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get the value of PO number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 09:40:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-27T09:40:24Z</dc:date>
    <item>
      <title>cdpos tabkey separation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601958#M1568445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In cdpos table ,field TABKEY consists of values which i need to separate it and put it into different column. For example , if the tabkey field value is XXXXXXXXXX00000SBM1, the first 10 digits is po number . how can i separate the po number(X) alone from this field and put it into a separate column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;Moderator Message: Basic Question.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on Dec 27, 2010 3:56 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 09:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601958#M1568445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T09:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: cdpos tabkey separation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601959#M1568446</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;First read the table keys into an internal table.&lt;/P&gt;&lt;P&gt;Move the part of table key (Subfields ex: ld_tkey+0(10)) into another internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 09:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601959#M1568446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: cdpos tabkey separation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601960#M1568447</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;what do you mean by "different columns" ?&lt;/P&gt;&lt;P&gt;You mean, after database selection to dispaly on screen or something like that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have to use offset.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select tabkey
int w_tabkey
from cdpos

move w_tabkey(10) to ...
move w_tabkey+10(4) to ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Morgan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 09:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601960#M1568447</guid>
      <dc:creator>former_member246786</dc:creator>
      <dc:date>2010-12-27T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: cdpos tabkey separation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601961#M1568448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare 1 variable of 10 character v_po&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than using offset and length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_po = v_tab+0(10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get the value of PO number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 09:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601961#M1568448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: cdpos tabkey separation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601962#M1568449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the CDPOS table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the tabkey is nothing but the key fields of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so try to create a structure and move the table key to the structure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
example :



tables :cdpos.
*key fields of vbpa table...
types : begin of ty_vbpa,
              mandt type mandt,
             vbeln   type vbeln,
             posnr type posnr,
          end of ty_vbpa.

data : wa_vbpa type ty_vbpa.

select single * for cdpos 
                        where object = &amp;lt;objectkey&amp;gt;
                                                  and TABNAME = 'vbpa'.
if sy-subrc = 0.
  move cdpos-TABKEY to wa_vbpa.
endif.


write wa_vbpa-vbeln .


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 09:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos-tabkey-separation/m-p/7601962#M1568449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T09:52:10Z</dc:date>
    </item>
  </channel>
</rss>

