<?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: Posting a document using FM PRELIMINARY_POSTING_FB01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922577#M1484518</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;Were you able to post using the above FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 08:00:12 GMT</pubDate>
    <dc:creator>former_member516123</dc:creator>
    <dc:date>2016-08-31T08:00:12Z</dc:date>
    <item>
      <title>Posting a document using FM PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922574#M1484515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know we can FM PRELIMINARY_POSTING_FB01 to PARK a Document. But I think we can also use this FM to &lt;STRONG&gt;Post&lt;/STRONG&gt; the Document. The reason I want to use this FM, not other BAPI's, is I have all the structures (BSEG, BKPF, BSET etc) that I needed to populate. So I passed &lt;STRONG&gt;I_XCMPL = 'X'.&lt;/STRONG&gt; However, it still Parked the Document &lt;STRONG&gt;not Posted&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please let me know what I missed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. Sadly this FM does not have any documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_bkpf-bukrs = p_bukrs.
   w_bkpf-gjahr = p_gjahr.
   w_bkpf-blart = p_blart.
   w_bkpf-bldat = p_dat.
   w_bkpf-budat = p_dat.
   w_bkpf-monat = '01'.
   w_bkpf-cpudt = p_dat.
   w_bkpf-cputm = sy-uzeit.
   w_bkpf-wwert = p_dat.
   w_bkpf-usnam = sy-uname.
   w_bkpf-tcode = 'FB01'.
   w_bkpf-xblnr = 'ZTEST1'.
   w_bkpf-waers = p_waers.
   w_bkpf-glvor = 'RFBV'.
   w_bkpf-ausbk = p_bukrs.
   w_bkpf-bktxt = 'TEST'.

  append w_bkpf to t_bkpf.


  w_bseg-bukrs = p_bukrs.
  w_bseg-gjahr = '2010'.
  w_bseg-bschl = '40'.
  w_bseg-koart = 'S'.
  w_bseg-shkzg = 'S'.
  w_bseg-dmbtr = '2000.00'.
  w_bseg-wrbtr = '2000.00'.
  w_bseg-pswsl = p_waers.
  w_bseg-altkt = '0001298232'.
  w_bseg-vorgn = 'RFBU'.
  w_bseg-kokrs = 'ABC'.
  w_bseg-xkres = 'X'.
  w_bseg-hkont = '0001298232'.
  w_bseg-saknr = '0001298232'.
  w_bseg-lifnr = '0000100000'.
  w_bseg-zterm = 'CN30'.
  w_bseg-projk = '00001111'.

  append w_bseg to t_bseg.

 
   CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
   EXPORTING
*     TEXT_UPDATE            = ' '
*     TEXT_ITEM_UPDATE       = ' '
*     I_UF05A                =
      I_XCMPL                = 'X'
*     FS006_FB01             =
      I_TCODE                = 'FB01'
*     I_PARGB                =
*     I_TCODE_INT            =
*   IMPORTING
*     XEPBBP                 =
    TABLES
      T_BKPF                 = t_bkpf
      T_BSEG                 = t_bseg
      T_BSEC                 = t_bsec
      T_BSET                 = t_bset
      T_BSEZ                 = t_bsez
*     T_BKORM                =
*     T_THEAD                =
*     T_SPLTTAB              =
*     T_SPLTWT               =
    EXCEPTIONS
     ERROR_MESSAGE           = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 16:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922574#M1484515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Posting a document using FM PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922575#M1484516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a break point at BTE 2118 or 2218 i am not sure&lt;/P&gt;&lt;P&gt;there it will be having BKPF and BSEG strucutes&lt;/P&gt;&lt;P&gt;and while posting BSEG will be populated and while parking BKPF will be populated.&lt;/P&gt;&lt;P&gt;check whether you have given personnel number&lt;/P&gt;&lt;P&gt;and there are some BO delegations whether direct posting settings can be made&lt;/P&gt;&lt;P&gt;if you need to approve through parking like say if amount is GT 1000 RS. then it goes through approval&lt;/P&gt;&lt;P&gt;such situation might be there&lt;/P&gt;&lt;P&gt;so check with your functional guy&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;S.Janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 16:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922575#M1484516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T16:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Posting a document using FM PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922576#M1484517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the response. I wanted to check the FM which gets triggered in the BTE. However I could find one in FIBF.&lt;/P&gt;&lt;P&gt;Can you please let me know if you have any documentation on FM PRELIMINARY_POSTING_FB01? That would help me understanding its functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I use "IN UPDATE TASK" when calling this FM? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: lope jie on Apr 28, 2010 8:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 17:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922576#M1484517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Posting a document using FM PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922577#M1484518</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;Were you able to post using the above FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 08:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-a-document-using-fm-preliminary-posting-fb01/m-p/6922577#M1484518</guid>
      <dc:creator>former_member516123</dc:creator>
      <dc:date>2016-08-31T08:00:12Z</dc:date>
    </item>
  </channel>
</rss>

