cancel
Showing results for 
Search instead for 
Did you mean: 

How to call FM : SPC_GET_PRICING_DOCUMENT_INFO

Former Member
0 Kudos

Hi friends,

I have a report where i need to get the order details( i have order guid).

basically i need the IPC data corresponding to that order, like subtotals dynamic values etc.

I know FM: SPC_GET_PRICING_DOCUMENT_INFO returns them, but i just have only ORDER GUID.

how to call this FM SPC_GET_PRICING_DOCUMENT_INFO???? i dont know what this iv_document_id has to be.

please advice,

thanks,

RD

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I just explored the Function Module through Tx: SE37 and found that in the source code tab, there is no source code in it. Are you sure that this is the proper function module and this has been released by SAP for usage?

Have a look at the following package through Tx: SE80 - PRICING_AND_CONFIGURATION for a complete list of objects. Also just scan through the function group : SPC_DEPRECATED for a list of pricing related function modules.

Hope this helps.

Thanks,

Samantak.

Former Member
0 Kudos

solved

CALL FUNCTION 'CRM_PRIDOC_GET_HANDLE_OW'

EXPORTING

iv_header_guid = order_guid

iv_no_creation = c_x

IMPORTING

ev_pridoc_guid = l_pridoc_guid

EXCEPTIONS

error_occurred = 1

handle_determination_error = 2

OTHERS = 3.

CALL METHOD cl_vmc_utility=>get_destination

EXPORTING

pf_application = 'IPC'

RECEIVING

pf_rfc_destination = l_vmc.

CALL FUNCTION 'SPC_GET_PRICING_DOCUMENT_INFO' DESTINATION l_vmc

EXPORTING

iv_document_id = l_pridoc_guid

IMPORTING

es_head_ret = wa_headprice

et_item_ret = t_itemprice.