Tuesday, November 22, 2016

CRM_ORDER_READ



All the input parameters for the fm are optional, but this fm takes a lot of processing time. Always pass header guid and what all objects you need from the FM

Declarations for the internal tables
DATA : lt_header_guid TYPE CRMT_OBJECT_GUID_TAB,
             lt_requested_objects TYPE CRMT_OBJECT_NAME_TAB,
             lt_orderadm_h TYPE CRMT_ORDERADM_H_WRKT,
             lt_orderadm_i TYPE CRMT_ORDERADM_I_WRKT,
             lt_price_crm TYPE CRMT_PRICE_AGREEMENTS_CRM_WRKT,
       
work areas
DATA : lw_price_crm LIKE LINE OF lt_price_crm,
       lw_orderadm_h LIKE LINE OF lt_orderadm_h.



Requested Objects table should be defined as follows
Header details
APPEND 'ORDERADM_H' TO lt_requested_objects.
Item  details
APPEND 'ORDERADM_I' TO lt_requested_objects.
Price agreement details
APPEND 'PRIDOC_COM' TO lt_requested_objects.


Reference Links
http://scn.sap.com/community/crm/blog/2013/02/07/crmorderread-simple-example-for-those-new-to-crm-andor-abap

No comments:

Post a Comment