on 01-21-2010 8:07 PM
Hello all,
I am using the FM /SAPAPO/OM_ORDER_GET_DATA to get the START DATE of an order.
Can anyone suggest me how to use the same.I am new to APO.
Regards,
Arun
Please assist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you want to find out the START DATE of the order ? or order line item ?
The better way is
1) Go to table /SAPAPO/POSMAPN, put the order number and line item number in the fields DELNR and DELPS respectively.
2) Copy the POSGUID available from the above table and pass it to the table /SAPAPO/ORDADM_I which results in giving you the STARTDATE
Let me know in case of any issues.
Thanks,
Babu Kilari
Hi,
Method of using FM is same as that in ECC.
To get order start time pass following parameters to FM
ORDERID(GUID of order) to IT_order exclude allthe flags except orderkey,orders and order times. You can try preparing test data and checking results by going to se37 and running the module in test mode.
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I tried to use in the follwoing manner.
CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_CREATE'
EXPORTING
iv_simid = c_000
iv_change_mode = gc_false
IMPORTING
ev_simsession = lv_simsession.
ls_cap_reqs-orderid = wa_orderoutput-ORDID. " I am getting these order id from a previous table
APPEND ls_cap_reqs to lt_order.
CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA'
EXPORTING
IS_GEN_PARAMS = ls_gen_params
IV_SIMSESSION = lv_simsession
IT_ORDER = lt_order
IMPORTING
ET_ORDERS = lt_orders
ET_RC = lt_rc
EXCEPTIONS
LC_CONNECT_FAILED = 1
LC_COM_ERROR = 2
LC_APPL_ERROR = 3
OTHERS = 4.
I am getting sy-subrc = 3.
Can you please suggest how to overcome the same.
Regards,
Arun
Hi Arun,
What are you passing in IS_GEN_PARAMS?
We are using in the following manner:
PARAMETERS : p_ver LIKE /sapapo/apo01-vrsioex DEFAULT '002'.
CONSTANTS: gc_comctrl_trans_ext_nocheck type bapiapocomctrl value '6'.
CALL FUNCTION 'APO_BAPI_CHECK_SET_VERSIONS'
EXPORTING
iv_planning_version = p_ver
iv_commit_control = gc_comctrl_trans_ext_nocheck
iv_set_no_simsession = 'X'
iv_set_no_simversion = 'X'
IMPORTING
ev_simversion = lv_simversion
ev_simsession = lv_simsession
TABLES
ct_return = lt_return
EXCEPTIONS
unknown_pln_vers = 1
other_pln_vers_exists = 2
commit_control_not_valid = 3
other_simsession_exists = 4
error_creating_simsession = 5
OTHERS = 6.
IF sy-subrc <> 0.
* lv_error = gc_true.
ENDIF.
CLEAR: l_sim_see.
lt_params-simversion = lv_simversion.
APPEND lt_params.
ls_order-orderid = p_guiid.
APPEND ls_order-orderid TO lt_order.
CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA'
EXPORTING
is_gen_params = lt_params
iv_simsession = l_sim_see
it_order = lt_order
IMPORTING
et_charact_val_outnode = lt_dates
EXCEPTIONS
lc_connect_failed = 1
lc_com_error = 2
lc_appl_error = 3
OTHERS = 4.
Hope this helps.
Regards,
nene
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.