<?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: SO Creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722407#M1298321</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 tried to use the code you've sent to me (FM READ_TEXT and CREATE_TEXT) but if I tried to debug the program, it has no value at all..How could I possibly send you the total code (as it exceeds the allowed number of character when pasted here) can you post your email address please for me to send my program code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 03:53:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-10T03:53:53Z</dc:date>
    <item>
      <title>SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722398#M1298312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have that existing ABAP customized program creating an SO from a text file and its working fine..until such an additional requirement need to be included on that program; The scenario is like this ; in the text file (source of info such us &lt;STRONG&gt;Customer No&lt;/STRONG&gt;., &lt;STRONG&gt;Material code&lt;/STRONG&gt;, &lt;STRONG&gt;Ordered Qty&lt;/STRONG&gt; and so on..) there is the Header text and line item Txt that should be included in the SO itself (currently we are editing the SO created by the program and copy paste Header Txt and Line Item Txt from the txt file into SO.  How can we posssibly do this thru the existing program the fact that where we paste in the SO is not a "field" of a SAP table.. Please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.Pasion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 01:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722398#M1298312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T01:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722399#M1298313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont hv much idea.........but, u can search this forum on the below FMs,&lt;/P&gt;&lt;P&gt;CREATE_TEXT&lt;/P&gt;&lt;P&gt;EDIT_TEXT&lt;/P&gt;&lt;P&gt;SAVE_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the above FMs after creating the SOs.&lt;/P&gt;&lt;P&gt;U hv to pass the Text ID, Language, Key(SO number) etc. to these FMs&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 01:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722399#M1298313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T01:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722400#M1298314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deo Pasion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess You are creating &lt;STRONG&gt;SO&lt;/STRONG&gt;  Using Recording, if so, try to do recording when you enter item text and Header text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add that particular recording in your program. Try to paste of existing code that could help to resolve the issue soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 02:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722400#M1298314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T02:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722401#M1298315</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;Thanks for your immediate response, how can I perform recording?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 02:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722401#M1298315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T02:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722402#M1298316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deo Pasion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could plz paste a row of your Flat File with Header and Piece of existing Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, that it could be easy for any one to understand Up to what extent it is ? and wht need to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 03:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722402#M1298316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T03:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722403#M1298317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Deo Pasion,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Could plz paste a row of your Flat File with Header and Piece of existing Code.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; So, that it could be easy for any one to understand Up to what extent it is ? and wht need to be done.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Suneel G&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source TXT file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HDR  10486810486820090505    5/5/2009  5/8/2009  MDC 563 SOLANO-GADDANG                    &lt;EM&gt;get copy of memo stating d downgrade solution of apo muriatic acid &amp;amp; attach to inv.ask grace&lt;/EM&gt;         0.000 Y&lt;/P&gt;&lt;P&gt;DTL10   11000806Marquee White Henna   12g                         36.000          PCSTAN 0.000 5/5/2009                                                                                &lt;/P&gt;&lt;P&gt;DTL20   11000840APO Azufre   50g                                  36.000          PCSTAN 0.000 5/5/2009  &lt;STRONG&gt;&lt;EM&gt;serve with batch 2009&lt;/EM&gt;&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : My objective ==&amp;gt; header TXT "get copy ......."  Item detail TXT "serve with batch..."&lt;/P&gt;&lt;P&gt;should be written in SO created by existing program (sample code below). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You so Much...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROGRAM CODE:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Run batch input program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOOP AT it_ordhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CLEAR dc_kunnr.                                       "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;          CONCATENATE '0000' it_ordhdr-kunnr INTO dc_kunnr.     "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          REFRESH it_bdc.&lt;/P&gt;&lt;P&gt;*Check if PO exists&lt;/P&gt;&lt;P&gt;          READ TABLE it_po WITH KEY bstnk = it_ordhdr-bstkd    "Order Date&lt;/P&gt;&lt;P&gt;                                    kunnr = dc_kunnr.          "Sold To Customer         "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;            IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;              PERFORM gen_bdc_rec USING:&lt;/P&gt;&lt;P&gt;              'X' 'SAPMV45A'      '0101',&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-AUART'   it_ordhdr-auart,&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-VKORG'   it_ordhdr-vkorg,&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-VTWEG'   it_ordhdr-vtweg,&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-SPART'   it_ordhdr-spart,&lt;/P&gt;&lt;P&gt;              ' ' 'BDC_OKCODE'    '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              CLEAR  di_ctr.                                    "aza 29Oct 2008&lt;/P&gt;&lt;P&gt;              PERFORM generate_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              PERFORM gen_bdc_rec USING:&lt;/P&gt;&lt;P&gt;              'X' 'SAPMV45A'      '4001',&lt;/P&gt;&lt;P&gt;              ' ' 'BDC_OKCODE'    '=SICH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              CALL TRANSACTION 'VA01' USING it_bdc MODE dismode&lt;/P&gt;&lt;P&gt;                   UPDATE updmode&lt;/P&gt;&lt;P&gt;                   MESSAGES INTO it_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              MOVE-CORRESPONDING it_ordhdr TO it_hdrpro.&lt;/P&gt;&lt;P&gt;              APPEND it_hdrpro.&lt;/P&gt;&lt;P&gt;              CLEAR it_hdrpro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 04:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722403#M1298317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T04:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722404#M1298318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deo Pasion,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You mean this is Header Text from Flat File rite ??? &lt;STRONG&gt;get copy of memo stating d downgrade solution&lt;/STRONG&gt; &lt;STRONG&gt;of apo muriatic acid &amp;amp; attach to inv.ask grace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your code I am unable to find how they are Creating Header Text for Header in your Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Once we create the Header Text Read it as Follows and Create a Item text by passing &lt;STRONG&gt;SOnumber+Itemno.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will Solve the Problem, just check your code were we need to paste this. look below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : TD_LINES TYPE TABLE OF TLINE.

CALL FUNCTION 'READ_TEXT'
  EXPORTING
    CLIENT                        = SY-MANDT
    ID                            = '0001'
    LANGUAGE                      = 'E'
    NAME                          = '0060000049'  " SO Number with Preceeding Zeros
    OBJECT                        = 'VBBK'
  TABLES
    LINES                         = TD_LINES
 EXCEPTIONS
   ID                            = 1
   LANGUAGE                      = 2
   NAME                          = 3
   NOT_FOUND                     = 4
   OBJECT                        = 5
   REFERENCE_CHECK               = 6
   WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8 .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

" Copying the Text in Header Text to Item Text
CALL FUNCTION 'CREATE_TEXT'
  EXPORTING
    FID               = '0001'
    FLANGUAGE         = 'E'
    FNAME             = '0060000049000010'  " SO Number + Item no Preceeding Zeros
    FOBJECT           = 'VBBP'
  TABLES
    FLINES            = TD_LINES
 EXCEPTIONS
   NO_INIT           = 1
   NO_SAVE           = 2
   OTHERS            = 3.

IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 06:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722404#M1298318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T06:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722405#M1298319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much, definitely I will include this function module on my program code... I've been in some other forums and it point me to use create_text function module... But since this is my first time to use this function module, I hope that you can still guide me once I encounter some problem in using it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;God Bless....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 07:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722405#M1298319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722406#M1298320</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;Mean while try post total code, so that it will be easy for me and tell you where and how to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than issue &lt;STRONG&gt;Try to use Meaning ful Subject from Here after.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 08:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722406#M1298320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722407#M1298321</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 tried to use the code you've sent to me (FM READ_TEXT and CREATE_TEXT) but if I tried to debug the program, it has no value at all..How could I possibly send you the total code (as it exceeds the allowed number of character when pasted here) can you post your email address please for me to send my program code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 03:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722407#M1298321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T03:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722408#M1298322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_TEXT will not retrieve anything as you have yet to create the sales order. My advice would be to create the sales order then call the FM CREATE_TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 04:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722408#M1298322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T04:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722409#M1298323</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;Thanks for your quick reply.. Before the line calling the FM CREATE_TEXT, SO has already been created (earlier part of my program)... supplied ID='0001'; LANG='EN'; NAME=SO number created; OBJECT='VBK'.&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>Wed, 10 Jun 2009 04:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722409#M1298323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T04:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722410#M1298324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not too sure what you mean. Can you send me a snippet of your code where you are creating the text for the SO? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 05:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722410#M1298324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T05:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722411#M1298325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deo Pasion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Which FM is not having values either READ_TEXT or CREATE_TEXT.&lt;/P&gt;&lt;P&gt; How did you code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 06:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722411#M1298325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T06:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722412#M1298326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my source code calling TCODE VA01 before it calls FM CREATE_TEXT..If you'll notice I also used hardcode for TABLES FLINES just fo testing purposes.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much and God Bless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Run batch input program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOOP AT it_ordhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CLEAR dc_kunnr.                                       "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;          CONCATENATE '0000' it_ordhdr-kunnr INTO dc_kunnr.     "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          REFRESH it_bdc.&lt;/P&gt;&lt;P&gt;*Check if PO exists&lt;/P&gt;&lt;P&gt;          READ TABLE it_po WITH KEY bstnk = it_ordhdr-bstkd    "Order Date&lt;/P&gt;&lt;P&gt;                                    kunnr = dc_kunnr.          "Sold To Customer         "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;            IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;              PERFORM gen_bdc_rec USING:&lt;/P&gt;&lt;P&gt;              'X' 'SAPMV45A'      '0101',&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-AUART'   it_ordhdr-auart,&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-VKORG'   it_ordhdr-vkorg,&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-VTWEG'   it_ordhdr-vtweg,&lt;/P&gt;&lt;P&gt;              ' ' 'VBAK-SPART'   it_ordhdr-spart,&lt;/P&gt;&lt;P&gt;              ' ' 'BDC_OKCODE'    '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              CLEAR  di_ctr.                                    "aza 29Oct 2008&lt;/P&gt;&lt;P&gt;              PERFORM generate_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              PERFORM gen_bdc_rec USING:&lt;/P&gt;&lt;P&gt;              'X' 'SAPMV45A'      '4001',&lt;/P&gt;&lt;P&gt;              ' ' 'BDC_OKCODE'    '=SICH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              &lt;STRONG&gt;CALL TRANSACTION 'VA01' USING it_bdc MODE dismode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                   &lt;STRONG&gt;UPDATE updmode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                   &lt;STRONG&gt;MESSAGES INTO it_msg.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              MOVE-CORRESPONDING it_ordhdr TO it_hdrpro.&lt;/P&gt;&lt;P&gt;              APPEND it_hdrpro.&lt;/P&gt;&lt;P&gt;              CLEAR it_hdrpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create filename for download&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dc_path = 'C:\PIDO_GATEWAY\GATEWAY\DATAS\PROCESSED\'.                  "dvp 08June 2009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               dc_path = '&lt;BR /&gt;192.168.1.103\EXPORT\PROCESSED\'.                         "dvp 08June 2009&lt;/P&gt;&lt;P&gt;              CONCATENATE dc_path it_dtl-file INTO sofile.&lt;/P&gt;&lt;P&gt;              PERFORM create_filename.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRITE: / it_dtl-file, it_dtl-result.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get sales orders create today&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM get_so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if there are records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DESCRIBE TABLE it_vbak LINES di_recrd.&lt;/P&gt;&lt;P&gt;    IF di_recrd &amp;lt; 1.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get picklist created today&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM get_picklist.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Process data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM process_data.&lt;/P&gt;&lt;P&gt;*Update internal table for ALV&lt;/P&gt;&lt;P&gt;      REFRESH it_lips.&lt;/P&gt;&lt;P&gt;      CLEAR it_lips.&lt;/P&gt;&lt;P&gt;      PERFORM get_picklist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT it_lips.&lt;/P&gt;&lt;P&gt;        SELECT vbeln          "Picklist No&lt;/P&gt;&lt;P&gt;               posnr          "Item No&lt;/P&gt;&lt;P&gt;               matnr          "Material No&lt;/P&gt;&lt;P&gt;               lfimg          "Delivery Qty&lt;/P&gt;&lt;P&gt;               vgbel          "S.O. no&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF it_lips1                  "dvp 08June 2009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        INTO TABLE it_lips1                                     "dvp 08June 2009&lt;/P&gt;&lt;P&gt;        FROM lips&lt;/P&gt;&lt;P&gt;        WHERE lips~vbeln EQ it_lips-vbeln.&lt;/P&gt;&lt;P&gt;        APPEND it_lips1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ENDSELECT.                                             "dvp 08June 2009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT it_ordpro.&lt;/P&gt;&lt;P&gt;        CLEAR dc_kunnr.                                           "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;        CONCATENATE '0000' it_ordpro-kunnr INTO dc_kunnr.         "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;        READ TABLE it_vbak WITH KEY bstnk = it_ordpro-bstkd&lt;/P&gt;&lt;P&gt;                                    kunnr = dc_kunnr.             "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          it_ordpro-sonum = it_vbak-vbeln.                        "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;          READ TABLE it_lips1 WITH KEY vgbel = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;          IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;            it_ordpro-vbeln = it_lips1-vbeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           MODIFY it_ordpro.                                    "aza 01Nov 2008&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           CLEAR it_ordpro.                                     "aza 01Nov 2008&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;          MODIFY it_ordpro.                                       "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;          CLEAR it_ordpro.                                        "aza 01Nov 2008&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update picklist instructions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DATA dc_header LIKE thead-tdname.                                 "aza 03Nov 2008&lt;/P&gt;&lt;P&gt;      DATA dc_header1 LIKE thead.                                       "dvp 10June 2009&lt;/P&gt;&lt;P&gt;      DATA: FHEADER LIKE THEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DATA: BEGIN OF TLINETAB OCCURS 10.&lt;/P&gt;&lt;P&gt;            INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;      DATA: END OF TLINETAB.&lt;/P&gt;&lt;P&gt;        CLEAR dc_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT it_ordpro WHERE sonum IS NOT INITIAL                     "aza 03Nov 2008&lt;/P&gt;&lt;P&gt;                   AND pkins IS NOT INITIAL.                      "dvp 10June 2009&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CONCATENATE it_ordpro-sonum it_ordpro-posnr INTO dc_header.        "(SO No; Line No.)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         dc_header = it_ordpro-sonum.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       tlinetab-tdline = it_ordpro-pkins.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        tlinetab-tdline = 'testing text lang to'.&lt;/P&gt;&lt;P&gt;        tlinetab-tdformat = '10'.&lt;/P&gt;&lt;P&gt;        APPEND tlinetab.&lt;/P&gt;&lt;P&gt;        CLEAR tlinetab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;                 EXPORTING&lt;/P&gt;&lt;P&gt;                   FID               = '0001'&lt;/P&gt;&lt;P&gt;                   FLANGUAGE         = 'E'&lt;/P&gt;&lt;P&gt;                   FNAME             = 'dc_header'&lt;/P&gt;&lt;P&gt;                   FOBJECT           = 'VBBK'&lt;/P&gt;&lt;P&gt;                   SAVE_DIRECT       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 FFORMAT           = '*'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                 TABLES&lt;/P&gt;&lt;P&gt;                   FLINES            = tlinetab&lt;/P&gt;&lt;P&gt;                 EXCEPTIONS&lt;/P&gt;&lt;P&gt;                    NO_INIT           = 1&lt;/P&gt;&lt;P&gt;                    NO_SAVE           = 2&lt;/P&gt;&lt;P&gt;                    OTHERS            = 3&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt;               IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 06:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722412#M1298326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T06:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: SO Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722413#M1298327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CREATE_TEXT'
                EXPORTING
                  FID               = '0001'
                  FLANGUAGE         = 'E'
                  FNAME             = 'dc_header'  "----&amp;gt; Remove '' and Check ... Pass it like dc_header
                  FOBJECT           = 'VBBK'
                  SAVE_DIRECT       = 'X'
*                  FFORMAT           = '*'
                TABLES
                  FLINES            = tlinetab
                EXCEPTIONS
                   NO_INIT           = 1
                   NO_SAVE           = 2
                   OTHERS            = 3
          .
              IF SY-SUBRC &amp;lt;&amp;gt; 0.
*                     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 06:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-creation/m-p/5722413#M1298327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T06:20:29Z</dc:date>
    </item>
  </channel>
</rss>

