<?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: Condition upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161925#M120693</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;It's mainly in &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM vakey1_fuellen USING kvewe   LIKE bkond1-kvewe
                          kotabnr LIKE bkond1-kotabnr
                          vakey   LIKE bkond2-vakey
                    CHANGING vakey1 LIKE bkond2-vakey.
  DATA: len LIKE sy-fdpos,
        len1 LIKE sy-fdpos,
        kvewe_temp   LIKE t681-kvewe,
        kotabnr_temp LIKE t681-kotabnr.
  CHECK: ds_check EQ space.

  CLEAR: vakey1, len.

  kvewe_temp   = kvewe.
  kotabnr_temp = kotabnr.

  PERFORM set_access_program(sapmv130)
               USING kvewe_temp kotabnr_temp progr.
  CLEAR komg.

* ----- Die Felder aus dem variablen Schlüssel werden in den ---------
* -----         Kommunikationsblock transportiert -------------------
  PERFORM fill_komg_from_vakey IN PROGRAM (progr)
                                 USING komg vakey.

  LOOP AT x_t681e WHERE fsetyp NE 'B'.
* -------  Vakey-Wert in entsprechendes Komg-Feld
    ASSIGN x_t681e-sefeld TO &amp;lt;a&amp;gt;.
    MOVE &amp;lt;a&amp;gt;  TO feld-sefeld.
    ASSIGN (feld) TO &amp;lt;a&amp;gt;.

    vakey1+len = &amp;lt;a&amp;gt;.
    DESCRIBE FIELD &amp;lt;a&amp;gt; LENGTH len1 IN CHARACTER MODE.
    len = len + len1.
  ENDLOOP.

ENDFORM.                               " VAKEY1_FUELLEN
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Roughly: there is a structure like your A-Table (only the relevant key fields). The VAKEY of input is moved into this structure. This makes implicit the split into the correct fields (e.g. sales org, distr. channel, article...). Now a move-corresponding to KOMG is possible (or done step by step with field-symbol).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2006 13:44:54 GMT</pubDate>
    <dc:creator>christian_wohlfahrt</dc:creator>
    <dc:date>2006-02-15T13:44:54Z</dc:date>
    <item>
      <title>Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161921#M120689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i am  trying to  upload the condtion for pricing,&lt;/P&gt;&lt;P&gt;the thing  is  that ,for particular  condition i have customised key combination,  the fiels which are  req for key combination are in komg,but before loding  the record,i have to pass fields of key combination also,but these fiels are not in standard structure for  condtion upload,bkond1,bkond2,i need to appendthe komg structure,but the will the standard program RV14BTCI which upload  the records can upload the komg fiedls  also, i am notgetting  can u please help me.&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;deepak sodhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 10:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161921#M120689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-15T10:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161922#M120690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure, how much of necessary steps you already did. But it's easy to check: create a condition with VK11 (sales) or MEK1 (purchasing). If this works, RV14BTCI should work, too. &lt;/P&gt;&lt;P&gt;In LSMW you will fill a VARKEY field, the structure definition comes from the condition table Axxx -&amp;gt; fields should be known with table creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 10:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161922#M120690</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-02-15T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161923#M120691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;you can do it for KOMG fields as well.It will work for you.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karun M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 11:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161923#M120691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-15T11:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161924#M120692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is that I have gone through the standard upload  program RV14BTCI but I had not find any where upload of fields of KOMG. I want  to know that ,if I append KOMG struct alongwith standard structure,  but how the fields of komg  will  uploaded. Please tell mein deep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 13:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161924#M120692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-15T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161925#M120693</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;It's mainly in &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM vakey1_fuellen USING kvewe   LIKE bkond1-kvewe
                          kotabnr LIKE bkond1-kotabnr
                          vakey   LIKE bkond2-vakey
                    CHANGING vakey1 LIKE bkond2-vakey.
  DATA: len LIKE sy-fdpos,
        len1 LIKE sy-fdpos,
        kvewe_temp   LIKE t681-kvewe,
        kotabnr_temp LIKE t681-kotabnr.
  CHECK: ds_check EQ space.

  CLEAR: vakey1, len.

  kvewe_temp   = kvewe.
  kotabnr_temp = kotabnr.

  PERFORM set_access_program(sapmv130)
               USING kvewe_temp kotabnr_temp progr.
  CLEAR komg.

* ----- Die Felder aus dem variablen Schlüssel werden in den ---------
* -----         Kommunikationsblock transportiert -------------------
  PERFORM fill_komg_from_vakey IN PROGRAM (progr)
                                 USING komg vakey.

  LOOP AT x_t681e WHERE fsetyp NE 'B'.
* -------  Vakey-Wert in entsprechendes Komg-Feld
    ASSIGN x_t681e-sefeld TO &amp;lt;a&amp;gt;.
    MOVE &amp;lt;a&amp;gt;  TO feld-sefeld.
    ASSIGN (feld) TO &amp;lt;a&amp;gt;.

    vakey1+len = &amp;lt;a&amp;gt;.
    DESCRIBE FIELD &amp;lt;a&amp;gt; LENGTH len1 IN CHARACTER MODE.
    len = len + len1.
  ENDLOOP.

ENDFORM.                               " VAKEY1_FUELLEN
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Roughly: there is a structure like your A-Table (only the relevant key fields). The VAKEY of input is moved into this structure. This makes implicit the split into the correct fields (e.g. sales org, distr. channel, article...). Now a move-corresponding to KOMG is possible (or done step by step with field-symbol).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 13:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161925#M120693</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-02-15T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161926#M120694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I have condition record numbers and in it it has tables created. Each table has selection fields defined it. so when i try to retrive the value of this variable key, &lt;/P&gt;&lt;P&gt;it gets it from the table KONH. the field i get is VAKEY. This key is all clubbed, where they have to be seperated by a space according to the key combination. I tried to get any function module or tables which provides this varable key in &lt;/P&gt;&lt;P&gt;the required format but i failed. Can any one please help me in handling this VAKEY. I just need to breakk this VAKEY based on the key that is defined on its Condition table(KOTABNR) number. &lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 04:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161926#M120694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T04:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161927#M120695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's easy to do yourself, let's take A073 as example. Vakey contains fields between KSCHL and DATBI (excluding these two).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of key_struc,
        vkorg like a073-vkorg,
        vtweg like a073-vtweg,
        matnr like a073-matnr,
        vrkme like a073-vrkme,
      end of key_struc,
      vakey like konh-vakey.
move vakey to key_struc.  "Split vakey into fields
*...
key_struc-vkorg = '1000'.
key_struc-vtweg = '10'.
key_struc-matnr = '000000000000000191'.
key_struc-vrkme = 'ST'.
move key_struc to vakey.  "Fill the vakey&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are also function modules to do this work, but they are much more complex to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 07:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161927#M120695</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-02-16T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Condition upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161928#M120696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;whhile pricing upload when i am trying to  assign my source sacle structure to target scale structure BKOND3,it says that BKOND3 can only be assigned ond  source structure that  is directly related to source structure and  while data conversion it block me,say realatioship is invalid.&lt;/P&gt;&lt;P&gt;can plese any body  help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 12:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-upload/m-p/1161928#M120696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T12:35:07Z</dc:date>
    </item>
  </channel>
</rss>

