Fb01 to f-43
Hi gurus,
I worked on a interface where I was required to create an accounting document for transaction fb01 using BAPI_ACC_DOCUMENT_POST, but now I got the new requirement where I need to modify that program and now the program should work for tcode 'f-43'and I didn't find much of the difference between these two transactions, can you please suggest me how to proceed and what all should I need to take care of.
Thanks
Rajeev Gupta
hi Rajeev,
you have to take care, because F-43 posts vendor invoice (FB01 is able to post anything). There is another BAPI for vendor invoice: BAPI_ACC_INVOICE_RECEIPT_POST, you can try to use this one as well.
ec
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. -
Post document in FB01 with Document curr zero and value in local curr
Hi all,
For uploading data migration transactional data we are using FB01. There are payment transactions with amount in local currency for exchange rate difference, but corresponding zero amount in document currency. But the system is not allowing to post an item with zero value in document currency when it has value in local currency field. I also tried T-code FBB1. Though it allows zero posting, it doesnot allow posting with Vendor item.
(Note: system accepts a value from .01 in document currency field, but doesnot accept 0).
Could you pl share any inputs regarding this.
Thanks.
Sri.The scenario I put was a valid scenario. When we use FB01 to upload automatically posted foreign exchange revaluation transactions it will fail and the workaround used was to post in foreground by changng the 0 value field as .01.
-
How to add long text in bdc for transaction fb01 ?
IN the existing program of bdc fb01
i have to add a long text field
but it gets stuck while i process in sm35
is there a fm to add the field directly
thanks in a advanceHi
You can upload the Long texts separately into the transaction using the CREATE_TEXT fun module
Need to pass the correct parameters like OBJECT,ID, OBJECTNAME and LANGuage with the proper declarations.
see the sample code and do accordingly
REPORT zmm_longtext_sm
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Description : This Program is used to Upload the Service Master
: Long Texts using the Fun Module CREATE_TEXT
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
asnum like asmd-asnum, " Service No
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras. " Language
Constants
CONSTANTS:
Object ID for Long Text of Service Master
c_best TYPE thead-tdid VALUE 'LTXT',
c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
Upload the Texts
SORT itab BY asnum.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
concatenate '00000000000' itab-asnum into dl_name.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Service No'(001),
itab-asnum.
ELSE.
WRITE:/ 'Long Text Created Successfully for Service No'(002),
itab-asnum.
ENDIF.
AT END OF asnum.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
<b>Reward points for useful Answers</b>
Regards
Anji -
Not able to get the GL accounts in FB01 through F4 Selection
Hello Everybody,
I am facing a very strange issue while using FB01, F-02 or any other transction code where I am using GL acocunts for transactions.
On executing transaction FB01, systems prompts for Date, Document type and posting key. After entering PK 40, I need to select one of the GL Accounts. I use F4 functionality and a list of GL accounts is shown in a separate screen. When I double click one of the GL Accounts, the GL acocunt does not gets updated in the FB01 screen i.e., the GL account field is empty.
I have tried all possible ways of finding the reason for such a behaviour of SAP.
Could anyone help me to know what has gone wrong?
Regards,
Mallikarjun.Hi,
Check in popup for the icon"INSERT IN PERSONAL LIST". Click on delete the personal list and check again.
Regards
Milind Sonalkar -
Update Failure in T.Code F-43(FB01)
Hi experts,
when i enter invoice in F-43, system generated document no., but if i see in FB03 document was not showing and it was not updated in table BKPF.
Update was terminated
System ID.... SHD
Client....... 110
User..... ITIG_FI
Transaction.. FB01
Update key... 46BC78371E9A0074000000000A1A010A
Generated.... 22.08.2007, 12:48:08
Completed.... 22.08.2007, 12:48:09
Error info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
usefull answers may be rewarded
thanks in advance
sai krishnaHi,
This error means that a transaction / program was attempting to commit
information to the database that would result in a duplicate entry in a
table with primary key. Depending on when and where you are getting it it
can be caused by some SAP bugs in Phsyical Inventory Document Clearing,
number ranges being out of synchronisation after a client copy etc.
Please double check your number ranges for the FI document.
Hope this helps.
Cheers,
Gimmo -
G/L document post through fb01
Hi Gurus,
i am using bapi : BAPI_ACC_DOCUMENT_POST for posting G/l document.
In the flat file i am using G/l account, posting key,amount,costcenter, profit center, customer, distch# etc.
For this bapi i am filling Criteria internal table for
all the line items, i am getting error that profit center not determined or not entered.
while i am skipping criteria internal table for some line items accounting document is created successfully.
pls guide me how to decide either criteria internal table
needs to fill for that line item or not
Thanks & Regards,
Radhakrishna.Hi,
If u have to fill the <b>profitability segment data</b> then u need to fill the criteria internal table .In FB01 transaction while we r creating document this profit. Segment button appears just above the quantity field. The <b>profitability segment data</b> appears based on G/L. It wont be available for all G/L's.
It should be configured. If it is not clear still plz revert back.
Regards,
savitha -
Authorization group in GL A/C using FB01
HI, We have activated the authorization Group in GL A/c. Using the authorization object F_BKPF_BES we were able to create restrictions on other tcodes like F-28 . However when using the u201CFB01u201D tcode, the authorization check does not have any effect. I have already check the authorization in SU24 for fb01 and status is set to YES. I have also created a trace(using ST01) for this transaction but ST01 does not show any authorization trace for F_BKPF_BES.
Hello,
Authorization object:F_BKPF_BES should be checked when you run FB01.
In your case,please try to check the following points:
1.Authrization group was assigend to G/.L master data correctly.
2.Authrization group was assigend to object:F_BKPF_BES correctly.
3.Avtivity was defined in this object correctly.
4.Role was assgined to user correctly.
5.SAP_ALL authorization was deleted from the user profile.
Note: it is impossible to define the authorization group as ' '(space) in object:F_BKPF_BES,
if ' ' was defined, system will consider there are no any setting existed.
Hope the above infor. could help you to solve this issue.
Best Regards, -
Validation for FB01 to stop on Front end
Hi Team
I wanted to stop the user when user execute/select/typed FB01 in FRONT END.
But when its invoked by another transaction on the same user it should allow to proceed.
User are maintained in a seperate table
I beleive this is a common issue accross SAP FB01, do you have tested solutions for this?
I hope a validation with user action can enable this logic..but i am not sure.
can anyone give me some ideas on this, any different solution?
Indunil
Moderator message - Cross post locked
Edited by: Rob Burbank on May 20, 2009 9:43 AMHello,
What is your name?
This is very common and you can find many examples out there... I wrote this a while ago but it may help (I need to release some updated code):
http://www.danielmcghan.us/2009/02/easy-csv-uploads-yes-we-can.html
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
You can reward this reply by marking it as either Helpful or Correct ;-) -
Hi All,
I need to make some changes to Accounting Document line items just before they are saved. Basically i have to consolidate the FI line items so that they do not exceed 999. I tried some BTE but SAP is over writing my changes after the BTE is called.
I cannot do this consolidation from OBCY transaction as i want to restrict this for only one company code. Can someone please help me with this.
Regards,
JayantRe: FB01/FB02 user exit/BADI
Re: Searching User- / Customer-Exit for Transaction FB01 -
How to delete Remittance Advice through FB01 - which User exit or BADI?
I have created a BDC program for transaction FB01 to create an FI posting. During this BDC session, i need to delete the associated remittance advice using the function REMADV_DELETE.
Is there a user exit or BADI that i can use to call REMADV_DELETE once the FI posting is successful?
Thanks,
JayJay,
In BTE there are two types of exit - Publish and Subscribe (P&S) and Process. Generally P&S give access to read data from a transaction and trigger your own processing as a result, while Process give access to change parts of the data in the SAP transaction. For what you want, P&S probably gives the functionality you need.
You need to copy the sample function to a Z function in a Z function Group. Put in your code, and activate the function and function group. As an initial test just a break-point in the code is useful to see when the exit executes and what data is available.
Then in transaction FIBF you need to insert customising to link in and activate the exit.
In the FIBF transaction, go to menu option Settings>Products>Of a Customer. Select New Entries and create a Z... entry with appropriate text. Leave other fields at this time and save.
Go to Settings>P/S Modules>Of a Customer. Select New Entries and create an entry for the relevant event number with the Z product you just created and add your function module name. Country and Appl can be filled or left blank for "All". Save the entry.
Go back to the Settings>Products>Of a Customer entry and selct the activate check box and save the entry.
Your function should now get executed at the relevant point. Remember this will get executed in all posting transactions, so include appropriate checks for your transaction code, document type, etc.
One note. Transaction FB01 performs some of its updates using "IN UPDATE TASK" so some records may not be created at the time some exits are executed. In the old style debugger a commit is performed when you debug so the update is triggered, but then when you run without the debugging things work differently. The new style debugger lets you debug these exits without the commit and thus gives a better picture of what will really happen.
Andrew -
Help needed in BAPI for uploading data in FB01 - Urgent!!!
Hi,
i need to post a document in FB01.
i am getting the following details from the user in a .CSV file.
Vendor no, vendor name, amount, document date, posting datem reference vendor line item text and Gl account line item text.
i am using BAPI BAPI_ACC_DOCUMENT_POST to post the document.
Now my req is if the amount is in negative then
use posting key 31 against the vendor and 40 for GL account
if its positive amounts
use posting key of 24 against vendor and 50 against the GL account.
Now by default, when the amount is negative the function is working fine.
but when its is positive its posting 21 against vendor and 50 against GL account. but i need 24 against vendor
can any one tel me, where should i pass these value in the BAPI?
or is there any other way of doing it?
Regards,
NiyazHi,
the posting keys 31/21 (01/11 and 40/50) are hard coded and cannot be populated from the interface. This is because a different posting key could have a different posting logic from what is implemented in the BAPI.
So unless you want to do some modifications here, you have to use the fixed PKs. Pls. let me know if you are interested in where exactly the PKs are defined (hardcoded). I have this noticed for myself earlier but my notices are on another PC
Hope that helps, points welcome
Csaba -
I m populating FB01 tcode...using BAPI BAPI_ACC_DOCUMENT_POST..in my flat file for populating Fb01..i have two fields vendor and account...but where r these fields in BAPI structure...but while entering values in FB01 i m entering both vendor and account values in same field rf05a-newko(account)...where is this field in BAPI structure..
see...if i have fields below...how to populate in BAPI...
Company Document number Document Type Posting date Document Date Currency Amount Vendor no. Matriculation Number Cost Center Account Order Posting Key Due Date Text field Special G/L Assignment
DM10 E000000001 ES 27072009 27072009 EUR 200 1000006 34 27072009 LAST DATE OF EXP.NOTE:27.07.2009 E000000001
DM10 E000000001 ES 27072009 27072009 EUR 200 1910011 40 EXP.NOTE NO:E000000001 EMPLOYEE NAME: MARIO Romani E000000001
DM10 E000000001 ES 27072009 27072009 EUR 200 1000006 25 27072009 LAST DATE OF EXP.NOTE:27.07.2009 E000000001
DM10 E000000001 ES 27072009 27072009 EUR 200 2103001 50 EXP.NOTE NO:E000000001 EMPLOYEE NAME: MARIO Romani E000000001
where exactly i need to send to which structure...pls help.... -
How to add new fields for FB01 transaction both at Header and Line item
Hi Guys,
I would like to add the new fields at header and item level in FB01 transaction. Can I acheive this by using transaction EEWB....please help me on this.
Thanking youHi,
We are trying to copy a work flow objects from ECC6.0 to 4.6C...where we found the following Select statement.
*Determine Top WorkItem Instance
if im_top_wi_id is initial.
select wi_id top_wi_id wi_rh_task into lw_top_id from sww_wi2obj
up to 1 rows
where wi_rh_task = im_wftask and
catid = 'BO' and
instid = l_instid and
typeid = 'FIPP'.
endselect.
endif
As table sww_wi2obj can't be found in 4.6C, can any one help how to replace or implement the same logic as above statements.
Thank you.... -
Hi ,
I am getting error in FB01 while tried to Post document using BDC.
Error is coming 'Maximum permitted number of internal tax items reached'
Message ID is ZZ and msg # is 755. In my internal table I have only 455 line items which all have TAX code.
How I can resolve this error? Please help me out.
Thanks in Advance.
Thanks & Regards,
ParasHi
It depends on how you're uploading the items of the document, suppose u need to create a document like this:
- Item 1) 1000
- Item 2) 1000
- Item 3) 1000
- Item 4) 1000
- Item 5) 1000
- Item 6) 1000
- Item 7) 1000
- Item 9) 1000
- Item 9) 1000
- Item 10 ) -9000
U can create a document having less than 10 item only, so in this case your documents will be:
Doc 1
- Item 1) 1000
- Item 2) 1000
- Item 3) 1000
- Item 4) 1000
- Item 5) -4000
Doc 2
- Item 1) 1000
- Item 2) 1000
- Item 3) 1000
- Item 4) 1000
- Item 5) 1000
- Item 6 ) -5000
Max -
Duplicate entries getting posted using FB01
Hi All,
I am facing a very strange problem which I have never heard of before.
There is a report program which picks up an input file from the application server and posts the entries. This input file will contain all the details about header record, vendor line items and G/L line items.
The report checks for duplicate entries comparing the reference number and the vendor. It discards the duplicate entries. It does not post duplicate entries.
Now, the input file contains the reference number only once. It also has multiple line items for that refernce. But has posted two identical documents having same reference, company code, etc. The only thing that is different is the document number and the time of entry. There is just a few seconds gap between the posting of the two entries.
Ideally FB01 should also not allow to post such identical entries.
Please suggest possible reasons for such postings.
Thanks & Regards,
NamrataHi,
Manually everything is working fine. Also through this report everything works fine always except for this case which happened.
The input file had a lot of references for posting. But just one got duplicated. So, I was just wondering what could have gone wrong.
Could it be because of some database commit or due to some memory buffer refresh which did not happen by mistake.
I'm just trying to figure out some possible causes for such a thing.
Your inputs and thoughts are welcome.
Thanks & Regards,
Namrata
Maybe you are looking for
-
I burnt my project to a file. This resulted in 2 folders being created. Open DVD (file folder 12.8mb) Video_TS (file folder 4.19GB) I then burnt this onto a DVD The DVD plays on my PC as soon as I load it. However when I try to play on DVD play
-
LIS Not showing correct values
Dear All We are having a peculiar situation in MCSI report which is customized. where order quantity is "0" after changing it from original quantities where as the gross order value(field name - KZWI1) is having same value despite change in the orde
-
Column with more than 4000 characters
Hi, Version: 10.2.0.4.0 I have a requirement to display more than 4000 characters (clob, long data type) through sql. Though this can be achieved through pl/sql, I am not able to get the output in sql statements. Is it possible to get this done throu
-
Application Navigator's Group By Category: How are categories determined?
Hi, I'm new to JDeveloper and wanting to understand how the categories are determined in the Application Navigator's Group By Category. For example: Why are some items in the Applications Source folder, whereas others are in the Resources folder? I d
-
Hi, as a surprise I bought a 6th gen nano for my girlfriend, filled it up with some songs from my iTunes library, put it back into the box and gave it to her. If she now links it to her USB-port, her iTunes on her PC does not recognize it. She has ve