Reg:cats bapi
hi all,
can u pls help me in this?
i have no idea abt bapi.can u pls explain the work functionality of bapi and difference between between bapi and function module.
and also explain
how to use this bapi to upload the data into cats BAPI_CATIMESHEETMGR_INSERT .
if possible send me the code also...
thanks & regards
rahul..
Hello Rahul
BAPIs enable you to access so-called business objects (like the CATS timesheet) in SAP from external systems.
In contrast to "normal" function modules BAPIs have a holistic approach of accessing the business object.
What does this mean? You may find a normal function module which enables you to insert records into timesheets, too. However, there is no guarantee that this fm takes care of all necessary consistency checks. The BAPI takes care of this.
Basically, think of a BAPI as a "Dialog with dialog". The BAPI does more or less the same like the corresponding transaction (here: CAT2). In order to understand the mandatory input for the BAPI you must understand transaction CAT2.
For sure you will find plenty of sample coding if you search the SDN for the BAPI name.
Regards
Uwe
Similar Messages
-
CATS BAPI and Functional Module
The BAPI list given here is used for transferring the data from CATS to HR.
BAPI_CATIMESHEETMGR_INSERT -To Create Data records into CATS DB
BAPI_CATIMESHEETMGR_DELETE -To Delete Data records in CATS DB
BAPI_CATIMESHEETMGR_CHANGE - To change/edit existing Data records in CATS DB
BAPI_CATIMESHEETRECORD_GETLIST - To Display Data records in CATS DB
BAPI_CATIMESHEETRECORD_GETLIST Time Sheet: Data Record List
BAPIEMPLOYEECATS BAPIs for BUS 7025
BAPI_EECATIMESHEET_GETWORKLIST Time Sheet: Read Worklist
Can you explain me what is FM for and what role it plays for BAPI.
thanks
Sunnyhi
BAPI is a function module used in specific cases and they are better
in those particular ones cause they make many checks, so if you have two
options: a function module and a BAPI i�d tell you to use a BAPI.
If you have any other doubts about some BAPIS in particular, be sure to use
transaction BAPI
they have great documentation there.
regards
kunal -
CATS: BAPI to read submitted leaves/ approved leaves/rejected leaves?
i am using Bapi BAPI_CATIMESHEETMGR_INSERT to create records, is there a way to read data of all submitted leaves/ approved leaves/rejected leaves?
if i want to achieve above how can i do it, with out custom abap.. any RFCs/BAPIS for the same?
BAPI_CATIMESHEETRECORD_GETLIST gives back only the released data records.
But i am looking for a Bapi using which i can read rejected records that go for approval to manager and gets rejected and same with approved ones.
also is there a way to read Saved records but not released? kinda like looking at drafts?
also is there a Bapi using which i can do CATS Transfer (similar to tcode CATA)?
wanna do transfer to Hr.
Pls advice.
Edited by: Hruser on Jun 26, 2008 4:40 PMAs far as i know there is no standard bapi available as you indicate but you could always modify one ;).
For Transfer you need to use rptextpt or cat6 there are standard
reports available -
Hi Friends,
I tried to create accounting document from the babi 'BAPI_ACC_DOCUMENT_POST'. In a one line item i need to give withholding tax information. How to pass this value to this bapi. I passed the withholding tax info in the ACCOUNTTAX parameter. But that is not working.
thanks in advance.
regards
sritkanthgo through this code
data:gt_accountgl type table of bapiacgl09 with header line,
gt_accountpayable type table of bapiacap09 with header line,
gt_currencyamount type table of bapiaccr09 with header line,
gt_return type table of bapiret2 with header line.
data:wa_documentheader type bapiache09,
vcounter type i.
tables:bdcmsgcoll.
TABLE TO READ FILE DATA
data: begin of gt_uploadfile occurs 0,
input(200) type c,
end of gt_uploadfile,
TABLE FOR DOWNLOAD FILE
begin of gt_downloadfile occurs 0,
output type string,
end of gt_downloadfile,
TO HOLD HEADER DATA
begin of gt_header occurs 0,
counter(1),
identifier(2),
bukrs(5),
accnt(10),
bldat like sy-datum,
budat like sy-datum,
wrbtr(10),
end of gt_header,
begin of gt_item occurs 0,
counter(1),
identifier(2),
hkont(10),
wrbtr(10),
kostl(10),
end of gt_item,
INTERNAL TABLE TOI DISPLAY ERRORS.
begin of gt_summery occurs 0,
identifier(2),
bukrs(5),
accnt(10),
msgv1 like bdcmsgcoll-msgv2,
msgv2 like bdcmsgcoll-msgv2,
msgnr type string,
end of gt_summery,
v_upload type string,
v_download type string,
msg type string,
v_hkont type string,
v_kostl type string,
date1 type datum,
date2 type datum,
v_refkey like bapiache09-obj_key.
*CREATING SELECTION CREITERIA
parameters:p_gfile like ibipparms-path,
p_test as checkbox.
P_DFILE LIKE IBIPPARMS-PATH.
at selection-screen on value-request for p_gfile.
perform f4help_upload.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_DFILE.
PERFORM F4HELP_DOWNLOAD.
start-of-selection.
v_upload = p_gfile.
V_DOWNLOAD = P_DFILE.
perform uploadfile.
perform sendinto_head_item.
perform buildbapi.
end-of-selection.
perform disp_report.
*& Form F4HELP
text
--> p1 text
<-- p2 text
form f4help_upload .
call function 'F4_FILENAME'
exporting
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
field_name = 'P_GFILE'
importing
file_name = p_gfile
endform. " F4HELP
*& Form F4HELP_DOWNLOAD
text
--> p1 text
<-- p2 text
form f4help_download .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_DFILE'
IMPORTING
FILE_NAME = P_DFILE
endform. " F4HELP_DOWNLOAD
*& Form UPLOADFILE
text
--> p1 text
<-- p2 text
form uploadfile .
call function 'GUI_UPLOAD'
exporting
filename = v_upload
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = '|'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE = VIRUS_SCAN_PROFILE
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH = FILELENGTH
HEADER = HEADER
tables
data_tab = gt_uploadfile
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.
endform. " UPLOADFILE
*& Form SENDINTO_HEAD_ITEM
text
--> p1 text
<-- p2 text
form sendinto_head_item .
loop at gt_uploadfile.
if gt_uploadfile-input+0(1) = '1'.
split gt_uploadfile-input at cl_abap_char_utilities=>horizontal_tab
into
gt_header-counter
gt_header-identifier
gt_header-bukrs
gt_header-accnt
gt_header-bldat
gt_header-budat
gt_header-wrbtr.
append gt_header.
clear gt_header.
else.
split gt_uploadfile-input at cl_abap_char_utilities=>horizontal_tab
into gt_item-counter
gt_item-identifier
gt_item-hkont
gt_item-wrbtr
gt_item-kostl.
append gt_item.
clear gt_item.
endif.
BREAK-POINT.
endloop.
endform. " SENDINTO_HEAD_ITEM
*& Form BUILDBAPI
text
--> p1 text
<-- p2 text
form buildbapi .
loop at gt_header.
GT_HEADER-BUDAT = sy-datum - 5.
GT_HEADER-BLDAT = sy-datum.
vcounter = 1.
gt_header-wrbtr = gt_header-wrbtr * -1.
*FILLING INPORTING PARAMETER STRUCTURE.
wa_documentheader-comp_code = gt_header-bukrs.
wa_documentheader-doc_date = gt_header-bldat.
wa_documentheader-pstng_date = gt_header-budat.
wa_documentheader-username = sy-uname.
wa_documentheader-bus_act = 'RFBU'.
wa_documentheader-doc_type = 'KR'.
gt_accountpayable-itemno_acc = vcounter.
gt_accountpayable-vendor_no = gt_header-accnt.
append gt_accountpayable.
clear gt_accountpayable.
gt_currencyamount-itemno_acc = vcounter.
gt_currencyamount-currency = 'INR'.
gt_currencyamount-amt_doccur = gt_header-wrbtr.
append gt_currencyamount.
clear gt_currencyamount.
loop at gt_item where identifier = gt_header-identifier.
vcounter = vcounter + 1. .
gt_accountgl-itemno_acc = vcounter.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = gt_item-hkont
importing
output = gt_item-hkont.
gt_accountgl-gl_account = gt_item-hkont.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = gt_item-kostl
importing
output = gt_item-kostl.
gt_accountgl-costcenter = gt_item-kostl.
gt_accountgl-pstng_date = gt_header-budat.
append gt_accountgl.
clear gt_accountgl.
gt_currencyamount-itemno_acc = vcounter.
gt_currencyamount-currency = 'INR'.
gt_currencyamount-amt_doccur = gt_item-wrbtr.
append gt_currencyamount.
clear gt_currencyamount.
endloop.
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = wa_documentheader
CUSTOMERCPD = CUSTOMERCPD
CONTRACTHEADER = CONTRACTHEADER
importing
OBJ_TYPE = OBJ_TYPE
obj_key = v_refkey
OBJ_SYS = OBJ_SYS
tables
accountgl = gt_accountgl
ACCOUNTRECEIVABLE = ACCOUNTRECEIVABLE
accountpayable = gt_accountpayable
ACCOUNTTAX = ACCOUNTTAX
currencyamount = gt_currencyamount
CRITERIA = CRITERIA
VALUEFIELD = VALUEFIELD
EXTENSION1 = EXTENSION1
return = gt_return
PAYMENTCARD = PAYMENTCARD
CONTRACTITEM = CONTRACTITEM
EXTENSION2 = EXTENSION2
REALESTATE = REALESTATE
break-point.
if p_test is initial.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = WAIT
IMPORTING
RETURN = RETURN
endif. .
endloop.
endform. " BUILDBAPI
*& Form disp_report
text
--> p1 text
<-- p2 text
form disp_report .
loop at gt_return.
write:/ gt_return-type,
gt_return-id,
gt_return-number,
gt_return-message,
gt_return-log_no,
gt_return-log_msg_no,
gt_return-message_v1,
gt_return-message_v2,
gt_return-message_v3,
gt_return-message_v4,
gt_return-parameter,
gt_return-row,
gt_return-field,
gt_return-system.
endloop..
endform. " disp_report
reward points if helpful........ -
Reg. Bapi FM for creating invoice
Hi Friends
If any body tell me how to create an invoice with reference number and maintain our external invoice number.
Advance Thanks
KrishnaHi,
use this BAPI
BAPI_INCOMINGINVOICE_CREATE
or
BAPI_ACC_INVOICE_RECEIPT_POST
hope helpful
Raghunath.S -
Hi ,
Anyone Please tell me 1) What is Extended BAPI.
2) How to Create the Extended BAPI.
3) What is the main purpose of it.
Thanks & Regards,
Lakshmi.Hi,
Extension parameters
You can create extension parameters to enable customers to enhance the functionality of BAPIs without making modifications. For information about extension parameters see Customer Enhancement Concept for BAPIs.
see the link for detailed documentation:
http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/frameset.htm
Regards,
Renjith Michael. -
Authorization fail with CATS Bapi's on InfoTypes
Hello all - when running BAPI_CATIMESHEETMGR_INSERT we are failing on Authorization - for example our profile doesn't have access to InfoType 0002 - however we cannot assign it directly as the user may also have PA20 etc. and we can't permit them to see data via online transactions - any solution would be greatly appreciated
If the BAPI is not..
No, other way around: if your z-table is not respected by the BAPI then an enhancement point might be?
Where did you add the z-table coding? It might be your own fault (just being honest).
Cheers,
Julius -
hi experts
any body could send me the material regarding BADI &BAPI
other than sap links
i will surely reward for good material
my mail id [email protected]Hi
BAPI-
step by step
http://www.sapgenie.com/abap/bapi/example.htm
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
BAPI
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
u can check the below the material also
what is BAPI?
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
Change( )
The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
Example Code
U need to give the step_nr, item_nr, cond_count and cond_type so the correct conditon will be updated. If no condition exists for the given parameters, a new condition will be created.
U can find these parameters for a particular condition type in table KONV.
*& Form saveTransactionJOCR
text
--> p1 text
<-- p2 text
FORM saveTransactionJOCR .
data: salesdocument like BAPIVBELN-VBELN,
order_header_inx like bapisdh1x,
order_header_in like bapisdh1,
return type standard table of bapiret2 with header line,
conditions_in type standard table of bapicond with header line,
conditions_inx type standard table of bapicondx with header line,
logic_switch like BAPISDLS,
step_nr like conditions_in-cond_st_no,
item_nr like conditions_in-itm_number,
cond_count like conditions_in-cond_count,
cond_type like conditions_in-cond_type.
salesdocument = wa_order_information-VBELN.
LOGIC_SWITCH-COND_HANDL = 'X'.
order_header_inx-updateflag = 'U'.
conditions
clear conditions_in[].
clear conditions_inx[].
clear: step_nr,
item_nr,
cond_count,
cond_type.
step_nr = '710'.
item_nr = '000000'.
cond_count = '01'.
cond_type = 'ZCP2'.
CONDITIONS_IN-ITM_NUMBER = item_nr.
conditions_in-cond_st_no = step_nr.
CONDITIONS_IN-COND_COUNT = cond_count.
CONDITIONS_IN-COND_TYPE = cond_type.
CONDITIONS_IN-COND_VALUE = 666.
CONDITIONS_IN-CURRENCY = 'EUR'.
append conditions_in.
CONDITIONS_INX-ITM_NUMBER = item_nr.
conditions_inx-cond_st_no = step_nr.
CONDITIONS_INX-COND_COUNT = cond_count.
CONDITIONS_INX-COND_TYPE = cond_type.
CONDITIONS_INX-UPDATEFLAG = 'U'.
CONDITIONS_INX-COND_VALUE = 'X'.
CONDITIONS_INX-CURRENCY = 'X'.
append conditions_inx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = salesdocument
ORDER_HEADER_IN = order_header_in
ORDER_HEADER_INX = order_header_inx
LOGIC_SWITCH = logic_switch
TABLES
RETURN = return
CONDITIONS_IN = conditions_in
CONDITIONS_INX = conditions_inx
if return-type ne 'E'.
commit work and wait.
endif.
ENDFORM. " saveTransactionJOCR
Bdc to Bapi
The steps to be followed are :
1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).
[for VA01 use BAPI_SALESORDER_CREATEFROMDAT2]
2. Create a Z program and call the BAPi (same as a Funtion module call).
2. Now, if you see this BAPi, it has
-> Importing structures.
eg: SALESDOCUMENT: this will take the Sales order header data as input.
-> Tables parameters:
eg: ORDER_ITEM_IN: this will take the line item data as input.
Note :
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data
Possible UPDATEFLAGS:
U = change
D = delete
I = add
Example
1. Delete the whole order
2. Delete order items
3. Change the order
4. Change the configuration
Notes
1. Minimum entry:
You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.
2. Commit control:
The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.
For further details... refer to the Function Module documentation for the BAPi.
Bapi to VB(Visual Basic)
Long back I had used the following flow structure to acheive the same.
Report -> SM59 RFC destination -> COM4ABAP -> VB.exe
my report uses the rfc destination to create a COM session with com4abap. com4abap calls the vb.exe and manages the flow of data between sap and vb exe.
You need to have com4abap.exe
If com4abap is installed you will find it in sapgui installatin directory , C:\Program Files\SAPpc\sapgui\RFCSDK\com4abap.
else refer OSS note 419822 for installation of com4abap
after making the settings in com4abap to point to the vb program and setting up rfc destination in sm59 to point to com4abap session , you can use the following function modules to call the vb code.
for setting up com4abap and rfc destination please refer to the documentation for com4abap.
Invoke NEW DCOM session
call function 'BEGIN_COM_SESSION'
exporting
service_dest = service_dest "(this will be a RFC destination created in SM59)
importing
worker_dest = worker_dest
exceptions
connect_to_dcom_service_failed = 1
connect_to_dcom_worker_failed = 2
others = 3.
call function 'create_com_instance' destination worker_dest
exporting
clsid = g_c_clsid
typelib = g_c_typelib
importing
instid = g_f_oid
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.
call function 'com_invoke' destination worker_dest
exporting
%instid = g_f_oid
%method = 'UpdatePDF'
sntemp = g_v_const_filent
snsysid = sy-sysid
snflag = 'N'
tables
rssaptable = g_t_pdfdetail1
%return = g_t_pdfdetail1 "t_test
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.
then close the com session , using
FM delete_com_instance
FM END_COM_SESSION
BADI
BADI(Business Add-In) is the object oriented method of user exits...
Each BAdI has a definition and more than one implementation. The definition means the methods(in class concept) that are used for performing various functions. The BAdI definition can be viewed in SE18 transaction(for standard ones) and user-defined BAdIs can be created in the same transaction as well.
When you create a BAdI definition, an class interface will be automatically created and you can define your methods in the interface. The implementation of the methods can be done in SE19 transaction
Intro.....
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
Check these links for info about badi..
BADI's
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
BADI's
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://www.esnips.com/web/BAdI
http://www.allsaplinks.com/badi.html
New to Badi -
CATS IDoc inbound problem - Transaction lock, LR002
Customer is posting CATS records via interface from externa system to IDoc for CATS processing. Either the create BAPI (BAPI_...) is used or if there is a change to an already existing posting (BAPI_...). For his i have slightly modified the SAP standard existing FM for CATS inbound processing (IDOC_) to handle both scenarios, create and change. I basically examine CATS data from external system and if it is already existing then I call the change BAPI and if not found the I call the create BAPI.
We have no problem posting with these BAPIs when there postings are imported one by one. But, when several CATS postings arrive at the same second then not all postings are handled correctly. We receive error message "Transaction locked by user XXX" (error message e002(lr)) and XXX is the background communication user. No luck using "Where used" for error 002 in message class LR either. Also tried tracing with trans SE30 but no luck there either. Data is always different but can be for the same personell number. User is correct and not locked - it is the transaction (like CAT2) thats SAP standard reports as locked. Some postings go through alright but then after a few corrrect posting this problem pops up. Very frustating.
Code is correct as it seems only to be a "overflow" problem. Config and data is also correct. Customer was also facing the very same error using the same BAPIs called via RFC and not via IDoc.
Reason to change to IDoc was of course to set the posting as synchronous thus avoiding this "overflow" problem. In standard SAP is IDocs processed in parallell which is fine in many circumstances but not here. Or it might be OK as long as this error don't occur but have found no way so far. Customer is in production and this must be solved. We also tried this in a band new upgraded ECC 6.0 EhP5 system as customer is in the process of upgrading. Same error.
I have found very few hints when searching through Google, SAPNet, SDN etc. This is one of the very few links I found: [Locking problem with FM EDI_DATA_INCOMING;
So I checked this in trans WE46 but as customer is running ECC 6.0 EhP3 we have no such option. Then tried trans nOYEAn setting the parameter "Synchronous processing" but I do not understand how this is supposed to work. Problem stills remains. The values are stored in table EDICONFIG and here parameter INBSYNC is used for the synchrounous setting as of my understanding but we only have this for a user called EDIADMIN and that is certainly not our background user. I don't understand how to set this parameter correctly I guess. SAP help doen't give more insight either - at least not for me.
Does anyone have a suggestion how to solve this problem? Anyone solved this before and willing to share a solution?
<< Moderator message - Please do not promise points >>
I maybe beed to send this to SAP OSS but trying this option first.
To me this is puzzling. Find very few references which normally means few have encountered this. Strange. CATS BAPI interfacing must be used by a lot of companies.
BR, Johan
Edited by: Rob Burbank on Nov 7, 2011 2:36 PMHi Johan,
These kind of problems arise when there is a very little time gap between two successive postings. So put a 'WAIT UP TO 2 SECONDS' between each of the postings. This will give time for the previous posting to perform the updates even before the next posting hits the same transaction. This will solve your problem. -
HI,
NAME SOME STD BAPI WHICH ARE NORMALLY USED IN REAL TIME
THANK YOU
ASHOK KUMARHi Ashok,
BAPI_TRANSACTION_COMMIT
BAPI_TRANSACTION_ROLLBACK
for view all the BAPI's ....
Welcome to PlanetSAP.com
Function group Function group short text
Name of function module Short text for function module
BAPIs f. BOR obj. BUS4003 (AddrContPart)
BAPI_CHARACT_GETLIST BAPI for Characteristics - Find Name
0002 Company Code Business Object
BAPI_CCODE_GET_FIRSTDAY_PERIOD For Company Code: First Day of Period
BAPI_CCODE_GET_LASTDAY_FYEAR For Company Code: Last Day of Fiscal Year
BAPI_COMPANYCODE_EXISTENCECHK Check if Company Code Exists
BAPI_COMPANYCODE_GETDETAIL Company Code Details
BAPI_COMPANYCODE_GETLIST List of Company Codes
BAPI_COMPANYCODE_GET_PERIOD For Company Code: Posting Date -> Period, Fiscal Year
0003 Business Area Business Object
BAPI_BUSINESSAREA_EXISTENCECHK Check if business area exists
BAPI_BUSINESSAREA_GETDETAIL Business area details
BAPI_BUSINESSAREA_GETLIST List of business areas
0004 Business Object Controlling Area
BAPI_CONTROLLINGAREA_GETDETAIL List Detail Information for Controlling Area
0004CORE Business Object: Controlling Area (Core)
BAPI_COAREA_GETPERIODLIMITS Controlling Area: First and Last Day of a Period
BAPI_COAREA_GET_RELATED_CCODES Determine Company Codes Assigned to one Controlling Area
BAPI_CONTROLLINGAREA_FIND Derive Controlling Area from Company Code
BAPI_CONTROLLINGAREA_GETLIST Output List of Controlling Areas
BAPI_CONTROLLINGAREA_GETPERIOD For Controlling Area: Posting Date -> Period, Fiscal Year
0006 Sales organization
BAPI_SALESGROUP_GET_DETAIL Sales Group: Display Name
BAPI_SALESOFFICE_GET_DETAIL Sales Office: Display Name
BAPI_SALESOFFICE_GRP_EXIST Sales Office / Sales Group: Existence Check
BAPI_SALESORG_EXIST Sales Organization: Existence Check
BAPI_SALESORG_GET_DETAIL Sales Organization: Display Data
BAPI_SALESORG_OFFICE_EXIST Sales Organization / Sales Office: Existence Check
0012 Business Object BUS0012 (Cost Center)
BAPI_COSTCENTER_CREATEMULTIPLE Create One or More Cost Centers
BAPI_COSTCENTER_GETDETAIL Detailed Information About Cost Center For Key Date
BAPI_COSTCENTER_GETDETAIL1 Detail Information for Cost Center on Key Date (1)
BAPI_COSTCENTER_GETLIST List of Cost Centers Using Selection Criteria
BAPI_COSTCENTER_GETLIST1 List of Cost Centers for Selection Criteria (1)
BAPI_CTR_GETACTALLOCATIONTYPES Checks Which IST-ILV Types are Possible According to Activity Type Categ.
BAPI_CTR_GETACTIVITYPRICES Read prices for cost center/activity type according to selection
BAPI_CTR_GETACTIVITYQUANTITIES Rad plan activity/capacity/scheduled activity for cost center/acty type
BAPI_CTR_GETACTIVITYTYPES List of cost centers / activity types with control information
0014 Company Business Object
BAPI_COMPANY_EXISTENCECHECK Check if company exists
BAPI_COMPANY_GETDETAIL Company details
BAPI_COMPANY_GETLIST List of companies
0015 Profit Center BAPI
BAPI_PROFITCENTER_CHANGE Change Profit Center
BAPI_PROFITCENTER_CREATE Create Profit Center
BAPI_PROFITCENTER_GETDETAIL Display Profit Center Master Data
BAPI_PROFITCENTER_GETLIST Display List of Profit Centers
0023 Functional Area Business Object
BAPI_FUNC_AREA_EXISTENCECHECK Check if functional area exists
BAPI_FUNC_AREA_GETDETAIL Functional area details
BAPI_FUNC_AREA_GETLIST List of functional areas
0PBAPI0105 Bapis for infotype 0105
BAPI_EMPLCOMM_CHANGE Change communication
BAPI_EMPLCOMM_CREATE Create communication
BAPI_EMPLCOMM_CREATESUCCESSOR Create subsequent communication record
BAPI_EMPLCOMM_DELETE Delete communication
BAPI_EMPLCOMM_DELIMIT Delimit communications
BAPI_EMPLCOMM_GETDETAIL Read communication
BAPI_EMPLCOMM_GETDETAILEDLIST Communication: Read instances with data
BAPI_EMPLCOMM_GETLIST Read communication
1001 BAPIs for Business Object RetailMaterial
BAPI_MATERIAL_MAINTAINDATA_RT Create and Change Material Master Data (Retail)
1001DIA Dialog APIs for Business Object Material
BAPI_MATERIAL_DELETE Flag Material for Deletion
BAPI_MATERIAL_DISPLAY Display Material
BAPI_MATERIAL_EDIT Change Material
BAPI_RETAILMATERIAL_CREATE Create Material
BAPI_RETAILMATERIAL_DELETE Discontinue Material
BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
1001UEB BAPIs for Creating/Changing Matl Data
BAPI_MATERIAL_SAVEDATA Create and Change Material Master Data
1006 Business partner
BAPI_PAR_EMPLOYEE_CHANGEPASSWO Change contact person's password
BAPI_PAR_EMPLOYEE_CHECKEXISTEN Check contact person's number
BAPI_PAR_EMPLOYEE_CHECKPASSWOR Check contact person's password
BAPI_PAR_EMPLOYEE_CREATE_PW_RE Create entry for contact person's password
BAPI_PAR_EMPLOYEE_DELETE_PW_RE Delete entry for contact person's password
BAPI_PAR_EMPLOYEE_GET_PW_REG Read entry for contact person's password
BAPI_PAR_EMPLOYEE_INITPASSWORD Initialize contact person's password
1007 Customer business object
BAPI_DEBTOR_CHANGEPASSWORD Change Customer Password
BAPI_DEBTOR_CHECKPASSWORD Check Customer Password
BAPI_DEBTOR_CREATE_PW_REG Create Entry for Customer Password
BAPI_DEBTOR_DELETE_PW_REG Delete Customer Password Entry
BAPI_DEBTOR_EXISTENCECHECK Check Customer Existence
BAPI_DEBTOR_FIND Customer Matchcode
BAPI_DEBTOR_GETDETAIL Customer Detail Information
BAPI_DEBTOR_GET_PW_REG Read Entry for Customer Password
BAPI_DEBTOR_INITPASSWORD Initialize Customer Password
1008 Vendor business object
BAPI_CREDITOR_CHANGEPASSWORD Change Vendor Password
BAPI_CREDITOR_CHECKPASSWORD Check Vendor Password
BAPI_CREDITOR_CREATE_PW_REG Create Entry for Vendor Password
BAPI_CREDITOR_DELETE_PW_REG Delete Entry for Vendor Password
BAPI_CREDITOR_EXISTENCECHECK Check Existence of Vendor
BAPI_CREDITOR_FIND Vendor matchcode
BAPI_CREDITOR_GETDETAIL Vendor Details
BAPI_CREDITOR_GET_PW_REG Read entry for vendor password
BAPI_CREDITOR_INITPASSWORD Initialize Vendor Password
1010 Customer credit account business object
BAPI_CREDIT_ACCOUNT_GET_STATUS Determine Credit Status of Credit Account
BAPI_CREDIT_ACCOUNT_REP_STATUS Receive Credit Management Account Status and Send to Database
BAPI_CR_ACC_GETDETAIL BAPI/BUS1010: Determine Master Record Data
BAPI_CR_ACC_GETHIGHESTDUNNINGL BAPI/BUS1010: Determine Highest Dunning Level
BAPI_CR_ACC_GETOLDESTOPENITEM BAPI/BUS1010: Determine Oldest Open Item
BAPI_CR_ACC_GETOPENITEMSSTRUCT BAPI/BUS1010: Determine OI Structure
1021 Spec.Purpose Ledger BUS1021
BAPI_SL_GETTOTALRECORDS Special Purpose Ledger: Select totals records for accounts
1022 BAPIs for BUS1022 (Fixed asset)
BAPI_FIXEDASSET_CHANGE Changes an Asset
BAPI_FIXEDASSET_CREATE Creates an Asset
BAPI_FIXEDASSET_CREATE1 Creates an Asset
BAPI_FIXEDASSET_GETDETAIL Display Detailed Information on a Fixed Asset
BAPI_FIXEDASSET_GETLIST Information on Selected Assets
BAPI_FIXEDASSET_OVRTAKE_CREATE BAPI for Legacy Data Transfer
1024 Business Object ConsUnit
BAPI_CONSUNIT_GETCURRENCY Procure Reporting Currency
BAPI_CONSUNIT_GETLIST Display Consolidation Units
1025 Business Object ConsChartOfAccts
BAPI_CONSCHARTOFACCTS_GETITEMS Display Financial Statement Items
BAPI_CONSCHARTOFACCTS_GETLIST Display Consolidation Charts of Accounts
1026 Business Object ConsLedger
BAPI_CONSLEDGER_GETEQUITY Display Changes in Investee Equity
BAPI_CONSLEDGER_GETINVESTMENT Display Changes in Investments
BAPI_CONSLEDGER_GETTOTALS Display Totals Records
1027 Business Object ConsGroup
BAPI_CONSGROUP_GETCONSUNITS BAPI - Consolidation Group - Get Consolidation Units
BAPI_CONSGROUP_GETLIST Display Consolidation Groups
1028 Business Object General Ledger
BAPI_GLX_GETDOCITEMS Line item of document for ledger with summary table GLFLEXT
BAPI_GL_GETGLACCBALANCE Closing balance of G/L account for chosen year
BAPI_GL_GETGLACCCURRENTBALANCE Closing balance of G/L account for current year
BAPI_GL_GETGLACCPERIODBALANCES Posting period balances for each G/L account
1030 Business Object BUS1030 (Cost Element)
BAPI_COSTELEM_CREATEMULTIPLE Create One or More Cost Elements
BAPI_COSTELEM_GETDETAIL Detail Information for Cost Element on Key Date
BAPI_COSTELEM_GETLIST List of Cost Elements for Selection Criteria
1031 Business Object BUS1031 (Activity Type)
BAPI_ACTIVITYTYPE_GETDETAIL Detail Information for Activity Type on Key Date
BAPI_ACTIVITYTYPE_GETLIST List of Activity Types Using Selection Criteria
BAPI_ACTIVITYTYPE_GETPRICES Output Activity Prices for Activity Types on Key Date
BAPI_ACTTYPE_CREATEMULTIPLE Create One or More Activity Types
1036 Business Object BUS1036 Business Process
BAPI_PROCESS_CREATEMULTIPLE Create one or more business processes
BAPI_PROCESS_GETACTALLOCTYPES Checks Which IST-ILV Types are Possible According to Activity Type Categ.
BAPI_PROCESS_GETDETAIL Detail information for business process on key date
BAPI_PROCESS_GETLIST List of business processes per selection conditions
BAPI_PROCESS_SAVE_REPLICA Replicate individual business process (ALE)
BAPI_PROCESS_SETSTRUCTURE Enter template in business process master data
1037 Business object BUS1037
BAPI_BPCONTACT_ADD_TO_ASGN BAPI Partner Sales Activity AddToAssigned
BAPI_BPCONTACT_CHANGE BAPI Change Partner Sales Activity
BAPI_BPCONTACT_CREATEFROMDATA BAPI Partner Sales Activity Create from Data
BAPI_BPCONTACT_CREATEWITHDIA BAPI Partner Sales Activity - Create from Data Dialog
BAPI_BPCONTACT_DELETE BAPI Delete Partner Sales Activity
BAPI_BPCONTACT_GETDETAIL BAPI Partner Sales Activity - Get Details
BAPI_BPCONTACT_GETLIST BAPI Partner Sales Activity - Get List
BAPI_BPCONTACT_REMOVEFROM_ASGN BAPI Partner Sales Activity RemoveFromAssigned
BAPI_BPCONTACT_REPLICATE BAPI Partner Sales Activity Replicate
BAPI_BPCONTACT_REPLICATECHANGE BAPI Partner Sales Activity Replicate Changed Objects
BAPI_BPCONTACT_SAVEFROMMEMORY BAPI Partner Sales Activity - Save from Memory
BAPI_BPCONTACT_SETTOACTIVE BAPI Partner Sales Activity - Set simulated to active
1057 Business Object Investment Program
BAPI_INVPROGRAM_CHECKEXISTENCE Check Existence (of Sub-Tree) of Program
BAPI_INVPROGRAM_GET_LEAVES Output End Nodes of an Investment Program
BAPI_INVPROGRAM_GET_REQUESTS Output Appropriation Requests and End Nodes of an Investment Program
BAPI_INVPROGRAM_SAVE_ENTITIES Save Assigned Entities in Summarization Database
BAPI_INVPROGRAM_SAVE_VALUES Save Summarized Values in Summarization Database
BAPI_INVPROGRAM_SELRE_ENTITIES Select Assigned Entities and Replicate Them in Summarization DB
BAPI_INVPROGRAM_SELRE_VALUES Select Values, Summarize Them and Replicate in Summarization DB
1065 Business Object Employee
BAPI_EMPLOYEET_CHANGEPASSWORD Change employee password
BAPI_EMPLOYEET_CHECKPASSWORD Check employee password
BAPI_EMPLOYEET_CREATE_PW_REG Create entry for employee password
BAPI_EMPLOYEET_DELETE_PW_REG Delete entry for employee password
BAPI_EMPLOYEET_DEQUEUE Unlock employee
BAPI_EMPLOYEET_ENQUEUE Lock employee
BAPI_EMPLOYEET_GET_PW_REG Read entry for employee password
BAPI_EMPLOYEET_INITPASSWORD Initialize employee password
BAPI_EMPLOYEE_CHANGEPASSWORD Change employee password
BAPI_EMPLOYEE_CHECKEXISTENCE Check employee existence
BAPI_EMPLOYEE_CHECKPASSWORD Check employee password
BAPI_EMPLOYEE_CREATE_PW_REG Create entry for employee password
BAPI_EMPLOYEE_DELETE_PW_REG Delete entry for employee password
BAPI_EMPLOYEE_DEQUEUE Unlock employee
BAPI_EMPLOYEE_ENQUEUE Lock employee
BAPI_EMPLOYEE_GETDATA_OLD No Longer Used -> Function group RH65
BAPI_EMPLOYEE_GET_PW_REG Read entry for employee password
BAPI_EMPLOYEE_INITPASSWORD Initialize employee password
1069 Business object 1069 (retail site)
BAPI_RETAILSITE_GETDEPARTMENTS Determine departments of a plant (including description)
BAPI_RETAILSITE_GETMATGROUPS Material groups for a plant (retail plant) incl. description
1070 Business Object Assortment
BAPI_ASSORTMENT_MAINTAINDATA Maintenance of Assortments
1071 Prod. cat: BAPIs
BAPI_ADV_MED_GET_ITEMS Read Product Catalog Items
BAPI_ADV_MED_GET_LAYOBJ_DESCR Read Long Text for Layout Area or Layout Area Item
BAPI_ADV_MED_GET_LAYOBJ_DOCS Read Documents for a Layout Area or a Layout Area Item
BAPI_ADV_MED_GET_LAYOUT Read Product Catalog Layout
BAPI_ADV_MED_GET_LIST Read Product Catalog List
BAPI_ADV_MED_GET_PRICES Read Product Catalog Item Prices
BAPI_ADV_MED_GET_SALES_AREA Read Sales Area for a Product Catalog
BAPI_ADV_MED_GET_VARIANT_LIST Read Product Catalog Variants
BAPI_PRODCAT_GETITEM Read Individual Product Catalog Item
BAPI_PRODCAT_GETPRICES Read Product Catalog Item Prices
BAPI_PRODCAT_GET_DETAIL Read Header Data for a Product Catalog
BAPI_PRODCAT_REPLICATEHEAD Replicate Basic and Structure Data of a Product Catalog (ALE Outbound)
BAPI_PRODCAT_REPLICATEITEMS Replicate Item Data of a Product Catalog (ALE Outbound)
BAPI_PRODCAT_SAVEHEADREPLICA Replicate Basic and Structure Data of a Product Catalog (ALE Inbound)
BAPI_PRODCAT_SAVEITEMSREPLICA Replicate Item Data of a Product Catalog (ALE Inbound)
1076 Business Object 1076 (Financial product)
BAPI_FP_CHANGE Change Security
BAPI_FP_CREATEFROMDATA Create Security
BAPI_FP_GETDETAIL Read Security Detailed Data
BAPI_FP_GETLIST Read Security List
1078 DG-Mat: Business object dangerous good
BAPI_DANGEROUSGOOD_REPLICATE Dangerous goods: Request instances
BAPI_DANGEROUSGOOD_SAVREPMUL Dangerous goods: Save replicated instances
1079 BAPIs for General Cost Object/Cost Obj
BAPI_COSTOBJECT_GETDETAIL Determine Details for a General Cost Object
BAPI_COSTOBJECT_GETLIST Determine General Cost Objects for a Controlling Area
1120 Business Object ConsDimension
BAPI_CONSDIMENSION_GETLIST Display Dimensions
1121 Business Object ConsSubitemCategory
BAPI_CONSSUBITEMCATEGORY_LIST Display Subitem Categories
BAPI_CONSSUBITEMCATEGORY_SITEM Display Subitems
1122 Business Object ConsDocumentType
BAPI_CONSDOCUMENTTYPE_GETADJ Display Document Types for the Entry
BAPI_CONSDOCUMENTTYPE_GETLIST Display Document Types
1137 Business Object 1137 BusProcStructureCO
BAPI_BUSPROCSTRUCTURECO_CREATE BAPI for Creating Fixed Process Structures for Business Processes
1138 Business Object BUS1138 (Stat. Key Fig.)
BAPI_KEYFIGURE_CREATEMULTIPLE Create One or More Statistical Key Figures
BAPI_KEYFIGURE_GETDETAIL Detail Information for Statistical Key Figure on Key Date
BAPI_KEYFIGURE_GETLIST List of Stat. Key Figures for Selection Criteria
1139 CO Resources: Business Object
BAPI_RESOURCECO_SAVE_REPLICA Replicate individual CO resources (ALE)
1157 Function Module for BUS1157
BAPI_EXPENDITUREPROGDEF_CHANGE Change Inv. Program Definition
BAPI_EXPENDITUREPROGDEF_CREATE Create Inv. Program Definition
BAPI_EXPENDITUREPROGDEF_EXCHK Check Existence of Program Definition
BAPI_EXPENDITUREPROGDEF_GETDTL Display Detail List for Program Definition
BAPI_EXPENDITUREPROGDEF_GTLIST Display Existing Program Definitions
BAPI_EXPENDITUREPROGDEF_SAVER Method 'SaveReplica' for ExpenditureProgDef
1158 Function Module for BUS1158
BAPI_EXPENDITUREPROGTREE_CHG Change Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_CHVAL Change Budget/Plan Values on the Positions of a Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_CREAT Create Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_DEL Delete Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_DLVAL Method 'DeleteValues' for ExpenditureProgTree
BAPI_EXPENDITUREPROGTREE_EXCHK Check Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_GDVAL Determine Values for Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_GTDTL Call Information on Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_GTSTA Return System or User Status
BAPI_EXPENDITUREPROGTREE_REASS Reassign Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_STSTA Change System or User Status of Positions of Program Sub-Tree
BAPI_EXPENDITUREPROGTREE_SVRP Method 'SaveReplica' for ExpenditureProgTree'
BAPI_EXPENDITUREPROGTREE_SVRPV Method 'SaveReplicaValues' for ExpenditureProgTree
1171 All Methods for PriceCatalog Object
BAPI_PRICECATALOGUE_EXISTCHECK FM for ExistenceCheck method of BO PriceCatalogue
BAPI_PRICECATALOGUE_GETDETAIL FM for GetDetail method of BO PriceCatalogue
BAPI_PRICECATALOGUE_SAVREPLICA Store Price Catalog Instance
2001 BAPIs project definition
BAPI_PROJECTDEF_CREATE Create Project Definition
BAPI_PROJECTDEF_EXISTENCECHECK Check whether a project definition exists
BAPI_PROJECTDEF_GETDETAIL Read detailed information for the project definition
BAPI_PROJECTDEF_GETLIST Returns a container of project definitions
BAPI_PROJECTDEF_UPDATE Change Project Definition
2002 BAPIs network
BAPI_NETWORK_EXISTENCECHECK Check whether network exists
BAPI_NETWORK_GETDETAIL Read detailed information for network (including all objects)
BAPI_NETWORK_GETINFO Read detailed information for networks (including all objects)
BAPI_NETWORK_GETLIST Returns a container of network numbers
BAPI_NETWORK_MAINTAIN Edit networks (incl. all objects)
2004 BAPI Planned Order Processing
BAPI_PLANNEDORDER_CHANGE Change planned order
BAPI_PLANNEDORDER_CREATE Create planned order
BAPI_PLANNEDORDER_DELETE Delete planned order
BAPI_PLANNEDORDER_EXIST_CHECK Planned order existence check
BAPI_PLANNEDORDER_GET_DETAIL Get details for planned order
BAPI_PLANNEDORDER_GET_DET_LIST Get detailed planned order list
2027 Business Object 2027: Material Reval.
BAPI_M_REVAL_CREATEPRICECHANGE BAPI: Material Revaluation - Generate Price Change
BAPI_M_REVAL_GETDETAIL BAPI: Material Revaluation - Output Document
2030 Business Object Inquiry
BAPI_CUSTOMERINQUIRY_CHANGE Change Customer Inquiry
BAPI_INQUIRY_CREATEFROMDATA Customer inquiry: Create customer inquiry
BAPI_INQUIRY_CREATEFROMDATA2 Customer Inquiry: Create Customer Inquiry
2031 Business Object Quotation
BAPI_CUSTOMERQUOTATION_CHANGE Change Customer Quotation
BAPI_QUOTATION_CREATEFROMDATA Customer quotation: Create customer quotation
BAPI_QUOTATION_CREATEFROMDATA2 Customer Quotation: Create Customer Quo -
BAPIS, BADIS and ALE ..DOCUMENTS
Hi,
If any one having the documentations reg ale, bapi and badis plz send to my mail id.
[email protected]
Thanks in advance
SrinuSreenu
Sent to your mail ID .
Regards
Surendra -
Reg bapi for creation of purchase order
hai to all,
i have to upload purchase orders from legacy file to R/3 system
certain order having more than 50 line items
so please any one send me <b>stardard bapi program or bdc program for me21n</b> transaction which will suitable for my senario.
please send asap
regards
vijayhai
i am trying to create po using bapi
the following code explains
constants : c_x value 'X'.
data: del_date type sy-datum.
data: pohead type bapimepoheader.
data: poheadx type bapimepoheaderx.
data: exp_head type bapimepoheader.
data: t_return_out type table of bapiret2 with header line,
wa_return_out TYPE bapiret2.
data: poitem type table of bapimepoitem with header line.
data: poitemx type table of bapimepoitemx with header line.
data: posched type table of bapimeposchedule with header line.
data: poschedx type table of bapimeposchedulx with header line.
data: ex_po_number type bapimepoheader-po_number.
Header Level Data
pohead-comp_code = '1011'.
pohead-doc_type = 'NB' .
pohead-creat_date = sy-datum .
pohead-vendor = 'A1138'.
pohead-purch_org = 'DOMS'.
pohead-pur_group = 'MFR'.
pohead-langu = sy-langu .
pohead-doc_date = sy-datum.
poheadx-comp_code = c_x.
poheadx-doc_type = c_x.
poheadx-creat_date = c_x.
poheadx-vendor = c_x.
poheadx-langu = c_x.
poheadx-purch_org = c_x.
poheadx-pur_group = c_x.
poheadx-doc_date = c_x.
Item Level Data
poitem-po_item = 1.
poitem-material = '000000000100001079'.
poitem-plant = 'HO01'.
poitem-stge_loc = ''.
poitem-quantity = 1.
append poitem.
poitemx-po_item = 1.
poitemx-po_itemx = c_x.
poitemx-material = c_x.
poitemx-plant = c_x .
poitemx-stge_loc = c_x .
poitemx-quantity = c_x .
poitemx-tax_code = c_x .
poitemx-item_cat = c_x .
poitemx-acctasscat = c_x .
append poitemx.
Schedule Line Level Data
posched-po_item = 1.
posched-sched_line = 1.
posched-del_datcat_ext = 'D'.
del_date = sy-datum + 1.
write del_date to posched-delivery_date.
posched-deliv_time = '000001'.
posched-quantity = 1.
append posched.
poschedx-po_item = 1.
poschedx-sched_line = 1.
poschedx-po_itemx = c_x.
poschedx-sched_linex = c_x.
poschedx-del_datcat_ext = c_x.
poschedx-delivery_date = c_x.
poschedx-quantity = c_x.
append poschedx.
call function 'BAPI_PO_CREATE1'
EXPORTING
poheader = pohead
poheaderx = poheadx
testrun = ' '
IMPORTING
exppurchaseorder = ex_po_number
expheader = exp_head
TABLES
return = t_return_out
poitem = poitem
poitemx = poitemx.
poschedule = posched
poschedulex = poschedx.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
if not ex_po_number is initial.
call function 'DEQUEUE_ALL'.
else.
call function 'DEQUEUE_ALL'.
message i036.
endif.
**endform. " create_po
IF ex_po_number IS NOT INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
PERFORM show_result.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
PERFORM show_result.
ENDIF.
*& Form show_result
text
--> p1 text
<-- p2 text
FORM show_result .
LOOP AT t_return_out INTO wa_return_out.
write : ex_po_number.
WRITE : / wa_return_out-type,
/ wa_return_out-id,
/ wa_return_out-number,
/ wa_return_out-message,
/ wa_return_out-log_no,
/ wa_return_out-log_msg_no,
/ wa_return_out-message_v1,
/ wa_return_out-message_v2,
/ wa_return_out-message_v3,
/ wa_return_out-message_v4,
/ wa_return_out-parameter,
/ wa_return_out-row,
/ wa_return_out-field,
/ wa_return_out-system.
ENDLOOP.
<b>iam geting the error such that</b>
E
BAPI
001
No instance of object type PurchaseOrder has been created. External reference:
000000
PurchaseOrder
POHEADER
1
E
ME
062
Account assignment mandatory for material 100001079 (enter acc. ***. cat.)
000000
100001079
POITEM
<b>how to correct this error</b>
regards
vijay -
Is there a Bapi using which i can do CATS Transfer (similar to tcode CATA)?
is there a Bapi using which i can do CATS Transfer (similar to tcode CATA)?
wanna do transfer to Hr.No there isn't but there is nothing to stop you creating one.
The program essentially passes parameters through to FM CATS_TRANSFER_HR/CATS_TRANSFER_CO/CATS_TRANSFER_PM
/CATS_TRANSFER_PS. Create a copy of this FM and set it to remote-enabled Module and start immediately.
Hopefuuly this will help, -
Reg: Customer Master Creation in BAPI
Hi All,
How can i find the fields, which are all used in
BAPI_CUSTOMER_CREATEFROMDATA1 and in
BAPI_CUSTOMER_CREATEFROMDATA...
And how can i find the sap given sequential/flat file
for customer master.
Thanks & Regards
arunmost of the fields will be present in the BAPI function. some fields may not be avialable in that BAPI. first list out the fields what you want, then you check the fields in BAPI, and also you can go for LSMW Recording method or LSMW batch input method.
check this batch input program RFBIDE00 .
For testing the BAPI you have to input the data manually in SE37. First create a sample customer in XD01, use the same data for testing the BAPI. -
Reg:Bapi for mass creation of production order/confirmation
Dear Experts,
I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction.
I knew there are standard transactions for mass confirmation for production orders. But i need a confirmation on this BAPI . As i am planning to go-ahed with ,mass creation of production order creation / Order confirmation in single custom transaction.Need back flush activity even supported.
BAPI_PRODORD_CREATE to create the orders.
BAPI_PRODORD_RELEASE to release the orders.
BAPI_PRODORDCONF_GET_TT_PROP to get the default data for the confirmation.
BAPI_PRODORDCONF_CREATE_TT to ost the confirmation of production order.
Along with this BAPI do i need to commit any other BAPI to carry out back flush for components.
Need your suggestions to take it further.
Regards,
Daya.Dear SAP Daya
If the issue has been solved, please close this thread.
You have already mentioned that the issue has been resolved, thefore, you should not ask for help on another thread before closing this one, as it looks like you are trying to force people to answer your threads.
Users are always trying to answer as many threads as possible on good will we don't need this kind of "incentive".
Please read carefully the The SCN Rules of Engagement, especially point 8:
Be responsive. If an SCN member has answered your question, please mark the answer as "helpful” or “correct”. Mark the discussion as “answered,” so that other members can find the answers more easily
Also, I checked your old threads and I could observe that there is only one closed. Please review your old threads and close those already solved.
BR
Caetano
Maybe you are looking for
-
And again "The error was: Unknown alias" on incoming emails
Good day for all I have read all topics about this error, search Google, this forums. My environment: Windows 2008 STD SP2 ENG MOSS 2007 SP2 + April 09 CU ENG Exchange 2007 + all recent rollup AD Windows 2003 Native Exchange, MOSS and DC is a dedicat
-
Shared Apple ID has become a problem and I can't figure out how to be unshared.
Originally, there was iTunes and the iPod. We had one computer with the music on it, and the iPods were all connecting to that single iTunes account, all with a single Apple ID. Then came the iPhone, which needed an iTunes account to set up, update
-
Some child chms don't display topic in topic pane when TOC item is clicked
Okay. I'm not sure what's going on. We have a master project and various sub-chms that get merged into the TOC of that master project. We have a fairly new sub RH project named "Toolkit Modules" that generates three additional sub chms that are also
-
How to get the class name of all available subclasses
Hi there! Im developing an eComerce site as part of my studies this semester using JSP and mySQL. It's part of a bigger management system for a fictional company. In the user interface, when adding new products to be available for sale on the website
-
HT4009 I was charged double for an in-app purchase??
what do i have to do to get a credit for an incorrect billing for an in-app purchase? i have tried reporting a problem in itunes under my recent purchases and it directs me to apple's support page. please help!