<?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: Create long text for network activity in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512305#M1260422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;thanks, but in my case it works with sy-langu too. I create the network plan and activity with this language and the system format of SY-LANGU(SYLANGU-&amp;gt;LANG1) is the same as TDSPRAS(SPRAS-&amp;gt;LANG1) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my workaround works at the moment and I hope it will be so for future with no changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 04:51:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-08T04:51:23Z</dc:date>
    <item>
      <title>Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512299#M1260416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'll create a long text for a network activity, but I found no BAPI for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create long text for an order activity I use the BAPI BAPI_ALM_ORDER_MAINTAIN. There it is possible to specifiy the long text lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the BAPI BAPI_NETWORK_MAINTAIN there ist no table for specifying long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone know how to create a long text for an network activity?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 10:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512299#M1260416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T10:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512300#M1260417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call function save_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Network header text parameters are&lt;/P&gt;&lt;P&gt;Text Name       800000000904099  i.e. client +12 digit Network number&lt;/P&gt;&lt;P&gt;Language        EN&lt;/P&gt;&lt;P&gt;Text ID            KOPF      Order header text&lt;/P&gt;&lt;P&gt;Text Object     AUFK       Order text&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;for network activity&lt;/P&gt;&lt;P&gt;Text Name       800000001298000000001  i.e. sy-mandt + aufpl + aplzl&lt;/P&gt;&lt;P&gt;Language        EN&lt;/P&gt;&lt;P&gt;Text ID           AVOT Transaction text&lt;/P&gt;&lt;P&gt;Text Object     AUFK       Order text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 09:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512300#M1260417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512301#M1260418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;I'll tried this too. My problem was, if I add long text to a existing network activity, everything works well. But in my programm I create a new network plan with one network activity (0010). After commit I become the correct network plan number. Then I try to add long text to the network activity. I get correct return codes but if I look in the transcation CJ20N I could not see some text. If I use the READ_TEXT function with the key I insert the text, I see the text, but not with the transaction CJ20N.&lt;/P&gt;&lt;P&gt;I compared the key I used in my program with the key if I insert text with transaction CJ20N. I could'nt found some differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE afvcp~mandt afvcp~aufpl afvcp~aplzl
                  INTO (mandant,aufpl,aplzl)
                  FROM afvcp INNER JOIN
                  afko ON
                  afko~mandt = afvcp~mandt
                  AND afko~aufpl = afvcp~aufpl
                  AND afko~aufnr = ordernumbernew.

                    "*Create Identifier
                    CONCATENATE
                    mandant aufpl aplzl
                    INTO lv_name.


                    header-tdobject = 'AUFK'.
                    header-tdname = lv_name.
                    header-tdspras = sy-langu.
                    header-tdform = 'SYSTEM'.
                    header-tdid  = 'AVOT'.
                    header-mandt = sy-mandt.
                    header-TDLINESIZE = '079'.

                    CALL FUNCTION 'SAVE_TEXT'
                      EXPORTING
                        client          = sy-mandt
                        header          = header
                        insert          = 'X'
                        savemode_direct = 'X'
                        owner_specified = ' '
                        local_cat       = ' '
                      IMPORTING
                        function        = func
                        newheader       = newheader
                      TABLES
                        lines           = lines
                      EXCEPTIONS
                        id              = 1
                        language        = 2
                        name            = 3
                        object          = 4
                        OTHERS          = 5.


                      CALL FUNCTION 'COMMIT_TEXT'
                       EXPORTING
                         OBJECT                = header-tdobject
                         SAVEMODE_DIRECT       = 'X'
                       IMPORTING
                         COMMIT_COUNT          = commit_count
                                .

                      COMMIT WORK AND WAIT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the debug the header ist filled with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50 
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8 
8 TDVERSION N 5 00000
9 TDFUSER C 12 
10 TDFRELES C 4 
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12 
14 TDLRELES C 4 
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00000
19 TDHYPHENAT C 1 
20 TDOSPRAS C 1 
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16 
23 TDMACODE2 C 16 
24 TDREFOBJ C 10 
25 TDREFNAME C 70 
26 TDREFID C 4 4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CJ20N the header is filled with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50 
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8 
8 TDVERSION N 5 00000
9 TDFUSER C 12 
10 TDFRELES C 4 
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12 
14 TDLRELES C 4 
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00007
19 TDHYPHENAT C 1 
20 TDOSPRAS C 1 
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16 
23 TDMACODE2 C 16 
24 TDREFOBJ C 10 
25 TDREFNAME C 70 
26 TDREFID C 4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 05:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512301#M1260418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T05:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512302#M1260419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for testing purpose add breakpoint after Network activity is created.&lt;/P&gt;&lt;P&gt;once reached the breakpoint, wait for few seconds, then continue in debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if it gets reflected in cj20n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like issue of commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to add following commands after network &amp;amp; activity is created.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Commit work and Wait.
call function DB_COMMIT
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vivek amrute on May 7, 2009 8:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 06:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512302#M1260419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T06:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512303#M1260420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;I think I solved the problem "dirty". I made some tests with function SAVE_TEXT and transaction CJ20N. Even if long text is entered in CJ20N in the table afvc the field TXTSP is filled with the text language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case (fb SAVE_TEXT) there is no language in this field. If I update the table afvc with the language, the text appears in the CJ20N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after calling the function SAVE_TEXT, I update the table afvc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE *
                      INTO wa_afvc
                      FROM afvc
                      WHERE
                      aufpl = aufpl
                      AND aplzl = aplzl.

                      wa_afvc-txtsp = sy-langu.

                      UPDATE afvc FROM wa_afvc.
                      COMMIT WORK AND WAIT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 12:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512303#M1260420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T12:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512304#M1260421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try hardcoding 'D'  or 'E'  in place of sy-langu.&lt;/P&gt;&lt;P&gt;I think I had faced similar issue long back in 4.6  . but that was I guess because of  D &amp;amp; DE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 04:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512304#M1260421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T04:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create long text for network activity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512305#M1260422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;thanks, but in my case it works with sy-langu too. I create the network plan and activity with this language and the system format of SY-LANGU(SYLANGU-&amp;gt;LANG1) is the same as TDSPRAS(SPRAS-&amp;gt;LANG1) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my workaround works at the moment and I hope it will be so for future with no changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 04:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-long-text-for-network-activity/m-p/5512305#M1260422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T04:51:23Z</dc:date>
    </item>
  </channel>
</rss>

