Post AccountngEmployeeExpnses ALE/BAPI
Hi all,
I have to send Employee expenses fro HR to FI using ALE/BAPI.
I configured ALE/BAPI and added object AcctngEmplyeeExpnses in distribution model.
I want to know what is transaction to post data from Sending system to reciever system.
Thanks
Shash
Hi Kanth,
You can use process code <b>BAPI</b> for your inbound message type ACC_EMPLOYEE_EXP.
This process code will call function module IDOC_INPUT_ACC_EMPLOYEE_EXP to post the above IDoc.
If you set to trigger by background job in the inbound partner profile (t/code WE20)then you need to run/schedule a job for program RBDAPP01. Otherwise, the IDoc will be process immediately.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
Similar Messages
-
Explain the situation for using ale , bapi ,session ,call transation, di
what is the use of bdcmsgcall,
if any erroe occur in the legacy records how to rectify it?
In what situation we can go for lsmw.
Kindly explain the situation's for using ale , bapi ,session ,call transation, direct input.Hi ashok,
chk this.
the functionality of both idoc and bapi are same.
the main difference in BAPI is it is used for Third party application like JAVA, VB etc.
and IDOC is used transfer data from the SAP to sap or non-sap system.
For details refer the contents below
ALE
ALE is SAP proprietary technology that enables data communications between two or more SAP R/3 systems and/or R/3 and external systems. When a new enterprise resource planning (ERP) solution such as R/3 is implemented, companies have to interface the ERP system with legacy systems or other ERP systems.
ALE provides intelligent mechanisms where by clients can achieve integration as well as distribution of applications and data.
ALE technology facilitates rapid application prototyping and application interface development, thus reducing implementation time.
The ALE components are inherently integrated with SAP applications and are robust, leading to a highly reliable system.
ALE comes with application distribution/integration scenarios as well as a set of tools, programs, data definitions, and methodologies that you can easily configure to get an interface up and running.
BAPI
BAPIs provide a stable, standardized method for third-party applications and components to integrate into the Business Framework. These interfaces are being specified as part of SAP's initiative with customers, partners and leading standards organizations. Also, SAP has implemented the emerging Object Application Group (OAG) specifications with BAPIs.
Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
Session method is to populate the data by filling BDC structure
and keep as session to process from SM37 to post in appropriate Transaction.
Call transaction method is to post the data directly into the Transaction from an Executable program.
Session method SAP defined Function modules.
U can see more help on the differences in the SAP help.
hope u got an idea.
rgds
anver
<i>if hlped pls mark points</i> -
'Document does not contain any items' error while posting GR from BAPI
Hello Friends,
I am trying to post GR from BAPI 'BAPI_GOODSMVT_CREATE' but some time it post successful and some time it does not post..gives error 'Document does not contain any items'....i have search all option but did not get any solution why this error is coming....kindly help me if you have any information regarding that.
The strange thing is i have alrady posted GR with some test data and later on again am trying to post GR with same test data but it is giving error as above.
For your information...i am using enhancement spot in standard program for GR posting...could it give any problem.
Regards,
Rajkishor.Solved by my self...problem was i were using enhancement spot in standard program because of this it was creating problem have search new enhancement spot and put my code out there now it is working fine.
Thanku very much all of you for your reply. -
Getting error while posting doc using BAPI BAPI_ACC_DOCUMENT_POST
Hi,
I am passing the value for posting key in BAPI through TAX_CODE field in ACCOUNTGL (parameter name under tables).
It is giving error "Tax code 01 in procedure TAXR0 is invalid".
Can anyone help me to solve this .Try in these :
BAPI_ACC_DOCUMENT_POST error
Error in using BAPI_ACC_DOCUMENT_POST (urgent!!)
BAPI_ACC_DOCUMENT_POST - Check error
Regards
Neha -
BAPI_ACC_DOCUMENT_POST and tax posting through the BAPI
Hi,
We are using the BAPI_ACC_DOCUMENT_POST to post accounting documents. The BAPI works fine without the tax data but we need the tax data also to get posted for the line items. Please let me know how the ACCOUNTTAX
and CURRENCYAMOUNT table parameters needs to be populated.
A sample code would be of much use.
Currently if we have 3 line items in GL to be posted we fill 3 line items in AccountGL table, one line item in Accounts payable table, 4 line items in the currency table ( 3 for the actual items and 4 th item with summed up quantity of all 3 items) .
Your help is greatly appreciated.
Regards,
Prabaharan.Ghi,
i use this function in some program i try to give to u how to set the minimum value in the structure/tables of the bapi.
> DOCUMENTHEADER
> BUS_ACT = 'RFBU' "for FI document
> USERNAME = sy-uname
> HEADER_TXT = your text
> COMP_CODE = Company code
> DOC_DATE = Document date
> PSTNG_DATE = Posting date
> FISC_YEAR(1) = The year of posting date
> FIS_PERIOD(1) = the period of posting date
> DOC_TYPE = document type
if you set a different year or period from the value that you have in the posting date the bapi trigger an error
> ACCOUNT GL
> ITEMNO_ACC = progessive number
> GL_ACCOUNT = G/L Account
> ITEM_TEXT = item text
> DOC_TYPE = document type (the same of the header for all item)
> COMP_CODE = company code (the same of the header for all item)
> BUS_AREA = business area
> TAX_CODE = tax code
if you set a different doc_type or company code for each item the bapi trigger an error
> ACCOUNTTAX
> ITEMNO_ACC = progressive number
> GL_ACCOUNT = G/L Account referred to TAX CODE
> TAX_CODE = TAX CODE
> TAX_RATE = TAX RATE
> ITEMNO_TAX = progressive number which tax item is referred
>CURRENCYAMOUNT
> ITEMNO_ACC = progressive number
> CURRENCY = currency
> CURRENCY_ISO = iso currency that you find in TCURC-ISOCD table
> AMT_DOCCUR = amount with sign the sign +/- identify Debit/Credit Indicator
> - this field only for tax record
> AMT_BASE = is the AMT_DOCCUR of the line which ypu want to calculate the tax with sign
> TAX_AMT = tax amount
usually for calculate the correct value i use these functions 'CALCULATE_TAX_FROM_GROSSAMOUNT' or 'CALCULATE_TAX_FROM_NET_AMOUNT' it depends if i have the net or gross amount.
for example:
DOCUMENTHEADER
> BUS_ACT = 'RFBU'
> USERNAME = sy-uname
> HEADER_TXT = 'my_text'
> COMP_CODE = '0001'
> DOC_DATE = '20080115'
> PSTNG_DATE = '20080115'
> FISC_YEAR(1) = '2008'
> FIS_PERIOD(1) = '01'
> DOC_TYPE = 'SA'
ACCOUNT GL
>Record 1
>ITEMNO_ACC = 0000000001
>GL_ACCOUNT = 0290111010
>ITEM_TEXT = ITEM_TEXT
>DOC_TYPE = SA
>COMP_CODE = 0001
>BUS_AREA = GS1
>Record 2
>ITEMNO_ACC = 0000000002
>GL_ACCOUNT = 0500103900
>ITEM_TEXT = ITEM_TEXT
>DOC_TYPE = SA
>COMP_CODE = 0001
>TAX_CODE = V2
ACCOUNTTAX
> Record 3
>ITEMNO_ACC = 0000000003
>GL_ACCOUNT = 0221103001
>TAX_CODE = V2
>TAX_RATE = 20.000
>ITEMNO_TAX = 0000000002
CURRENCYAMOUNT
>Record 1
>ITEMNO_ACC = 0000000001
>CURRENCY = EUR
>CURRENCY_ISO = EUR
>AMT_DOCCUR = 150.00
>AMT_BASE = 0.00
>TAX_AMT = 0.00
>Record 2
>ITEMNO_ACC = 0000000002
>CURRENCY = EUR
>CURRENCY_ISO = EUR
>AMT_DOCCUR = -125.00
>AMT_BASE = 0.00
>TAX_AMT = 0.00
>Record 3
>ITEMNO_ACC = 0000000003
>CURRENCY = EUR
>CURRENCY_ISO = EUR
>AMT_DOCCUR = -25.00
>AMT_BASE = -125.00
>TAX_AMT = -25.00
hope that is useful.
Bye
Marco -
IDOC/ALE/BAPI/BADI
Hi,
I want to understand the difference between IDOC/ALE/BAPI/BADI in context to a functional consultant.what is the role of each with an EXAMPLE.I want to basically understand with examples w.r.t SD or MM instead of theory which i could get in forum.
What is the role of a functional SD consultant, in these technology mentioned?
If i have to Test a BAPI or BADI what is that i should test???what is the T codes to be tested ? How to go about it??
Like in case of Order to cash testing, i will check if the sales cycle runs well, using T codes, Va01, vl01n, vf01.
Awaiting reply.
Thanks
LKHi Lekshmi,
I want to understand the difference between IDOC/ALE/BAPI/BADI in context to a functional consultant.
what is the role of each with an EXAMPLE.
I want to basically understand with examples w.r.t SD or MM instead of theory which i could get in forum.
What is the role of a functional SD consultant, in these technology mentioned?
Idoc/ALE/BAPI/BADI are basically advanced functionalities available in ABAP. These are treated as seperate module by somebody as "Cross Applications".
If we get in
IDOC is the concept which works for Third party communication from SAP.
Scenarion 1:
For example: I am a Buyer from your Company and i don't have SAP system where you have SAP Practice. I had given you one Order for which i need Confirmation and it needs to understand by my system. In this case IDOC is useful to transfer the confirmation details to my system understandable language. This can be acheived by any other outputs like e-Mail/Printout/Fax. But for these kind of Outputs thers is one limitation. those are in document form means if you take the print out it confirmation can be taken as a print out as a hard copy or soft coy by saving into PDF format. but that data cannot be accessed by my system to convert that data for further my own reporting purpose. if we use IDOCs.
These Idocs are transferred through Middleware and reach third party system (in this example my own system which does not have SAP) and store the details. later i can use that data how ever i can for my internal reporting purpose.
Scenario 2:
ALE: ALE also works like above, but the difference is this works for SAP-SAP communication. if i take the above example.... I have SAP System being a buyer and you have SAP sytem. Order Confirmaiton come from your system to my system.
If i have to Test a BAPI or BADI what is that i should test???what is the T codes to be tested ? How to go about it??
Like in case of Order to cash testing, i will check if the sales cycle runs well, using T codes, Va01, vl01n, vf01.
There is no such tcodes to test the enhancement functionality.
I assume you knows SAP SD.
If i take the example of SD Sales Order.
PO Number field is to explain the enhancement testing.
Your client enhanced the functionality of PO Number for which you are doing the testing for example.
now you get inside of the VA01 transaction and put all the headeer data and PO Number and press enter.
then based on the enhancement functionality system will act.
For example.. you had given AAA111 for Customer 123456.
You have entered Inside of VA01 and entered Sold and Shipto numbers as 123456. then entered PO number as BBB111 and press enter.
As per the enhancement you suppose to enter PO number as AAA111 for customer 123456, but you entered as BBB111.
Based on your enhancements system will through the error saying you entered wrong PO Number.
This is the testing part usually Functional Guy do.
Please let me know if you have any further clarification
Thanks & Regards
Venkat -
WE need to create applicant for hr recruitement from external data
via idoc and ale bapi .
<b>first</b> we generate the ale interface
Checking message type Message type ZAPPLICANT_CREATEFROMDATA exists already
Check basic type ZAPPLICANT_CREATEFROMDATA01 Basic type ZAPPLICANT_CREATEFROMDATA01 exists Basic type ZAPPLICANT_CREATEFROMDATA01 is released
Basic type ZAPPLICANT_CREATEFROMDATA01 is linked to logical message ZAPPLICANT_CREATEFROMDATA
No predecessors exist Check segment Z1ZAPPLICANT_CREATEFROMDATA Segment Z1ZAPPLICANT_CREATEFROMDATA consistent Check segment Z1BPEDUC Segment Z1BPEDUC consistent Check segment Z1BPEMPLOY Segment Z1BPEMPLOY consistent Check segment Z1BPQUALI Segment Z1BPQUALI consistent Check segment Z1BPVACASS Segment Z1BPVACASS consistent Checking outbound function module ZALE_APPLICANT_CREATE has been generated Checking inbound function module ZIDOC_INPUT_ZAPPLICANT_CREATEF has been generated
<b>Second</b> we configure the partner profile
<b><u>after that we do a test to create an applicant from an idoc</u></b>but we have this message error
make an entry in all required fields even if we put data in
all fields of all idoc segments.
Best regardsHi Mohamed,
first of all, welcome to SDN! Sorry, this is the wrong forum for your question, the experts in the <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode2-3&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D50">ABAP forum</a> will probably help you.
Regards, Stefan -
hi,
first ,i m newhand in ALE BAPI
for the purpose of transfering MatMaster Data from one client to another i want to use BAPI(standardmaterial) in distribution model (BD64).
of course i have set the necessary points in IMG , but what confused me is how can i generate through the method of this object type ?
in the context of ALE/IDOC(MATMAS) we can generate idoc through Tcode bd10 , but in this bapi scenario(standardmaterial/save/idoc type:matmas_bapi) it seems not work .
please kindly suggestHI,
Steps for outbound interface for material master
1, create port
2,create RFC destination
3,create partner profile(here you have to assign process code MATM to mesage MATMAS this prcess code will calls the outbound function module to fill the Idoc)
4 create CDM.
Otherwise refer the below link:
aptechnical.com/Tutorials/ALE/MaterialMaster/Distribute1.htm
Regards,
suresh.d -
F-28 post incoming payment BAPI
Hi All
Please help to find the specific F-28 ( post incoming payment )BAPI to do the above activities.
1. is this BAPI_ACC_DOCUMENT_POST is correct to do the F-28 Posting.
Please confirm
Thanks & Regards
K.GunasekarHi All
I am trying to post the customer incoming payment(f_28) by using BAPI_ACC_DOCUMENT_POST i am getting message as 'document posted successfully' but the document is not posted as i seen in FBL5N for that specific customer.
Please find the below code if i need to change anything or any other parameter i missed out means
please let us know.
gs_documentheader-bus_act = 'RFBU'.
gs_documentheader-username = sy-uname.
gs_documentheader-header_txt = 'test'.
gs_documentheader-comp_code = 'BLE'.
gs_documentheader-doc_date = '20090331'.
gs_documentheader-pstng_date = '20090331'.
gs_documentheader-fisc_year = '2008'.
gs_documentheader-doc_type = 'DY'.
gs_documentheader-obj_type = 'BKPF'.
gs_documentheader-obj_key = '$'.
gs_documentheader-ac_doc_no = '250037'.
gs_documentheader-ref_doc_no = 'REF-222'.
gs_documentheader-obj_sys = 'SPDCLNT800'.
gs_accountgl-itemno_acc = '0000000001'.
gs_accountgl-gl_account = '0000200000'.
gs_accountgl-item_text = 'tEST'.
gs_accountgl-comp_code = 'BLE'.
gs_accountgl-plant = 'BLE'.
APPEND gs_accountgl TO gt_accountgl.
gs_currencyamount-itemno_acc = '0000000001'.
gs_currencyamount-currency = 'USD'.
gs_currencyamount-amt_doccur = '285.15'.
APPEND gs_currencyamount TO gt_currencyamount.
gs_accountreceivable-itemno_acc = '0000000002'.
gs_accountreceivable-customer = '0000100007'.
gs_accountreceivable-gl_account = '0000250000'.
gs_accountreceivable-pmnttrms = 'Z000'.
gs_accountreceivable-bline_date = '20090331'.
gs_accountreceivable-item_text = 'No Text'.
gs_accountreceivable-comp_code = 'LTA'.
APPEND gs_accountreceivable TO gt_accountreceivable.
gs_currencyamount-itemno_acc = '0000000002'.
gs_currencyamount-curr_type = '00'.
gs_currencyamount-currency = 'USD'.
gs_currencyamount-amt_doccur = '-285.15'.
APPEND gs_currencyamount TO gt_currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gs_documentheader
customercpd = gs_customercpd
CONTRACTHEADER =
IMPORTING
obj_type = gv_obj_type
obj_key = gv_obj_key
obj_sys = gv_obj_sys
TABLES
accountgl = gt_accountgl
accountreceivable = gt_accountreceivable
ACCOUNTPAYABLE =
ACCOUNTTAX =
currencyamount = gt_currencyamount
CRITERIA =
VALUEFIELD =
EXTENSION1 =
return = gt_return.
PAYMENTCARD =
CONTRACTITEM =
EXTENSION2 =
REALESTATE =
IF NOT gt_return IS INITIAL.
WRITE:/ gt_return-message.
ENDIF. -
PURCHASE ORDER CREATION USING ALE ( BAPI )...
HI,
I DESPERATELY NEED SOME ADVISE IN CREATING A PURCHASE ORDER USING ALE....I AM VERY NEW TO ALE SO CAN ANYONE EXPLAIN IN STEPS WHAT TO BE DONE IN DETAIL....PLS HELP ME OUT IN THIS REGARD....I WILL GET SOME DATA AS INBOUND IDOCS AND I NEED TO CREATE A PURCHASE ORDER USING ALE USING BAPI( BAPI_PO_CREATE1 ).......HOPING A QUICK REPLY ASAP.....Hi Gianluca,
I need to do the same as per the original post and your answers gets me halfway there. My remaining question is how to get the PO to output the PORDCR messgage on the outbound side (also a SAP system)? Or do you have to output the PO as an ORDERS message and map that to the PORDCR message in something like XI or other middleware?
Thanks for the help.
Johan -
ALE-BAPI-Scenario to XI with several BAPIs
Hello
<b>Descritpion of the current situation:</b>
I configured an ALE Distribution model to transfer the HR payroll accounting data from an single SAP 4.7 system (WebAS 6.20) into 8 different SAP-Accounting-Systems (SAP R/3 4.6C). The model contains 14 BAPIs-Calls which are sent to SAP XI (3.0 SP17) and forwarded to the corresponding SAP-R/3-System, depending on the company-code.
SAP XI demands for each BAPI an RFC-Sender-Adapter which contains a programID. For each programID I have to configure an TCP/IP-RFC destination in the sender system which contains the corresponding programID. The ALE distribution model configuration (BD64) allows only to use logical systems as receiver. So I have to create 14 logical systems with the same identification as the 14 TCP/IP-RFC destinations. In addition I was only allowed to create TCP/IP-RFC destinations with a length of 10 characters, because the field for the logical system isn't longer.
<b>My questions are the following</b>:
1) Is there a possibility to avoid the creation of 14 logical systems in this situation?
2) Are there User-Exits or BADIs to map a different RFC-Destination in ALE before executing the BAPI-Call (i.e. depending on the logical system AND the BAPI)?
3) Does anybody have a similar model and what are the experiences?
Thanks
Beat MuellerHi
Here's the List of the Object-Methots and BAPIs for Checking:
CompanyCode.GetPeriod:
- BAPI_COMPANYCODE_GET_PERIOD
CostType.GetFixaccountList:
- BAPI_FIXACCOUNT_GETLIST
GeneralLedgerAccount.GetDetail:
- BAPI_GL_ACC_GETDETAIL
AcctngServices.DocumentDisplay:
- BAPI_ACC_DOCUMENT_DISPLAY
AcctngServices.PreCheckPayrollAccountAssign:
- BAPI_CODINGBLOCK_PRECHECK_HR
AcctngEmplyeeExpnses.Check:
- BAPI_ACC_EMPLOYEE_EXP_CHECK
AcctngEmplyeeExpnses.Post:
- BAPI_ACC_EMPLOYEE_EXP_POST
AcctngEmplyeeRcvbles.Check:
- BAPI_ACC_EMPLOYEE_REC_CHECK
AcctngEmplyeeRcvbles.Post:
- BAPI_ACC_EMPLOYEE_REC_POST
AcctngEmplyeePaybles.Check:
- BAPI_ACC_EMPLOYEE_PAY_CHECK
AcctngEmplyeePaybles.Post:
- BAPI_ACC_EMPLOYEE_PAY_POST
Customer.Find:
- BAPI_CUSTOMER_FIND
Customer.GetDetail2:
- BAPI_CUSTOMER_GETDETAIL2
Vendor.Find:
- BAPI_VENDOR_FIND
Vendor.GetDetail:
- BAPI_VENDOR_GETDETAIL
and here are the IDocs for Posting the Documents:
ACC_EMPLOYEE_EXP.ACC_EMPLOYEE_EXP02
ACC_EMPLOYEE_PAY.ACC_EMPLOYEE_PAY02
ACC_EMPLOYEE_REC.ACC_EMPLOYEE_REC02
Documentation:
4.6c:
http://help.sap.com/saphelp_46c/helpdata/en/ae/1c4b6e5733d1118b3f0060b03ca329/frameset.htm
Our project had been stopped until now and will be reactivated in April. Have you been successfull posting the payroll form HR to FI/CO via SAP XI? How did you solve it?
Greetings
Beat Muller -
RFC, IDOC, ALE, BAPI
HI everybody,
anybody can tell me
1.what is RFC and its use?
2.What is IDOC and its purpose?
3.What ie ALE and BAPI? please tell me their functions.
points will be rewared.IDocs are simple ASCII data streams. When they are stored to a disk file, the IDocs
are simple flat files with lines of text, where the lines are structured into data fields.
The typical structured file has records, each record starting with a leading string that
identifies the record type. Their specification is stored in the data dictionary.
IDocs is the acronym for Interchange Document. This indicates a set of (electronic)
information which builds a logical entity. An IDoc is e.g. all the data of a single
customer in your customer master data file, or the IDoc is all the data of a single
invoice.
IDoc data is usually exchanged between systems and partners that are completely
independent. Therefore, the data should be transmitted in a format that can easily be
corrected by the computer operators. It is therefore mandatory to post the data in a
human readable form.
Nowadays, this means that data is coded in ASCII format, including numbers which
are sent as a string of figures 0 to 9. Such data can easily be read with any text editor
on any computer, be it a PC, Macintosh, UNIX System, S/390 or any internet
browser.
The information which is exchanged by IDocs is called a message and the IDoc is
the physical representation of such a message. The name messages for the
information sent via IDocs is used in the same ways as other EDI standards. .
Everybody who has ever dealt with interface programming, will find IDocs very
much like the hierarchical data files used in traditional data exchange.
International standards like the ODETTE or VDA formats are designed in the same
way as IDocs are.
Other EDI standards like XML, ANSI X.12 or EDIFACT/UN are based on a data
description language. They differ principally from the IDocs concept, because they
use a programming language syntax (e.g. like Postscript or HTML) to embed the
data. -
Error while posting FBS1 via BAPI
Hi Experts,
getting below error while posting FBS1 via BAPI_ACC_DOCUMENT_POST
TYPE ID NUMBER MESSAGE
E |RW |609 Error in document: BKPF 10000022440GF3032010 TERCLNT303
E |RW |609 Error in document: 100000224 AC_DOC_NO
FB03 Header values --
Document Number 100000250 Company Code 40GF Fiscal Year 2010
Document Date 30.11.2010 Posting Date 30.11.2010 Period 11
Currency EUR
FB03 Line item 1 ( posting key 40 )
G/L Account 711014
Company Code 40GF
Amount 100,00 EUR
Cost Center 40GF219001
Quantity 0,000
FB03 Line item 2 ( posting key 50 )
G/L Account 167005
Company Code 40GF
Amount 100,00 EUR
Assignment 20101130
Text ITEM TEXT 7
Please tell me what i am missing in below code because of which i am getting error in return table
FORM fill_header.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = gd_documentheader-obj_sys.
gd_documentheader-obj_type = 'BKPF'.
gd_documentheader-obj_key = '10000022440GF3032010'.
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'BAPI Test'. "#EC NOTEXT
gd_documentheader-obj_key_r =
GD_DOCUMENTHEADER-reason_rev = '05' .
gd_documentheader-comp_code = '40GF'.
GD_DOCUMENTHEADER-AC_DOC_NO = '100000224' .
gd_documentheader-fisc_year = '2010'.
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
GD_DOCUMENTHEADER-TRANS_DATE =
GD_DOCUMENTHEADER-VALUE_DATE =
GD_DOCUMENTHEADER-FIS_PERIOD = '11' .
GD_DOCUMENTHEADER-DOC_TYPE = 'SA' .
GD_DOCUMENTHEADER-REF_DOC_NO =
GD_DOCUMENTHEADER-COMPO_ACC =
gd_documentheader-bus_act = 'RFBU'.
ENDFORM. "fill_header
FORM fill_currencyamount.
CLEAR T_currencyamount.
T_currencyamount-itemno_acc = 1.
T_currencyamount-curr_type = '00'.
T_currencyamount-currency = 'EUR'.
T_currencyamount-amt_doccur = -100.
APPEND T_currencyamount.
CLEAR T_currencyamount.
T_currencyamount-itemno_acc = 2.
T_currencyamount-curr_type = '00'.
T_currencyamount-currency = 'EUR'.
T_currencyamount-amt_doccur = '100'.
APPEND T_currencyamount.
CLEAR T_currencyamount.
ENDFORM. "fill_currencyamount
FORM fill_accountgl.
CLEAR T_accountgl.
T_accountgl-itemno_acc = 1.
T_accountgl-gl_account = '0000711014'.
T_ACCOUNTGL-ACCT_TYPE = 'S' .
T_ACCOUNTGL-DOC_TYPE = 'SA' .
T_accountgl-DE_CRE_IND = 'S' .
T_accountgl-tax_code = 'V1'.
T_ACCOUNTGL-ACCT_KEY =
T_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
T_ACCOUNTGL-BUS_AREA =
T_accountgl-costcenter = '40GF219001' .
T_ACCOUNTGL-ORDERID =
T_ACCOUNTGL-MATERIAL =
T_ACCOUNTGL-QUANTITY =
T_ACCOUNTGL-BASE_UOM =
T_ACCOUNTGL-BASE_UOM_ISO =
T_ACCOUNTGL-PLANT =
T_accountgl-profIT_ctr = 'S001' .
T_ACCOUNTGL-WBS_ELEMENT =
T_ACCOUNTGL-BILL_TYPE =
T_ACCOUNTGL-DISTR_CHAN =
T_accountgl-ac_doc_no =
T_accountgl-acct_type =
T_accountgl-doc_type =
T_accountgl-comp_code = '40GF' .
T_accountgl-func_area =
T_accountgl-plant =
T_accountgl-fis_period = '11' .
T_accountgl-fisc_year = '2010' .
T_accountgl-pstng_date =
T_accountgl-value_date =
T_accountgl-customer =
T_accountgl-vendor_no =
T_accountgl-costobject =
T_accountgl-acttype =
T_accountgl-val_area =
T_accountgl-po_number =
T_accountgl-po_item =
APPEND T_accountgl to t_accountg2 .
CLEAR T_accountgl.
T_accountgl-itemno_acc = 2.
T_accountgl-gl_account = '0000167005'.
T_ACCOUNTGL-STAT_CON =
T_ACCOUNTGL-REF_KEY_1 =
T_ACCOUNTGL-REF_KEY_2 =
T_ACCOUNTGL-REF_KEY_3 =
T_ACCOUNTGL-ACCT_TYPE = 'S' .
T_ACCOUNTGL-DOC_TYPE = 'SA' .
T_accountgl-DE_CRE_IND = 'H' .
T_accountgl-tax_code = 'V1'.
T_ACCOUNTGL-ACCT_KEY =
T_accountgl-item_text = 'ITEM TEXT 7'. "#EC NOTEXT
T_ACCOUNTGL-BUS_AREA =
T_accountgl-costcenter = '40GF219001' .
T_ACCOUNTGL-ORDERID =
T_ACCOUNTGL-MATERIAL =
T_ACCOUNTGL-QUANTITY =
T_ACCOUNTGL-BASE_UOM =
T_ACCOUNTGL-BASE_UOM_ISO =
T_ACCOUNTGL-PLANT =
T_accountgl-profIT_ctr = 'S001' .
T_ACCOUNTGL-WBS_ELEMENT =
T_accountgl-ac_doc_no =
T_accountgl-acct_type =
T_accountgl-doc_type =
T_accountgl-comp_code = '40GF' .
T_accountgl-func_area =
T_accountgl-plant =
T_accountgl-fis_period = '11' .
T_accountgl-fisc_year = '2010' .
T_accountgl-pstng_date =
T_accountgl-value_date =
T_accountgl-customer =
T_accountgl-vendor_no =
T_accountgl-costobject =
T_accountgl-acttype =
T_accountgl-val_area =
T_accountgl-po_number =
T_accountgl-po_item =
APPEND T_accountgl to t_accountg2 .
ENDFORM. "fill_accountglHi Experts,
getting below error while posting FBS1 via BAPI_ACC_DOCUMENT_POST
TYPE ID NUMBER MESSAGE
E |RW |609 Error in document: BKPF 10000022440GF3032010 TERCLNT303
E |RW |609 Error in document: 100000224 AC_DOC_NO
FB03 Header values --
Document Number 100000250 Company Code 40GF Fiscal Year 2010
Document Date 30.11.2010 Posting Date 30.11.2010 Period 11
Currency EUR
FB03 Line item 1 ( posting key 40 )
G/L Account 711014
Company Code 40GF
Amount 100,00 EUR
Cost Center 40GF219001
Quantity 0,000
FB03 Line item 2 ( posting key 50 )
G/L Account 167005
Company Code 40GF
Amount 100,00 EUR
Assignment 20101130
Text ITEM TEXT 7
Please tell me what i am missing in below code because of which i am getting error in return table
FORM fill_header.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = gd_documentheader-obj_sys.
gd_documentheader-obj_type = 'BKPF'.
gd_documentheader-obj_key = '10000022440GF3032010'.
gd_documentheader-username = sy-uname
gd_documentheader-obj_key_r =
GD_DOCUMENTHEADER-reason_rev = '05' .
gd_documentheader-comp_code = '40GF'.
GD_DOCUMENTHEADER-AC_DOC_NO = '100000224' .
gd_documentheader-fisc_year = '2010'.
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
GD_DOCUMENTHEADER-FIS_PERIOD = '11' .
GD_DOCUMENTHEADER-DOC_TYPE = 'SA' .
gd_documentheader-bus_act = 'RFBU'.
ENDFORM. "fill_header
FORM fill_currencyamount.
CLEAR T_currencyamount.
T_currencyamount-itemno_acc = 1.
T_currencyamount-curr_type = '00'.
T_currencyamount-currency = 'EUR'.
T_currencyamount-amt_doccur = -100.
APPEND T_currencyamount.
CLEAR T_currencyamount.
T_currencyamount-itemno_acc = 2.
T_currencyamount-curr_type = '00'.
T_currencyamount-currency = 'EUR'.
T_currencyamount-amt_doccur = '100'.
APPEND T_currencyamount.
CLEAR T_currencyamount.
ENDFORM. "fill_currencyamount
FORM fill_accountgl.
CLEAR T_accountgl.
T_accountgl-itemno_acc = 1.
T_accountgl-gl_account = '0000711014'.
T_ACCOUNTGL-ACCT_TYPE = 'S' .
T_ACCOUNTGL-DOC_TYPE = 'SA' .
T_accountgl-item_text = 'BAPI Test 1'.
T_accountgl-costcenter = '40GF219001' .
T_accountgl-profIT_ctr = 'S001' .
T_accountgl-fis_period = '11' .
T_accountgl-fisc_year = '2010' .
APPEND T_accountgl to t_accountg2 .
CLEAR T_accountgl.
T_accountgl-itemno_acc = 2.
T_accountgl-gl_account = '0000167005'.
T_ACCOUNTGL-ACCT_TYPE = 'S' .
T_ACCOUNTGL-DOC_TYPE = 'SA' .
T_accountgl-item_text = 'ITEM TEXT 7'.
T_accountgl-comp_code = '40GF' .
T_accountgl-fis_period = '11' .
T_accountgl-fisc_year = '2010' .
APPEND T_accountgl to t_accountg2 .
ENDFORM. "fill_accountgl -
Problem while Posting Assets through BAPI
Hi,
I am using BAPI_ACC_DOCUMENT_POST to handle assets postings in SAP.Here whenever i am running BAPI from SE37 using asset_no with regular length which is 6digits[730011] bapi is giving me correct results and documents gets posted successfully with assets.
The same thing when I do it from my program by populating values and filling the asset_no correctly in BAPI Structure I am getting error as below
"Asset 730011 not found in Company 1001".
but the same assets works fine through SE37.
Could anyone let me know why is this happening?
ThanksTry adding leading zeros.
( When you test via SE37 you come across conv_exit_module / kind of screen exit )
Hope this helps,
Erwan -
Post with Clearing: BAPI for clearing open items
Hi,
I'm looking for a way to use the logic of transaction F-30 (Post with Clearing) in an external application. I want to clear open items. Is there a BAPI or something else for it? While debugging transaction F-30 I found the function module POST_DOCUMENT together with function module FI_DOCUMENT_PROCESS which are used to actually clear the selected open items. But there is lot more coding around these function modules that might be needed/important. So, is there a BAPI that puts all together? Or what's the best way to do it at all?
Regards,
RobertHi,
BAPI_CR_ACC_GETOLDESTOPENITEM BAPI/BUS1010: Determine Oldest Open Item .... BAPI_AR_ACC_GETBALANCEDITEMS Customer account clearing transactions
thanks
abdul
Maybe you are looking for
-
How the heck does one change one's email address in the Control Panel
I know this is the wrong place to post this but I don't know where the right place is! In about a week I am changing to a different broadband provider and the email address I have associated with these forums will no longer be valid. Obviously very e
-
I recently downloaded IOS 7.0.2 believing it to be a fix to a vulerablity as Apple's update notice stated. It infact proved to be a complete revison of IOS 7.0.1 and now I find myself stuck using what I consider a less than stearling Graphic/Human i
-
Text tool: Text doesn't goto the next line
Hi, I ran into a problem where my text doesn't go to the next line when I press ENTER. If I keep on typing, the text would overwrite itself. This is only happening in After Effects (it is fine in other apps...Email, Photoshop, etc.). I know it is p
-
Hi I've seen lots of references to using Ruby programming language with Berkeley DB XML, but I've not been able to track down any suitable resources for this. I did look at http://rdbxml.rubyforge.org/, but so far as I can tell this will not work for
-
I'm implementing ALDSP 2.1 using the BEA best practice with 4 layers (physical, canonical, logical and application). The result of the logical layer is comparable with the example at http://e-docs.bea.com/aldsp/docs21/xquery/sql_pushdown.html#1131036