<?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 Question Query codeing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812435#M1588155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a query where i select some fields for a batch input map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment it only works if i put the codeing for the batch input map in the section "END-OF-SELECTION (after List).&lt;/P&gt;&lt;P&gt;In this section i have collect the data for one production order (hard coded) and i do a call transaction for CO02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that i can fill the my internal table "i_bdcdata" (which i create during the qury runtime) at the query run time, but how can i give this table over to the call transaction function which execute batch input map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Bernhard&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 use more descriptive subject lines for your posts, as most people have questions regarding coding when posting here.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 24, 2011 11:53 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bernhard Schöberl on Mar 24, 2011 12:53 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I select with my Infoset several production orders numbers. Now i want to change in this production orders the conversion unit in the routing.&lt;/P&gt;&lt;P&gt;For this i create a extra field where i put some code for a batch input map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lt_BDCDATA TYPE TABLE OF bdcdata,
      ls_bdcdata LIKE LINE OF lt_bdcdata.

* first screen
ls_BDCDATA-Program = 'SAPLCOKO1'.
ls_BDCDATA-Dynpro = '0110'.
ls_BDCDATA-DYNBEGIN = 'X'.
APPEND ls_BDCDATA to ztest.
CLEAR ls_BDCDATA.
ls_bdcdata-fnam = 'BDC_CURSOR'.
ls_bdcdata-fval = 'CAUFVD-AUFNR'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_bdcdata-fnam = 'BDC_OKCODE'.
ls_bdcdata-fval = '/00'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-fnam = 'CAUFVD-AUFNR'.
ls_BDCDATA-fval = '100849337'.
ls_BDCDATA-fnam = 'FLG_OVIEW'.
ls_BDCDATA-fval = 'X'.
APPEND ls_BDCDATA to lt_bdcdata.
CLEAR ls_BDCDATA.
*second screen
ls_BDCDATA-Program = 'SAPLCOVG'.
ls_BDCDATA-Dynpro = '0100'.
ls_BDCDATA-DYNBEGIN = 'X'.
APPEND ls_BDCDATA to lt_bdcdata.
CLEAR ls_BDCDATA.
ls_BDCDATA-FNAM = 'BDC_CURSOR'.
ls_BDCDATA-FVAL = 'AFVGD-VORNR(01)'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-FNAM = 'BDC_OKCODE'.
ls_BDCDATA-FVAL = '=PICK'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-FNAM = 'BDC_SUBSCR'.
ls_BDCDATA-FVAL = 'SAPLCOVG                                0801ORD_HEADER'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-FNAM = 'BDC_SUBSCR'.
ls_BDCDATA-FVAL = 'SAPLCOVG                                0050BUTTONS'.
APPEND ls_BDCDATA to lt_bdcdata.
CLEAR ls_BDCDATA.
.
:
:
.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end i execute &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION 'CO02' USING lt_bdcdata MODE 'A' UPDATE 'A' MESSAGES INTO MESSTAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do this in the normal query field i get a short dump, because the system do a commit work after the first production order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i put the last code in the Infoset at the "END-Of_SELECTION" part and this works, but only if i put the whole code create batch input map and call transaction code into this section.But now i can only do it for one order not for several.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is. Create the batch input map within a normal addiditon query field and pull this information to the call transaction code. But i don't know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2011 10:48:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-24T10:48:16Z</dc:date>
    <item>
      <title>Question Query codeing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812435#M1588155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a query where i select some fields for a batch input map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment it only works if i put the codeing for the batch input map in the section "END-OF-SELECTION (after List).&lt;/P&gt;&lt;P&gt;In this section i have collect the data for one production order (hard coded) and i do a call transaction for CO02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that i can fill the my internal table "i_bdcdata" (which i create during the qury runtime) at the query run time, but how can i give this table over to the call transaction function which execute batch input map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Bernhard&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 use more descriptive subject lines for your posts, as most people have questions regarding coding when posting here.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 24, 2011 11:53 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bernhard Schöberl on Mar 24, 2011 12:53 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I select with my Infoset several production orders numbers. Now i want to change in this production orders the conversion unit in the routing.&lt;/P&gt;&lt;P&gt;For this i create a extra field where i put some code for a batch input map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lt_BDCDATA TYPE TABLE OF bdcdata,
      ls_bdcdata LIKE LINE OF lt_bdcdata.

* first screen
ls_BDCDATA-Program = 'SAPLCOKO1'.
ls_BDCDATA-Dynpro = '0110'.
ls_BDCDATA-DYNBEGIN = 'X'.
APPEND ls_BDCDATA to ztest.
CLEAR ls_BDCDATA.
ls_bdcdata-fnam = 'BDC_CURSOR'.
ls_bdcdata-fval = 'CAUFVD-AUFNR'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_bdcdata-fnam = 'BDC_OKCODE'.
ls_bdcdata-fval = '/00'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-fnam = 'CAUFVD-AUFNR'.
ls_BDCDATA-fval = '100849337'.
ls_BDCDATA-fnam = 'FLG_OVIEW'.
ls_BDCDATA-fval = 'X'.
APPEND ls_BDCDATA to lt_bdcdata.
CLEAR ls_BDCDATA.
*second screen
ls_BDCDATA-Program = 'SAPLCOVG'.
ls_BDCDATA-Dynpro = '0100'.
ls_BDCDATA-DYNBEGIN = 'X'.
APPEND ls_BDCDATA to lt_bdcdata.
CLEAR ls_BDCDATA.
ls_BDCDATA-FNAM = 'BDC_CURSOR'.
ls_BDCDATA-FVAL = 'AFVGD-VORNR(01)'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-FNAM = 'BDC_OKCODE'.
ls_BDCDATA-FVAL = '=PICK'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-FNAM = 'BDC_SUBSCR'.
ls_BDCDATA-FVAL = 'SAPLCOVG                                0801ORD_HEADER'.
APPEND ls_BDCDATA to lt_bdcdata.
ls_BDCDATA-FNAM = 'BDC_SUBSCR'.
ls_BDCDATA-FVAL = 'SAPLCOVG                                0050BUTTONS'.
APPEND ls_BDCDATA to lt_bdcdata.
CLEAR ls_BDCDATA.
.
:
:
.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end i execute &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION 'CO02' USING lt_bdcdata MODE 'A' UPDATE 'A' MESSAGES INTO MESSTAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do this in the normal query field i get a short dump, because the system do a commit work after the first production order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i put the last code in the Infoset at the "END-Of_SELECTION" part and this works, but only if i put the whole code create batch input map and call transaction code into this section.But now i can only do it for one order not for several.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is. Create the batch input map within a normal addiditon query field and pull this information to the call transaction code. But i don't know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 10:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812435#M1588155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-24T10:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Question Query codeing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812436#M1588156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noboady an idea if this is possible what i want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or any other idea to change the conversion units of prodcution order routing within a query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Bernhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 15:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812436#M1588156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-24T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question Query codeing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812437#M1588157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create for each line in the production order routing one string.&lt;/P&gt;&lt;P&gt;I put in this fields which i need for my batch input&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONCATENATE afko-aufnr ';' afvc-vornr ';' zzroutheaderu ';' zzoperationu INTO istring.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put all my strings ( i have one istring per line in the routing at one production order)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONCATENATE zupdate istring INTO zupdate SEPARATED BY '-'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Query code section "End of selection (after list) is can access this field and use the SPLIT command to &lt;/P&gt;&lt;P&gt;seperate my string into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i use a loop to fill my batch input table and use the command call transaction to run the CO02.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 13:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-query-codeing/m-p/7812437#M1588157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T13:52:11Z</dc:date>
    </item>
  </channel>
</rss>

