<?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: GET PARAMETER  ID? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186980#M465852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on this prog. i.e. not yet executed to know, weather the MATNR(actually, not MATNR, here its Materail Document #) is storing into mblnr_123 with CALL TSTC? or not (u asked me9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will let u know, after executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThaQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2007 18:06:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-20T18:06:45Z</dc:date>
    <item>
      <title>GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186975#M465847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv written the code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA mblnr_123 like mkpf-mblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID MBN FIELD mblnr_123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I did not used the SET PARAMETER ID MBN, Is this the reason behing error throwinh?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: ''The MBN is unknown. Neither in tables nor defined with DATA statemnst''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I did not used the SET PARAMETER ID MBN, Is this the reason behing error throwinh?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I hv to do to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186975#M465847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T17:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186976#M465848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to get rid of the errr, you would need to create MBN in table TPARA me thinks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. thru table maintenance SM30 for the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Aditya Laud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186976#M465848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186977#M465849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to give the pid in quotes.. ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'MBN' FIELD mblnr_123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; yes, you will have to SET it, but the error you got is a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186977#M465849</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-04-20T17:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186978#M465850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ThanQ Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MB1B' USING BDCDATA MODE 'N' UPDATE 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the mat. doc. is creating, so i wanna to catch the created MBLNR in to my field mblnr_123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Where I hv to write,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'MBN' FIELD mblnr_123?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThaNQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186978#M465850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T17:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186979#M465851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the syntax is correct but the field mblnr_123 should have the MBLNR value. Does it? I don't think the statement CALL TRANSACTION 'MB1B' USING BDCDATA MODE 'N' UPDATE 'S' will put it in the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field name changed to MBLNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186979#M465851</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-04-20T17:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186980#M465852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on this prog. i.e. not yet executed to know, weather the MATNR(actually, not MATNR, here its Materail Document #) is storing into mblnr_123 with CALL TSTC? or not (u asked me9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will let u know, after executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThaQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 18:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186980#M465852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186981#M465853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sridhar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't matter whether you use set parameter. but you need to write parameter id in single quotes. like below mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'MBN' FIELD mblnr_123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward helpful answers&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 18:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186981#M465853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T18:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER  ID?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186982#M465854</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;User the syntax like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: CTUMODE LIKE CTU_PARAMS-DISMODE VALUE 'N'.
  "A: show all dynpros
  "E: show dynpro on error only
  "N: do not display dynpro

  DATA: CUPDATE LIKE CTU_PARAMS-UPDMODE VALUE 'S'.
  "S: synchronously
  "A: asynchronously
  "L: local

  DATA:   bdcdata   LIKE bdcdata    OCCURS 0    WITH HEADER LINE,
          messtab   LIKE bdcmsgcoll OCCURS 0    WITH HEADER LINE.

  REFRESH MESSTAB.

  CALL TRANSACTION TCODE USING BDCDATA
                   MODE   CTUMODE
                   UPDATE CUPDATE
                   MESSAGES INTO MESSTAB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use MESSTAB, any messages that occur during CALL TRANSACTIONUSING ... are collected in this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a material document ( or any other document using any transaction ) using transaction MB1B, the very last message you get is something like "Document XXXXXXXX is created". Here XXXXXXXX is material document number. When you use CALL TRANSACTION with MESSTAB, the message with material document number will be appneded to this table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need to do is, create a material document using transaction MB1B in online mode. When the document is created and you get the message "Document XXXXXXX is created", double-click the message and note down the message-id and message number. ( we do not use material docuemnt, other i would given you the message-id and number. The message-id might be M7 but i am not sure ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now program returns after CALL TRANSACTION..., once you determine that the call transaction was successful, loop at message table. Loop at lessage table for the message-id(MSGID) and message no(MSGNR).  One of the variable (MSGV1/2/3/4) should hold this material doc #.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now take this material doc #, move it to field mblnr_123  and write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PARAMETER ID 'MBN' FIELD mblnr_123&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 19:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-id/m-p/2186982#M465854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T19:22:56Z</dc:date>
    </item>
  </channel>
</rss>

