BAPI ACC Document Post

September 22, 2022 | Author: Anonymous | Category: N/A
Share Embed Donate


Short Description

Download BAPI ACC Document Post...

Description

 

Business Transaction Event - RWBAPI01 - For Accounting Document Interface •

 Attachments: 2  2  Added by Vinod by Vinod Kumar, last Kumar, last edited by Keshav.T by  Keshav.T on Jul 11, 11, 2012 (view chane!

• •

Business Transaction Transaction Event - RWBAPI01 - For Accounting Document Interface Link to Contents target !"ace # http://wiki.sdn.sap.com/wiki/d http://wiki.sdn.sa p.com/wiki/display/ABAP/B isplay/ABAP/BTE+-+Busin TE+-+Business+Tran ess+Transaction+Eve saction+Event nt

A""$ies to# SAP .!" and a#ove.

!ummar% $hile %reatin& the Accountin& document throu&h BAP' - BAP'(A%%()*%,ET(P*ST postin& keys are determined automatically automatically #ased on the coni&u coni&uration. ration. Since this BAP' doesnt have any structure ield to pass the postin& key0 postin& keys are picked up automatically #ased on the document type passed in BAP' header structure. This document narrates how to chan&e the deault postin& key while creatin& the Accountin& document usin& the a#ove BAP'. This document also e"plains the steps involved in implementin& a Business Business Transaction Event.

Aut&or's(# )ino* +umar T   Com"an%# 

''T Technolo&ies 1imited

Create* on#  23.3!.2343 Aut&or's( Bio

5inod 6umar is an ABAP %onsultant workin& with ''T Technolo&ies 1imited.

Posting of Accounting Document ,sing BAPI - BAPIACCDocument Post !cenario %reate the accountin& document document or %ustomer advance payment a&ainst et-#ankin& tran transaction. saction. )ocument is to #e created with the accountin& document type 7)8-%ustomer Payment9. Based on the %oni&uration %oni&uration00 %ustomer line item is  posted a&ainst a&ainst the postin& k key ey 347'nv 347'nvoice-)e#it9 oice-)e#it9 an and d 1 A Account ccount line ite item m is posted a&ainst a&ainst the postin& ke key y ;371%redit9. Since the TES'*4 4 is to #e illed with the re?uired data. Business Transaction Event used or chan&in& the Postin& key will #e e"ecuted only when the record7s9 are availa#le in this structure. See the %all to BTE in line num#er ;@ o BAP'.

Co*e for Creating Account *ocument using BAPI =EP*=T acctestin&.  'nternal ta#le and $ork area declarations )ATA )AT A : wa(documenthead wa(documentheader er

TCPE #apiache3@0

 

it(account it(account&l &l

TCPE STA)A=) TAB1E TAB1E *< #apiac&l3@0

 

wa(account wa(account&l &l

 

it(accountr it(accountreceiva#le eceiva#le TCPE STA)A=) TAB1E TAB1E *< #apiacar3@0

 

wa(accountr wa(accountreceiva#le eceiva#le TCPE #apiacar3@ #apiacar3@00

 

it(currenc it(currencyamount yamount TCPE STA)A=) TAB1E *< #apiaccr3@0

 

wa(currencyam wa(currencyamount ount

TCPE #apiac&l3@0

TCPE #apiaccr3@0

 

 

it(return

TCPE STA)A=) TAB1E *< #apiret20

 

wa(return

TCPE #apiret20

 

it(e"tens it(e"tension4 ion4

TCPE STA)A=) TAB1E *< #apiace"tc0

 

wa(e"tensi wa(e"tension4 on4

TCPE #apiace"tc.

)ATA )AT A : doc(amt(cr  

doc(amt(dr

TCPE #apiwr#tr 5A 5A1E 1E -;3.330 TCPE #apiwr#tr 5A 5A1E 1E ;3.33.

)ATA: lv(type )ATA:   lv(key

TCPE #apiache3@-o#D #apiache3@-o#D(type0 (type0 TCPE #apiache3@-o#D( #apiache3@-o#D(key0 key0

 

TCPE #apiache3@-o#D #apiache3@-o#D(sys. (sys.

lv(sys

 clear internal ta#le =E
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF