如何通过BAPI为工作单分配通知?

时间:2018-04-03 12:38:35

标签: sap abap bapi

我想向工作单分配通知。以下不起作用:

//Get all span having text > 500
$("span.price_value").filter(function () {
    var processed = $(this).html().replace(/ /g, '');
    var output = parseInt(processed, 10);
    return output >= 5000
})
.closest(".item") //Target parent items
.hide() //Hide

对于OBJECTLIST,我实际上需要像“ADD”这样的东西。方法。任何想法都表示赞赏。

1 个答案:

答案 0 :(得分:0)

以下适用于我:

ls_methods-refnumber = 1.
ls_methods-objecttype = 'OBJECTLIST'.
ls_methods-method = 'CREATE'.
ls_methods-objectkey = '000480000020'.
APPEND ls_methods TO lt_methods.

* Fill method structure
ls_methods-refnumber = 1.
ls_methods-method = 'SAVE'.
ls_methods-objecttype = ''.
ls_methods-objectkey = '000480000020'.
APPEND ls_methods TO lt_methods.


* Fill object list structure
ls_object_list-notif_no = '100000356980'.
APPEND ls_object_list TO lt_object_list.

* Fill object list up structure
ls_object_list_up-processing_ind = 'X'.
APPEND ls_object_list_up TO lt_object_list_up.


CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
    it_methods       = lt_methods
    it_objectlist    = lt_object_list
    it_objectlist_up = lt_object_list_up
    return           = lt_return.