Bapi error for fb01 transaction
hai friends
iam using *bapi_acc_document_post *
for posting amount inplace fb01 .
this bapi is called in module program .
is it write bapi for this
or
else can i use any other bapi for this
if it right bapi
how can pass the parameeters to this
what are the maditary fields in this bapi
hoe can i pass this values to this bapi.
pls tell me friends
thanks
with regards
srikanth vipparla
hai friend
its ok
but iam not fiending the documentation for this function module
so pls helpme the maditari parameters in this function module .
and iam using 4.6b .
or just post me the documentation pls .
thanks
ssrikanth vipparla
Similar Messages
-
How we can find BAPI's for a transactions?
hi
how we can find BAPI's for a transactions?
thanks in advancehi,
use this function module SXV_GET_CLIF_BY_NAME
function sxv_get_clif_by_name .
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(NAME)
*" VALUE(PREFIX) TYPE SEEX_CLIF_PREFIX
*" EXPORTING
*" VALUE(CLIF) TYPE SEOCLSNAME
call function 'SXV_ADD_PREFIX'
exporting
name = name
prefix = prefix
importing
new_name = clif.
endfunction.
debug the function module you will get name of bapi , badi used for transaction which ever operation you perform
it will call this function module and will give you name
regards
Deepak. -
How can i identifiy the BAPI Name for particular transaction.?
Hi friends ,
In data upload by BAPI How can i identifiy the BAPI Name for particular transaction.?
For example ME21 How can i identifiy the BAPI Name?
arunhi,
check the link:
ME21 tcode for Purchase Order creation so u can make use of BAPI f4 help i.e. ex-BAPIpo
for list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm -
Hi,
Can any one suggest me, how to handle the errors for the BAPI MB_COUNT_POST_WITHOUT_INV_DOC, because this bapi does not have any return table for errors handling? And also suggest any other BAPI which fits for MI10 transaction.
<removed by moderator>
Thanks&Regards,
Damuan.
Edited by: Thomas Zloch on Feb 2, 2012Hi Dear,
Your answer is very helpful, thanks..!!
But when i am testing with the EIKPF structure, neither error is populating in EIKPF nor the records are posting in MI10. Could you please guess what would be the problem?
Below are the fields that i am passing through this BAPI
1)Document date 2)count date 3)plant 4)storage location 5)item number 6)material code 7) entry quantity
Thanks&Regards,
Damuan. -
BAPI error for mvmt types 201 and 202
Hi all,
I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
if sy-subrc = 0.
loop at it_mchb into wa_mchb.
if wa_mchb-clabs gt 0.
clear wa_header.
wa_header-pstng_date = sy-datum. " fill header data
wa_header-doc_date = sy-datum.
wa_code-gm_code = '03'. "fill code data
clear wa_item.
wa_item-material = wa_mchb-matnr. " fillitem data
wa_item-plant = wa_mchb-werks.
wa_item-stge_loc = wa_mchb-lgort.
wa_item-batch = wa_mchb-charg.
wa_item-entry_qnt = wa_mchb-clabs.
wa_item-move_type = '201'.
wa_item-entry_uom = wa_mchb-meins.
append wa_item to it_item.
elseif wa_mchb-clabs lt 0.
clear wa_header.
wa_header-pstng_date = sy-datum. " fill header data
wa_header-doc_date = sy-datum.
wa_code-gm_code = '03'. "fill code data
clear wa_item.
wa_item-material = wa_mchb-matnr. " fillitem data
wa_item-plant = wa_mchb-werks.
wa_item-stge_loc = wa_mchb-lgort.
wa_item-batch = wa_mchb-charg.
wa_item-entry_qnt = wa_mchb-clabs.
wa_item-move_type = '202'.
wa_item-entry_uom = wa_mchb-meins.
append wa_item to it_item.
endif.
endloop.
clear lv_lin.
describe table it_item lines lv_lin.
if lv_lin = 0.
write : / 'No records found'.
endif.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = wa_header
goodsmvt_code = wa_code
importing
materialdocument = lv_matdoc
tables
goodsmvt_item = it_item
return = it_return.
if it_return is initial. " if record created successfully
call function 'BAPI_TRANSACTION_COMMIT'. " commit work
write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
loop at it_item into wa_item.
write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
endloop.
else. " if record is not created successfylly
loop at it_return into wa_return.
write : / wa_return-message color 6.
endloop.
uline.
endif.
else.
write : / 'No Records found' color 7.
endif. " gt_s035 is not initial
Edited by: Arunmozhi_06 on May 30, 2011 12:48 PMHi,
Did you passing the leading 0's in the cost center field?
and check the below coding..
* Structures for BAPI
data: 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.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
perform show_status using 'Scrapping(551) Material'.
* Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '06'. " MB11
* Write 551 movement to table
clear gm_item.
move '551' to gm_item-move_type .
move xresb-matnr to gm_item-material.
move p_bdmng to gm_item-entry_qnt.
move xresb-meins to gm_item-entry_uom.
move xresb-werks to gm_item-plant.
move xresb-lgort to gm_item-stge_loc.
move p_grund to gm_item-move_reas.
* Determine cost center per plant
case xresb-werks.
when '0004'.
move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
when '0006'.
move '0000041630' to gm_item-costcenter.
when '0007'.
move '0000041731' to gm_item-costcenter.
when '0008'.
move '0000041830' to gm_item-costcenter.
endcase.
append gm_item.
* Call goods movement BAPI
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.
Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
Regards,
Dhina,..
Edited by: Dhina DMD on May 31, 2011 8:02 AM -
What is the BAPI name for FB01
Hi all,
Currently i got requirement on Transactional data uploding to FB01 transaction thru BAPI.
I found the BAPI ' BAPI_ACC_GL_POSTING_POST'. But in this iam unable to find the Posting key(BSCHL) at line item level. If it is the exact BAPI tell me how to get the posting key for it. Please tell me the solution its urgent.
Thanks all,
Chinnamurthy.There are many
ACC4 FI/CO: BAPIs for UPDATE
BAPI_ACC_BILLING_POST Accounting: Post Billing Document (OAG: LOAD RECEIVABLE)
BAPI_ACC_EMPLOYEE_EXP_POST Accounting: Post G/L Acct Assignment for HR Posting (OAG: POST JOURNAL
BAPI_ACC_EMPLOYEE_PAY_POST Accounting: Post Vendor Acct Assignment for HR Posting (OAG: LOAD PAYA
BAPI_ACC_EMPLOYEE_REC_POST Accounting: Post Cust. Acct Assigt for HR Posting (OAG: LOAD RECEIVABL
BAPI_ACC_GL_POSTING_POST Accounting: General G/L Account Posting
BAPI_ACC_GOODS_MOVEMENT_POST Accounting: Post Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition
BAPI_ACC_SALES_ORDER_POST Accounting: Post Sales Order
BAPI_ACC_SALES_QUOTA_POST Accounting: Post Customer Quotation
BAPI_ACC_TRAVEL_POST Accounting: Post Trip
The Function Module BAPI_ACC_GL_POSTING_POST is for General G/L account, you don't have to provide the posting key, but an amount positive or negative (Credit);
Regards -
BAPI replacement for the transaction VT02
Hi All,
We are doing upgrade from 4.6C to ECC 6.0 version where we need to replace existing BDC with BAPI or a function module.
In a program we are using BDC for the transaction VT02 to update the fields End date (VTTK-DATEN) and End time (VTTK-UATEN) for the given shipments. Please suggest a BAPI or Function module to replace the existing BDC for VT02 transaction.
The BAPI 'BAPI_SHIPMENT_CHANGE' is not released officially in ECC 6.0 version. Can we use it in ECC 6.0 version? If yes, please let me know how to call this BAPI with only these three fields(Shipment number-TKNUM, Shipment end date-DATEN and Shipment end time-UATEN).
Thanks in advance.
Regards,
Siva.hi,
try this...
SD_SHIPMENT_HEADERS_CHANGE_DIA
Prabhudas -
IDOC Message type for FB01 transaction.
Hi,
I am going to get a file which I will pass through PI (XI) and bring into IDOC and post into SAP ECC 6.0.
I just wanted to know which IDOC message type / basic type I should use for posting an FI document i.e. FB01 transaction.
RgdsHi,
please read SAP notes 892103 and 551035.
The correct IDOC type should be FIDCC1 / FIDCC2.
Best regards,
Andreas -
BAPI(s) for the Transaction Codes - FB60 & F-47
Hi,
I would like to know the BAPIs which can be used for the transactions FB60 & F-47. I have used the method BDC for data transferring, but I have heard that BAPIs are faster than BDCs. So I thought of testing BAPIs instead of BDCs. Please give me a clue.
Thanks,
Yohan.BAPI for FB60
Reward points.. -
IDOC type for FB01 transaction
Hi,
Can anyone please let me know about the IDOC message type that I can use for posting a document
in the FB01 transaction?
Regards,
SudeepHi Sudeep,
These are the Idoc types.. for Posting transactions...
ACLPAY01 Posting in acctng: InB invoice
ACLREC01 Posting in acctng: Billing document
ACPJOU01 Posting in acctng from Mat.s mgmt
Go to we82(t-code) and enter the above idoc type then you will know the Message type,s for Posting..
Regards,
Prabhudas -
BAPI / BADI for KE21N transaction
Hi all,
Please does anybody know a BAPI or BADI for KE21N transaction.
I need to update some fields on it.
Tks,
DanielaHi Daniela Machado,
Try this for CO PA Planning data..
BAPI_COPAPLANNING_GETDATA Read CO-PA Planning Data
BAPI_COPAPLANNING_POSTDATA
Write CO-PA Planning data
Also try,
BAPI_COPAQUERY_GETACC_ACTDATA
BAPI COPAQuery.GetAccountBasedActualData
BAPI_COPAQUERY_GETACC_PLANDATA
BAPI COPAQuery.GetAccountBasedPlannningData
BAPI_COPAQUERY_GETCOST_ACTDATA
BAPI COPAQuery.GetCostingBasedActualData
BAPI_COPAQUERY_GETCOST_PLANDAT
BAPI COPAQuery.GetCostingBasedPlanningData
Regards,
Tanveer.
<b>Please mark helpful answers </b> -
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.... -
Bapi fm for the transaction FS10n
Hi friends,
Can any ine tell the bapi fm for t code FS10n.
Thanks ,
AnkithaIS There is any Function Module available Exactly Like FS10N selection Screen as it is Having Business area as well . I want to get G/L Balance with the Business Area as an Input.
Please help me As soon as Possible .
Thanks In Advance -
i am looking for Bapi's for SU01 transaction
Hi,
Take a look at this
BAPI_USER_ACTGROUPS_ASSIGN
BAPI_USER_ACTGROUPS_DELETE
BAPI_USER_CHANGE
BAPI_USER_CLONE
BAPI_USER_CREATE
BAPI_USER_CREATE1
BAPI_USER_DELETE
BAPI_USER_DISPLAY
BAPI_USER_EXISTENCE_CHECK
BAPI_USER_GETLIST
BAPI_USER_GET_DETAIL
BAPI_USER_INTERNET_CREATE
BAPI_USER_LOCACTGROUPS_ASSIGN
BAPI_USER_LOCACTGROUPS_DELETE
BAPI_USER_LOCACTGROUPS_READ
BAPI_USER_LOCK
BAPI_USER_LOCPROFILES_ASSIGN
BAPI_USER_LOCPROFILES_DELETE
BAPI_USER_LOCPROFILES_READ
BAPI_USER_PROFILES_ASSIGN
BAPI_USER_PROFILES_DELETE
BAPI_USER_UNLOCK
Regards,
Ravi
Note : Please mark the helpful answers -
What is exact BAPI for FB01 transaction......
Hi,
Currently i got requirement to upload transactional data into FB01 using BAPI. I used BAPI_acc_gl_posting_post but it applicable only for GLs, but i want to upload Vendors, Customers, assets, Materials.. Please tell me apropriate BAPI for the requirement. Its urgent.
Thanks in advance...........
Regards,
Chinna.Thanks Atish....
I have written code using BAPI_ACC_DOCUMENT_POST. But it is not posting and it is not generating Object Key...
Please go thru the code and tell the solutions....
Thanks in Advance......
REPORT zk_fi_fb01 .
Data: v_objkey(20) type c.
Data: Docheader type BAPIACHE09.
Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
ACCOUNTRECEIVABLE like BAPIACAR09,
ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
RETURN like BAPIRET2 occurs 0.
Data: obj_typ like BAPIACHE09-OBJ_TYPE,
OBJ_KEY like BAPIACHE09-OBJ_KEY,
OBJ_SYS like BAPIACHE09-OBJ_SYS.
Data: gv_belnr type belnr_d.
Data:file_Na type String.
Data: lsys like TBDLS-LOGSYS.
*START OF SELECTION
START-OF-SELECTION.
*CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '19'
object = 'RF_BELEG' "'FIAA-BELNR'
QUANTITY = '1'
SUBOBJECT = '7777'
TOYEAR = '2007'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = gv_belnr
QUANTITY =
RETURNCODE =
*CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
OWN_LOGICAL_SYSTEM = lsys
EXCEPTIONS
OWN_LOGICAL_SYSTEM_NOT_DEFINED = 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.
*concatenate gv_belnr '7777' '2007' into v_objkey.
*Filling Document Header Details
*Docheader-OBJ_TYPE = 'BEBD'.
*Docheader-OBJ_key = V_objkey.
*Docheader-OBJ_SYS = lsys.
*docheader-BUS_ACT = 'RFBU'.
Docheader-USERNAME = sy-uname.
Docheader-COMP_CODE = '7777'.
Docheader-DOC_DATE = '20070725'.
Docheader-PSTNG_DATE = '20070725'.
Docheader-FISC_YEAR = '2007'.
*DOCHEADER-OBJ_KEY_R = 'X'.
Docheader-DOC_TYPE = 'KR'.
*Item data for ACCOUNTGL
ACCOUNTGL-ITEMNO_ACC = '0000000001'.
ACCOUNTGL-GL_ACCOUNT = '0000000102'. "99900
ACCOUNTGL-DOC_TYPE = 'KR'.
ACCOUNTGL-COMP_CODE = '7777'.
ACCOUNTGL-FISC_YEAR = '2007'.
ACCOUNTGL-PSTNG_DATE = '20070725'.
ACCOUNTGL-DE_CRE_IND = 'S'.
append ACCOUNTGL.
ACCOUNTGL-ITEMNO_ACC = '0000000002'.
ACCOUNTGL-GL_ACCOUNT = '0000400002'. "99900
ACCOUNTGL-DOC_TYPE = 'KR'.
ACCOUNTGL-COMP_CODE = '7777'.
ACCOUNTGL-FISC_YEAR = '2007'.
ACCOUNTGL-PSTNG_DATE = '20070725'.
ACCOUNTGL-DE_CRE_IND = 'H'.
append ACCOUNTGL.
*Account payable
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
ACCOUNTPAYABLE-COMP_CODE = '7777'.
append ACCOUNTPAYABLE.
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
ACCOUNTPAYABLE-COMP_CODE = '7777'.
append ACCOUNTPAYABLE.
*Currency Amount
CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
Append CURRENCYAMOUNT.
CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
Append CURRENCYAMOUNT.
clear CURRENCYAMOUNT.
clear ACCOUNTGL.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = Docheader
CUSTOMERCPD =
CONTRACTHEADER =
IMPORTING
OBJ_TYPE = obj_typ
OBJ_KEY = obj_key
OBJ_SYS = obj_sys
tables
ACCOUNTGL = ACCOUNTGL
ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE = ACCOUNTPAYABLE
ACCOUNTTAX =
currencyamount = CURRENCYAMOUNT
CRITERIA =
VALUEFIELD =
EXTENSION1 =
return = return.
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.
endif.
if sy-subrc = 0.
WRITE: / OBJ_KEY,
OBJ_TYP,
OBJ_SYS.
endif.
Maybe you are looking for
-
In SQLJ Developer's Guide and Reference ppt. 11-12, Step 1, create a .jar, naming niter-server,jar, complete Step 2, load .jar file into the server, loadjava -oci8 -force -user user1/test@oracle niter-server.jar then the error message is: Error while
-
Migrating from Arch to Dual Boot (Arch 64 + Win8.1 64).
Hello my friends. I used to have a dual boot system (MBR, if I'm not mistaken), with Arch Linux on hda (1TB) and Windows 7 on hdb (300GB). I did this installation more than 3 years ago. The disk with windows died recently, and because I need it for w
-
I have this lexmark printer running on 3 other computer, windows 7 and windows xp, but in 8.1 I get a message saying incompatable. What is really going on?
-
Adobe Photoshop Elements 2 and 'Save for Web' problem
Hi everyone, I have used Photoshop Elements 2 for some time with absolutely no problems. However when I try to use the save for the web option I get an 'export could not be completed due to a program error' message. Nothing relevant is mentioned on A
-
downloaded Lion, got an error message that it was not downloaded completely... then did some updates with the software updater. went to app store to download lion again, it says lion is already installed. But i checked and i'm still running 10.6.8 Sn