Bapi BAPI_NETWORK_COMP_ADD
Hi,
I am using bapi BAPI_NETWORK_COMP_ADD to post(Confirm) the network activity data. For the multiple records the very first record is being posted by the bapi and for the rest records error message is being shown as ' Order (network no.) is already being processed by USERNAME'.
To rectify the error 'wait up to sec seconds' in CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' is being used.
After this the result is getting absolutely fine.
but i dont want to use the WAIT statement as the data volume is large.
Kindly reply for the same.
I have already tried with the bapi CALL FUNCTION 'BAPI_PS_INITIALIZATION' and CO_ZF_DATA_RESET_COMPLETE writng in begining, But diidnt get the expected result.
Thanks in advance.
Hi Prasanjeet,
Thanks for your prompt response.
In the starting phase of the developemenmt i was not using 'wait up to sec seconds'. I was calling 'BAPI_NETWORK_COMP_ADD' and after this 'BAPI_TRANSACTION_COMMIT'(In this commit bapi i was not passing any parameter). Everything was fine but the result i was getting was the error message from the second record onwards.
For the first record bapi is posting data successfully, but for the second record onwards it was showing error message
'' Order (network no.value) is already being processed by USERNAME'.
To rectify this error i am using 'wait up to sec seconds' afted calling bapi BAPI_TRANSACTION_COMMIT. Now the result is what i
wanted. But the SEC value is 1 sec. As my data volume is huge, i am bound to use some other alternative.
Kindly reply for the same with your valuable suggesion.
Thanks.
Similar Messages
-
Error in BAPI BAPI_NETWORK_COMP_ADD
Hi all,
I'm trying to use the BAPI BAPI_NETWORK_COMP_ADD to create material components, soon after to create the network and activities.
I am filling the NUMBER with the value of temporary network created by bapi BAPI_BUS2002_CREATE.
When I run the bapi BAPI BAPI_NETWORK_COMP_ADD, I get the message 00 058 saying that this network does not exist in table AUFK.
Someone had this problem and know what is the solution?
Thank's very much,Hi,
If you solve your problem, please let me know.
Here we have the same problem, we did like the expert said, executing the bapi after the commit but when we tried to execute the BAPI BAPI_NETWORK_COMP_ADD, is showing error Activity not exist...
Thanks
RP -
Bapi to add componentes in Project
Hello All,
I have to add compoments in project can anyone suggest me BAPI for that ?
Edited by: yogesh Kothavade on Apr 8, 2009 12:02 PMHi,
Check this BAPI 'BAPI_NETWORK_COMP_ADD '
Regards,
Jyothi CH. -
BAPI_NETWORK_COMP_ADD problem in quanity update
Hi,
I am using this BAPI - BAPI_NETWORK_COMP_ADD
to add material and quantity to network (Similar to t-code CN22).
This program is sheduled to execute at night
Everything works fine but sometime when no of materials are more (above 20) it
does not update the quantity (Material no is perfectly updated in all the cases).
However it is not always sometime it update sometime not, I checked with the data
but the data get populated perfectly infect for same set of data it did not updated at night
I execute in morning to debug and identify the problem it get updated perfectly.
Any suggestion will be helpful.
Regards
BikasHey its weird but I have experiance the same once. Reason might be something to do with connectivity or server down instances for fraction of nano seconds..
Raghav -
Field in BAPI_NETWORK_COMP_ADD
Hi Gurus,
I'm using BAPI_NETWORK_COMP_ADD to add components and create a purchase requisition. From standard tcode CN22, when I'm adding the components, there is a field called the Procurement Indicator (RESBD-MFLIC). I am unable to find or map to this field with this BAPI.Hi Gurus,
I'm using BAPI_NETWORK_COMP_ADD to add components and create a purchase requisition. From standard tcode CN22, when I'm adding the components, there is a field called the Procurement Indicator (RESBD-MFLIC). I am unable to find or map to this field with this BAPI. -
BAPI_NETWORK_COMP_ADD in 4.6c
Dear Experts,
I need to add component to network activity through BAPI. Unfortunately, my client uses 4.6c and it doesn't have BAPI_NETWORK_COMP_ADD. Does anyone know any other BAPI / function module in 4.6c to do this?
I have done my research but to no avail. Hopefully somebody has the answer.
Thanks in advance,
SamHi Sam,
I don't think ther is another way or fm to do that.
But there must be a way to downgrade this BAPIs to 4.6C!
We have one 4.6C system with that BAPI, and there are some SAP notes (as 718843) with a 4.6C Correction Instruction (here: 614749) on the new Function Group CNIF-MAT.
You may contact SAP how to downgrade the BAPIs to 4.6c, but it is possible! They are running very fine there for years!
Regards,
Klaus -
Is there any BAPI that can create assignment in workforce planning (CMP2)
Hello,
I want to implement a batch input program in order to create assignment in workforce planning. But the screen is not actually proper for batch input. Is there any Bapi that can create assignment for a given network, Operation/Activity, suboperation/Subactivity, personel Number and work hours.
Thanks in advance.Hi Aselsan,
Please have a look into the below link
[Link 1|Re: BAPI to create network (T-code CJ21)]
[Link 2|Example code for BAPI_NETWORK_MAINTAIN]
[Link 3|BAPI_NETWORK_COMP_ADD]
Hope they are useful,
Thanks
kalyan -
Parameter Effectivity and BAPI_NETWORK_COMP_ADD
Any suggestions on how to set/pass parameter effectivity data when adding a component using BAPI_NETWORK_COMP_ADD?
Hi,
It's really interesting. The field you are referring to has a unique data element and domain. They are not being used anywhere else. Also, Field is not getting validated again in this FM. What I would suggest is
If the networks earlier created were created using a BAPI in a program, you could use the field in this also.
Else, based on your requirement you have to choose the value. For ex, If thro' WBS use '08'.
Sujay -
BAPI_NETWORK_COMP_ADD
Hello
I am working on a migration project and i have to recreate some old material components in a new project.
At the moment I am creating some material components using the BAPI_NETWORK_COMP_ADD and i have to provide the procurement type .
Since i am reproducing them,i have to create them with the same data as in the old structure and i am using BAPI_NETWORK_GETDETAIL to read information on the old material components.
My problem is that this bapi used for reading does not return the procurement field and i do not know what procurement value to provide to the bapi for creating material components.
Does anybody know where to find this procurement value stored? and how i can read it
Thank youHi,
It's really interesting. The field you are referring to has a unique data element and domain. They are not being used anywhere else. Also, Field is not getting validated again in this FM. What I would suggest is
If the networks earlier created were created using a BAPI in a program, you could use the field in this also.
Else, based on your requirement you have to choose the value. For ex, If thro' WBS use '08'.
Sujay -
BAPI_NETWORK_COMP_ADD error
Hi
I am assigning a variable size material component with item category R to a network activity using BAPI_NETWORK_COMP_ADD.
However, the BAPI is calculating incorrect variable size item Qty (ROMEN) even though the correct formula key, units and sizes are paased. The material master conversion factor is also maintained correctly for the material component.
Any possible suggestions or applicable notes for correcting the error is welcome.
Regards
Srikrishna.
Edited by: Srikrishna D on Jul 27, 2009 1:51 PMHi ,
Check this.
DE ROMEN
Short Text
Quantity of variable-size item
Definition
Quantity of variable-size item, which the system calculates from the sizes entered. If you wish you can enter a variable-size item formula for the. calculation.
The quantity of the variable-size item shown is per piece (PC)
Procedure
If you change a field that affects the calculation of the variable-size item quantity (for example, size or formula), the system only recalculates the quantity if you delete the existing quantity first.
To do this, delete the contents of the Qty Var-sz item field.
Examples
Size 1: 200
Size 2: 300
Size unit of measure: MM
Variable size item unit: SQM
Calculation of variable-size item quantity:
A = Size 1 * Size 2
A = 200 MM * 300 MM
A = 0,06 SQM
--> The variable-size item quantity for each piece is: 0.06 SQM
Dependencies
The value calculated is required in MRP, in order to calculate the total quantity of the raw material requirement for the component.
If 10 pieces are required for the component, the variable-size item quantity is: 10 * 0.06 SQM = 0.6 SQM. -
BAPI_NETWORK_COMP_ADD Component assignment not intended for sales order
Dear,
I have problem when I use the function:
CALL FUNCTION 'BAPI_NETWORK_COMP_ADD'
EXPORTING
number = number
IMPORTING
return = return
TABLES
i_components_add = i_components_add
e_message_table = e_message_table.
I have inserted only these values in the structure i_components_add:
ACTIVITY_TYPE_PUR_RESV__ITEM_NR____MATERIAL_________PLANT___ENTRY_QTY___ITEM_CAT
108--8101TAH052000110025.460--
L
108--8204RAVBLA098SL0111002.000--
L
108--83034R000000011004.160--
L
but the result is wrong
e_message_table:
METHOD--C--
32
OBJECT_TYPE--C--
32
INTERNAL_OBJECT_ID---C--
90
EXTERNAL_OBJECT_ID--C90-----0108 0010 1TAH052000 1100
MESSAGE_ID--C20-----CNIF_MAT
MESSAGE_NUMBER--C3--
1
MESSAGE_TYPE--C1--
E
MESSAGE_TEXT--C72--
Component assignment not intended for sales order or project stock
Very kind for one answer of yours to this problem...
Thanks & Regards,
Marco Echino.
Edited by: Marco Echino on Sep 8, 2011 12:16 PMHi Marco,
I believe this is a Functional Issue rather than a Technical one. If you could speak to the Functional Concultant or pass this data via manual transaction, you will get the error details.
It's just that the data passed to the BAPI is either incorrect or incomplete. You can also refer the Function Module Documentation for tips.
Regards,
Pranav. -
Adding Component, Activity, Changing Activity through BAPI
Hello Everyone,
I have a requirement to develop a FM which will use the standard BAPI's to create an Activity, Change the activity status, and also add a component to the activity.
Am using BAPI_BUS2002_SET_STATUS to set the status of the activity, understand have to use BAPI_PS_INITILIZATION with it.
Using BAPI_NETWORK_MAINTAIN to maintain the activity, BAPI_NETWORK_COMP_ADD to add the component.
But the sequence of the initiailzation that I have developed are not helping me update the all of the required data.
Basic question would be a procedure to update activity, activity status and create component.
If anybody has used the above BAPI's or developed similar applications would be very much helpful.
Regards,
PrashanthHi Koushik,
Thanks for the reply,
But still I need to know what are the specific difference between the two function module.Even in CRM_ORDER MAINTAIN I am able to get all those Structure with which I am working in BAPIACTIVITYCRM_CREATEMULTI. I know all the other CRM Business transaction can be created through CRM_ORDER_MAINTAIN. If you could explain a bit detail in what context one should use CRM_ORDER MAINTAIN and BAPIACTIVITYCRM_CREATEMULTI. -
Open Purchase Order UPload Using the BAPI 's
i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out using the BAIP's for upload the PO, i need sample code for this ........
Thanks & Regards
Raghu
<u>Field Name Field Description Type Length</u>
<b>EBELN Purchasing Document Number CHAR 010 X
BUKRS Company Code CHAR 004 MN10 C
EKORG Purchasing Organization CHAR 004 MN00 C
EKGRP Purchasing group CHAR 003 X
BSART Order type (Purchasing) CHAR 004 X
LIFNR Account Number of Vendor or Creditor CHAR 010 X
BEDAT Purchase Order Date DATS 010 X
ZTERM Terms of payment key CHAR 004 X
WAERS Currency Key CUKY 005 X
INCO1 Incoterms (part 1) CHAR 003 X
INCO2 Incoterms (part 2) CHAR 028 X</b>
EBELP Item Number of Purchasing Document NUMC 005 X
EMATN Material number CHAR 018 X
WERKS Plant CHAR 004 X
LGORT Storage location CHAR 004 X
EPSTP Item category in purchasing document CHAR 001 X
KNTTP Account assignment category CHAR 001 X
EINDT Item delivery date DATS 010 X
MENGE "Purchase order quantity (direct input, transfer of POs)" CHAR 013 X
MEINS Order unit UNIT 003 X
NETPR "Net price: Document currency (direct input, transfer of" CHAR 011 X
PEINH "Price unit (direct input, transfer of POs)" CHAR 005 X
BPRME Order Price Unit (Purchasing) UNIT 003 X
BPUMZ Numerator: Conversion OPUn into OUn (direct input of POs CHAR 005 X
BPUMN Denominator: Conversion OPUn into OUn (direct input of P CHAR 005 X
SAKTO Cost element CHAR 010 X
KOSTL Cost Center CHAR 010 X
VBELN Sales and Distribution Document Number CHAR 010 X
VBELP Sales document item NUMC 006 X
WEMPF Goods recipient CHAR 012 X
WEBTH "Amount in local currency (direct input, transfer of POs)" CHAR 013 X
WEBTF "Amount in document currency (direct input, transfer of P" CHAR 013 X
WEREF Flag for treatment of GR/IR (direct input of POs) CHAR 001 X
SPINF Indicator: Update info record CHAR 001 X
WEPOS Goods Receipt Indicator CHAR 001 X
REPOS Invoice receipt indicator CHAR 001 Xi need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out using the BAIP's for upload the PO, i need sample code for this ........
Thanks & Regards
Raghu
<u>Field Name Field Description Type Length</u>
<b>EBELN Purchasing Document Number CHAR 010 X
BUKRS Company Code CHAR 004 MN10 C
EKORG Purchasing Organization CHAR 004 MN00 C
EKGRP Purchasing group CHAR 003 X
BSART Order type (Purchasing) CHAR 004 X
LIFNR Account Number of Vendor or Creditor CHAR 010 X
BEDAT Purchase Order Date DATS 010 X
ZTERM Terms of payment key CHAR 004 X
WAERS Currency Key CUKY 005 X
INCO1 Incoterms (part 1) CHAR 003 X
INCO2 Incoterms (part 2) CHAR 028 X</b>
EBELP Item Number of Purchasing Document NUMC 005 X
EMATN Material number CHAR 018 X
WERKS Plant CHAR 004 X
LGORT Storage location CHAR 004 X
EPSTP Item category in purchasing document CHAR 001 X
KNTTP Account assignment category CHAR 001 X
EINDT Item delivery date DATS 010 X
MENGE "Purchase order quantity (direct input, transfer of POs)" CHAR 013 X
MEINS Order unit UNIT 003 X
NETPR "Net price: Document currency (direct input, transfer of" CHAR 011 X
PEINH "Price unit (direct input, transfer of POs)" CHAR 005 X
BPRME Order Price Unit (Purchasing) UNIT 003 X
BPUMZ Numerator: Conversion OPUn into OUn (direct input of POs CHAR 005 X
BPUMN Denominator: Conversion OPUn into OUn (direct input of P CHAR 005 X
SAKTO Cost element CHAR 010 X
KOSTL Cost Center CHAR 010 X
VBELN Sales and Distribution Document Number CHAR 010 X
VBELP Sales document item NUMC 006 X
WEMPF Goods recipient CHAR 012 X
WEBTH "Amount in local currency (direct input, transfer of POs)" CHAR 013 X
WEBTF "Amount in document currency (direct input, transfer of P" CHAR 013 X
WEREF Flag for treatment of GR/IR (direct input of POs) CHAR 001 X
SPINF Indicator: Update info record CHAR 001 X
WEPOS Goods Receipt Indicator CHAR 001 X
REPOS Invoice receipt indicator CHAR 001 X -
URGENT: Function modules or BAPIs
Hi Experts,
I need function modules or BAPI to get the open items and cleared items G/L Account wise.
Useful replies will be surely awarded.Hi Chakradhar,
Check tcode : BAPI
u will get all bapis there.
Regards,
Hemant -
Questions on BPS BAPI calls and PDF forms
I will need to create a button on a BPS form and that button is supposed to call a BAPI. One of the buttons will create a PDF of the form (using the contents of the form) and print said form to a 'default' printer. The issue is that not all cFolder users will have an ECC logon name. What am I to do in this instance? Will I need to pass some type of credentials to the ECC backend in order to run this BAPI?
Also, how can I get the contents of the form(s) to the BAPI? I assume that I will need to create the PDF in the code of the BAPI. Please be patient with me as this is my first time to work with cFolders and/or BPS.
Regards,
DavisHi Davis,
Well, if you are able to log on the BPS application (thus, a Web Interface if I'm not mistaken) then it means that some user is logged on the ABAP-side. It is either a "personal" user or a technical (common) user, that is used for anonymous access.
You will certainly be able to track down this user with the SM04 transaction.
You should be able to add a button to the BPS page. One idea would be to call an URL with an ICF service behind that will be able to process the parameters contained in this URL.
It will be this very ICF service that will call the BAPI.
Try these links
http://help.sap.com/saphelp_nw04s/helpdata/en/55/33a83e370cc414e10000000a114084/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ea8db790-0201-0010-af98-de15b6c1ee1a
Hope this helps.
Best regards,
Guillaume
Maybe you are looking for
-
Firefox 5.0.1 crashes when I try to open it.
I have recently downloaded the new version of firefox (5.0.1). Everytime I click the icon to open it, it doesn't load, instead a crash report pops-up. I feel like I have tried everything to solve this! Can anyone help me out on what causes it to keep
-
I have had this reaccuring problem where my iTunes will whipe out all the info in it. No reason as this is a standard Mac with the intel processors. The only upgrade I have done is to get it to Lion 10.8.whatever. The past several times this has happ
-
QuickTime X does not play QuickTime Broadcaster recordings
This is a post I'm leaving for other SL upgraders who come looking for information on why their QuickTIme Broadcaster .mov files and other QuickTime files such as .m4v for iPod that don't play on QuickTime X but do play on iTunes and QT 7. I'm findin
-
How to get result from query for ssrs?
DECLARE @meter_number int SET @meter_number=25112 IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers) BEGIN SELECT 'LA' as [data_center] , t.request_time_gmt , aca.transaction_id , aca.meter_number , CONVERT(date, aca.ship_date_gmt
-
Select Performance problems using the 'like' operator
I have a PL/SQL procedure that uses a cursor which contains a 'like' operator in the where clause. I have two database instances that are theoretically the same, however this code processes about 100,000 rows in 5 minutes on one database and 100,000