<?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: Set values to standard transaction fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521975#M239628</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;Another way is by making small BDC ... just pass whatever you want to that screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM02' WITH BDCTAB MODE 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2006 12:53:45 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-07-27T12:53:45Z</dc:date>
    <item>
      <title>Set values to standard transaction fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521973#M239626</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;I am trying to set values to a standard transaction by my program using set parameter id. But, while calling the transaction, i think somewhere the values I passed is getting refreshed and no values are appearing in the called transaction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way through which I can pass the values and set the fields with them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anshumita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 12:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521973#M239626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set values to standard transaction fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521974#M239627</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;please cross check the field in the screen painter ; is it enable for SET / GET parameter ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can also check the value of the PARAMETER ID in debuging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start debugging the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto&lt;DEL&gt;-&amp;gt;system area&lt;/DEL&gt;-&amp;gt;sap memmory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search the PARAMETER id and check the corresponding value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here u can see the value set for the parameter id.&lt;/P&gt;&lt;P&gt;if u can see the value then field is not enabled for &lt;/P&gt;&lt;P&gt;get/set parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please Reward Points &amp;amp; Mark Helpful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To mark Helpful Answers ;click radio Button next to the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RadioButtons&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;o&amp;lt;/b&amp;gt; Helpful Answer&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;o&amp;lt;/b&amp;gt; Very helpful Answer&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;o&amp;lt;/b&amp;gt; Problem Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click any of the above button next to the post; as per the anwers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 12:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521974#M239627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set values to standard transaction fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521975#M239628</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;Another way is by making small BDC ... just pass whatever you want to that screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM02' WITH BDCTAB MODE 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 12:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521975#M239628</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-07-27T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set values to standard transaction fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521976#M239629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please go through this link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 12:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521976#M239629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set values to standard transaction fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521977#M239630</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;I there is problem with &amp;lt;b&amp;gt;SET PARAMETER ID&amp;lt;/b&amp;gt;, then check whether you have correctly specified the PARAMETER ID fields for the Transaction.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA REPID like sy-repid VALUE 'RSPFPAR'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID &amp;lt;b&amp;gt;'RID'&amp;lt;/b&amp;gt; FIELD REPID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else try doing a partial BDC recording for that transaction using Transaction recorder(SHDB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code using Partial BDC for Transaction &amp;lt;b&amp;gt;MD48&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 REPORT zztest.

DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
       layout TYPE rm61m-usprf.

DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.


START-OF-SELECTION.

  layout = 'SAPMPS'.
  SELECT * FROM mara INTO TABLE it_mara UP TO 2 ROWS.

  LOOP AT it_mara.


    PERFORM bdc_dynpro      USING 'SAPMM61M' '0103'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  'TCAL'.

    PERFORM bdc_field       USING 'RM61M-MATNR'
                                  it_mara-matnr.
    PERFORM bdc_field       USING 'RM61M-USPRF'
                                  layout.
    CALL TRANSACTION 'MD48'

    USING bdcdata
    MODE   'A'.

  ENDLOOP.



*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO

*----------------------------------------------------------------------*
*        Insert field                                                  *
*----------------------------------------------------------------------*
FORM bdc_field USING fnam fval.

  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.

ENDFORM.                    "BDC_FIELD


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 13:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-values-to-standard-transaction-fields/m-p/1521977#M239630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T13:05:54Z</dc:date>
    </item>
  </channel>
</rss>

