on 06-17-2020 10:48 AM
Hi Yoppy,
Check this please..
Transfer
1. You should always specify the network number NUMBER. The system transfers component data to the table I_COMPONENTS_ADD. You should always specify the following for each components: a. To which activity the component should be added
b. The procurement type (network reservation, WBS reservation...). See the data element documentation for TYPE_OF_PUR_RESV.
You can get it fromvorm: bapi_components_add and In line 90 of the code check for this
check input type of Purchasing or Reservation
IF flg_error_occured IS INITIAL.
PERFORM check_procument USING i_resbd-type_of_pur_resv.
Hope this clears your issue..
Regards
Sammar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is my code :
ls_compadd-activity = <fs_data>-activity.
ls_compadd-item_cat = <fs_data>-item_cat.
ls_compadd-item_number = <fs_data>-item_number.
ls_compadd-material = <fs_data>-material.
ls_compadd-entry_quantity = <fs_data>-entry_quantity.
ls_compadd-req_date = <fs_data>-req_date.
ls_compadd-gr_rcpt = <fs_data>-gr_rcpt.
ls_compadd-plant = <fs_data>-plant.
ls_compadd-mrp_relevant = '1'.
ls_compadd-wbs_element = <fs_data>-wbs_element.
ls_compadd-type_of_pur_resv = '8'.
ls_compadd-req_date = sy-datum.
ls_compadd-manual_requirements_date = 'X'.
APPEND ls_compadd TO lt_compadd.
CALL FUNCTION 'BAPI_NETWORK_COMP_ADD'
EXPORTING
number = <fs_data>-network
IMPORTING
return = ls_return
TABLES
i_components_add = lt_compadd
e_message_table = lt_emess.
yesterday I was debugging, actually the line position was at 161 (for wbs)
In that line states that based on network elements, activities and wbs do not have a reservation. So the effect is no_proj eq 'X'
You got to change it in configuration not from FM.. I don't think we have the field available in FM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://answers.sap.com/questions/5636747/regarding-the-component-upload-using-bapi-bapinetw.html
This is same question, but its not clear about the solution
Hi Yoppy,
This comes from configuration of Network profile. check in t-code OPUU for your profile what is maintained in the field Procurement.
This is setting is maintained in the Material procurement in the below SPRO Node
Project systems->Material->Procurement->Define Procurement Indicators for Material Components
hope it helps..
Regards
Sammar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello yoppy.santoso
Have a look at BAPI_PROJECT_MAINTAIN function.
Kind regards,You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, sorry, I missed that you use BAPI_NETWORK_COMP_ADD function.
In that function, in parameter I_COMPONENTS_ADD there is a field called TYPE_OF_PUR_RESV which corresponds to the screen field you marked. The value for "Reservation for WBS Element" is 8.
Does that not work? If no, then do you get any error message?
https://answers.sap.com/questions/5636747/regarding-the-component-upload-using-bapi-bapinetw.html
This is same question, but its not clear about the solution
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.