Fbl1n txn for updating vendor line item
hello every one iam trying to update vendor line item when a billing document get cancelled in vf11 i have tried bapi BAPI_ACC_DOCUMENT_REV_POST .
the requirement is whenever a billing document get cancelled the commision need to get credited again for example if vendor line item is
St Assignment DocumentNo Type Doc. Date S DD Amount in local cur. LCurr Clrng doc. Text
COMMISSION 1700000014 CP 31.08.2011 71.26- INR
it need to get like this
St Assignment DocumentNo Type Doc. Date S DD Amount in local cur. LCurr Clrng doc. Text
COMMISSION 1700000014 CP 31.08.2011 71.26 INR
that means the amount in local currency need to get into + one like above
Please help ASAP & if some one give me code also that will be very helpul for me
Hii ali this is my code & below iam showing u what wasthe data in my return table please suggest me what to do
DATA : P_REVERSAL LIKE BAPIACREV ,
TRAN_DOC(20) TYPE C ,
p_busact LIKE BAPIACHE09-BUS_ACT ,
p_objkey LIKE BAPIACREV-OBJ_KEY .
DATA : P_RETURN LIKE TABLE OF BAPIRET2 ,
WA_RETURN TYPE BAPIRET2 ,
WF_REMARKS ,
PLANT TYPE VBRP-WERKS ,
bill_no type vbrk-vbeln ,
belnr type BELNR_D ,
AWKEY type AWKEY .
data : date1 type sy-datum .
date1 = sy-datum+0(4) .
select single belnr AWKEY from bkpf into (belnr , AWKEY) where blart = 'CP' and
budat = sy-datum and
xblnr = vbrk-kidno . "bill_no .
IF SY-SUBRC = 0 .
CONCATENATE belnr AWKEY+10(4) date1 INTO TRAN_DOC .
ENDIF .
SELECT SINGLE WERKS FROM VBRP INTO PLANT WHERE VBELN = vbrk-kidno .
p_reversal-obj_type = 'BKPFF'.
p_reversal-obj_key = tran_doc.
p_reversal-obj_key_r = tran_doc.
p_reversal-pstng_date = sy-datum.
p_reversal-comp_code = tran_doc+10(4).
p_reversal-reason_rev = '02'.
p_reversal-ac_doc_no = tran_doc+0(10).
p_busact = ' '.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
EXPORTING
reversal = p_reversal
bus_act = p_busact
IMPORTING
obj_key = p_objkey
TABLES
return = p_return.
IF sy-subrc = 0.
---commit Work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ELSE .
*****Use the below statement, if the BAPI is sending back the 'RETURN' internal table.
READ TABLE p_return INTO WA_RETURN WITH KEY TYPE = 'F'.
IF SY-SUBRC EQ 0 .
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
MSGID = WA_RETURN-ID
MSGNR = WA_RETURN-NUMBER
MSGV1 = WA_RETURN-MESSAGE_V1
MSGV2 = WA_RETURN-MESSAGE_V2
MSGV3 = WA_RETURN-MESSAGE_V3
MSGV4 = WA_RETURN-MESSAGE_V4
IMPORTING
MESSAGE_TEXT_OUTPUT = WF_REMARKS.
ENDIF.
ENDIF.
1 E RW 609 Error in document: BKPFF $ DEVCLNT300 000000 BKPFF $
2 E RW 632 Document BKPFF 1700000061WPL12011 DEVCLNT300 cannot be reversed 000000 BKPFF 1700000061WPL12011
3 E F5 814 Document type ZX not defined 000000 ZX
4 E F5 814 Document type ZX not defined 000000 ZX
Similar Messages
-
Function Module for FB01 Vendor line items postings in 3.1 Version
Hello all,
Is there any Function Module for FB01 Vendor line items postings in 3.1 Version. I do not want to go for BDC. Please suggest.
Thanks,
SubbaHi,
search for function module ACCPOSTING* or get development class of transaction FB01 and goto SE80, enter development class - and search in function group's function module.
Cheers.
...Reward if useful. -
Automatic Business Area Derivation Rule for Vendor Line Item in MIRO
Hello Experts,
We trying to use Business Area concept for our client.
I have completed all configuration setting for the business are derivation like
1. Creation of Business Area
2. Assign Business area to Plant / Division (OMJ7)
3. Business area determination from sales area (TVTA)
4. Business Area by Sales Area
5. Checked Field Status Group for Customer and Vendor Reconciliation Account
It is working for for compelete sales process and in Procurement cylce it is picking business for MIGO transaction both the line items.
But
In MIRO (Purchase invoice posting) it is automatically taking Business area to the GR/IR line item and it not taking Business area for the vendor line item (automatically)
I comes know that there is a business area derivation rule for this to happen automatically.
Can you please propose the soulution for the automatic derivation of business in MIRO for vendor line item.
Regards,
ChalapathiHi,
I do mot think there is a BA derivation rule for MIRO.
The best you can do is:
1. Use a user exit or enhancement point for deriving the BA from the GR/IR line and populate that in the vendor line
or
2. You make BA as a mandatory field in the field status group for the vendor reconciliation account. This will then force the user update the BA. We use this option. This is so because at times, the vendor item may need a different business area than the GR/IR line.
Cheers. -
Advance ajdustment for Vendor line items through F110
Hello
We have to make advance ajustment through F110 for the Vendor line items . Advance is posted with special indicators through F-48 and invoice booked through FB60 and MIRO.
I have checked the configuration in FBZP "All Company Codes" where special indicators is assigned. Still advance is not getting adjusted.
Please help me to resolve this issue.
Regards,Hello Prashant,
Check F110 Addtional log tab > Due date check box & also check F110 > Parameter > Next payment date it should be more that what you expecting due date selection
Rgds
Suma -
**URGENT** - Vendor Line Item Reporting
Dear Gurus,
Need some URGENT help with regards to Vendor Reporting?
Our business has requested for a Vendor Line Item / header Report, which will display ALL Vendor Items NET (before tax).
At the moment our business it manually taking out Tax in FBL1n (Vendor Line Item Report).
Please could you kindly let me know if there is ANY report in SAP which displays the Vendor Items NET & GROSS??
Thanks Very Much
RICK
Edited by: Rick Desilva on Apr 22, 2008 4:00 PMHi Shridhar,
All I want is a "net column" - Which will display the vendor invocie amount - BEFORE VAT (Tax).
So on FBL1N or Another SAP-Vendor Report what I need is a
Net Amount column and a Gross Amount Column.
I hope this makes sense and someone can assist....
Thanks & Regards
RICK
Edited by: Rick Desilva on Apr 23, 2008 9:36 AM -
BDC recording(updating two line items in a single call)
Hi,
I have a problem with the transaction PK31,while recording we enterd material number,plant,supply area in the first screen,after that it display line items for that control cycle,I want to update some fields in that line items,when i updated quantity and status fields in the first line item after that i cliked the change "qty/status button" and it saves that field values and it comes out from the transaction.
can you please suggest what is the solution for updating two line items in a single call(PK31 transaction).Hi,
In one screen . Put 2 containers with different names.
cont1,cont2
on each of the container call grid,grid1 like below .
1. this is for item line display
IF g_r_grid IS INITIAL.
CREATE OBJECT g_r_cont
EXPORTING container_name = 'CONT1'.
g_r_variant = sy-repid.
*--Build field catalog
PERFORM build_field_catalog.
*--Layout selection
g_r_layo-cwidth_opt = g_c_set.
g_r_layo-no_rowmark = g_c_set.
g_r_layo-sel_mode = space.
CALL METHOD g_r_grid->set_table_for_first_display
EXPORTING
i_buffer_active = g_c_set
is_variant = g_r_variant
is_layout = g_r_layo
i_save = g_c_set
i_default = g_c_set
CHANGING
it_outtab = g_t_alv
it_fieldcatalog = g_t_fieldcat
it_sort = g_t_sort.
endif
1. this is for error data display
IF g_r_grid1 IS INITIAL.
CREATE OBJECT g_r_cont
EXPORTING container_name = 'CONT2'.
g_r_variant = sy-repid.
*--Build field catalog
PERFORM build_field_catalog.
*--Layout selection
g_r_layo-cwidth_opt = g_c_set.
g_r_layo-no_rowmark = g_c_set.
g_r_layo-sel_mode = space.
CALL METHOD g_r_grid->set_table_for_first_display
EXPORTING
i_buffer_active = g_c_set
is_variant = g_r_variant
is_layout = g_r_layo
i_save = g_c_set
i_default = g_c_set
CHANGING
it_outtab = g_t_error
it_fieldcatalog = g_t_fieldcat
it_sort = g_t_sort.
endif -
To Insert Header Field for Vendor Line Item Display FBL1N
Hai All,
I got a requirement that i have to add a Header item in the standard Tcode FBL1N. The client requirement is to add the Balance Carry Forward Amount Field in the Header level of the Output display.
I have inserted the Header Text in the output display by going through Settings =>Layout => Current Header Rows but iam not able to pass a variable to that pertaining output text.
Pls provide me the solution regarding ....Please note that most vendor line items wont have a PC assigned to them.
I am not sure if you are refering to classic view or new GL data.
Anyway you can use the sum button, and sub total for your levels.
If you want to get the information sub totalled by PC, then I guess you are using the new GL and document splitting.
If that is the case you cannot use FBL1N for this.
There is however a set of reports in Accounts Payable, called new Gl reports and they will provide you the general ledger view and not the entry level view, and you can use the sum and sub total option.
Please award points if this is useful.
Come back if you need further help. -
Profir Center Update for Vendor Line Item
Hi,
While entering an inter company document, cost center is required field for the expense line item. The system is picking up the profit center based on the cost center. However, while saving the document I am getting a error message that you can not post to profit center XX in company code 2. The profit center is only assigned to company code 1 (KE52) and it is not to be assigned to company code 2. Ideally the vendor line item should be assigned to dummy profit center maintained in config but system is picking the profit center assigned to expense line item. The following entery is being passed and the document type is AB. Document Splitting is active.
Expenses A/c. Dr - company code 1 - PC - XX
To Vendor - company code 2
can anyone help me with the same?Hi,
Validations are in 3 steps (Mostly Inter-company transaction fetch this validation in sequence)
1) Derivation Rule
2) Default
3) Dummy
Option 1:
T-code: 3KEI
setup default profit centre by company code and GL Account
if above does not resolve your issue then also setup option 2
Option 2:
Create substitution rule on document completion level
If G/L account is (B/S) XXXXXX u2013 XXXXXX and company code is 2
then PC = 2
End if
try first in test system
regards,
Prashant Rane -
Check number not getting updated in vendor line items
Hi
I am giving check to vendor. Hence i am assigning manual checks in FCH5. Then i did FCHU. After i did FCHU, my check number got updated in assignment field in bank line item. But i am getting problem for vendor line item.
My vendor line item is not updated with check number. Hence i am unable to see what check number is issued against which payment document. I do not want to go in each every document and then click on environment and check information.
I tried with check register also, but i am not getting vendor wise bank details smoothly.
So i want to know how can i get check number in FBL1N vendor-wise. Is there any standard report?You should activate the PAYR-CHECF in FBL1N report. Execute FBL1N report for a vendor and go to Menu->Settings-> Special Fields. A new screen would open. There add the table PAYR and field CHECF. Save and exit out. Now the check number should be displayed in FBL1N report.
Thanks,
SD. -
Withholding tax not able to view in FBL1N - Vendor Line Item report
Dear All,
The VI documents are posted in different vendors. The Tax code has been duly selected and tax was deducted at the time of posting the entry. When we generate the list of vendor line items using standard report FBL1N, we observe that only some of the VI documents in the output show the withholding tax amount in the respective column whereas in some of the VI documents, the withholding tax amount is appearing as zero even though the tax line item is available in the document (same can be seen in FB03).
Please let us know the possible cause for the same.
Regards,
Anand.InguvaDear,
by FBL1N is not possible to check the Extended WT
information due to the technical reasons explained into the note
number 363309.
Furthermore please be aware that by the report RFKQST00 and
RFIDYYWT You can have all the WT details.
I hope this helps You.
Mauri -
SAP QUERY report for vendor line items
Hi
I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
Please advise.i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.
-
MIRO - Business Area not getting updated in Vendor Line item
Hello friends,
I am posting Vendor invoice in MIRO transaction.
After Posting if i see the financial document generated,
Business area has not got updated in Vendor Line item.
What could be the problem ?
Please help me out.
Hari PrasathHi Kale,
Make sure the field Business area is not supressed in tx. OB14. for the GL account in line item 001.
On the other hand, have a look to the note and kba below:
41294 - Business area in customer/vendor item
Kba 1727802 - Business area not getting populated in sales/ purchase tax -
How to calculate open balance Vendor Line Item Display(FBL1N)..?
hi,
is there any way to fetch data for open balnce in vendor report display(FI).
As I have to calculate Credit , Debit and Open balace , also Balance as on date. in Zreport with reff of FBL1N.
Vendor item data has been calculated from BSIk table. also open balance has to be fetched from with reference of Clearing doct and posting doct. i have
so if any FI technical or non techincal person has gone thru these things, those who have clear picture on these plese let me know.
Thnks in advance.Please note that most vendor line items wont have a PC assigned to them.
I am not sure if you are refering to classic view or new GL data.
Anyway you can use the sum button, and sub total for your levels.
If you want to get the information sub totalled by PC, then I guess you are using the new GL and document splitting.
If that is the case you cannot use FBL1N for this.
There is however a set of reports in Accounts Payable, called new Gl reports and they will provide you the general ledger view and not the entry level view, and you can use the sum and sub total option.
Please award points if this is useful.
Come back if you need further help. -
Customer and vendor line item report FBL5N/FBL1N
Dear all,
Could you please let me know, whether there is any way that we can get cost center ans wbs element in customer and vendor line item report FBL1N/FBL5N.
REgards,
Suresh Patipati.Hi Suresh
Through BTE1650 you can fetch it . for this you have to do some development.
You can add additonal field to FBL*N reports with using BTE exit.
Regards
SAP student -
Vendor Line Item Display (FBL1N)
Hi,
I would like to prepare a new layout for transaction FBL1N (Vendor Line Item Display).
I only want to see a summarized view of the open line items per Profit Center.
How can I change the summation levels?
Thanks.
Kind regards,
LindaPlease note that most vendor line items wont have a PC assigned to them.
I am not sure if you are refering to classic view or new GL data.
Anyway you can use the sum button, and sub total for your levels.
If you want to get the information sub totalled by PC, then I guess you are using the new GL and document splitting.
If that is the case you cannot use FBL1N for this.
There is however a set of reports in Accounts Payable, called new Gl reports and they will provide you the general ledger view and not the entry level view, and you can use the sum and sub total option.
Please award points if this is useful.
Come back if you need further help.
Maybe you are looking for
-
Connecting Macbook to TV though HDMI
I'm finally getting an LCD tv and want to be able to connect my macbook to it. I was wondering if the audio would go through the TV if i used this cable. http://www.monoprice.com/products/product.asp?cid=104&cp_id=10428&cs_id=1042802&pid=5311&seq=1&f
-
Dear Gurus, for one discon material we have four follow up material s,clienet want requirement should consume follow up 1,then consume follow up 2,then follow up 3,then consume 4,if still requirement is not fulfilled ,systroupem should create the PR
-
Hi there, can anyone tell me if my text messages will be wiped if I upgrade to OS3. I have some important texts on my phone that I can't lose. I was also wondering if there are any applications I can use where I can save the texts. I tried syphone an
-
An error occurred while parsing DA Hierarchy : Document is invalid: no gram
When logging in to Portal Administration, I am seeing the following error. Please help me resolve this problem. Many thanks. An exception has been thrown while trying to render this page. Exception Message: An error occurred while parsing DA Hierarch
-
Lost all User settings / presets
hi Using LR 2.2 on MacBook Pro / Leopard 10.5 worked great so far. just finished a long development session, went through lots of pictures. After quitting LR I seem to have lost all my user settings, like my development settings, the metadata presets