<?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: Problem converting MATNR in  &amp;lt; Script - to Program - bak to Script &amp;gt; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191822#M1201528</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 have tried out all the following tricks - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) P_matnr = in_tab-value.&lt;/P&gt;&lt;P&gt;   out_tab-value = P_matnr.&lt;/P&gt;&lt;P&gt;  Just to determine if my script can display the LTAP_MATNR atleast...&amp;amp; also to check in wat format the MATNR is obtained from the Script to Prog. It is in "dot-dash" format only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) P_matnr = in_tab-value.&lt;/P&gt;&lt;P&gt;   PERFORM Internal conversion on P_MATNR.&lt;/P&gt;&lt;P&gt;   Use in queries. Get new MATNR --&amp;gt; V_MATNR.&lt;/P&gt;&lt;P&gt;  PERFORM External conversion  on new V_MATNR. Pass bak to script.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;3) P_matnr = in_tab-value.&lt;/P&gt;&lt;P&gt;   PERFORM Internal conversion on P_MATNR.&lt;/P&gt;&lt;P&gt;   Use in queries. Get new MATNR --&amp;gt; V_MATNR. Pass bak to script.&lt;/P&gt;&lt;P&gt;  {   Donot PERFORM External conversion  on new V_MATNR. }&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;None of the above has worked so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot debug the script or the Zprog coz its internally getting called by a chain of programs, I'm only allowed to ched the print output in Spool. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execution details:&lt;/P&gt;&lt;P&gt;When I run a Z transaction, i get a list of materials(ALV) for which i can create a TO. When i click on a particular record, the Transfer Order (TO) is created in background and in SPOOL i can see my script. That's it &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 06:55:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T06:55:35Z</dc:date>
    <item>
      <title>Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191816#M1201522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently working on a SAP Scritp for creating Transfer Orders (PS/WM modules).&lt;/P&gt;&lt;P&gt;In my scirpt, I have a Perform statement as follows u2013 &lt;/P&gt;&lt;P&gt;PERFORM GET_WEMPFABLAD IN PROGRAM ZGETFORM&lt;/P&gt;&lt;P&gt;USING &amp;amp;LTAP-MATNR&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;BGRP&amp;amp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Program ZGETFORM, the subroutine GET_WEMPFABLAD &lt;/P&gt;&lt;P&gt;&amp;gt; imports my LTAP-MATNR from the script, &lt;/P&gt;&lt;P&gt;&amp;gt; uses it for performing some Select queries, &lt;/P&gt;&lt;P&gt;&amp;gt; fetches another MATNR and sends it back to the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Iu2019m not sure in what format  the MATNR is received in my program. I assume it comes with the u201Cdot-dashu201D format as u2013 000.0000.0000-00 (as in MARA table). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Iu2019m doing an internal conversion using CONVERSION_EXIT_MATN1_INPUT and I get a 18 digit Material No. This MATNR Iu2019m using in certain Select queries and fetching another MATNR (which happens to be my Assembly no. for a Network). This Assembly no is also a MATNR and I need to send it back to my scipt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Iu2019m doing an external conversion using - CONVERSION_EXIT_MATN1_OUTPUT. The output also needs to be in the format u2013 000.0000.0000-00.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the material no is not displayed on my script. Is there something else I need to take care of? Am I on the right track?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ Note: ZGETFORM is not my driver program... ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191816#M1201522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191817#M1201523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;Remove CONVERSION_EXIT_MATN1_OUTPUT, and try.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191817#M1201523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191818#M1201524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all put break poiint in include and check if your code is working fine, then put break point in Sap script and debug after the Perform are you getting the value back to Script from include. Check the type BGRP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191818#M1201524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191819#M1201525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug and see if the value of the assembly number is coming correct after CONVERSION_EXIT_MATN1_OUTPUT is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191819#M1201525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191820#M1201526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I see you are passing the MATNR as an Importing (USING) parameter.&lt;/P&gt;&lt;P&gt;In order to reflect the new value of matnr you should pass MATNR as CHANGING parameter to the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{PERFORM GET_WEMPFABLAD IN PROGRAM ZGETFORM}&lt;/P&gt;&lt;P&gt;{USING &amp;amp;LTAP-MATNR&amp;amp;}&lt;/P&gt;&lt;P&gt;{CHANGING &amp;amp;BGRP&amp;amp; .}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which field are you returning the MATNR value back to Script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash Pandey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prakash Pandey on Feb 24, 2009 6:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191820#M1201526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191821#M1201527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While using Subroutines in Scripts the using and changing parameters of stucture ITCSY.&lt;/P&gt;&lt;P&gt;In your Subroutine Pool Program read the values of field name and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_dtls TABLES in_par STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;out_par STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reading input material from layout.&lt;/P&gt;&lt;P&gt;  READ TABLE in_par WITH KEY 'EKPO-EMATN'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wc_matr = in_par-value.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the logic as above .&lt;/P&gt;&lt;P&gt;Your problem will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Surendar Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191821#M1201527</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2009-02-24T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting MATNR in  &lt; Script - to Program - bak to Script &gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191822#M1201528</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 have tried out all the following tricks - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) P_matnr = in_tab-value.&lt;/P&gt;&lt;P&gt;   out_tab-value = P_matnr.&lt;/P&gt;&lt;P&gt;  Just to determine if my script can display the LTAP_MATNR atleast...&amp;amp; also to check in wat format the MATNR is obtained from the Script to Prog. It is in "dot-dash" format only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) P_matnr = in_tab-value.&lt;/P&gt;&lt;P&gt;   PERFORM Internal conversion on P_MATNR.&lt;/P&gt;&lt;P&gt;   Use in queries. Get new MATNR --&amp;gt; V_MATNR.&lt;/P&gt;&lt;P&gt;  PERFORM External conversion  on new V_MATNR. Pass bak to script.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;3) P_matnr = in_tab-value.&lt;/P&gt;&lt;P&gt;   PERFORM Internal conversion on P_MATNR.&lt;/P&gt;&lt;P&gt;   Use in queries. Get new MATNR --&amp;gt; V_MATNR. Pass bak to script.&lt;/P&gt;&lt;P&gt;  {   Donot PERFORM External conversion  on new V_MATNR. }&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;None of the above has worked so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot debug the script or the Zprog coz its internally getting called by a chain of programs, I'm only allowed to ched the print output in Spool. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execution details:&lt;/P&gt;&lt;P&gt;When I run a Z transaction, i get a list of materials(ALV) for which i can create a TO. When i click on a particular record, the Transfer Order (TO) is created in background and in SPOOL i can see my script. That's it &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-converting-matnr-in-lt-script-to-program-bak-to-script-gt/m-p/5191822#M1201528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:55:35Z</dc:date>
    </item>
  </channel>
</rss>

