cancel
Showing results for 
Search instead for 
Did you mean: 

How to get values form CRM_ORDER_READ function module by using OBJECT_ID?

prathap_bavanasi
Explorer
0 Kudos

Hi All,

I need to get values from crm_order_read function module and  when i am passing GUID value i didn't get values .

Here is the code,please help me out of this.

DATA:lt_ordi  TYPE crmt_orderadm_i_wrkt,

      lt_ordh  TYPE crmt_orderadm_h_wrkt,

      lv_guid  TYPE crmt_object_guid,

      lv_hguid TYPE crmt_object_guid_tab.

lv_guid = '000C291C408B1ED686811874B4B6CAD8'.

INSERT lv_guid INTO TABLE lv_hguid.

CALL FUNCTION 'CRM_ORDER_READ'

   EXPORTING

     it_header_guid       = lv_hguid

   IMPORTING

     et_orderadm_h        = lt_ordh

     et_orderadm_i        = lt_ordi

   EXCEPTIONS

     document_not_found   = 1

     error_occurred       = 2

     document_locked      = 3

     no_change_authority  = 4

     no_display_authority = 5

     no_change_allowed    = 6

     OTHERS               = 7.

Regards,

Prathap

Accepted Solutions (1)

Accepted Solutions (1)

kapilpatil
Active Contributor
0 Kudos

Hello Prathap,

I don't see an issue with your code.

Please check the following:

1. GUID you are using belongs to One order transaction object

2. Make sure you executing in the system/client, which has this data (GUID)

Hope this helps.

Thanks,

Kapil

prathap_bavanasi
Explorer
0 Kudos

Hi Kapil,

Thanks for your sujjesion.\

Thanks,

Prathap

Answers (0)