cancel
Showing results for 
Search instead for 
Did you mean: 

To get details of a Sales Order | Use of CRM_ORDER_READ

Former Member
0 Kudos

My requirement is to call a custom function module while saving a Sales Order. I am calling this function from a badi implementation of ORDER_SAVE. Now I have to get all the details of the Order I've created. I tried FM CRM_ORDER_READ, but i am finding difficulty in identifying the parameters (output parameters of crm_order_read) which is required for me. (I am new to sap and sap-crm, so please point out if i am wrong in any concepts).

I need to get following parameters from the Sales Order.

Trading Contract Type

Sold-to-Party

Trading Contract Status

Exchange Rate Type

Distribution Channel

Division

Shipping Conditions

Material Number

Plant

Net Weight

Sales Unit

Price Unit

Order Unit

Order Price Unit

Trading Contract Item Category

Can you point out which structures(o/p of crm_order_read) have these values?

Thanks in advance.:)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

1. CRM_ORDER_READ is a function module which can be used to get the details of any business

transaction based on the Header GUID, Item GUID or both.

2. Always pass the IT_REQUESTED_OBJECTS structure to this function module to fetch the required

details only.

3. This function module can not be executed directly instead SAP has provided a report

CRM_ORDER_READ for the same for testing purpose. We can pass Business Transaction Number

(Object ID), Header GUID or Item GUID to this report to get the required details.

Return Structure Name Details Fetched

ET_ORDERADM_H -- Header Details of a Business Transaction such as OBJECT_ID,

PROCESS_TYPE etc.

ET_ORDERADM_I -- Item Details of a Business Transaction such as PRODUCT,

PRODUCT_KIND, HEADER etc.

ET_ACTIVITY_H -- Header Details of an activity such as PRIORITY, OBJECTIVE, Address

Details etc.

ET_ACTIVITY_I -- Item Details of an activity.

ET_CUSTOMER_H -- Additional details at Header level

ET_CUSTOMER_I -- Additional details at Item level

ET_APPOINTMENT -- All the dates at Header and Item level

ET_PARTNER -- Partner Details at Header and Item level

ET_STATUS -- Status of Business Transaction at Header and Item level

ET_BILLING -- Billing related details for a Business Transaction both at Header and Item

(This structure was enhanced in a leading ISU SAP-CRM implementation

to include BUAG_ID(Business Agreement) field in a Service Contract

ET_ORDPRP_OBJL_I_D -- Object List details such as PRODUCT

ET_DOC_FLOW -- Ref. Details of the previous Business Transaction

Regards

Gaurav