BAPI for clearing: BAPI_PAYM_ITEM_POST_CLEARING
I'm in R/3 4.7, just got request to development a program for GL clearing with a spreadsheet, has anyone got experience on BAPI_PAYM_ITEM_POST_CLEARING? or is there any BADI or better way to make clearing GL item with mapping from an external excel spreadsheet(clearing item list from external system)?
Thanks
No one knows?!
Similar Messages
-
BAPI for clear open item in FI module
Hiu2026
Anybody knows if there is a BAPI for clear open item in FI module?
Manually we can use F-03 or F-04 for clearing open item.http://www.se80.co.uk/sapfms/b/bapi/bapi_ctraccontractaccount_clr.htm
-
Who does know which bapi for Clearing,sucu as F-32 F-44 ,thank you!
i want to find a bapi for Clearing,such as F-32 F-44 ,
but i can't find it ,i don't kown whether have such bapi,
who can tell me ,thank you very much!You can use the report RFBIBL00.
Please read the documentation of this report to have a better idea.
Generally, this report can post all type of FI douments like document creation, clearing of the documents. So, I think this will solve your purpose.
Regards,
Naimesh Patel -
Bapi for clearing reversed items of invoices
Hi,
Is there a BAPI for clearing invoice against its reversed item and down payment against its invoice.
I know we can do it using BDC but was looking for a BAPI.
I greatly appreciate feedback.Hi,
Use this
BAPI_PAYIT_POST_CLEARING
<b>Reward points</b>
Regards -
BAPI for clearing documents -Using Transaction F-44
Hi all,
Is there any BAPI which can be used for clearing docs using transaction F-44.
I have already seen threads on SDN for the same but couldn't find any BAPI.
Regards
TaranamI have the same question as you , please tell me if you had known , thanks !
Edited by: HB WANG on Mar 4, 2008 4:08 PM -
BAPI for clearing vendor invoice
Dear SAP Guru's,
I need to make clearing of the invoice made for particular vendors on daily basis, i have tried to look in the forum but i find regarding the posting of vendor invoice but ---
My requirement is to schedule a z-program which will automatically clear the vendor invoice. i am looking for any relevant BAPI that can be used for the said purpose.
Thanks in advance,
RahulHi Rahul,
Hey did you get any BAPI to clear vendor invoice.
Regards
Neeraj Sharma -
BAPI - For Clearing Vendors by using Document Number in F-51.
Hi One and All,
As I have searched Forum before posting, I found few BAPI's and FM's which are not helpful for my requirement.
a. 'BAPI_PAYM_ITEM_POST_CLEARING'
b. 'POSTING_INTERFACE_CLEARING' and soon.
I am Posting the Vendor Invoice as in F-43 Using 'BAPI_ACC_DOCUMENT_POST' , Now I want to Clear these generated Document no.s in F-51.
By manually I can do it, But I need a BAPI / FM to do Clear a bunch of Vendor Document Numbers.
Welcome for all suggestions.
Regards,
Suneel GHi Suneel,
The FM is the correct one,,,! But you have the Above Exception,,,
Read the RFBIBL00 Documentation,,, Look how to pass the data in a Batch I/P....
Now lets put a break there,,, The RFBIBL00 Still calls the FM 'POSTING_INTERFACE_CLEARING', By this, the error may(I am not sure, But there is a chance) trigger again...!
The Alternate Solution may be, The FM 'POSTING_INTERFACE_CLEARING' calls
Include LFIPIF00 And if yo utry to look into that include,
FT-PROGRAM = REP_NAME_A.
FT-DYNPRO = '0105'.
FT-DYNBEGIN = 'X'.
APPEND FT.
IF NOT BELNS IS INITIAL.
CLEAR FT.
FT-FNAM = 'RF05A-BELNS'.
FT-FVAL = BELNS.
APPEND FT.
ENDIF.
IF NOT BUKRS IS INITIAL.
CLEAR FT.
FT-FNAM = 'BKPF-BUKRS'.
FT-FVAL = BUKRS.
APPEND FT.
ENDIF.
IF NOT GJAHS IS INITIAL.
CLEAR FT.
FT-FNAM = 'RF05A-GJAHS'.
FT-FVAL = GJAHS.
APPEND FT.
ENDIF.
IF NOT BUDAT IS INITIAL.
CLEAR FT.
FT-FNAM = 'BSIS-BUDAT'.
FT-FVAL = BUDAT.
APPEND FT.
ENDIF.
CLEAR FT.
FT-FNAM = 'BDC_OKCODE'.
FT-FVAL = '/11'.
APPEND FT.
PERFORM TRANSAKTION_BEENDEN USING P_NO_AUTH.
I have seen the 100's of lines like the above code...! Which means You can simple write a BDC for your requirement...(Its just an alternate when no other option)
Thanks & regards,
Dileep .C -
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 Clear Vendor (F-44 transaction)
Hello,
I have two documents. One is of Z5 document type(MM Invoice Reversal) and other is of RE document type (Invoice - gross). I clear them using F-44 (Clear Vendor Transaction). Is their any BAPI through which i carry out the same process as it is in F-44 transaction >?
Thanks,
Shehryar.
Edited by: shehryar dahar on Sep 17, 2008 7:08 AMhii
try using BAPI_PAYIT_POST_CLEARING
regards
twinkal -
Bapi function module for clearing
Hi,
This is pravakar ,Any body can help me is their any function module in BAPI for clearing the invoice?Hello Majhi,
Try the FM "FDM_COLL_INVOICE_AND_P2PAY_GET".
Thanks,
Greetson -
Hi....
I'm using BAPI_ACC_DOCUMENT_POST to clear vendor open items for the T-code f-44.The following is my below code and it seems to be going on fine but the data in the table bsak(Vendor accounts cleared items) is not updated..with the concern vendor number and documnet no....more over when i'm checking this FM the document post perform is displaying an erro RW with number 604.......in the return internal table.....what wud be the problem for this i'm posting my coding below plz suggest me for this......Is the Bapi correct for the concern document......
*& Report Z_TEST_F44 *
REPORT z_test_f44 NO STANDARD PAGE HEADING
LINE-COUNT 65
LINE-SIZE 132
MESSAGE-ID zfi.
*tables: bsik.
TYPES: BEGIN OF tp_tab_bsik,
bukrs TYPE bukrs,
lifnr TYPE lifnr,
gjahr TYPE gjahr,
budat TYPE budat,
bldat TYPE bldat,
blart TYPE blart,
bschl TYPE bschl,
END OF tp_tab_bsik.
DATA: l_tab_bsik TYPE tp_tab_bsik OCCURS 10.
DATA: l_wa_tab_bsik TYPE tp_tab_bsik.
DATA:BEGIN OF it_account_tab OCCURS 0,
line(255),
END OF it_account_tab.
DATA:
g_fis_period(2) TYPE c,
g_clear_date(10) TYPE c,
g_accountno(10) TYPE c,
g_currencytype(3) TYPE c,
g_docno(10) TYPE c,
g_amount(13) TYPE c,
g_sign TYPE c,
g_pstkey(2) TYPE c,
g_companycode(4) TYPE c.
DATA:
it_error_acc_tab LIKE it_account_tab OCCURS 0 WITH HEADER LINE.
*include bdcrecxx.
--Start of Selection Parameters--
SELECTION-SCREEN:BEGIN OF BLOCK blck01 WITH FRAME TITLE text-001.
PARAMETERS:
p_fname LIKE rlgrap-filename,
p_fserv LIKE rlgrap-filename.
SELECTION-SCREEN:END OF BLOCK blck01.
--End of Selection Parameters--
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'DATASET'
IMPORTING
file_name = p_fname.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fserv.
DATA:
l_pfad LIKE ibipparms-path.
CALL FUNCTION 'F4_FILENAME_SERVER'
EXPORTING
pfad = l_pfad
IMPORTING
file_name = p_fserv
EXCEPTIONS
no_file_on_server = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
--START OF SELECTION--
START-OF-SELECTION.
PERFORM get_data_bsik.
PERFORM get_default_data. "Getting the default data
PERFORM get_input_data. "Uploading the file data
PERFORM format_input_data. "Formating the data
PERFORM process_data. "Posting using F-44(Bapi)
IF it_error_acc_tab[] IS INITIAL.
MESSAGE i001(ztest).
ENDIF.
END-OF-SELECTION.
--End OF SELECTION--
*& Form get_default_data
text
--> p1 text
<-- p2 text
FORM get_default_data.
ENDFORM. " get_default_data
*& Form get_input_data
text
--> p1 text
<-- p2 text
FORM get_input_data.
DATA:
l_fname TYPE string,
l_dsn(128) TYPE c,
l_rec(80) TYPE c.
l_fname = p_fname.
IF NOT l_fname IS INITIAL.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_fname
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = it_account_tab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
BREAK-POINT.
l_dsn = p_fserv.
OPEN DATASET l_dsn FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc <> 0.
EXIT.
ENDIF.
READ DATASET l_dsn INTO l_rec.
APPEND it_account_tab.
WHILE sy-subrc <> 0.
READ DATASET l_dsn INTO l_rec.
APPEND it_account_tab.
ENDWHILE.
CLOSE DATASET l_dsn.
ENDIF.
ENDFORM. " get_input_data
*& Form format_input_data
text
--> p1 text
<-- p2 text
FORM format_input_data.
SORT it_account_tab.
ENDFORM. " format_input_data
*& Form process_data
text
--> p1 text
<-- p2 text
FORM process_data.
DATA:
l_documentheader LIKE bapiache09,
l_accountgl LIKE bapiacgl09 OCCURS 2 WITH HEADER LINE,
l_vendoritem LIKE bapiacap09 OCCURS 2 WITH HEADER LINE,
l_currencyamount LIKE bapiaccr09 OCCURS 2 WITH HEADER LINE,
l_currencytype LIKE bapiaccr09-currency_iso,
l_return LIKE bapiret2 OCCURS 5 WITH HEADER LINE,
l_obj_type LIKE bapiache02-obj_type,
l_obj_key LIKE bapiache02-obj_key,
l_obj_sys LIKE bapiache02-obj_sys.
LOOP AT it_account_tab.
CLEAR:
g_fis_period,
g_clear_date,
g_accountno,
g_amount,
g_sign,
l_documentheader,
l_vendoritem,
l_accountgl,
l_wa_tab_bsik,
l_currencyamount,
l_return.
REFRESH:l_vendoritem,
l_currencyamount,
l_return.
g_accountno = it_account_tab-line+0(10).
g_clear_date = it_account_tab-line+11(10).
g_fis_period = it_account_tab-line+22(2).
g_companycode = it_account_tab-line+25(4).
g_docno = it_account_tab-line+30(10).
g_pstkey = it_account_tab-line+41(2).
g_amount = it_account_tab-line+44(13).
g_currencytype = it_account_tab-line+58(3).
IF sy-subrc <> 0.
MOVE-CORRESPONDING it_account_tab TO it_error_acc_tab.
APPEND it_error_acc_tab.
CLEAR it_error_acc_tab.
CONTINUE.
ENDIF.
READ TABLE l_tab_bsik INTO l_wa_tab_bsik WITH KEY bukrs = g_companycode
lifnr = g_accountno.
l_documentheader-obj_type = 'BKPFF'.
l_documentheader-obj_key = sy-uzeit.
l_documentheader-obj_sys = 'ABAPEML2'.
l_documentheader-bus_act = 'RFBU'.
l_documentheader-ac_doc_no = g_accountno.
l_documentheader-username = sy-uname.
l_documentheader-comp_code = g_companycode.
l_documentheader-fis_period = g_fis_period(2).
l_documentheader-doc_date = g_clear_date.
l_documentheader-pstng_date = g_clear_date.
l_documentheader-fisc_year = l_wa_tab_bsik-gjahr.
l_documentheader-doc_type = l_wa_tab_bsik-blart.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = g_accountno
IMPORTING
output = g_accountno.
l_accountgl-itemno_acc = '2'.
l_accountgl-gl_account = g_accountno.
l_accountgl-comp_code = g_companycode.
l_accountgl-pstng_date = sy-datum.
l_accountgl-doc_type = l_wa_tab_bsik-blart.
l_accountgl-ac_doc_no = g_accountno.
APPEND l_accountgl.
l_vendoritem-itemno_acc = '2'.
l_vendoritem-vendor_no = g_accountno.
l_vendoritem-comp_code = g_companycode.
APPEND l_vendoritem.
l_currencyamount-itemno_acc = '2'.
l_currencyamount-currency_iso = g_currencytype.
l_currencyamount-amt_doccur = g_amount.
IF g_sign = '-'.
l_currencyamount-amt_doccur = l_currencyamount-amt_doccur * -1.
ENDIF.
APPEND l_currencyamount.
*CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = l_documentheader
IMPORTING
obj_key = l_obj_key
TABLES
accountgl = l_accountgl
accountpayable = l_vendoritem
currencyamount = l_currencyamount
return = l_return.
IF l_obj_key NE '$'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ELSE.
MOVE-CORRESPONDING it_account_tab TO it_error_acc_tab.
APPEND it_error_acc_tab.
CLEAR it_error_acc_tab.
ENDIF.
ENDLOOP.
ENDFORM. "process_data
*& Form get_data_bsik
text
--> p1 text
<-- p2 text
FORM get_data_bsik.
SELECT bukrs
lifnr
gjahr
budat
bldat
blart
bschl
FROM bsik INTO TABLE l_tab_bsik.
ENDFORM. " get_data_bsik
Points wud be surely awarded....................hi kiran....
this bapi will get all the open items from <b>bsik</b> and will show us the open items but i want the bapi for clearing this open items and post it in the<b> bsak</b> table.And more over this is concerned with the Customer side ie bsad and bsid(clear items) tables.........Will this work?????????
Thanks......... -
BAPI_ACC_DOCUMENT_POST for Clearing (F-30)
How can we use BAPI_ACC_DOCUMENT_POST for Account posting with Clearing(F-30). I am able to do it for normal GL postings(FB01).I want to use this BAPI for clearing the Open items for a given customer...
Thanks
RajeshI don't think BAPI_ACC_DOCUMENT_POST is designed to perform a "Post with clearing". However, function module POSTING_INTERFACE_CLEARING will allow you to access the functionality of transaction FB05 (F-30 is really calling FB05 with BKPF-BLART = 'DA'). The FM documentation contains the following:
<i>Post with clearing (FB05) using internal posting interface
Function module 'POSTING_INTERFACE_CLEARING' creates a batch input transaction (or Call Transaction ... Using ...) for a document to be posted using transaction FB05.
The document header data and the data for the bank postings are transferred to table FTPOST. The rules for filling table FTPOST are described in the documentation for function module 'POSTING_INTERFACE_DOCUMENT'.
</i>
Best of luck!
Regards,
James Gaddis -
Bapi or FM for clearing Customer and Vendor Open Items
Hi.
I am looking for a bapi to post incoming payments from customers (F-28) and outgoing payments to vendors (F-53). I already tried BAPI_ACC_INVOICE_RECEIPT_POST, but with no success (just created a new open document), so if somebody knows how to use this BAPI to perform the clearing please post an example.
Thanks.
Edited by: Divya Saxena on May 22, 2009 4:06 PMHi
Just as Rich said
It can use the BAPI BAPI_ACC_DOCUMENT_POST but only to post the document for incoming and outcoming payment, because they are account documents.
But there isn't a BAPI to clear the open items: u should create it.
Max -
BAPI for reset cleared items ie for transaction FBRA
Hi all,
Is ther any BAPI for trasaction FBRA ?
Ther are 2 BAPIS REVERSE_CLEARING or FM_REVERSE_CLEARING
but are not released .
Kindly do the needful.Hi ,
You should use FM CALL_FBRA AND CALL_FB08 function modules one by one.
CALL_FBRA is for clearing items
CALL_FB08 is for Reversing items
Regards,
Imran -
BAPI _ACC_DOCUMENT_POST for clearing open items
Hi,
I am using BAPI_ACC_DOCUMENT_POST for clearing open items.
When i post the same in F.13 (automatic clearance ) there is no error log,when i do in BAPI_ACC_DOCUMENT_POST
its returns two errors.
609 Error in document: IDOC 010000008410012009 CKDCLNT140
702 Balance in transaction currency
Header details are given as per certain sdn suggestions.
note: i have changed the G/L account as automatic account (if i am using original G/L account its throwing an error msg
such as direct posting not possible).
Can any one help to get through this??
Edited by: sangeearvind on Dec 16, 2009 12:24 PMHi
The first problem is you're using the wrong BAPI: BAPI ACCDOCUMENT_POST is to post account document, not to clear open item.
I don't think there's a BAPI to do it
Max
Maybe you are looking for
-
Problem with 2 iPods one computer
My grandson is using my computer for his iPod. I just got my own iPod and followed the instructions on how to use multiple iPods with one computer using Method 3. http://support.apple.com/kb/HT1495 I was able to put some of music on my iPod but then
-
I have multiple devices that have my iCloud E-mail, I want to disable the E-Mail on some of the devices but keep it on others, I do not have physical access to the ones I want to disable but I do have access to the devices I want to keep receiving ma
-
Error while testing connection WAS in Enterprise Portal
Hi All, While performing the connection tests in SAP enterprise portal I have used user logon method UIDPW ITS connection and Connection Test for Connectors are getting successful but SAP Web AS Connection is showing -: Results 1. The system ID is va
-
Preloader for xml file and stage assets
I have a Flash app that shows a map with different regions colored depending on values in an external xml file. I also have a simple preloader that I want to appear until all the elements of the app are ready to be displayed. However, when I use the
-
IDOC Data record is appending with NULL characters instead of spaces.
Hi Gurus, 1) We have created a port with Japanese characters for MATMAS05 (IDOC type) and trying to download an IDOC into an XML file using the ADAPTER, the actual data is less than the length of the IDOC string so we need to append the remaining