How to prevent plant locking issue while calling a BAPI? Please help!
Hi Experts,
I have following scenario:
BizTalk sends 4B2 PIP to XI via JMS adapter. XI then sends the same to ECC system via ABAP Proxy.
4B2 PIP in our case contains one PO header and one line item.
In ECC, ABAP proxy calls BAPI to process the GR (Goods Receipt).
The problem is BizTalk can send many 4B2 PIPs simultaneously (Parallel). When The first PIP is getting processed in ECC the BAPI locks some plant data till it completes the GR. But if second PIP request comes when the first once is still getting processed then we get "plant is locked" error.
How can we avoid this plant locking error? What is the best option to solve this?
While calling BAPI in my ECC ABAP Proxy if I use qRFC as given by the code below then will it solve the problem?
Will this use only one queue "QUEUE01" for all the 4B2 PIP requests?
Will it create a new queue for every request?
If we assume that there are 3 PIP requests already in a queue. If the GR processing for the first PIP returns some data error (not the locking error) in the BAPIRETURN then will the second PIP gets processed or will it wait till the first one is successfully processed?
CALL FUNCTION 'TRFC_SET_QUEUE_NAME'
IMPORTING
QNAME = 'QUEUE01'.
CALL FUNCTION '<CREATE GR BAPI>'
IN BACKGROUND TASK
EXPORTING
TABLES ....
COMMIT WORK.
Thanks & Regards
Gopal
Man, you guys/gals are great! You notice everything...I sure appreciate all the help so far. I've updated a few things, but I still can't get x1 in the method to pass the right input to line 39. For instance, if I set a=2, b=4, and c=-30, then x1 should = 3 and x2 should =-5, but both keep showing -5. They are always equal for some reason, even when they are not supposed to be.
I see what you were saying with d always equalling zero. I was looking in the main where it doesn't always = zero, but in the method it was always set to zero. Thanks...good eye!
num1 = quad(a, b, c, 1); //line 39
num2 = quad(a, b, c, 2); //line 40
JOptionPane.showMessageDialog(null, "There are two real roots. They are root 1 = "+ num1 + " , and root 2 = " + num2 + ".");I also added this to the method so d won't always = zero
d = (Math.pow(b,2) - (4 * a * c));I also have all of the variables declared at the top, but I forgot to copy and paste all of them and I updated the System.exit(0) to close the JOptionPane along with extra } 's to close the program correctly.
Again, thanks a bunch.
Similar Messages
-
MS CRM 2015 :DB locking issues while calling a web API inside an asynchronous Plugin.
Hi,
We have a SharePoint Integration where a Web API is deployed on SharePoint Server.We are calling this Web API in asynchronous plugin. Although the Plugin works fine. But its causing DB issues .other custom applications like schedulers are breaking
and showing time-out issues.
I analysed it and found that Web API sometime failed to instantiate the Proxy object ( Exception ::System.Net.WebException: The operation has timed out ).
This results into the exception in plugin OR cause of DB locking.
Kindly suggest how to resolve this issue.
Thanks,
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari
http://microxrm.blogspot.inianp123,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
Getting error while calling this BAPI:Field MATNR has been transferred inco
Hi,
I have a rquirement to upload material master data into sap for Plant 1251.(For plant 1251 we need to upload both Basi veiw and Extended View).
I am getting the following error while calling this BAPI.Field MATNR has been transferred inconsistently or is blank
the errror is :Field MATNR has been transferred inconsistently or is blank.
I have written the below logic in the program to upload material master data into SAP.
Please help me out to resolve this issue.
Thanks in advance.
Program logic which i have wriiten in the program is
LOOP AT it_rpt.
CLEAR lwa_return.
v_tabix = sy-tabix.
IF ( it_rpt-werks EQ p_werks AND
it_rpt-matnr IS INITIAL ).
retrieve internal number
PERFORM get_internal_number USING lc_mtart
lc_mbrsh
CHANGING it_rpt-matnr.
ENDIF.
IF NOT it_rpt-matnr IS INITIAL.
PERFORM convert_field_input CHANGING it_rpt-matnr.
ENDIF.
Header data
CLEAR lwa_headdata.
lwa_headdata-material = it_rpt-matnr.
lwa_headdata-ind_sector = lc_mbrsh.
lwa_headdata-matl_type = lc_mtart.
lwa_headdata-basic_view = 'X'.
IF NOT it_rpt-vkorg IS INITIAL.
lwa_headdata-sales_view = 'X'.
ENDIF.
lwa_headdata-purchase_view = 'X'.
lwa_headdata-mrp_view = 'X'.
lwa_headdata-storage_view = 'X'.
lwa_headdata-forecast_view = 'X'.
lwa_headdata-work_sched_view = 'X'.
lwa_headdata-account_view = 'X'.
lwa_headdata-cost_view = 'X'.
*Client data
CLEAR: lwa_clientdata, lwa_clientdatax.
IF it_rpt-werks EQ c_1251.
lwa_clientdata-matl_group = it_rpt-matkl.
lwa_clientdata-old_mat_no = it_rpt-bismt.
lwa_clientdata-base_uom = it_rpt-meins.
lwa_clientdata-manu_mat = it_rpt-mfrpn.
lwa_clientdata-mfr_no = it_rpt-mfrnr.
ENDIF.
lwa_clientdata-division = it_rpt-spart.
lwa_clientdata-unit_of_wt = lc_gewei.
lwa_clientdata-trans_grp = lc_tragr.
IF it_rpt-werks EQ c_1251.
lwa_clientdatax-matl_group = 'X'.
lwa_clientdatax-old_mat_no = 'X'.
lwa_clientdatax-base_uom = 'X'.
lwa_clientdatax-manu_mat = 'X'.
lwa_clientdatax-mfr_no = 'X'.
ENDIF.
lwa_clientdatax-unit_of_wt = 'X'.
lwa_clientdatax-trans_grp = 'X'.
lwa_clientdatax-division = 'X'.
Material Description
IF it_rpt-werks EQ c_1251.
lt_matdesc-langu = sy-langu.
lt_matdesc-matl_desc = it_rpt-maktx.
APPEND lt_matdesc.
ENDIF.
*Plant data
CLEAR lwa_plantdata.
lwa_plantdata-plant = it_rpt-werks.
lwa_plantdata-availcheck = lc_mtvfp.
lwa_plantdata-mrp_type = lc_dismm.
lwa_plantdata-mrp_group = lc_disgr.
lwa_plantdata-auto_p_ord = 'X'.
lwa_plantdata-proc_type = 'F'.
IF it_rpt-werks EQ c_1251.
it_rpt-prctr = lc_prctr. "1252
ELSEIF it_rpt-werks EQ c_1261.
it_rpt-prctr = lc_prctr1. "1262
ENDIF.
lwa_plantdata-profit_ctr = it_rpt-prctr.
lwa_plantdata-period_ind = lc_perkz.
lwa_plantdata-max_stock = it_rpt-stawn.
lwa_plantdata-countryori = it_rpt-herkl.
lwa_plantdata-sloc_exprc = it_rpt-lgfsb.
CLEAR lwa_plantdatax.
lwa_plantdatax-plant = it_rpt-werks.
lwa_plantdatax-availcheck = 'X'.
lwa_plantdatax-mrp_type = 'X'.
lwa_plantdatax-mrp_group = 'X'.
lwa_plantdatax-auto_p_ord = 'X'.
lwa_plantdatax-proc_type = 'X'.
lwa_plantdatax-profit_ctr = 'X'.
lwa_plantdata-period_ind = 'X'.
lwa_plantdatax-max_stock = 'X'.
lwa_plantdatax-countryori = 'X'.
lwa_plantdatax-sloc_exprc = 'X'.
*Valuation data
CLEAR lwa_valuationdata.
lwa_valuationdata-val_area = it_rpt-werks.
lwa_valuationdata-price_ctrl = lc_vprsv.
lwa_valuationdata-price_unit = lc_peinh.
lwa_valuationdata-val_class = it_rpt-bklas.
CLEAR lwa_valuationdatax.
lwa_valuationdatax-val_area = it_rpt-werks.
lwa_valuationdatax-price_ctrl = 'X'.
lwa_valuationdatax-price_unit = 'X'.
lwa_valuationdatax-val_class = 'X'.
*Storage location
CLEAR lwa_storagelocation.
lwa_storagelocation-plant = it_rpt-werks.
lwa_storagelocation-stge_loc = it_rpt-lgort.
CLEAR lwa_storagelocationx.
lwa_storagelocationx-plant = it_rpt-werks.
lwa_storagelocationx-stge_loc = it_rpt-lgort.
*Tax Classifications
IF it_rpt-werks EQ c_1251.
it_rpt-tatyp = lc_tatyp. "u2018MWSTu2019
ELSEIF it_rpt-werks EQ c_1261.
it_rpt-tatyp = lc_tatyp1. "u2018UTXJu2019
ENDIF.
lt_taxclass-tax_type_1 = it_rpt-tatyp.
lt_taxclass-taxclass_1 = lc_taxkm.
lt_taxclass-tax_ind = lc_taxim.
APPEND lt_taxclass.
*Sales data
CLEAR: lwa_salesdata, lwa_salesdatax.
IF it_rpt-werks EQ c_1251.
it_rpt-vkorg = lc_vkorg.
ELSEIF it_rpt-werks EQ c_1261.
it_rpt-vkorg = lc_vkorg1.
ENDIF.
lwa_salesdata-sales_org = it_rpt-vkorg.
lwa_salesdata-distr_chan = lc_vtweg.
lwa_salesdata-cash_disc = lc_sktof.
lwa_salesdata-item_cat = lc_mtpos.
lwa_salesdatax-sales_org = it_rpt-vkorg.
lwa_salesdatax-distr_chan = lc_vtweg.
lwa_salesdatax-cash_disc = 'X'.
lwa_salesdatax-item_cat = 'X'.
*Forecast parameters
CLEAR: lwa_forecast, lwa_forecastx.
lwa_forecast-plant = it_rpt-werks.
lwa_forecast-fore_model = lc_prmod.
lwa_forecast-fore_pds = lc_anzpr.
lwa_forecast-hist_vals = lc_peran.
lwa_forecastx-plant = it_rpt-werks.
lwa_forecastx-fore_model = 'X'.
lwa_forecastx-fore_pds = 'X'.
lwa_forecastx-hist_vals = 'X'.
Purchasing long text
IF it_rpt-werks EQ c_1251.
IF it_rpt-tdline1 <> ' '.
lv_tdobject = 'MATERIAL'.
lv_tdid = 'BEST'.
lv_tdname = it_rpt-matnr.
PERFORM fill_longtext TABLES lt_longtext
USING lv_tdobject
lv_tdname
lv_tdid
sy-langu
it_rpt-tdline1.
ENDIF.
Basic long text
IF it_rpt-tdline2 <> ' '.
lv_tdobject = 'MATERIAL'.
lv_tdid = 'GRUN'.
lv_tdname = it_rpt-matnr.
PERFORM fill_longtext TABLES lt_longtext
USING lv_tdobject
lv_tdname
lv_tdid
sy-langu
it_rpt-tdline2.
ENDIF.
*Units of measure
CLEAR : lt_uom,lt_uomx.
lt_uom-alt_unit = it_rpt-meins.
lt_uom-alt_unit_iso = it_rpt-meins.
lt_uom-unit_of_wt = it_rpt-gewei.
APPEND lt_uom.
lt_uomx-alt_unit = it_rpt-meins.
lt_uomx-alt_unit_iso = it_rpt-meins.
lt_uomx-unit_of_wt = 'X'.
APPEND lt_uomx.
ENDIF.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = lwa_headdata
clientdata = lwa_clientdata
clientdatax = lwa_clientdatax
plantdata = lwa_plantdata
plantdatax = lwa_plantdatax
forecastparameters = lwa_forecast
forecastparametersx = lwa_forecastx
storagelocationdata = lwa_storagelocation
storagelocationdatax = lwa_storagelocationx
valuationdata = lwa_valuationdata
valuationdatax = lwa_valuationdatax
salesdata = lwa_salesdata
salesdatax = lwa_salesdatax
IMPORTING
return = lwa_return
TABLES
materialdescription = lt_matdesc
unitsofmeasure = lt_uom
unitsofmeasurex = lt_uomx
materiallongtext = lt_longtext
taxclassifications = lt_taxclass
returnmessages = it_messages.
Regards,
ReddyCan you check with below code .
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = it_rpt-matnr
IMPORTING
OUTPUT = it_rpt-matnr
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Move it_rpt-matnr to lwa_headdata-material .
Regard's
Smruti -
Error while calling BAPI_PARTNEREMPLOYEE_CREATE BAPI using JCO
Hi All,
Our requirement is to create and update customer contact details from java application. For this purpose we are trying to call BAPI_PARTNEREMPLOYEE_CREATE BAPI for create contact and BAPI_PARTNEREMPLOYEE_EDIT for updating contact information. As these BAPIs are of online version, error is coming while calling these BAPIs.
So is there any way to call these BAPIs through JCO or are there any alternative BAPIs available for same purpose?
Thanks in advance,
Arati.Hi,
All the bapi or function module available in SAP to create contact person will internally do a call transaction to VAP1 and VAP2 tcodes in order to create or change contact person respectively.
We had a similar problem when we were creating and updating customer contact person using inbound idoc. We then created a bdc recording for the same and then created two function module with name Z_CREATE_CONTACT and Z_CHANGE_CONTACT. In your case you can make this function modules as RFC enabled FM and call them using JCO I guess.
KR Jaideep, -
My iPhone 4 wont turn on, It wont go passed the charging icon and then when I take the charger out it says it needs charge. Its not the charger as iv tried several and holding lock and home button doesnt work please help!!!!!
Hello there, Conorjl7.
The following Knowledge Base article provides some good, practical steps for troubleshooting issues with charging:
iPhone and iPod touch: Charging the battery
http://support.apple.com/kb/HT1476
Particularly:
If your battery doesn't charge, or if your device shows a low-battery image, black screen, or "accessory not supported" alert, follow these steps.
Inspect the connector at the bottom of the phone:
Make sure that there are no bent pins in the connector.
Make sure that the connector is free from debris.
If there are bent pins or debris, please contact Apple Support.
Otherwise, continue troubleshooting.
Make sure that the outlet you're using works.
Make sure that the Apple USB cable and Apple USB power adapter work.
Plug the device in to power and let it charge for up to 30 minutes. If you don't have an Apple USB power adapter, try connecting to a computer's high-power USB 2.0 port (not a keyboard). The computer must be on.
If the device still exhibits an issue, try turning your device off and then on again while connected to power.
If the issue is persists, please contact Apple Support.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
My AppStore id is my apple id n password which is good when purchasing. But when I am updating from update option it ask for a password. The user id I see there is not mine, it's different. How do I change that to my apple Id? Please help me resolve this issue. I have tried resetting it but nothing... Either I'm doing something wrong or....
I believe the issue is with the Apple ID that was used to purchase the App. If you download an App that was purchased under a different Appple ID then all updates will also be linked to the original purchaser's Apple ID. Your Apple ID is the the same ID as your iTunes, iCloud, etc. Some folks use different ID for the different Apple sites. No need for that One ID for all Apple Sites, and if someone else buys an App using their ID and they(you) download that App onto your device and that App requires an update it will ask for the purchasers Apple ID. This happens a lot when folks sell their iPad or give it to someone else and leave some purchased(free) Apps on the iOS device. You cannot change the original ID the App was purchased under. A suggestion would be if someone else has an App that you like but do not want to pay for use their ID or in the future have them gift the App to you.
-
did not download the in-app purchase at time of original App download, now I cannot figure out how to find and download the in-app purchase. Please help!
Hello paddyliverpool,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
http://support.apple.com/kb/ht1933
Refund is an option.
Best of luck,
Mario -
HOW CAN I VERIFY MY ON APPLE I.D? PLEASE HELP ME.
HOW CAN I VERIFY MY ON APPLE I.D? PLEASE HELP ME.
Hi icanggutierrez,
I apologize, I'm a bit unclear on the exact nature of your issue. If you are talking about verifying the email address associated with your Apple ID account, you may find the following article helpful:
Apple ID: Associating and verifying email addresses with your Apple ID
http://support.apple.com/kb/he68
Regards,
- Brenden -
I use iPhone 4S .earlier with ios 6 and now ios 6.while I connect the charger for charging my phone network lost while midway in charging.that problem always while 3G connection is active.but this problem not arise while 3G mode off.please help me.
reset all settings
settings-general-reset-reset all settings
now reconnect to wifi
settings- wifi- click network name- enter password - join
if issue persists back up and restore as new via iTunes
Peace, Clyde -
I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help
"Where do I find my hundreds of dollars of downloads I have done since 2005?"
They will only be where you put them If you are doing the very basics, then they will be on your computer and they will be in your backup copy of your computer.
The itunes store is not global at all, never has been. You cannot redownload your content from another country. You can only use the countrys itunes store for the country that you are physically located. -
I bought used iPhone and on this iPhone I'm not able to make new account on i Cloud'. How can I use this iCloud's on used iPhone Please help me
When I logging there it told me that maximum no of iCloud's Account already activated on this iPhone.
Please help me how can I open new iCloud's account on this iPhone
Regard
Faiz khanSet up the account using a desktop or laptop, then sign
into that account on your iPhone.
I am not aware of any method around the restriction once
the maximum has been created on any individual iPhne. -
I accidentally synced my mum's brand new iPad to my mac book air. A few days later I realised that my iTune library on my mac is completely gone. So is my iPhone 4s after I synced it with my mac. How do I get my old iTunes library back? I tried using icloud on my iphone but it stated that I have never back up my phone before. So I guess my iCloud data is gone too? But I have back up my mac in my harddrive using time machine. So how do I get my old itune library back? Please help! Thanks!
1) ensure iTunes is authorized for your iTunes store account(s)
2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
3) sync the device
iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer. -
i just got the macbook air for christmas and i also got the dr dre headphones so i am trying to enable my soundcheck on my iTunes but i cannot figure out how to find where sound check is located can someone please help!!
Go to the iTunes menu > Preferences > Playback.
-
Hello. Having a problem with skype. i am online, all buttons work, however i can not make a video call the button simply doesnt work. Messages works. voice calls works. Please help.
Sounds like you need to contact skype.
-
Why is my iPad all fuzzy and blue? This isn't normal? How do I get it back to normal? Someone please help me.....
Try resetting it. Hold the on/off and home buttons together for about 10 seconds till the Apple logo appears.
Maybe you are looking for
-
Can I gift the same app multiple times to multiple users?
Can I gift the same app multiple times to multiple users? Like, if I wanted to buy iMovie for 3 friends, could I buy the app as a gift 3 times?
-
I remove my hard drive from time machine,now it won't recognize hard drive
i got a delayed error on my time machine backup saying Time Machine couldn't complete the backup to my back up hardrive, so what i did i removed my hard drive in time machine "select disk" , thinking if ill plug it back it'll recognize but it didn't.
-
What do I need to hook up an external DVI monitor to Thunderbolt?
I want to hook up an external DVI monitor to my new iMac. It has a thunderbolt connection. http://www.amazon.com/Apple-Mini-DisplayPort-Adapter-MB570Z/dp/B001IF5YLQ/ref=sr _1_1?ie=UTF8&qid=1309558497&sr=8-1 Is the above link what I would be looking f
-
I cannot open a new tab with ctrl + T, or by double clicking or by right clicking
I cannot open a new tab with ctrl + T, or by double clicking or by right clicking, i was using 3.6.18 before when i started facing this problem, than i uninstalled the firefox and reinstalled Firefox - 3.0.6, still the issue has not been resolved, i
-
Page not navigating into next page
HI, I have two screens, where in the First screen if you give a Partner number then it should take you to the next screen, and show relevant detaisl ina table control. But this is not happening,, where are the settings to be checked... Any reason....