<?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: itcsy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154563#M455062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding ITCSY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performing an ABAP form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic possible in SAPscript code is limited.  And no arithmetic, no database queries.  Not much at all, in fact, but enough for the primary function of SAPscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These limitations can be circumvented by calling an ABAP form using PERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a good idea?  Often the logic would be better in the print program.&lt;/P&gt;&lt;P&gt;Sometimes, however, the config does not let us have our own print program.  Or we choose not to have our own print program.  Or the print program might be hard to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bad news is that there are severe restrictions on the parameters of an ABAP form called from SAPscript.  The only parameters must be two TABLES, each with dictionary structure ITCSY.  The first table is used for the input values, and the second for the output values.&lt;/P&gt;&lt;P&gt;Warning:  These tables are of the old style with a header line.  When the form is called, the table header lines are not necessarily in their initial state, since there can be several PERFORMs [of form(s) with identically-named TABLES] in the printing of a single document.  This can cause obscure bugs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ABAP form called from SAPscript needs to be in an ABAP program.  We have a number of such programs, and they have names beginning ZSAPSCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of these ABAP programs is not just a collection of forms, but has been made executable for testing purposes, which is now our standard approach.  To this end, there is a selection screen for the entry of parameters.  Mostly, this testing is very helpful, and can even be done in the production client.  However, there are some caveats.&lt;/P&gt;&lt;P&gt;&amp;#149;	The form might depend on data available only when a document is being printed. E.g. it might IMPORT FROM SHARED MEMORY.&lt;/P&gt;&lt;P&gt;&amp;#149;	In many cases, data from the selection screen will be in internal format, since it will have undergone input conversion.  For instance, a sales-order number 69123456 on the selection screen could be converted to the internal value 0069123456.  We would therefore be testing with the value 0069123456, and not testing with 69123456.  This could be averted by making the selection-screen parameters of type C.&lt;/P&gt;&lt;P&gt;&amp;#149;	One of our forms actually creates a database record, or can do if a checkbox is checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample ABAP form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_CUST_DUNN_CLERK TABLES   IN_V STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                                  OUTV STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  F_KUNNR        LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;  F_BUKRS        LIKE T001S-BUKRS,&lt;/P&gt;&lt;P&gt;  F_MABER        LIKE T047M-MABER,&lt;/P&gt;&lt;P&gt;  F_SNAME        LIKE T001S-SNAME,&lt;/P&gt;&lt;P&gt;  F_TEL_NUMBER   LIKE ADCP-TEL_NUMBER,&lt;/P&gt;&lt;P&gt;  F_TEL_NUMBER_I LIKE ADCP-TEL_NUMBER,&lt;/P&gt;&lt;P&gt;  F_FAX_NUMBER   LIKE ADCP-FAX_NUMBER,&lt;/P&gt;&lt;P&gt;  F_FAX_NUMBER_I LIKE ADCP-FAX_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_V INDEX 1. F_KUNNR = IN_V-VALUE.&lt;/P&gt;&lt;P&gt;READ TABLE IN_V INDEX 2. F_BUKRS = IN_V-VALUE.&lt;/P&gt;&lt;P&gt;READ TABLE IN_V INDEX 3. F_MABER = IN_V-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_CUST_DUNN_CLERK_A&lt;/P&gt;&lt;P&gt;  USING    F_KUNNR F_BUKRS F_MABER&lt;/P&gt;&lt;P&gt;  CHANGING F_SNAME F_TEL_NUMBER F_TEL_NUMBER_I&lt;/P&gt;&lt;P&gt;                   F_FAX_NUMBER F_FAX_NUMBER_I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The "_I" suffix indicates an international version of a number.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OUTV-VALUE = F_SNAME.        OUTV-NAME = 'DC_NAME'.    APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_TEL_NUMBER.   OUTV-NAME = 'DC_TELNO'.   APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_TEL_NUMBER_I. OUTV-NAME = 'DC_TELNO_I'. APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_FAX_NUMBER.   OUTV-NAME = 'DC_FAXNO'.   APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_FAX_NUMBER_I. OUTV-NAME = 'DC_FAXNO_I'. APPEND OUTV.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " GET_CUST_DUNN_CLERK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of corresponding SAPscript PERFORM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:	PERFORM GET_CUST_DUNN_CLERK IN PROGRAM ZSAPSCRIPT_USERS&lt;/P&gt;&lt;P&gt;/:	  USING &amp;amp;VBDKR-KUNAG&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  USING &amp;amp;VBDKR-VKORG&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  USING &amp;amp;DUNN_AREA&amp;amp;                                    &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_NAME&amp;amp;                                   &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_TELNO&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_TELNO_I&amp;amp;                                &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_FAXNO&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_FAXNO_I&amp;amp;                                &lt;/P&gt;&lt;P&gt;/:	  ENDPERFORM                                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the real processing is in the form GET_CUST_DUNN_CLERK_A (not shown).  This means that we have a version of the form for calls from SAPscript (GET_CUST_DUNN_CLERK) and a version of the form more suitable for calls from ABAP (GET_CUST_DUNN_CLERK_A) without duplicating code.&lt;/P&gt;&lt;P&gt;We have adopted this two-form approach as our standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2007 15:24:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-18T15:24:13Z</dc:date>
    <item>
      <title>itcsy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154562#M455061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends pls tell &lt;/P&gt;&lt;P&gt;how we use ITCSY structure  in script. pls tell how to add two fields in paricular &lt;/P&gt;&lt;P&gt;window of a standard script like rvorder01 without distrubing its print program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give some coding in that windows line editor .&lt;/P&gt;&lt;P&gt;and also give coding for print program(i mean how to use that structure in that program) r adding that two fields in same winndow or or seperate new window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154562#M455061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: itcsy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154563#M455062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding ITCSY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performing an ABAP form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic possible in SAPscript code is limited.  And no arithmetic, no database queries.  Not much at all, in fact, but enough for the primary function of SAPscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These limitations can be circumvented by calling an ABAP form using PERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a good idea?  Often the logic would be better in the print program.&lt;/P&gt;&lt;P&gt;Sometimes, however, the config does not let us have our own print program.  Or we choose not to have our own print program.  Or the print program might be hard to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bad news is that there are severe restrictions on the parameters of an ABAP form called from SAPscript.  The only parameters must be two TABLES, each with dictionary structure ITCSY.  The first table is used for the input values, and the second for the output values.&lt;/P&gt;&lt;P&gt;Warning:  These tables are of the old style with a header line.  When the form is called, the table header lines are not necessarily in their initial state, since there can be several PERFORMs [of form(s) with identically-named TABLES] in the printing of a single document.  This can cause obscure bugs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ABAP form called from SAPscript needs to be in an ABAP program.  We have a number of such programs, and they have names beginning ZSAPSCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of these ABAP programs is not just a collection of forms, but has been made executable for testing purposes, which is now our standard approach.  To this end, there is a selection screen for the entry of parameters.  Mostly, this testing is very helpful, and can even be done in the production client.  However, there are some caveats.&lt;/P&gt;&lt;P&gt;&amp;#149;	The form might depend on data available only when a document is being printed. E.g. it might IMPORT FROM SHARED MEMORY.&lt;/P&gt;&lt;P&gt;&amp;#149;	In many cases, data from the selection screen will be in internal format, since it will have undergone input conversion.  For instance, a sales-order number 69123456 on the selection screen could be converted to the internal value 0069123456.  We would therefore be testing with the value 0069123456, and not testing with 69123456.  This could be averted by making the selection-screen parameters of type C.&lt;/P&gt;&lt;P&gt;&amp;#149;	One of our forms actually creates a database record, or can do if a checkbox is checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample ABAP form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_CUST_DUNN_CLERK TABLES   IN_V STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                                  OUTV STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  F_KUNNR        LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;  F_BUKRS        LIKE T001S-BUKRS,&lt;/P&gt;&lt;P&gt;  F_MABER        LIKE T047M-MABER,&lt;/P&gt;&lt;P&gt;  F_SNAME        LIKE T001S-SNAME,&lt;/P&gt;&lt;P&gt;  F_TEL_NUMBER   LIKE ADCP-TEL_NUMBER,&lt;/P&gt;&lt;P&gt;  F_TEL_NUMBER_I LIKE ADCP-TEL_NUMBER,&lt;/P&gt;&lt;P&gt;  F_FAX_NUMBER   LIKE ADCP-FAX_NUMBER,&lt;/P&gt;&lt;P&gt;  F_FAX_NUMBER_I LIKE ADCP-FAX_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_V INDEX 1. F_KUNNR = IN_V-VALUE.&lt;/P&gt;&lt;P&gt;READ TABLE IN_V INDEX 2. F_BUKRS = IN_V-VALUE.&lt;/P&gt;&lt;P&gt;READ TABLE IN_V INDEX 3. F_MABER = IN_V-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_CUST_DUNN_CLERK_A&lt;/P&gt;&lt;P&gt;  USING    F_KUNNR F_BUKRS F_MABER&lt;/P&gt;&lt;P&gt;  CHANGING F_SNAME F_TEL_NUMBER F_TEL_NUMBER_I&lt;/P&gt;&lt;P&gt;                   F_FAX_NUMBER F_FAX_NUMBER_I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The "_I" suffix indicates an international version of a number.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OUTV-VALUE = F_SNAME.        OUTV-NAME = 'DC_NAME'.    APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_TEL_NUMBER.   OUTV-NAME = 'DC_TELNO'.   APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_TEL_NUMBER_I. OUTV-NAME = 'DC_TELNO_I'. APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_FAX_NUMBER.   OUTV-NAME = 'DC_FAXNO'.   APPEND OUTV.&lt;/P&gt;&lt;P&gt;OUTV-VALUE = F_FAX_NUMBER_I. OUTV-NAME = 'DC_FAXNO_I'. APPEND OUTV.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " GET_CUST_DUNN_CLERK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of corresponding SAPscript PERFORM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:	PERFORM GET_CUST_DUNN_CLERK IN PROGRAM ZSAPSCRIPT_USERS&lt;/P&gt;&lt;P&gt;/:	  USING &amp;amp;VBDKR-KUNAG&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  USING &amp;amp;VBDKR-VKORG&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  USING &amp;amp;DUNN_AREA&amp;amp;                                    &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_NAME&amp;amp;                                   &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_TELNO&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_TELNO_I&amp;amp;                                &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_FAXNO&amp;amp;                                  &lt;/P&gt;&lt;P&gt;/:	  CHANGING &amp;amp;DC_FAXNO_I&amp;amp;                                &lt;/P&gt;&lt;P&gt;/:	  ENDPERFORM                                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the real processing is in the form GET_CUST_DUNN_CLERK_A (not shown).  This means that we have a version of the form for calls from SAPscript (GET_CUST_DUNN_CLERK) and a version of the form more suitable for calls from ABAP (GET_CUST_DUNN_CLERK_A) without duplicating code.&lt;/P&gt;&lt;P&gt;We have adopted this two-form approach as our standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154563#M455062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: itcsy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154564#M455063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he structure ITCSY is used in relation with SAPScripts. You can call a Routine in any program in SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: if you have a subroutine named ADD_INCOME in a program ZSHAIL_BASIC, you can call the subroutine in SAPScript as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;var1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;var2&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the input parameter to the subroutine is var1 and the value returned by the subroutine is var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program ZSHAIL_BASIC, you have to call the subroutine as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.&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;IN_TAB is a structure of type ITCSY,which has 2 components, NAME and value.&lt;/P&gt;&lt;P&gt;So in the program, var1(which is sent from SAPScript) , will be stored as IN_TAB-NAME and its value will be in IN_TAB-VALUE. You can utilise the IN_TAB-VALUE and after performing the required operations, the return value should be assigned to table OUT_TAB.&lt;/P&gt;&lt;P&gt;This value can thus be obtained in var2 specified in SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this standard help&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sap scripts, there are certain cases where we need to use some external subroutines which should be called by the script to achieve certain functionality. So these external subroutines are defined with an input and output structure which is of type ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F_GET_HEADER_DETAILS TABLES ITAB   STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                                 OTAB   STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Warehouse number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR V_LGNUM.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB WITH KEY NAME = 'LTAK-LGNUM'&lt;/P&gt;&lt;P&gt;         TRANSPORTING VALUE.&lt;/P&gt;&lt;P&gt;  V_LGNUM = ITAB-VALUE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-Get TO number&lt;/P&gt;&lt;P&gt;  CLEAR V_TO_NO.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB WITH KEY NAME = 'LTAK-TANUM'&lt;/P&gt;&lt;P&gt;       TRANSPORTING VALUE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            INPUT  = ITAB-VALUE&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            OUTPUT = V_TO_NO.&lt;/P&gt;&lt;P&gt;  OTAB-VALUE = V_TO_NO.&lt;/P&gt;&lt;P&gt;  MODIFY OTAB TRANSPORTING VALUE WHERE NAME = 'TO_NO'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-Get Plant&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB WITH KEY NAME = 'LTAP-WERKS'&lt;/P&gt;&lt;P&gt;       TRANSPORTING VALUE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-Get Company Name&lt;/P&gt;&lt;P&gt;  CLEAR V_COMPANY_NAME.&lt;/P&gt;&lt;P&gt;  SELECT T001~BUTXT INTO V_COMPANY_NAME&lt;/P&gt;&lt;P&gt;    UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;    FROM T001K JOIN T001&lt;/P&gt;&lt;P&gt;      ON T001K&lt;SUB&gt;BUKRS = T001&lt;/SUB&gt;BUKRS&lt;/P&gt;&lt;P&gt;      WHERE BWKEY = ITAB-VALUE(4).&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    OTAB-VALUE = V_COMPANY_NAME.&lt;/P&gt;&lt;P&gt;    MODIFY OTAB TRANSPORTING VALUE WHERE NAME = 'COMPANY_NAME'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      SELECT VBPA~ADRNR&lt;/P&gt;&lt;P&gt;             ADRC~NAME1&lt;/P&gt;&lt;P&gt;             ADRC~NAME2&lt;/P&gt;&lt;P&gt;             ADRC~NAME3&lt;/P&gt;&lt;P&gt;             ADRC~NAME4&lt;/P&gt;&lt;P&gt;             ADRC~CITY1&lt;/P&gt;&lt;P&gt;             ADRC~CITY2&lt;/P&gt;&lt;P&gt;             ADRC~POST_CODE1&lt;/P&gt;&lt;P&gt;             ADRC~STREET&lt;/P&gt;&lt;P&gt;             ADRC~REGION&lt;/P&gt;&lt;P&gt;             ADRC~TEL_NUMBER&lt;/P&gt;&lt;P&gt;             ADRC~MC_STREET&lt;/P&gt;&lt;P&gt;        INTO X_ADRC&lt;/P&gt;&lt;P&gt;        UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;        FROM VBPA JOIN ADRC&lt;/P&gt;&lt;P&gt;          ON VBPA&lt;SUB&gt;ADRNR = ADRC&lt;/SUB&gt;ADDRNUMBER&lt;/P&gt;&lt;P&gt;          WHERE VBELN = V_DEL_NO&lt;/P&gt;&lt;P&gt;          AND   POSNR = C_000000&lt;/P&gt;&lt;P&gt;          AND   PARVW = 'WE'.            &lt;/P&gt;&lt;P&gt;      ENDSELECT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0 AND X_ADRC-ADRNR NE X_KNA1-ADRNR.&lt;/P&gt;&lt;P&gt;        WRITE X_KNA1-ERDAT TO OTAB-VALUE.&lt;/P&gt;&lt;P&gt;        MODIFY OTAB TRANSPORTING VALUE WHERE NAME = 'ISS_DT'.&lt;/P&gt;&lt;P&gt;        OTAB-VALUE = X_KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;        MODIFY OTAB TRANSPORTING VALUE WHERE NAME = 'CUS_NO'.&lt;/P&gt;&lt;P&gt;        OTAB-VALUE = X_ADRC-NAME1.&lt;/P&gt;&lt;P&gt;        MODIFY OTAB TRANSPORTING VALUE WHERE NAME = 'CUS_NAME'.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way the value is passed from the program to the scripts.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rk Pasupuleti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154564#M455063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: itcsy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154565#M455064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REward and close the threads that are opened by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itcsy/m-p/2154565#M455064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:44:08Z</dc:date>
    </item>
  </channel>
</rss>

