BAPI for CRM - CRMD_ORDER
Hi,
I am using PI to integrate the third party system to our CRM system.At receive side, i am seeing for a BAPI to call and to create transaction (CRMD_ORDER) in CRM.Can you please help me in identifying the correct BAPI for this requirement,
Thanks
Ashu
this is worthless as it is....
but gives you some idea of what you need to do....
*--- Initialization before processing Quotes *
call function 'CRM_ORDER_INITIALIZE'
exporting
iv_initialize_whole_buffer = gc_true
exceptions
error_occurred = 1
others = 2.
*--- Create service order *
call function 'CRM_ORDER_MAINTAIN'
exporting
it_customer_h = gt_customer_header
it_appointment = gt_appointment
it_text = gt_text_data
* it_status = gt_status
importing
et_exception = gt_exceptions
changing
ct_orderadm_h = gt_order_header
ct_orderadm_i = gt_order_item
ct_input_fields = gt_input_fields
ct_doc_flow = gt_doc_flow
cv_log_handle = gw_log_handle
exceptions
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
others = 5.
*---If successful, save
if sy-subrc = 0
or gt_exceptions[] is initial.
*--- Service order created ok.....save the service order *
clear gt_object_guids.
refresh gt_object_guids.
loop at gt_order_header into gs_order_header
where object_id = gw_object_id.
endloop.
insert gs_order_header-guid into table gt_object_guids.
clear: gw_log_handle.
call function 'CRM_ORDER_SAVE'
exporting
it_objects_to_save = gt_object_guids
importing
et_saved_objects = gt_object_guids_saved
et_exception = gt_exceptions
et_objects_not_saved = gt_object_guids_not_saved
changing
cv_log_handle = gw_log_handle
exceptions
document_not_saved = 1
others = 2.
endif.
Just to put it into context, my program for this over 1400 lines long.... there was lots of data manipulation do be done and also some additional processing.
Similar Messages
-
Bapi for CRM service confirmation
Hi All,
Is there any bapi for CRm service confirmation which done trhough the transaction - CRMD_BUS2000117.
Its urgent.
Points will be awarded.
Reagrds,
vinoth.Hello Vinoth,
please ask that kind of questions in the SAP CRM: Webclient UI - Framework Forum.
What's about using CRM_ORDER_MAINTAIN? You can find many examples of it's use using the SDN search.
Regards
Gregor -
BAPI for CRM Trade Claims Management
Hi Gurus,
the customer is asking to create claims and pre-payments massively using an upload template.
I had a look and i didn't find any BAPI for that purpose.
Anyone can tell me an alternative option?
Regards
CHi,
As Claims and Prepayments are part of One Order framework itself, you can use the same function modules like CRM_ORDER_MAINTAIN, CRM_ORDER_SAVE etc.,
Regards,
Masood Imrani S. -
BAPI for T-code CRMD_ORDER
HI folks,
Can any one help me find out a BAPI for transaction CRMD_ORDER.
Regards,
AbieHi,
there is no BAPI for the order processing. Instead you might want to check the SOA services http://esoadocu.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE4157EA06BD7BF1A3C7001A64D3F462&id=2771A3525CD111DA36BB000F20DAC9EF or check the XIF interface for sales order import.
Best Regards,
Michael -
BAPI for CRMD_ORDER support message? Urgent
Hi Experts,
I want to change the support messages created.
For that do we have a BAPI, for the support message?
It is an urgen requirement..
Points will be rewarded ....
thanks,
MahanteshHey Mahantesh,
As i already mentioned in my previous post, you have to use FM CRM_ORDER_MAINTAIN in the BADI ORDER_SAVE to update any field which is present in tcode CRMD_ORDER.
Please Consult CRM techincal consultant to know how to use FM CRM_ORDER_MAINTAIN in order to update the ibase and component.
please reward points for usefull answer.
Regards,
Anand... -
Hi Experts !
Pls tell me the BAPI for the ORGANIZATIONAL structure in CRM.
Thanks in advance.
Regds
NavneetHi Navneet,
Goto SE80 -> package : CRM_ORGMAN.
Here you will get all the FM used for Organisation structure in CRM.
I doubt if CRM as any BAPI in general for Organisation
Regards,
Anand. -
CRM - Bapi for creating relationship between BPs with sales area data
Hi
I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
Regards
RadekHey Radek,
I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
Best Regards
Mirko -
hi friend,
i change customer telephone noumber in revelent T.code
in my R/3 system and i want to update this change in CRM
system so kindly give me sutiable bapi for this change.Hi
Check this BAPI: BAPI_BUPA_ADDRESS_CHANGE.
Regards,
Vishwa. -
BAPI for customer Block/Unblock through transaction code : XD05
Hi Gurus,
I want to block/unblock customer sales areas(Transaction code : XD05) through program. Could you please suggest any BAPI for the same. As writing BDC will not be a good choice.
Please help.
Thanks,
BhupenderHello Bhupender,
the best and easies solution is the MASS maintenance transaction as proposed above.
For the BAPI question, sorry but there is NO BAPI to maintain a customer master data.
The function module provided by my predecessor, even if it has the perfect look like is definitively not the one to use.
Despite the name, this FM is designed to support only the maintenance of CONSUMERs.
Moreover it is not an RFC enabled function module.
It might work in your case, as the data to maintain is quite simple and limited but you still may face several troubles like NO change documents and change pointers created and/or no synchronisation with TREX, CRM, ...
There is also a BAPI with a nice name, but in fact it is designed to be used only with SAP Online Store and SAP Product Catalog.
The only reliable path for investigation is described within [note 384462|https://service.sap.com/sap/support/notes/384462].
A other path for investigation is the class CMD_EI_API which has been introduced with ECC 2005 (6.00).
You could wrap method MAINTAIN_BAPI inside of a bapi function module you would have written.
Otherwise, but still with limited functionality there are some eSOA webservices to find, read, maintain customer master data.
Hope this helps.
BR
Alain -
Bapi for Process service confirmation in transaction - CRMD_BUS2000117
Hi All,
Is there any bapi for process service confirmation in CRM system.
Tcode for service confirmation - CRMD_BUS2000117.
Points will be awarded.
Regards,
Vinoth.Hello Vinoth,
please ask that kind of questions in the SAP CRM: Webclient UI - Framework Forum.
What's about using CRM_ORDER_MAINTAIN? You can find many examples of it's use using the SDN search.
Regards
Gregor -
Hi all,
In CRM ORG Structutre we can schedule an object or an assignment. This option comes when you right click on any ORGUNIT or position. I need FM or BAPI for this scheduling.
I need them for my ORG Delta program. We cannot delete any object as they might be getting used somewhere in lead or at some other place. So I just want to change their end dates.
Regards
VishalHi,
use BAPI_PO_CREATE, po_header-doc_type = 'UB'
Thanks,
Reward If Helpful. -
Hello Experts,
I am in need for standard BAPIs for the following info types. If it is not available please help me with some way.
<b>Infotypes:
 0002 (Personal Data)
 0006 (Addresses)
 0009 (Bank details)
 0021 (Family member/dependents)
 0023 (Other/Previous employers)
 0028 (Internal medical service) subtype 0008 (Blood group)
 0185 (Personal IDs)
 0591 (Nominations)
 0000 (Actions)
 0001 (Organizational Assignment)
 0007 (Planned working time)
 0016 (Contract Elements)
 0017 (Travel Privileges)
 2006 (Absence Quotas)</b>
Thanks & Regards
NigeshHi,
list of BAPI Funtions
0035 BAPI for Grant Master Data
BAPI_0035_CHANGE Change grant master data
BAPI_0035_CREATE Create GM grant master data
BAPI_0035_GET_DETAIL Get detail of grant master data
0036 BAPI for BudgetEntryDocGM
BAPI_0036_CREATE Create GM Budgeting Entry Document
BAPI_0036_GET_DETAIL Get the detail of a GM budget entry document
BAPI_0036_GET_LIST Get list of GM budgeting entry docs.
BAPI_0036_REVERSE Reverse GM Budgteing Entry document
0038 BAPIs for Funded Program
BAPI_0038_CHANGE Change a Funded Program
BAPI_0038_CREATE Create Funded Program
BAPI_0038_DELETE Delete a Funded Program
BAPI_0038_GETDETAIL Get details to a Funded Program
BAPI_0038_GETLIST Get list of Funded Programs
0050 BAPI for BudgetEntryDocFM
BAPI_0050_CREATE Create FM Budgeting Entry document
BAPI_0050_GET_DETAIL Get FM budgeting entry document
BAPI_0050_GET_LIST Get list of budgeting entry documents
BAPI_0050_REVERSE Reverse FM Budgeting Entry document
0051 BAPI for BudgetFM (mass data)
BAPI_0051_GET_TOTALS Get FM budget totals
BAPI_0051_UPDATE FM Budgeting - Update totals
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_CHANGEMULTIPLE Change One or More Activity Types
BAPI_ACTTYPE_CREATEMULTIPLE Create One or More Activity Types
2145 Business Objects Complaints AB (BAPI)
BAPI_ABCLAIM_CREATE AB-CWB: Create BAPI Complaint
4499 Business Object: Bank Statement
BAPI_ACCSTMT_CREATEFROMBALANCE Store account balance/check debit information
BAPI_ACCSTMT_CREATEFROMLOCKBOX Create lockbox data
BAPI_ACCSTMT_CREATEFROMPREVDAY Create Bank Statement/Day-End Statement
BAPI_ACCSTMT_CREATEFROMSAMEDAY Create Bank Statement/Today's Data
ABSE Object Type "Absence"
BAPI_ABSENCE_APPROVE Unlock absence
BAPI_ABSENCE_CHANGE Change absence
BAPI_ABSENCE_CREATE Create absence
BAPI_ABSENCE_DELETE Delete absence
BAPI_ABSENCE_GETDETAIL Read absence
BAPI_ABSENCE_GETDETAILEDLIST Read instances with data
BAPI_ABSENCE_GETLIST Read instances
BAPI_ABSENCE_REQUEST Create locked absence
BAPI_ABSENCE_SIMULATECREATION Simulation: Create absence
ACC4 FI/CO: BAPIs for UPDATE
BAPI_ACC_BILLING_CHECK Accounting: Check Billing Doc. (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_POST Accounting: Post invoice (OAG: LOAD RECEIVABLE)
BAPI_ACC_DOCUMENTS_RECORD Follow-On Document Numbers in Accounting for Multiple Source Documents
BAPI_ACC_EMPLOYEE_EXP_CHECK Accounting: Check G/L acct assignment for HR posting (OAG:POST JOURNAL
BAPI_ACC_EMPLOYEE_EXP_POST Accounting: Post G/L account assignment for HR posting (OAG:POST JOURN
BAPI_ACC_EMPLOYEE_PAY_CHECK Accounting: Check Vendor Acct Assignment for HR Posting (OAG:LOAD PAYA
BAPI_ACC_EMPLOYEE_PAY_POST Accounting: Post Vendor Acct Assignment for HR Posting (OAG: LOAD PAYA
BAPI_ACC_EMPLOYEE_REC_CHECK Accounting: Check Cust. Acct Assignmt for HR Posting (OAG:LOAD RECEIVA
BAPI_ACC_EMPLOYEE_REC_POST FI/CO: Post Customer Acct Assignment for HR Posting (OAG: LOAD RECEIVA
BAPI_ACC_GL_POSTING_CHECK Accounting: General G/L Account Posting
BAPI_ACC_GL_POSTING_POST Accounting: General G/L Account Posting
BAPI_ACC_GOODS_MOVEMENT_CHECK Accounting: Check Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOVEMENT_POST Accounting: Post Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check Purchase Requisition
BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition
BAPI_ACC_SALES_ORDER_CHECK Accounting: Check Sales Order
BAPI_ACC_SALES_ORDER_POST Accounting: Post Sales Order
BAPI_ACC_SALES_QUOTA_CHECK Accounting: Check Customer Quotation
BAPI_ACC_SALES_QUOTA_POST Accounting: Post Customer Quotation
BAPI_ACC_TRAVEL_CHECK Accounting: Check Trip
BAPI_ACC_TRAVEL_POST Accounting: Post Trip
ACC5 FI/CO: BAPIs Asset Postings
BAPI_ACC_ASSET_ACQ_SETT_CHECK ACC: Asset Acquisition - Synchronous Determination of Capitalization V
BAPI_ACC_ASSET_ACQ_SETT_POST ACC: Asset Acquisition-Asynchronous Determination of Capitalization Va
BAPI_ACC_***_ACQUISITION_CHECK BAPI: Check Asset Acquisition
BAPI_ACC_***_INTRA_TRANS_CHECK Accounting: Post Asset Transfer
BAPI_ACC_***_POSTCAP_CHECK BAPI: Check Subsequent Capitalization
BAPI_ACC_***_RETIREMENT_CHECK BAPI: Check Asset Retirement
BAPI_ACC_***_TRANSFER_CHECK Accounting: Post Asset Transfer
BAPI_ACC_***_TRANSFER_POST Accounting: Post Asset Transfer
BAPI_ACC_***_TRANS_ACQ_CHECK Accounting: Check acquisition from transfer
BAPI_ACC_***_TRANS_ACQ_POST Accounting: Post acquisition from transfer
BAPI_ACC_***_TRANS_RET_CHECK Accounting: Post Asset Transfer
BAPI_ACC_AUC_ACQUISITION_CHECK Accounting: Asset Acquisition from Settlement
BAPI_ACC_AUC_ACQUISITION_POST Accounting: Asset Acquisition from Settlement
ACC6 Accounting: BAPIs for UPDATE II
BAPI_ACC_BILLING_REV_CHECK Accounting: Check Billing Document Reversal (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_REV_POST Accounting: Post Billing Doc.Reversal (OAG: LOAD RECEIVABLE)
BAPI_ACC_GL_POSTING_REV_CHECK Accounting: Check Reversal of General G/L Account Posting
BAPI_ACC_GL_POSTING_REV_POST Accounting: Post General G/L Posting Reversal
BAPI_ACC_GOODS_MOV_REV_CHECK Accounting: Check Goods Movement Reversal (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOV_REV_POST Accounting: Post Goods Movement Reversal (OAG: POST JOURNAL)
BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
BAPI_ACC_PYMNTBLK_UPDATE_CHECK Accounting: Check Changes to Payment Block for Open Items
BAPI_ACC_PYMNTBLK_UPDATE_POST Accounting: Post Changes to Payment Block for Open Items
ACC9 Accounting: BAPIs
BAPI_ACC_DOCUMENT_CHECK Accounting: Check
BAPI_ACC_DOCUMENT_POST Accounting: Posting
BAPI_ACC_DOCUMENT_REV_CHECK Accounting: Check Reversal
BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
AEMM Additionals in integrated mat. maint.
BAPI_ADDITIONAL_MAINTAINDATA Create and Change Additionals Assignments (Retail)
BEACTIVITY Process modeling activity
BAPI_ACTIVITY_COMPARE Test Module for Modeling
BAPI_ACTIVITY_GETALLCOUPLING Determination of Coupling Events for Several Activities
BAPI_ACTIVITY_GETCOUPLING Get activity coupling events
BAPI_ACTIVITY_GETDETAIL Read diagram
BAPI_ACTIVITY_GETPOTCOUPLING Get potential coupling events between two activities
BAPI_ACTIVITY_GET_PARENTS Delivers Higher-Level Activities
BAPI_ACTIVTY_GETDIAGRAMIDS Read diagram
CRM_CO_SLS CO Interface CRM Sales
BAPI_ACCOUNTING_PROXY_UPLOAD Account Assignment Objects for CRM Transactions
FAGL_SKF_BAPI
BAPI_ACC_POST_STAT_KEYFIGURE
FKN5 BAPI Account Balances
BAPI_ACCOUNT_GETBALANCES Retrieves Balances for a Contract Acct
IPPEBAPI_ACT
BAPI_1179_EXISTENCECHECK
BAPI_1179_REPLICATE
BAPI_1179_SAVEREPLICA
IPPEBAPI_BAL
BAPI_1183_EXISTENCECHECK
BAPI_1183_REPLICATE
BAPI_1183_SAVEREPLICA
IPPEBAPI_CMP iPPE: Component BAPIs
BAPI_1176001_EXISTENCECHECK Check Existence of Product Structure Variant
BAPI_1176_EXISTENCECHECK Check Existence of a Product Structure Node
BAPI_1176_REPLICATE Replicate Product Structure Nodes
BAPI_1176_SAVEREPLICA Maintain or Create Product Structure
IPPEBAPI_FLO
BAPI_1182_EXISTENCECHECK
BAPI_1182_REPLICATE
BAPI_1182_SAVEREPLICA
IPPEBAPI_GEN iPPE: BAPIs for Generic Engineering Node
BAPI_1197_EXISTENCECHECK Check Existence of Generic Engineering Node
BAPI_1197_REPLICATE Replicate the Generic Engineering Node
BAPI_1197_SAVEREPLICA Create and Change Generic Engineering Node
IPPEBAPI_MPO
BAPI_1220_REPLICATE
BAPI_1220_SAVEREPLICA
IPPEBAPI_PRM
BAPI_1196_EXISTENCECHECK
BAPI_1196_REPLICATE
BAPI_1196_SAVEREPLICA
IPPEBAPI_RES
BAPI_1193_EXISTENCECHECK
BAPI_1193_REPLICATE
BAPI_1193_SAVEREPLICA
K23G Service Function Modules
BAPI_ACC_CO_DOCUMENT_FIND Read CO Document for Manual Actual Postings
K40C CO Actual Postings, Manual
BAPI_ACC_ACTIVITY_ALLOC_CHECK Accounting: Check Activity Allocation
BAPI_ACC_ACTIVITY_ALLOC_POST Accounting: Post Activity Allocation
BAPI_ACC_ACT_POSTINGS_REVERSE Accounting: Reverse CO Documents - Manual Actual Postings
BAPI_ACC_MANUAL_ALLOC_CHECK Accounting: Check Manual Cost Allocation
BAPI_ACC_MANUAL_ALLOC_POST Accounting: Post Manual Cost Allocation
BAPI_ACC_PRIMARY_COSTS_CHECK Accounting: Check Primary Costs
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_ACC_REVENUES_CHECK Accounting: Check Revenues
BAPI_ACC_REVENUES_POST Accounting: Post Revenues
BAPI_ACC_SENDER_ACTIVITY_CHECK Accounting: Check Sender Activities
BAPI_ACC_SENDER_ACTIVITY_POST Accounting: Post Sender Activities
BAPI_ACC_STAT_KEY_FIG_CHECK Accounting: Check Statistical Key Figures
BAPI_ACC_STAT_KEY_FIG_POST Accounting: Post Statistical Key Figures
KACG Coding Block: FI/LO Part of KACB
BAPI_ACCSERV_CHECKACCASSIGNMT BAPI: Object BUS6001 AccountingServices, Method CheckAccountAssignment
KGR2 External Access to CO Hierarchies
BAPI_ACTIVITYTYPEGRP_ADDNODE Object BUS1115 (Activity Type Group) - Method AddNode
BAPI_ACTIVITYTYPEGRP_CREATE Object BUS1115 (Activity Type Group) - Method Create
BAPI_ACTIVITYTYPEGRP_GETDETAIL Object BUS1115 (Activity Type Group) - Method GetDetail
BAPI_ACTIVITYTYPEGRP_GETLIST Object BUS1115 (Activity Type Group) - Method GetList
KPLB BAPIs: Plan data interface
BAPI_ACT_INPUT_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_INPUT_READ Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_PRICE_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_PRICE_READ Activity Type Planning/Price Planning: Formal Parameter Check
OPERS_CA Business Object: Other Personal Data
BAPI_ADDITIONALDATA_GETDETAIL Read additional personal data
BAPI_ADDPERSDATA_CHANGE Change additional personal data
BAPI_ADDPERSDATA_CREATE Create additional personal data
BAPI_ADDPERSDATA_DELETE Delete additional personal data
BAPI_ADDPERSDATA_DELIMIT Delimit additional personal data validity period
BAPI_ADDPERSDATA_GETDETAILEDLI Read instances with data
BAPI_ADDPERSDATA_GETLIST Read instances
PADR_AU Business Object AddressEmp (AU)
BAPI_ADDREMPAU_CHANGE ESS Address Change - Australia
BAPI_ADDREMPAU_CREATE ESS Address Create - Australia
BAPI_ADDREMPAU_CREATESUCCESSOR ESS Address Create Successor - Australia
BAPI_ADDREMPAU_GETDETAIL ESS Address Get Detail - Australia
BAPI_ADDREMPAU_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPAU_REQUEST ESS Address Request - Australia
BAPI_ADDREMPAU_SIMULATECREATN ESS Address Simulate Creation - Australia
PADR_CH Business Object: AddressEmp
BAPI_ADDREMPCH_CREATESUCCESSOR Create Subsequent Employee Address Record
BAPI_ADDREMPCH_GETDETAILEDLIST Read Instances with Data
PADR_DE Business Object AddressEmp (DE)
BAPI_ADDREMPDE_CREATESUCCESSOR Create Next Employee Address Record
BAPI_ADDREMPDE_GETDETAILEDLIST Read Instances with Data
PADR_DK Business Object AddressEmp - DK
BAPI_ADDREMPDK_CREATESUCCESSOR Create Subs.Employee Address Record
BAPI_ADDREMPDK_GETDETAILEDLIST Read Instances with Data
PADR_ES Business Object AddrEmpE
BAPI_ADDREMPES_CREATESUCCESSOR Personnel number next record create
BAPI_ADDREMPES_GETDETAILEDLIST Read instances with data
PADR_FR Business Object AddrEmpFR
BAPI_ADDREMPFR_CREATESUCCESSOR Franch Employee Address: Create Next Record
BAPI_ADDREMPFR_GETDETAILEDLIST Read Data Records in Period (French Employee Addresses)
PADR_HK Business object: AddressEmp (HK)
BAPI_ADDREMPHK_CHANGE Change Employee Address (Hong Kong)
BAPI_ADDREMPHK_CREATE Create Employee Address (Hong Kong)
BAPI_ADDREMPHK_CREATESUCCESSOR Create subs.employee address record (Hong Kong)
BAPI_ADDREMPHK_GETDETAIL Read employee address (Hong Kong)
BAPI_ADDREMPHK_GETDETAILEDLIST Read instances with data (Hong Kong)
BAPI_ADDREMPHK_REQUEST Create locked employee address record (Hong Kong)
BAPI_ADDREMPHK_SIMULATECREATE Simulation: Create Employee Address (Hong Kong)
PADR_ID Business Object AddressEmp (ID)
BAPI_ADDREMPID_CHANGE ESS Address Change - Indonesia
BAPI_ADDREMPID_CREATE ESS Address Create - Indonesia
BAPI_ADDREMPID_CREATESUCCESSOR ESS Address Create Successor - Indonesia
BAPI_ADDREMPID_GETDETAIL ESS Address Get Detail - Indonesia
BAPI_ADDREMPID_GETDETAILEDLIST Read instances with data - Indonesia
BAPI_ADDREMPID_REQUEST Create locked employee address record - Indonesia
BAPI_ADDREMPID_SIMULATECREATIO ESS Address Simulate Creation - Indonesia
PADR_IE Business Object AddressEmp - Ireland
BAPI_ADDREMPIE_CREATESUCCESSOR Create subs.employee address record
BAPI_ADDREMPIE_GETDETAILEDLIST Read instances with data
PADR_IT HR Employee Self-Service: Address Italy
BAPI_ADDREMPIT_CREATESUCCESSOR Create personnel number next record
BAPI_ADDREMPIT_GETDETAILEDLIST <Currently not used>
PADR_MY Business Object AddressEmp (MY)
BAPI_ADDREMPMY_CHANGE ESS Address Change - Malaysia
BAPI_ADDREMPMY_CREATE ESS Address Create - Malaysia
BAPI_ADDREMPMY_CREATESUCCESSOR ESS Address Create Successor - Malaysia
BAPI_ADDREMPMY_GETDETAIL ESS Address Get Detail - Malaysia
RCP990
BAPI_1194_REPLICATE_GR
BAPI_1194_SAVEREP_MULTIPLE_GR
RCP993
BAPI_1198_REPLICATE_SR
BAPI_1198_SAVEREP_MULTIPLE_SR
RWCL Interface to Accounting
BAPI_ACC_DOCUMENT_DISPLAY Accounting: Display Method for Follow-On Document Display
BAPI_ACC_DOCUMENT_RECORD Accounting: Follow-on document numbers for source document
SZAM BAPIs f. BOR obj. BUS4003 (AddrContPart)
BAPI_ADDRCONTPART_SAVEREPLICA BAPI for inbound distribution of contact person addresses
Reward points if found helpful ..
Cheers,
Chandra Sekhar. -
Hi All,
Is there any BAPI for Order BOM
PLS can you help me
thanks
marsHi,
Check ds BAPI..
BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group
BAPI_MAT_BOM_EXISTENCE_CHECK Check whether BOM for material exists
CSUL CRM Upload of BOM Data
BAPI_BOM_UPLOAD_SAVE Main Module for BOM Update (Upload from CRM)
Code_
DATA: BEGIN OF i_bom OCCURS 0,
matnr(18),
werks(4),
stlan(1),
stlal(2),
stktx(40),
bmeng(16),
menge(16),
posnr(4),
postp(1),
meins(3),
datuv(10),
fmeng(1),
idnrk(18),
potx1(40),
ausch(7),
END OF i_bom.
Extracting Document and Doc type for POSTP = D.
DATA : BEGIN OF i_stpo OCCURS 1,
doknr(25),
dokar(3),
posnr(4),
stlnr LIKE mast-stlnr,
END OF i_stpo.
Local work area
DATA: g_my_rec_in LIKE i_bom.
Declare internal table for Call Transaction and BDC Session
DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
Global Variables *
DATA: g_counter(2) TYPE n,
g_field_name(18) TYPE c,
zc_yes TYPE syftype VALUE 'X'.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
PARAMETERS: p_fname1 TYPE localfile .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
PARAMETERS: p_rloc1 AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-005.
PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZBOM'.
SELECTION-SCREEN END OF BLOCK c.
SELECTION-SCREEN END OF BLOCK b.
SELECTION-SCREEN END OF BLOCK a.
**WRITE the report header
TOP-OF-PAGE.
INCLUDE zheading.
Start of selection *
START-OF-SELECTION.
Load Input file
PERFORM f_load_input_file.
Create BDC records.
PERFORM create_bdc_records .
*& Form Create_BDC_records
text:* perform the BDC for the records in the internal table
--> p1 text
<-- p2 text
FORM create_bdc_records .
DATA: v_stlnr LIKE mast-stlnr.
DATA: v_postp(1) VALUE 'D'.
IF NOT i_bom[] IS INITIAL.
Open BDC session
PERFORM open_bdc_session.
SORT i_bom BY matnr werks posnr.
SELECT SINGLE stlnr INTO v_stlnr
FROM mast
WHERE matnr = i_bom-matnr
AND werks = i_bom-werks.
SELECT doknr dokar posnr stlnr
INTO TABLE i_stpo
FROM stpo
FOR ALL ENTRIES IN i_bom
WHERE postp = v_postp
AND posnr = i_bom-posnr
AND stlnr = v_stlnr.
SORT i_stpo BY posnr stlnr.
LOOP AT i_bom.
g_my_rec_in = i_bom.
READ TABLE i_stpo WITH KEY posnr = i_bom-posnr
stlnr = v_stlnr
BINARY SEARCH.
AT NEW matnr.
CLEAR i_bdc_table[].
PERFORM insert_screen_header.
ENDAT.
Setting up counter for 20 line items
IF g_counter = 20.
g_counter = 1.
ENDIF.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-FMENG(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
CONCATENATE 'RC29P-POSNR(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-posnr.
CONCATENATE 'RC29P-IDNRK(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-idnrk.
CONCATENATE 'RC29P-MENGE(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-menge.
CONCATENATE 'RC29P-MEINS(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-meins.
CONCATENATE 'RC29P-POSTP(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-postp.
CONCATENATE 'RC29P-FMENG(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-fmeng.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
Check the Item category to direct the screen flow accordingly.
CASE i_bom-postp.
WHEN 'B'.
PERFORM item_text_insert.
WHEN 'Z'.
PERFORM item_text_insert.
WHEN 'T'.
PERFORM item_text_insert.
WHEN 'N'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-AUSCH'.
PERFORM bdc_field USING 'RC29P-AUSCH' i_bom-ausch.
next screen
PERFORM item_text_insert.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0133'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RC29P-EKORG' ' '.
WHEN 'D'.
PERFORM bdc_field USING 'RC29P-DOKNR' i_stpo-doknr.
PERFORM bdc_field USING 'RC29P-DOKAR' i_stpo-dokar.
next screen
PERFORM item_text_insert.
When POSTP = X, L.
WHEN OTHERS.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-AUSCH'.
PERFORM bdc_field USING 'RC29P-AUSCH' i_bom-ausch.
next screen
PERFORM item_text_insert.
ENDCASE.
g_counter = g_counter + 1.
next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-POSNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=FCBU'.
AT END OF matnr.
PERFORM insert_bdc_new.
ENDAT.
ENDLOOP.
CLEAR i_bom[].
PERFORM close_bdc_session.
Release the BDC sessions created
PERFORM release_bdc.
ENDIF.
ENDFORM. " open_group
*& Form bdc_dynpro_start
Initialize the screen
-->P_G_PROGRAM_1
-->P_G_SCREEN
FORM bdc_dynpro USING p_g_program_1
p_g_screen.
CLEAR i_bdc_table.
i_bdc_table-program = p_g_program_1.
i_bdc_table-dynpro = p_g_screen.
i_bdc_table-dynbegin = 'X'.
APPEND i_bdc_table.
ENDFORM. " bdc_dynpro_start
*& Form bdc_field
Insert field *
FORM bdc_field USING f_name f_value.
CLEAR i_bdc_table.
i_bdc_table-fnam = f_name.
i_bdc_table-fval = f_value.
APPEND i_bdc_table.
ENDFORM. "bdc_insert_field
*& Form open_bdc_session
Open the BDC session
FORM open_bdc_session .
Open BDC session and creat and update condition records
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
DEST = FILLER8
group = p_group
HOLDDATE = FILLER8
keep = 'X'
user = sy-uname
RECORD = FILLER1
PROG = SY-CPROG
IMPORTING
QID =
EXCEPTIONS
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10
OTHERS = 11
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. " create_bdc_session
*& Form insert_screen_header
Insert the Header data into the screens
FORM insert_screen_header .
g_counter = 1.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29N-STLAL'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RC29N-MATNR' g_my_rec_in-matnr.
PERFORM bdc_field USING 'RC29N-WERKS' g_my_rec_in-werks.
PERFORM bdc_field USING 'RC29N-STLAN' g_my_rec_in-stlan.
PERFORM bdc_field USING 'RC29N-STLAL' g_my_rec_in-stlal.
PERFORM bdc_field USING 'RC29N-DATUV' g_my_rec_in-datuv.
next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29K-BMENG'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RC29K-STKTX' g_my_rec_in-stktx.
PERFORM bdc_field USING 'RC29K-BMENG' g_my_rec_in-bmeng.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0111'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29K-LABOR'.
ENDFORM. " insert_screen_header
*& Form insert_bdc
Insert the BDC session
FORM insert_bdc_new .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = 'CS01'
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
SIMUBATCH = ' '
CTUPARAMS = ' '
TABLES
dynprotab = i_bdc_table
EXCEPTIONS
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR i_bdc_table[].
ENDFORM. " insert_bdc
*& Form close_bdc_session
Close the BDC session
FORM close_bdc_session .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
not_open = 1
queue_error = 2
OTHERS = 3.
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. " close_bdc_session
*& Form f_load_input_file
Load the file into the Internal table
FORM f_load_input_file.
IF p_rloc1 = zc_yes.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_fname1
filetype = 'DAT'
TABLES
data_tab = i_bom
EXCEPTIONS
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
STOP.
ENDIF.
ENDIF.
ENDFORM. " f_load_input_file
*& Form release_bdc
Release BDC session
FORM release_bdc.
SUBMIT rsbdcsub WITH mappe EQ p_group
WITH von EQ sy-datum
WITH bis EQ sy-datum
WITH fehler EQ '.'
EXPORTING LIST TO MEMORY
AND RETURN.
ENDFORM. " release_bdc
*& Form item_text_insert
Repetitive code in the screen flow
FORM item_text_insert.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-POTX1'.
PERFORM bdc_field USING 'RC29P-POTX1' i_bom-potx1.
ENDFORM. " item_text_insert
Reward If Helpfull
regards,
Mehul -
Authorization restriction for CRM 2007
Dear Experts,
We are in process of defining the authorization matrix for CRM 2007 for end users who will be using Web UI.
Here my requirement is the service orders created by USER1 should not be displayed by USER2 and vice-versa when they do a search in both Web UI and GUI in Tx CRMD_ORDER for service orders.
Please let me know how can I acheive this and what is the auth. object for the same.
Thanks & Regards,
SharathDear babu,
If I understood your request, you want that, only one user will be able to access the document. If you want to do that, this is the answer:
At tcode PFCG you shoud set:
First you must set what type of document will be avaible to the user, in this case Z020.
CRM_ORD_PR: PR_TYPE 'Z020',ACTVT '*'
Next you must set which activities they will be able to do (notice, you must set the same field in the previsou object(
CRM_ACT: ACTVT u2018*u2019
And then you set which partner function or partner category are able to access the document, here is the main point !
In this example I set that only users who has Partner Category (not partner function) Employee Responsible (std partner category 0008) are able to access the document
CRM_ORD_OP: ACTVT '', PARTN_FCT '', PARTN_FCTT '0008'
Here you can notice again field ACTVT, here you will set what user are able to do, "*" means everything, "1" = create, "2" = modify, etc. (I can see the list at PFCG, adding the auth. object to the PFCG profile).
I notice only std partner function or partner category works with this object. I sent a message to sap support, and they confirm that, so if your user has Z partner funcition or category it is not possible to do that.
Summary, your user must be present in the partner list of the document, and they must have a partner function or partner category std. It is possible to set together both values PARTN_FCT and PARTN_FCTT, but I think it is not necessary.
The easy way to do that is, user who will be able to access the document, must be the employee responsible.
This help is very usefull
http://help.sap.com/saphelp_crm60/helpdata/en/4a/b9f63a8ab2c745e10000000a114084/frameset.htm
Regards,
Lalas
ps.: As you should know, only one partner function must have partner category Employee Responsible, in the partner det. procedure, otherwise, you will get error message in your application. -
Are there any bapi for create Business Partner
Dear Sir,
Do you know are there any bapi for create Business Partner in CRM
Please advise.
Thank you and best ergards,
VimolDear Vimol,
BAPI_BUPA_CREATE_FROM_DATA ......SAP BP, BAPI: Create Business Partner
BAPI_BUPA_FS_CREATE_FROM_DATA .......SAP BP, BAPI: Create Business Partner
BAPI_BUPA_FS_CREATE_FROM_DATA2 .......SAP BP, BAPI: Create Business Partner
Hope this will help.
Regards,
Naveen.
Maybe you are looking for
-
I have an iPad Air and want to downgrade to iOS 7. How does this work?
iOS 8.1 is really slow on my iPad Air so i want to downgrade to iOS 7. What should i do?
-
Using ipod as portable hard disk drive
I have an ipod - iphoto - 20GB. altho i have enabled it for disk use, after dragging my files into the 'notes' folder, i am still unable to view the files in the ipod. i can see the title of the file, but when i click on the file to read, i see only
-
Hi all, I am in need of some help with my iMac 2012. I encountered a problem a while a back which resulted in me needing to reinstall OS X. All was perfect, until roughly a week ago when I turned off the Mac. When I turned it back on in the morning,
-
'other' phone numbers not synchronised from outloo...
when synchronising contacts in outlook, phone numbers that appear under the category 'others' as oppose to business, or mobile are not synchronised. they show up in outlook, but not on the phone! is it possible to either: a) synchronise these b) auto
-
I have spoken to Apple tech, who suggested upgrading to Snow Leopard, but reading through the tech specs I believe my Mac Pro can support Lion OS, any thoughts on this matter? I also added a 2Tb HD, which 10.4.1 the current OS on the machine, does n