<?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: CUSTOMER_ADD_DATA_CS , set_data, get_data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278206#M783894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through methods SET_DATA and GET_DATA of BAdI CUSTOMER_ADD_DATA_CS the system provides you with current data from the standard program or returns the data to the standard program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the OSS Note  Note 577502 - Enhancements without modification in customer master record for more information on this ....&lt;/P&gt;&lt;P&gt;***************************************************************************************************************&lt;/P&gt;&lt;P&gt;Add the code as given in the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find below the Sample code for all the four methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method GET_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_CUSTOMER_ADD_DATA_CS~GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSDCU_ADD_FIELDS_GET_DATA'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_KUNNR = S_KNA1-KUNNR&lt;/P&gt;&lt;P&gt;E_ZZSCPC = S_KNVV-ZZSCPC&lt;/P&gt;&lt;P&gt;E_ZZCSNM = S_KNVV-ZZCSNM&lt;/P&gt;&lt;P&gt;E_ZZDTCM = S_KNVV-ZZDTCM&lt;/P&gt;&lt;P&gt;E_ZZTEXP = S_KNVV-ZZTEXP&lt;/P&gt;&lt;P&gt;E_ZZTSTA = S_KNVV-ZZTSTA&lt;/P&gt;&lt;P&gt;E_ZZCERT = S_KNVV-ZZCERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method SET_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD if_ex_customer_add_data_cs~set_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF tab_type,&lt;/P&gt;&lt;P&gt;col1(10),&lt;/P&gt;&lt;P&gt;END OF tab_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;wa_indx TYPE indx,&lt;/P&gt;&lt;P&gt;wa_itab TYPE tab_type,&lt;/P&gt;&lt;P&gt;cl TYPE mandt,&lt;/P&gt;&lt;P&gt;itab TYPE STANDARD TABLE OF tab_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab-col1 = s_kna1-ktokd.&lt;/P&gt;&lt;P&gt;APPEND wa_itab TO itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_indx-aedat = sy-datum.&lt;/P&gt;&lt;P&gt;wa_indx-usera = sy-uname.&lt;/P&gt;&lt;P&gt;wa_indx-pgmid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT tab = itab&lt;/P&gt;&lt;P&gt;TO DATABASE indx(XY)&lt;/P&gt;&lt;P&gt;FROM wa_indx&lt;/P&gt;&lt;P&gt;CLIENT sy-mandt&lt;/P&gt;&lt;P&gt;ID 'TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSDCU_ADD_FIELDS_SET_DATA'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_kunnr = s_kna1-kunnr&lt;/P&gt;&lt;P&gt;i_zzscpc = s_knvv-zzscpc&lt;/P&gt;&lt;P&gt;i_zzcsnm = s_knvv-zzcsnm&lt;/P&gt;&lt;P&gt;i_zzdtcm = s_knvv-zzdtcm&lt;/P&gt;&lt;P&gt;i_zztexp = s_knvv-zztexp&lt;/P&gt;&lt;P&gt;i_zztsta = s_knvv-zztsta&lt;/P&gt;&lt;P&gt;i_zzcert = s_knvv-zzcert&lt;/P&gt;&lt;P&gt;i_activity = i_activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le'me know if you need more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Jan 2008 18:39:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-06T18:39:17Z</dc:date>
    <item>
      <title>CUSTOMER_ADD_DATA_CS , set_data, get_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278204#M783892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have implemented screens and additional fields for XD01  using badis CUSTOMER_ADD_DATA  and CUSTOMER_ADD_DATA_CS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything looks fine but does not work in saving, changing, or display modes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though i can get the activity type, i am unable to send or get data from   the screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest me what should i do in these methods set_Data and get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all purposeful  suggestions would be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: TRY-N-TRY on Jan 6, 2008 7:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 18:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278204#M783892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T18:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER_ADD_DATA_CS , set_data, get_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278205#M783893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried to code in the same way as one of the implementations already done and thats using function modules, &lt;/P&gt;&lt;P&gt;but am no able to .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me out how to use those function modues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 18:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278205#M783893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T18:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER_ADD_DATA_CS , set_data, get_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278206#M783894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through methods SET_DATA and GET_DATA of BAdI CUSTOMER_ADD_DATA_CS the system provides you with current data from the standard program or returns the data to the standard program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the OSS Note  Note 577502 - Enhancements without modification in customer master record for more information on this ....&lt;/P&gt;&lt;P&gt;***************************************************************************************************************&lt;/P&gt;&lt;P&gt;Add the code as given in the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find below the Sample code for all the four methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method GET_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_CUSTOMER_ADD_DATA_CS~GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSDCU_ADD_FIELDS_GET_DATA'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_KUNNR = S_KNA1-KUNNR&lt;/P&gt;&lt;P&gt;E_ZZSCPC = S_KNVV-ZZSCPC&lt;/P&gt;&lt;P&gt;E_ZZCSNM = S_KNVV-ZZCSNM&lt;/P&gt;&lt;P&gt;E_ZZDTCM = S_KNVV-ZZDTCM&lt;/P&gt;&lt;P&gt;E_ZZTEXP = S_KNVV-ZZTEXP&lt;/P&gt;&lt;P&gt;E_ZZTSTA = S_KNVV-ZZTSTA&lt;/P&gt;&lt;P&gt;E_ZZCERT = S_KNVV-ZZCERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method SET_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD if_ex_customer_add_data_cs~set_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF tab_type,&lt;/P&gt;&lt;P&gt;col1(10),&lt;/P&gt;&lt;P&gt;END OF tab_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;wa_indx TYPE indx,&lt;/P&gt;&lt;P&gt;wa_itab TYPE tab_type,&lt;/P&gt;&lt;P&gt;cl TYPE mandt,&lt;/P&gt;&lt;P&gt;itab TYPE STANDARD TABLE OF tab_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab-col1 = s_kna1-ktokd.&lt;/P&gt;&lt;P&gt;APPEND wa_itab TO itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_indx-aedat = sy-datum.&lt;/P&gt;&lt;P&gt;wa_indx-usera = sy-uname.&lt;/P&gt;&lt;P&gt;wa_indx-pgmid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT tab = itab&lt;/P&gt;&lt;P&gt;TO DATABASE indx(XY)&lt;/P&gt;&lt;P&gt;FROM wa_indx&lt;/P&gt;&lt;P&gt;CLIENT sy-mandt&lt;/P&gt;&lt;P&gt;ID 'TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSDCU_ADD_FIELDS_SET_DATA'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_kunnr = s_kna1-kunnr&lt;/P&gt;&lt;P&gt;i_zzscpc = s_knvv-zzscpc&lt;/P&gt;&lt;P&gt;i_zzcsnm = s_knvv-zzcsnm&lt;/P&gt;&lt;P&gt;i_zzdtcm = s_knvv-zzdtcm&lt;/P&gt;&lt;P&gt;i_zztexp = s_knvv-zztexp&lt;/P&gt;&lt;P&gt;i_zztsta = s_knvv-zztsta&lt;/P&gt;&lt;P&gt;i_zzcert = s_knvv-zzcert&lt;/P&gt;&lt;P&gt;i_activity = i_activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le'me know if you need more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 18:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278206#M783894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T18:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER_ADD_DATA_CS , set_data, get_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278207#M783895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have a look at this thread:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4163769"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 18:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278207#M783895</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2008-01-06T18:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER_ADD_DATA_CS , set_data, get_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278208#M783896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so this  ZSDCU_ADD_FIELDS_GET_DATA function module exports data to s_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e inside e_kunnr = &amp;lt; screen field name &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this &amp;lt;screen field name&amp;gt; shud be declared in global variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will check it out and come back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 18:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278208#M783896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T18:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER_ADD_DATA_CS , set_data, get_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278209#M783897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah ZSDCU_ADD_FIELDS_GET_DATA  is a function module that you have to create and write your code in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the main program of your function group, create a screen in SE51 and add the fields to it.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le'me know if you need any info....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 19:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-add-data-cs-set-data-get-data/m-p/3278209#M783897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T19:18:33Z</dc:date>
    </item>
  </channel>
</rss>

