BAPI for F.04 (Posting with Clearing)
Hi Experts,
I got 2 Function Modules for F.04. T.code,
1. BAPI_ACC_DOCUMENT_POST.
2. BAPI_ACC_GL_POSTING_POST.
please tell me which one is more suitable and if possible then please provide code
Thanks & Regards,
Vimarsh B.
Hi,
Please find the code below:
LOOP AT it_upload_rec.
header-bus_act = 'RFBU'.
header-doc_date = it_upload_rec-bldat.
header-pstng_date = it_upload_rec-budat. header-header_txt = 'F-02 Posting'.
header-comp_code = 'PL10'.
header-doc_type = 'SA'.
header-username = sy-uname.
APPEND header.
CLEAR header.
account_gl-itemno_acc = '1'.
account_gl-gl_account = it_upload_rec-account1.
APPEND account_gl.
CLEAR account_gl.
account_payable-itemno_acc = '2'.
account_payable-vendor_no = it_upload_rec-account2.
APPEND account_payable.
CLEAR account_payable.
currency_amount-itemno_acc = '1'.
currency_amount-currency = 'INR'.
currency_amount-amt_doccur = it_upload_rec-amount.
APPEND currency_amount.
CLEAR currency_amount.
ENDLOOP.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = header
* CUSTOMERCPD =
* CONTRACTHEADER =
IMPORTING
obj_type = gv_obj_type
obj_key = gv_obj_key
obj_sys = gv_obj_sys
TABLES
accountgl = account_gl
ACCOUNTRECEIVABLE =
accountpayable = account_payable
* ACCOUNTTAX =
currencyamount = currency_amount
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
return = it_return
* PAYMENTCARD =
* CONTRACTITEM =
* EXTENSION2 =
* REALESTATE =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
KR Jaideep,
Similar Messages
-
BAPI function modules for F-30(Post with clearing)
Hello,
Is there any BAPI FM that can be used for F-30?
I am trying to program a BDC for this transaction.
But it turns out very difficult since there are a few radio buttons and also it's hard to determine the line number of an open invoice.
Thanks,
KarenHi,
try to use rfbibl00 with structures bselk and bselp and TA FB05
look here: Re: BAPI for F-30
Andreas -
BAPI for Posting with clearing
Hi all,
Is there any BAPI which can do posting with clearing?Generally we can acheive this through a transaction F-04.BAPI required which can acheive the functionality of F-04.Any Inputs will be highly appreciated with points.
Thanks and Regards
Kiranhi,
check this function module.
POSTING_INTERFACE_CLEARING. -
Creating a "Post with clearing" document in workflow.
Hi All.
Do you know if there exists a standard task or business object that would allow for creating a "post with clearing" document in workflow as a result of a user decision?
Best
GregHi,
You need to check the original program generating the batch job.
If it is a custom program, then you can include a check on currency, so that no batch data gets created for incorrect currency.
Regards,
Gaurav -
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 -
Bapi for Transfer posting with clearing
Hello,
please let me know the bapi for Transfer posting with clearing for transcation F-04 or FB05.
quick reply wil be helpfull.
Thanks,
ramHi
I don't know in release greater than 4.7, but there isn't that BAPI.
There's a BAPI to post a document, but the clearing is an internal transaction so I don't believe there's a BAPI for it.
Anyway you can try to create one using the std BDC RFBIBL00: it suppoerts that transaction.
Max -
How to use function to Post with Clearing - Partial Pymnt with FB05
hi,Dears,
I am write a function to post with clearing - partial pymnt or Res. Items with FB05, but there is no any BAPI to do that, and I find the function POSTING_INTERFACE_CLEARING.
but it seems that the function is only for Post with Clearing-Standard Screen, how to use that function to post with clearing - partial pymnt or Res. Items???
Many thanks.Hi Guys,
If you post partiall payment you don't clear the invoice. Just post a normal item and fill the connection with the invoice, filling fields rebzg, rebzj, rebzz.
PERFORM fill_ftpost using:
'P' '3' 'BSEG-BSCHL' '15', "
'P' '3' 'BSEG-HKONT' customer_id ,
'P' '3' 'BSEG-WRBTR' tmpt,
'P' '3' 'BSEG-GSBER' it_pozkli-gsber,
'P' '3' 'BSEG-SGTXT' 'Patial payment',
'P' '3' 'BSEG-REBZG' it_pozkli-belnr,
'P' '3' 'BSEG-REBZJ' it_pozkli-gjahr,
'P' '3' 'BSEG-REBZZ' it_pozkli-buzei. -
Unable to clear open items through post with Clearing F-04
Hi Experts,
I want to clear one GL code through transaction F- 04 Post with Clearing.
When I clear the open items throgh f-04, (Document types UA , KR , MJ ) it posts the document but again it makes a new line item as a open item with same amount.New line item shows in a list as a open item. ( I tryed F-03 as well)
I am unable to unable to understand the exact functionality of transacion F-04.
Can anyone explain me please ? Please advice if I am missing anthing on this.
Thanks,
ManasiHi Manasi,
As the name suggest, F-04 allows you to POST to one account by CLEARING another account.
For example you have a provision account which needs to be adjusted when the actual expense is paid - this how it will be done -
Give the document header details, select "Transfer posting with clearing", enter the posting key (40), give the GL account (expense account as per the example) and go to the next screen.
Give the amount and other details for the line items and then select "choose open item" from the menu. The new screen will ask you to give an account where you will give the provision account (the account from which the open item needs to be cleared).
Press enter and you will get the list of open items for the GL account from where you can proceed like any other clearing.
Hope this clarifies. Do revert in case of any further queries.
Thanks and Regards,
anit -
Hi,
I have made 2 jv transaction posting in fb50 those are reflecting in fbl3n as open items but if i want to clear it through F-04 post with clearing those line items are not appearing pls suggest the solution what might be reason for the same.
waiting for early reply.
Regards
PramodDear Satwik,
ever doc. have 2 ways to clear
1) post with clearing
2)post with out clearing
post with clearning : if u have a invocie and u r passing the payment for that invoice if u chose post with clearning system clear the invoice against that payment.
2)post with out clearning: if u have a invoice and ur passing gthe payment for that invoice if u chose post with out clearning that time system is not clearing the invoice amount
and its showing as 2 line item one is invoice and 2nd is payment line item, after that u can clear both line item against each other
Regards
radha -
F-30: posting with clearing a document with special G/L indicator and tax
Hi All,
by t.code F-02 I've posted a document with the follow items:
PK SG Account Description
40 Bank G/L Account u20AC 1200,00
19 A Customer code u20AC 1000,00- (1000,00 amount and 200,00 tax amount)
50 Tax G/L Account u20AC 200,00-
If I launch the t.code F-30 (post with clearing), choose that customer and select the special G/L indicator "A", SAP displays
the document I've posted with an amount equal to 1.200,00- instead of 1000,00.
This does't allow me to clear the open Item....
Could anyone hel me?
Thanks
GandalfHi
A payment recorded with special GL indicator is automatically set as locked. This is sap program and cant be changed. When the related invoice is recorded , the down payment can be cleared with it using F-39, provided the down payment relates to the same sales / purchase order.
For the difference in customer amount, its difficult to answer as it may be due to wrong account selection or wrong amount entered in customer.
Thanks
kamala -
Post with clearing: FB05 No open items were found
Hi,
I am using FB05 (have selected 'transfer posting with clearing) to clear the vendor open items and post to a GL account, but I encounter the message 'No open items were found' (Msg F5 170) eventhough the vendor has open items and morever it is not blocked.
Any reason why this error.
Tks,
SSThere can be any number of reasons why a standard transaction does not pick up open items for your vendor account. Some possible reasons are:
- outside date range, if you are giving a date range
- they might be special g/l transactions, not normal line items
- they migh not be open line items, but noted items
- the items might not be open anymore when FB05 is being run
Do a little more investigation into your system - we can only give suggestions from here.
Regards
Gulshan -
F-04 - Post with clearing : Process open items
Hi everyone,
I encountered issues in T-code : F-04 - Post with clearing : Process open items.
The document header text data is not display in F-04. It is blank.
However, when i check in FBL3N the document header text data was there.
Pls assist on how to make the document header text data display in f-04?
Which configuration or any other way to do that?
Thanks.
Best Regards,
JooHi,
The words of "Document Header Text" was there.
The data/informations for the Document header text is not there.
Pls advice.
Thanks.
Regards,
Joo -
TCode: F-30 (Post with Clearing)
Hi experts,
I faced problem when want to post thru transaction code: F-30.
I Logon SAP with my User ID: FIN-AAA
Transaction Code: F-30
Document Date: 08.12.2009
Posting Date: 08.12.2009
Document Type: DN
Currency: USD
Doc Header Text: Clearing
Clearing Text: Clearing
Select radio button: Transfer posting with clearing
Choose Open line item: 2 lines with same amount attached.
Then, select Document Tab > Simulate
Result: Prompt up error message: "Enter line items first of all or choose open items."
But i tried another User ID: FIN-CCC
Same step and posting:
Result: Prompt up successful message: "2 items were selected"
I had checked on all authority for T-Code: F-30, and attached all roles into User ID: FIN-AAA.
But, still found same error.
How I want to solve this issue?HI,
First you need to enter Debit line item if you are clearing credit balance or credit line item if you are clearing debit blance.
Posting keys for customer: 07 or 17
Postking keys for Vendor: 27 or 37.
Posting keys for GL: 40 or 50
System is asking you want to clear againt which either gl or customer or vendor. This is the meaning of the error. -
Post with clearing through transaction code f-04
Hi
While clearing the Gl account Manually with transaction code F-04 we
are getting the Error Consolidated companies SASA and ' ' are different
Diagnosis
The number of the affiliated company must be clear for the selected
document type for all line items. In this case at least two different
companies or a company in connection with a business partner who does
not belong to a company are stated.
Procedure
If you selected the correct accounts, you must enter the document with
a document type that allows cross-company posting. Otherwise, please
correct the entered account.
Please help in this matter. This is bit urgent
Regards
Vinay BhaskarHi Manasi,
As the name suggest, F-04 allows you to POST to one account by CLEARING another account.
For example you have a provision account which needs to be adjusted when the actual expense is paid - this how it will be done -
Give the document header details, select "Transfer posting with clearing", enter the posting key (40), give the GL account (expense account as per the example) and go to the next screen.
Give the amount and other details for the line items and then select "choose open item" from the menu. The new screen will ask you to give an account where you will give the provision account (the account from which the open item needs to be cleared).
Press enter and you will get the list of open items for the GL account from where you can proceed like any other clearing.
Hope this clarifies. Do revert in case of any further queries.
Thanks and Regards,
anit -
Error Message while doing F-51 (Post with Clearing)
Hi All,
We are getting an error message as "Consolidated companies " " & 009062 are diff" while executing F-51 (Post with Clearing).
While executing F-51 we are using the document type as KG.
Can you please let us know the possible reasons for such error message and how to overcome it.
Thanks in Advance..
Regards
MayankHi Suma,
First clear Down payment with using of F-54 & next you can clear normal OI.
Rgds
SumaMani
Maybe you are looking for
-
Package javax.servlet.http does not exist
Hello All, A few problems here 1. My classpath doesnt seem to work.: .;"C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar" 2. As a result, i get many errors in my simple code, but there are still a few that are not related to
-
Print to PDF: won't open in Adobe Reader, but will in Preview
Subject says it all. I use "Save as PDF" from an application and the resulting file does not open/display properly using Adobe Acrobat, but it opens and displays just great using Preview. Dubya-tee-eff ? Here is the offending PDF
-
I am writing a servlet that searches a Directory and gets all of the volume objects it has. I want to take the volume objects and get all of the information about them. I have been able to do this but I want the servlet to be multi-threaded because I
-
Wrong pass word entred more than 10 times.
wrong pw entred by children= itouch diactivated how to restore it ?
-
Hi! I would like to implement a case study in area of FI or CO. Can some one give me a "How to Guide" or other documentation in this area? My Case: I would like to load the data (accounting area, orders, etc.) from SAP ECC 6.0 IDES system and analyz