on 07-08-2008 7:10 AM
Hi All,
Please do let me know the standard 'Get list BAPIs' for the service order in CRM.
Thanks & Regards,
Archana.
There are no standard BAPI wrapper for Service order in CRM. You can use this following code:
FUNCTION ZZORDER_GETLIST.
*"----
""Local Interface:
*" IMPORTING
*" REFERENCE(USER) TYPE BU_PARTNER
*" REFERENCE(ORG) TYPE CRMT_SALES_ORG
*" REFERENCE(ORDER_TYPE) TYPE CRMT_PROCESS_TYPE DEFAULT 'SRVO'
*" REFERENCE(CREATED_FROM) TYPE CRMT_CREATED_AT OPTIONAL
*" REFERENCE(CREATED_TO) TYPE CRMT_CREATED_AT OPTIONAL
*" CHANGING
*" REFERENCE(ORDER_HEADER) TYPE ZORD_HEAD_TAB
*"----
DATA: ord_tab type CRMT_ORDER_LIST_TAB,
ord_str type CRM_ORDER_LIST,
head_str type ZORD_HEAD_STR.
CALL FUNCTION 'CRM_ORDER_GETLIST'
EXPORTING
IV_PROCESS_TYPE = ORDER_TYPE
IV_PARTNER = USER
IV_SALES_ORG = ORG
IV_CREATED_FROM = CREATED_FROM
IV_CREATED_TO = CREATED_TO
CHANGING
CT_ORDER_LIST = ord_tab
EXCEPTIONS
NO_VALID_PARTNER_FOUND = 1
NO_RECORD_FOUND = 2
ERROR_OCCURRED = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at ord_tab into ord_str.
clear head_str.
move-corresponding ord_str to head_str.
append head_str to ORDER_HEADER.
endloop.
ENDFUNCTION.
Thanks,
Julien.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Julien,
Thanks a lot for the reply. I have few clarifiacations here. Before I talk about those points let me tell you my requirements.
1) I'm working on Netweaver mobile 7.1 Here, the back end iz
CRM & I have to carry the data of Service OR to DOE
(Data Orchestration Engine) using BAPI Wrappers
2) When it comes to DOE, BAPI Wrappers follow a set of rules.
Like, there should not be changing parameters & the
referance.
So, please do let me know how to ahead.
Regards,
Archana.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.