Bapi G/L posting problem
Hi experts,
am using the bapi BAPI_ACC_DOCUMENT_POST for posting GL for t-code f-02. am getting erros like
Error in document: BKPFF $ P31CLNT781
No currency line exists for line item 0000000000
Order 6000002 does not exist.
whats the problem in it ?
regards
sunita
Hi sheng,
thnx for the reply, in this fmodule am not passing any values to the accountreceivable and accountpayable so do u mean that i need to pass??
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = lw_header
TABLES
accountgl = lt_items
* accountreceivable = lt_acct_rec
* accountpayable = lt_acct_pay
accounttax = lt_acct_tax
currencyamount = lt_amount
return = lt_return.
regards
Sunita.
Similar Messages
-
Looking for BAPI which can post condition records.
Hi ,
I am looking for a bapi which can post the condition records. I need to post Maximum Condition Base Value KONP-MXKBAS along with other fields. I found already one bapi BAPI_PRICES_CONDITIONS which has this field but if I execute
the bapi with BAPI_TRANSACTION_COMMIT it is not posting any data at all. So could any one please help me out of this or if any other alternate BAPI* or any other solution is possible here. But one thing to mention here that LSMW,BDC is not possible to use.
Thanks in advance.
Best Regs
SomnathHi!
In most common, standard BAPIs are working correctly.
Here are a the following cases if they aren't:
- standard fault, mostly has a correction note at OSS (very rare case)
- the BAPI is not finishing succesfully. In this case, you always have to check the return table of the BAPI (BAPIRET2, or RETURN, etc...). In this table there is the error. Mostly it occurs due to incorrect customizing settings.
Please check the return table of your BAPI, and you'll find out the problem.
Regards
Tamá -
Error while using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO
Hi Friends,
Im using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO.
im passing data to table GLACCOUNTDATA.
Below are the table fields im paasing
INVOICE_DOC_ITEM " '000001' deafault always
GL_ACCOUNT "Which is constant for all in my case
ITEM_AMOUNT " Total PO net amt + Frieght charges header level
DB_CR_IND " 'S' always default
COMP_CODE " 'RPPL' always default
TAX_CODE " 'V0' deafault always
PROFIT_CTR " for ex 1100180. based on plant
While posting this bapi is trhrowing error as below
'profit centre RPPL/1100180 does not exist for 01.12.2008'
where 01.12.2008 is the MIRO posting date which im passing in header.
We checked dates for profit centres they are correct.
Awaiting the reply ASAP.
Regards,
VenkyHi,
It would be better if you do a recheck on data input for BAPI. If you sure the data are ok but the BAPI still gives error message, then I suggest to post to OSS.
Regards,
Teddy Kurniawan -
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 -
Hi,
I would like to do the Invoice posting by modifying the tax base amount and tax amount(as against system computing on its own) through FB60 transaction code. Is there any suitable bapi I can use to achieve this scenario. I am not sure whether we can use the BAPI_ACC_DOCUMENT_POST to solve this.Please suggest.
Thanks,
RamHi,
Yes. You can use the BAPI BAPI_ACC_DOCUMENT_POST to post the vendor Invoices. Use the below tables parameter structures of BAPI.
ACCOUNTGL LIKE BAPIACGL09 G/L account item
ACCOUNTRECEIVABLE LIKE BAPIACAR09 Customer Item
ACCOUNTPAYABLE LIKE BAPIACAP09 Vendor Item
ACCOUNTTAX LIKE BAPIACTX09 Tax item
CURRENCYAMOUNT LIKE BAPIACCR09 Currency Items
Fill the corresponding structures for line items and call this BAPI.
Regards
Gangadhar -
Hi,
I'm starting to have another post problem with my P45 Diamond motherboard. (First one was RMA'd). This time, it's showing "Processor Initilization" with red, green, green, red. My current system is
Motherboard - MSI P45 Diamond
Bios - 1.3
Processor - Intel Q6600 (older version)
Memory - Kingston KVR1333D3N9K2/4G 4gb total 1333
Power Supply - Silverstone 750 watt
Graphics - ATI Radeon HD 3870 X2
It's been working fine for a few weeks and just started acting up. I'm using stock settings (no overclock) .
Recent changes are adding the Genie, however the post problem happened for the first time before I plugged in the Genie. The same result now occurs when the Genie is plugged in and when I remove it from the motherboard power.
Basically what happens is it will power up for the first time and it works. If I restart or shutdown and turn it back on the monitor stays blank and the status lights show Red, Green, Green, Red which is Processor Initilization. Only way to get it to boot up is hitting the Clear CMOS button or, when I went to bed and started it up this morning, it booted fine.
Any suggestions would be greatly appreciated.Quote
The MCH voltage in Core Center we being reported at 1.976 however I NEVER changed any of the values. Is it possible that the bios "AUTO" changed the value?
The question is this value is really set to 1.976V or if it just a misreport. Please start Green Power Center and check the voltage values there.
{Remove Dual Core Center from the AUTOSTART list to make sure it does not open automatically when Windows is loaded. You can start Green Power Center independently of DCC. Just have look at the Dual Core Center Installation folder. There should be a sub-folder that contains the GPC Application. Create a shortcut to it from the Desktop and you are ready to go.} -
Alternative to posting problem reports via OSS?
Sometimes I find problems with SAP software, like the RFC library, that I'd like to be able to report, however I'm not always in a position to do so, as I may not be working at a client site at the time (and it would not be appropriate to log the problem under their installation).
What is needed, IMO, is a way to log these problems without the formality surrounding OSS and SAPnet. I imagine this would be important too for those coming into SAP for the first time from the Java side.
Perhaps the easiest way would be to mark a forum posting as a problem report, similar to the way it can be marked as a question. This would then allow for highlighting to forum members from SAP who could decide whether the problem warranted escalation.
Cheers,
ScottHi Scott,
i agree. There should be a possibility to create a linkage between OSS notes and SDN postings in some cases, because (besides or in addition what you've already said):
1. Problems which are reported to OSS might already have been resolved in SDN and vice versa. A common knowledge repository would be very helpful for both parties, i guess. In my opinion it's easier (and cheaper) to <b>verify</b> a possible solution published already in SDN than finding/creating a new one for OSS.
2. IMHO it's probable that a steadily increasing number of "productive versions users" of arbitrary SAP software components will start to post problems and possible bugs at the SDN forums in the near future. It's absolutely ok to redirect them to the OSS, since this is the official place to report and handle such issues.
But it should be possible for example to add a link referring the "SDN problem thread" to the customer message(s). The support team could then post the SAP notes number as a reply to the thread as soon as a solution is available. Otherwise, if people aren't gentle enough to return to the forums and publish the problem solution, it's not easy to find the official answer, since nobody knows how to search for the corresponding note to get reliable search results. If the problem description of the note doesn't repeat parts of the question text in SDN, you are lost.
3. Resulting from 2., more and more "information leaks" will arise in the SDN forums. But i dare to argue that people will return asking the same question(s) over and over again, if there's enough interest, until "somebody" is lucky enough to find the solution in the OSS and post the notes number. Why not "automate" this?
Just to clarify:
I do <b>not</b> want to have the OSS team bypassed, this is definitely wrong from my point of view.
Cheers,
Stefan -
Hi All,
Is there any BAPI to make Post goods issue programatically,
Have a nice dayHi,
check these bapi's.
BAPI_OUTB_DELIVERY_CONFIRM_DEC
BAPI_GOODSMVT_CREATE
Re: BAPI to post a Goods issue with relation to Sales Order?
Regards
Appana -
Problem in BAPI for stock posting from quality inspection to unrestricted usage
Hi all,
I am using BAPI_GOODSMVT_CREATE for stock posting from quality inspection to unrestricted usage Stock against quality inspection lot(not by MB1B) using mvt type 321.The material doc gets created by the BAPI,but actual stock posting is not taking place ie.the stock doesn’t get reflected in QA33/32 and QA11 also .Can any one suggest what must be wrong?The inputs given are as follows:
GOODSMVT_HEADER:
PSTNG_DATE =30/07/2014, DOC_DATE = 30/07/2014, REF_DOC_NO = INSP LOT NO.
GOODSMVT_CODE:
GM_CODE: ‘04’ .
GOODSMVT_ITEM:
MATERIAL = MATERIAL NO
PLANT = PLANTCODE
STGE_LOC = ‘WIP’
BATCH = BATCHNO
MOVE_TYPE = ‘321’
ENTRY_QNT = 100
ENTRY_UOM = ‘EA’
ORDERID = Prd ord no.
After executing this I used BAPI_TRANSACTION_COMMIT also. I am able to see the posted qty in MMBE,but it is not reflecting in QA11/33/32.
Kindly help me.Hi Naveen,
Thanks for the reply. Even after using FM QAVE_PROCESS_AUTO_UD,when i execute
BAPI_GOODSMVT_CREATE, the same thing is happening.I am unable to see the stock deducted in QA33.
Is there any input in the goods mvt bapi where we can provide inspection lot no since i believe that the goods mvt has to get connected with the inspection lot. -
Interface BAPI can not post to asset
Dear all
i met a weird problem.
we use a interface( bapi) to make the SAP document, but when we post document for the asset ,
only FI document generated. the Asset document not generated , the value was not posted to the asset.
if anybody has met this kind of problem? help .......help.......Thanks a lot !Dear
yes ,we have fill in the transaction type (100 - acquisiton) , and the FI document has been generated
all the fields are right ! the only problem is the asset value not updated ,it's that the asset document not generated!
and it 's not for a particular company code ,for all the company code!
Best Regards!:)
Sara xie -
Posting problem in F.05- very urgent
Dear Expert,
When doing transaction in F.05, posting doing in SAPF100 as batch input sesiion name, and the message: "posting succssesfully created". But the problem is in the FS10N, the journal did not created. Please somebody admice me for this issue since its needs for closing.
Thank you in advance.Did you also process the batch input? SM35?
If you selected the reverse posting and only checked the balance in FS10N at this moment there will be no difference. Another possibility is that you made the reversal postings in the same period...
Regards,
Johan -
FB05 posting problem using POSTING_INTERFACE_CLEARING
Hi All,
I have a problem posting FB05 using POSTING_INTERFACE_CLEARING.My requirement is to select open item based on document number and then create another leg for that open item using GL account,posting key and amount that matches the selected open item amount.
I am not sure whether I am not doing the right thing because I get an error 'Difference is too large for clearing'. If I actually go to FB05 and 'choose open item' for document number and try to hit 'Save' on the list of open items screen,I get the same error. I then select 'Charge off difference' and it takes me to screen that is quite similar to FB01 and I enter the other leg of the entry i.e posting key,acct no,amount etc.I want to replicate the same process using funtion module.I am sending you the code,please help me.
start-of-selection.
i_splitinput-compcode = '0410'.
i_splitinput-currency = 'USD'.
i_splitinput-amount = '299'.
i_splitinput-reference = '90286483'.
i_splitinput-date = '20090320'.
i_splitinput-type = 'D'.
i_splitinput-clearingacct = '101002'.
append i_splitinput.
loop at i_splitinput.
at first.
perform posting_interface_start using 'C'.
endat.
at new currency.
perform f_create_document_header using i_splitinput-compcode
i_splitinput-currency.
endat.
perform f_create_document_items .
at end of currency.
perform f_post_gl_document.
endat.
at last.
perform f_posting_interface_end.
endat.
endloop.
*& Form posting_interface_start
text
-->P_P_TYPE text
form posting_interface_start using p_type.
data lv_mode type c value 'N'.
if p_type = 'C'.
call function 'POSTING_INTERFACE_START'
exporting
i_function = 'C'
i_mode = lv_mode
i_update = 'S'
exceptions
client_incorrect = 1
function_invalid = 2
group_name_missing = 3
mode_invalid = 4
update_invalid = 5
others = 6.
if sy-subrc <> 0.
message 'Error initializing posting interface'(e05) type 'I'.
endif.
endif.
endform. " posting_interface_start
*& Form f_create_document_header
text
--> p1 text
<-- p2 text
form f_create_document_header using p_compcode p_currency.
data: l_waers type waers,
l_postdate(10) type c,
l_docdate(10),
l_bktxt type bktxt,
l_blart type blart.
*---Convert dates to proper format MM/DD/YYYY
write p_pstdat to l_postdate mm/dd/yyyy.
write p_docdat to l_docdate mm/dd/yyyy.
i_ftpost-stype = 'K'. "Header
i_ftpost-count = 1.
perform ftpost_field using: 'BKPF-BUKRS' p_compcode, "Company Cd
'BKPF-WAERS' p_currency, "Doc Currency
'BKPF-BLART' p_doctyp, "Doc Type
'BKPF-BLDAT' l_docdate, "Doc Date
'BKPF-BUDAT' l_postdate, "Posting Dt
'BKPF-BKTXT' p_doctxt, "Header Text
'BKPF-XBLNR' p_ref, "Ref Doc
'RF05A-AUGTX' 'Test'. "Clearing item text
*creditnote to your own
*debit to customer but sometimes you post credit
*payor-vendor +ve payee-customer -ve
i_ftpost-count = 0.
endform. " f_create_document_header
*& Form ftpost_field
text
-->P_1045 text
-->P_PA_BUKRS text
form ftpost_field using field_name type any
field_value type any.
i_ftpost-fnam = field_name.
i_ftpost-fval = field_value.
append i_ftpost.
endform. " ftpost_field
*& Form f_create_document_items
text
--> p1 text
<-- p2 text
form f_create_document_items .
*concatenate i_splitinput
i_ftclear-agkoa = 'D'."D-cust, v-vend
i_ftclear-agkon = '1041048'."cust/ven acct
i_ftclear-agbuk = i_splitinput-compcode.
i_ftclear-xnops = 'X'.
i_ftclear-xfifo = space.
i_ftclear-agums = space.
i_ftclear-avsid = space.
i_ftclear-selfd = 'BELNR'.
i_ftclear-selvon = i_splitinput-reference.
i_ftclear-selbis = 'Test'.
collect i_ftclear.clear i_ftclear.
i_ftclear-selvon = '101002'.
i_ftclear-selbis = '101002'.
append i_ftclear.
i_ftpost-stype = 'P'. "Details
i_ftpost-count = i_ftpost-count + 1.
perform ftpost_field using: 'RF05A-NEWBS' '15', "Post Key
'RF05A-NEWKO' '1071990', "GL Account
'BSEG-WRBTR' '299', "DC Amount
'BSEG-SGTXT' 'SAN'. "Item Text
'BSEG-ZUONR' i_post-merchant_id.
*lt_ftclear-selvon = p_doc2.
*lt_ftclear-selbis = p_doc2.
*APPEND lt_ftclear.
endform. " f_create_document_items
*& Form f_post_gl_document
text
--> p1 text
<-- p2 text
form f_post_gl_document .
refresh i_blntab.
clear i_blntab.
call function 'POSTING_INTERFACE_CLEARING'
exporting
i_auglv = 'UMBUCHNG'
i_tcode = 'FB05'
I_SGFUNCT = ' '
I_NO_AUTH = ' '
importing
e_msgid = v_msgid
e_msgno = v_msgno
e_msgty = v_msgty
e_msgv1 = v_msgv1
e_msgv2 = v_msgv2
e_msgv3 = v_msgv3
e_msgv4 = v_msgv4
e_subrc = g_subrc
tables
t_blntab = i_blntab
t_ftclear = i_ftclear
t_ftpost = i_ftpost
t_fttax = i_fttax
exceptions
clearing_procedure_invalid = 1
clearing_procedure_missing = 2
table_t041a_empty = 3
transaction_code_invalid = 4
amount_format_error = 5
too_many_line_items = 6
company_code_invalid = 7
screen_not_found = 8
no_authorization = 9
others = 10
if sy-subrc <> 0.
v_message = 'Posting Interface Error.'.
endif.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = v_msgid
lang = sy-langu
no = v_msgno
v1 = v_msgv1
v2 = v_msgv2
v3 = v_msgv3
v4 = v_msgv4
IMPORTING
msg = v_message
EXCEPTIONS
not_found = 1
OTHERS = 2.
WRITE : V_MESSAGE.
endform. " f_post_gl_document
*& Form f_posting_interface_end
text
--> p1 text
<-- p2 text
form f_posting_interface_end .
call function 'POSTING_INTERFACE_END'
exporting
i_bdcimmed = ' '
exceptions
session_not_processable = 1
others = 2.
if sy-subrc <> 0.
endif.
endform. " f_posting_interface_end
Thanks in advance.Hi Abaper,
This is in continuation of my previous email,I am sending you my code.Please take a look and let me know your suggestions.Also can you please share with me your code if you have ever worked with FB05.
Also I have debugged and found that at the end on program SAFM05A screen 0733 ,the code enters document number BELNR and does okcode - /11. This takes to the screen SAPDF05X screen 3100 where it does try to save.I believe 3100 is a final screen according to the FM code but there is something I may not be passing which is not allowing it to save.
*Session header
perform populate_xbgr00.
append xbgr00 to dataset.
write p_docdat to p_docdat mm/dd/yy.
write p_pstdat to p_pstdat mm/dd/yy.
*Document header
perform populate_xbbkpf using
i_splitinput-compcode
p_docdat
p_pstdat
p_doctyp
i_splitinput-currency
sum_inprec_hd_tmp-xblnr
'Test'.
append xbbkpf to dataset.
*bbseg bselk and bselp
perform populate_xbbseg .
*********forms
form populate_xbgr00 .
move '0' to xbgr00-stype.
move 'zsan' to xbgr00-group.
move sy-mandt to xbgr00-mandt.
move sy-uname to xbgr00-usnam.
move 'X' to xbgr00-xkeep.
move space to xbgr00-xkeep.
move '/' to xbgr00-nodata.
endform. " populate_xbgr00
form populate_xbbkpf using p1 p2 p3 p4 p5 p7.
move '1' to xbbkpf-stype.
move 'FB05' to xbbkpf-tcode.
move p2 to xbbkpf-bldat.
move p4 to xbbkpf-blart.
move p1 to xbbkpf-bukrs.
move p3 to xbbkpf-budat.
move '/' to xbbkpf-monat.
move p5 to xbbkpf-waers.
move '/' to xbbkpf-kursf.
move '/' to xbbkpf-belnr.
move '/' to xbbkpf-wwert.
move p6 to xbbkpf-xblnr.
move '/' to xbbkpf-bvorg.
move p7 to xbbkpf-bktxt.
move '/' to xbbkpf-pargb.
move 'UMBUCHNG' to xbbkpf-auglv.
endform.
form populate_xbbseg .
move '2' to xbbseg-stype.
move 'BBSEG' to xbbseg-tbnam.
move '15' to xbbseg-newbs.
move '100' to xbbseg-wrbtr.
move 'Assign' to xbbseg-zuonr.
move 'Itemtext' to xbbseg-sgtxt.
move I_SPLITINPUT-CLEARINGACCT to xbbseg-newko. "G/L
append xbbseg to dataset.
xbselk-stype = '2'.
xbselk-agkon = 'CUST0010'.
xbselk-agbuk = i_splitinput-compcode.
xbselk-agkoa = 'K'.
xbselk-sende = '/'.
xbselk-tbnam = 'BSELK'.
XBSELK-XNOPS = 'X'.
append xbselk to dataset.
xbselp-stype = '2'.
xbselp-feldn_1 = 'BELNR'.
xbselp-slvon_1 = i_splitinput-reference.
xbselp-slbis_1 = 'Test'.
xbselp-tbnam = 'BSELP'.
append xbselp to dataset.
endform
Edited by: abap78 on Mar 23, 2009 5:10 AM -
A/R Invoice posting problem
Dear All,
When am posting A/R invoice the payment means screen automatically comes.
How to overcome this problem
Regards,
VIjayDear,
Click on the yellow arrow for your customer.
the cusstomer infomation sceen apears.
Now go to payment tems tab,click yellow arrow for payment terms.
in Open incomming Filed select No
By doing this Payment screen will not apper while adding A/R Invoice.
Hope this solves your Problem.
Thanks,
Neetu -
BAPI used to post the customer incoming payment by using F-28
Hi all,
Currently, users post customer incoming payment via F-28. They would like this process to be automated. I check from the forum BAPI_ACC_DOCUMENT_POST is correct to do the F-28 posting. I am using SAP release 4.7 and I couldn't find the mentioned BAPI in tcode SE37.
Any idea is mentioned BAPI applicable in higher release? Can you please share with me any other options can achieve to automate the customer incoming payment?
Thanks and regards
Kang RingHi Alex
You are right. Sorry for the mistake as I filter to select the top 2 hit list as such it resulted BAPI_ACC_DOCUMENT_POST not found. BAPI_ACC_DOCUMENT_POST will post the account transaction only and it will not clear the open item. It seems like there is no way to avoid to use BDC as users would like to auto clear the invoices when doing the customer incoming payment.
Regards
Kang Ring -
Need Bapi Names for Post Goods Reciept and Post Goods issue to STO in MIGO
Hi All..
I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.
Also once STO (Stock Transport order) is created, i also need to Post goods issue to STO in MIGO transaction. I do need a bapi for this too...
Appreciate your help and will reward any helpful answers.
Thanks..Hi,
ata : gm_header type bapi2017_gm_head_01.
data : gm_code type bapi2017_gm_code.
data : gm_headret type bapi2017_gm_head_ret.
data : gm_item type table of
bapi2017_gm_item_create with header line.
data : gm_return type bapiret2 occurs 0 with header line.
data : gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear : gm_return, gm_retmtd. refresh gm_return.
gm_code-gm_code = '03'.
gm_header-header_txt = firstscreen-bktxt.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_header-ver_gr_gi_slip = ' '. "print
gm_code-gm_code = '03'.
move lineitem1-bwartwa to gm_item-move_type .
move lineitem1-matnr to gm_item-material.
move lineitem1-erfmg to gm_item-entry_qnt.
move 'EA' to gm_item-entry_uom.
move lineitem1-werks to gm_item-plant.
move lineitem1-lgort to gm_item-stge_loc.
move lineitem1-kostl to gm_item-costcenter.
while gm_item-costcenter+9(1) = ' '.
shift gm_item-costcenter right.
endwhile.
overlay gm_item-costcenter with '0000000000'.
append gm_item.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gm_header
goodsmvt_code = gm_code
importing
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
tables
goodsmvt_item = gm_item
return = gm_return.
Thanks
venki
Maybe you are looking for
-
Copying data from one field to another on a form
Hi I have created a form called application which contains the following fields: Name Address1 Address2 Address3 Address4 Location1 Location2 Location3 Location4 When the user has entered his name and address I would like the data to then prefill int
-
Error message when trying to transfer/sync video from itunes to ipod
I have never had this problem before, but I just purchased a couple music videos from itunes and then was trying to manually transfer/sync them to my ipod and then I receive the error message "Attempting to copy to the disk failed. The disk could not
-
Error Message When Upgrading Firmware for BEFW114S
To all, I have a BEFW114S with a firmware 1.42.7 which I wanted to upgrade to 1.52.02 However, I got the following error message when I tried update the firmware: Message: Warning! Upgrade File Pattern Error Any ideas of what might be causing this
-
Where to find WSDL files in CRMOD R18
I am having trouble finding the WSDL downloads in the latest version of CRMOD (R18) In the past they were available by clicking Admin and then they were in the bottom left corner. The docs say they should be there as well: https://secure-ausomxdsa.cr
-
Hey guys, I'm new to AS3, still learning. I just read a little about arrays in the book I was learning from, and after looking at some online stuff, thought I'd try to do something simple with one. What I'm trying to do is save a bunch of sounds (dif