cancel
Showing results for 
Search instead for 
Did you mean: 

STD get list BAPI's for service order in CRM

Former Member
0 Kudos

Hi All,

Please do let me know the standard 'Get list BAPIs' for the service order in CRM.

Thanks & Regards,

Archana.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello,

This was one of my this BAPI wrapper for DOE.

Are you new to ABAP? BAPI wrapper rules are pretty easy to master. Please look at your NW DOE documentation for the complete set of rules.

Julien.

Former Member
0 Kudos

hi archana,

May i know, ur problem got solved or not?

Because I have worked upon DOE and CRM.. so I knw,how we shld do that... u can call this given BAPI in one of ur RFC.. that RFC u can give in SDOE_WB in backend adapters...

Regards,

Sagar