cancel
Showing results for 
Search instead for 
Did you mean: 

CRM_ORDER_READ error extracting et_pridoc

Former Member
0 Kudos

Hi gurus,

I'm enhancing a bw datasource 0CRM_CLAIM, actually I need to add a couple of item pricing conditions.

So I've added the two fields unhide them with rsa6 and write some abap lines in cmod.

data: lc_guids           TYPE crmt_object_guid_tab,

        tab_pridoc        TYPE crmt_pric_cond_t.

CALL FUNCTION 'CRM_ORDER_READ'
         EXPORTING
           it_header_guid       = lc_guids "contain the document guid
         IMPORTING  
           et_pridoc              = tab_pridoc


Then I would like to read the table "tab_pridoc" which should contains a table with my pricing conditions.


Problem is that tab_pridoc not get full populated, it contains only my header guid, and the table remais empty!

If I execute CRM_ORDER_READ by SE38, with the header guid all works properly and et_pridoc get extracted.


Any ideas?


Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved using:

FM: 'CRM_LINK_GET_OW'

FM: 'PRC_EXPORT_MULTI'

Former Member
0 Kudos

Hello Carl,

you don't need to reread the order's information, instead, in your implementation of the BAdI CRM_BWA_MFLOW you should read the data already present in your BDOC using the function module CRM_BADI_GET_BDOC as specified in the SAP notes 1615918, 850817 and 1437392.

Regards,

Mihai

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Carl,

Check what the run time value of LC_GUIDS when calling FM in CMOD ?

At the time of calling this FM order saved in the system (Updated in DB ) ?

Thanks & Regards,

Arun

Former Member
0 Kudos

Aruna in debug mode, i copy the value of lc_guids and run by se38 the CRM_ORDER_READ program.

data are extracted properly as I told before, but with CMOD it doesn't work

Former Member
0 Kudos

Hi Carl,

Have you checked any exception through by FM

FM has following exceptions

DOCUMENT_NOT_FOUND

ERROR_OCCURRED

DOCUMENT_LOCKED

NO_CHANGE_AUTHORITY

NO_DISPLAY_AUTHORITY

NO_CHANGE_ALLOWED

Thanks & Regards,

Arun

Former Member
0 Kudos

yes I checked, my sy-subrc is eq 0.

I get the correct header guid, but pric_cond is empty