Skip to Content
0
Former Member
Jan 06, 2008 at 11:28 AM

How to get data with /SAPAPO/OM_ORDER_GET_DATA

340 Views

Hi,

Please let me know how to use the function module /SAPAPO/OM_ORDER_GET_DATA.

I have done some coding as below. But I am getting the below errors.

Issue 1 : I am getting a popup for '/SAPAPO/RRP_SIMSESSION_CREATE'

Issue 2 : I am getting error LC_COM_ERROR while using FM '/SAPAPO/OM_ORDER_GET_DATA'.

data : gv_sims TYPE /sapapo/om_simsession,

gv_params TYPE /sapapo/om_gen_params.

IF gv_sims IS INITIAL.

CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_CREATE'

IMPORTING

ev_simsession = gv_sims.

CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_GET'

IMPORTING

ev_simsession = gv_sims

es_gen_params = gv_params.

ENDIF.

CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA'

EXPORTING

IS_GEN_PARAMS = LS_GEN_PARAMS

IV_SIMSESSION = gv_sims

IT_ORDER = LT_ORDER

IMPORTING

ET_POSITIONS = LT_POSITIONS

EXCEPTIONS

LC_CONNECT_FAILED = 1

LC_COM_ERROR = 2

LC_APPL_ERROR = 3

OTHERS = 4.