Skip to Content
author's profile photo Former Member
Former Member

CRM_ORDER_READ error extracting et_pridoc

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 02:59 PM

    Solved using:

    FM: 'CRM_LINK_GET_OW'

    FM: 'PRC_EXPORT_MULTI'

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 12:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.