Error in BAPI_SALESORDER_CHANGE while updating condition
Hi,
I am using this BAPI to change an existing pricing condition. However, I am getting an error " Manual change of condition type is not possible". I'm not sure whether this is a coding error or is it related to configuration. this is how I am populating the structures:
so_cond_in-itm_number = wa_vbap1-posnr.
so_cond_in-cond_count = wa_konv-zaehk.
so_cond_in-cond_st_no = wa_konv-STUNR.
so_cond_in-cond_type = wa_konv-kschl.
so_cond_in-cond_value = wa_konv-kbetr.
so_cond_in-currency = wa_konv-waers.
so_condx_in-itm_number = wa_vbap1-posnr.
so_condx_in-updateflag = 'U'.
so_condx_in-cond_st_no = wa_konv-STUNR.
so_condx_in-cond_count = wa_konv-zaehk.
so_condx_in-cond_type = wa_konv-kschl.
so_condx_in-cond_value = 'X'.
so_condx_in-currency = 'X'.
APPEND so_condx_in.
CLEAR so_condx_in.
APPEND so_cond_in.
CLEAR so_cond_in.
st_logswitch-cond_handl = 'X'.
Any help would be appreciated.
Thanks
SM
Hi Sneha ,
Can you please check the code for using the BAPI_SALESORDER_CHANGE bapi. this is similar to your chase. Please compare with the passing parameters
then you will get some idea on your code.
*- Population of Order Item data
ls_order_item-itm_number = ls_submit-posnr. "Item
ls_order_item-prc_group5 = '003'."lc_004. "Material Group5
IF ls_submit-zmeng = 0.
ls_order_item-reason_rej = lc_99. "Reason for Rejection
ENDIF.
APPEND ls_order_item TO lt_order_item.
*-Population of update flag for Order Item
ls_order_itemx-itm_number = ls_submit-posnr."Item
ls_order_itemx-updateflag = lc_u. "Update flag
ls_order_itemx-prc_group5 = gc_x. "Material Group5 update
*- if the required quanity is zero then reject the line
IF ls_submit-zmeng = 0.
ls_order_itemx-reason_rej = gc_x. "Reason for Rejection
ENDIF.
APPEND ls_order_itemx TO lt_order_itemx.
*-Population of
ls_schedule_lines-itm_number = ls_submit-posnr.
ls_schedule_lines-sched_line = ls_submit-etenr.
ls_schedule_lines-req_qty = ls_submit-zmeng.
APPEND ls_schedule_lines TO lt_schedule_lines.
*-Population of update flag for Schedule line data
ls_schedule_linesx-itm_number = ls_submit-posnr.
ls_schedule_linesx-sched_line = ls_submit-etenr.
ls_schedule_linesx-updateflag = lc_u.
ls_schedule_linesx-req_qty = gc_x.
APPEND ls_schedule_linesx TO lt_schedule_linesx.
*- at the end of Order call the BAPI to Update the Order
ls_order_head-collect_no = ls_submit-vbeln.
ls_order_headx-updateflag = lc_u.
ls_order_headx-collect_no = gc_x.
*- BAPI Call to Update the Order
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = ls_submit-vbeln
order_header_in = ls_order_head
order_header_inx = ls_order_headx
TABLES
return = lt_return
order_item_in = lt_order_item
order_item_inx = lt_order_itemx
schedule_lines = lt_schedule_lines
schedule_linesx = lt_schedule_linesx.
*- Check for the errors and based on that populate the log
READ TABLE lt_return INTO ls_return WITH KEY type = lc_e.
IF sy-subrc EQ 0.
LOOP AT lt_return INTO ls_return WHERE type = lc_e.
ls_log-excep = 1.
ls_log-vbeln = ls_submit-vbeln.
ls_log-message = ls_return-message.
APPEND ls_log TO gt_log.
CLEAR: ls_log,
ls_submit-vbeln .
ENDLOOP.
ELSE.
*- Commit the Changes
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = gc_x.
*- Check for the success message and populate the log
LOOP AT lt_return INTO ls_return WHERE number = lc_311.
ls_log-excep = 3.
ls_log-vbeln = ls_submit-vbeln.
ls_log-message = ls_return-message.
APPEND ls_log TO gt_log.
CLEAR: ls_log,
ls_submit-vbeln .
ENDLOOP.
ENDIF.
Thanks
Sekhar
Similar Messages
-
Does anybody know the error code 11 while updating to ios 4.3.3.? thx
does anybody know the error code 11 while updating to ios 4.3.3. on an ipad1? thx
but my hard drive is still lot of spaces...still keep on trying to update...
-
Itunes had an error and shutdown while updating my iphone 4. Itune tells me my phone is in recovery mode and I must use restore before im able to use itunes. I cannot do anything on my phone now. It shows icons telling me to connect to itunes. I want to know if I restore my phone do I lose any photos and that were not backed up yet? or What happens to my contacts and phone numbers?
Itunes had an error and shutdown while updating my iphone 4. Itune tells me my phone is in recovery mode and I must use restore before im able to use itunes. I cannot do anything on my phone now. It shows icons telling me to connect to itunes. I want to know if I restore my phone do I lose any photos and that were not backed up yet? or What happens to my contacts and phone numbers?
-
An error has occured while updating software. Connecting to the server is slow and games etc only run for 60 seconds
Have you tried resetting your iPad? You may have to restore again if there was a problem.
Try the reset first.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
When trying to complete the tutorial for indesign I get the following error when trying to add an article to my folio:
"An error has occurred while updating article layouts. The InDesign file for the layout cannot be found."
I am able to create the folio then I click into articles. My document "WiFi_v.indd" is open when clicking add article, but I keep getting this error message.
I am using the following versions of the software (Should be the latest).
- Folio Builder (Downloaded version Version 1.1.8.0)
reported version:
11.4.3.20111129_m672305 7.5.5.17
Adobe In Design 7.5.2 CS 5.5
Also tried reinstalling the plugins (uninstall + install)If you're on Mac OS with the OS in another language than english the "User" folder might contain a non english character and causing problems.
I e in Sweden the Mac OS user-folder is called "Användare". When attempting uploading articles from a file locaded anywere this "Användare" is in the file path the Folio producer says Error finding InDesign layout, due to -what i think is-the "ä" in Användare. If you still want to work local you can place the InDesign files directly into the Macintosh HD. In this case the User folder is not used.
BR
Henrik -
JAEHYLEE , Error FRM 40654 While Updating Few Supplier Sites 시 공백 제거 방법
PURPOSE
Error FRM 40654 While Updating Few Supplier Sites , 공백 제거 방법
Workaround
N/A
Solution Description
trailspace.sql:
CREATE OR REPLACE PROCEDURE CHK_TRAIL_SPACE (p_table_name in varchar)
IS
v_table_name varchar(30);
v_column_name varchar(30);
v_column_name_c char(30);
v_space_count number;
v_ret number; -- temp holder for above
v_initial_space_counter number;
dyn_cursor number;
CURSOR TABLE1 IS
SELECT table_name
FROM DBA_TABLES
WHERE table_name = p_table_name;
CURSOR COLUMN1 IS
SELECT column_name
FROM DBA_TAB_COLUMNS
WHERE table_name = v_table_name;
BEGIN
OPEN TABLE1;
LOOP
-- FOR crec1 in TABLE1 LOOP
fetch TABLE1 into v_table_name;
IF (TABLE1%NOTFOUND) THEN
exit;
END IF;
dbms_output.put_line(v_table_name);
dbms_output.put_line
v_initial_space_counter := 0;
OPEN COLUMN1;
LOOP
-- FOR crec2 in COLUMN1 LOOP
fetch COLUMN1 into v_column_name;
IF (COLUMN1%NOTFOUND) THEN
exit;
END IF;
dyn_cursor := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE
(dyn_cursor,
'SELECT COUNT(*) ' ||
'FROM ' || p_table_name ||
' WHERE ' || v_column_name || ' LIKE ''% ''',
DBMS_SQL.NATIVE);
DBMS_SQL.define_column (dyn_cursor, 1, v_space_count);
v_ret := DBMS_SQL.EXECUTE(dyn_cursor);
if DBMS_SQL.fetch_rows(dyn_cursor) > 0 then
DBMS_SQL.column_value (dyn_cursor, 1, v_space_count);
end if;
DBMS_SQL.CLOSE_CURSOR(dyn_cursor);
IF v_space_count > 0 THEN
v_initial_space_counter := v_initial_space_counter + 1;
END IF;
v_column_name_c := v_column_name;
IF v_space_count > 0 THEN
dbms_output.put_line(' ' || v_column_name_c || to_char(v_space_count));
END IF;
end loop;
close column1;
end loop;
close table1;
END CHK_TRAIL_SPACE;
cause: Trailing Spaces.
fix:
Please run trailspace.sql.
This creates a procedure that will check all VARCHAR2 columns
in a specified table for trailing spaces .
Run the file in SQL*PLUS .
It will return 'Procedure Created'
Then run it using the following:
set serveroutput on
execute chk_trail_space(<table_name to check>);
i.e. (execute chk_trail_space('PO_VENDORS');)
Please can you run this on the following two tables:
PO_VENDORS and PO_VENDOR_SITES_ALL.
Then if there are any trailing spaces as per output,
Then run the following command in TEST:
update <tablename>
set <column_name> = rtrim(<column_name>);
i.e.
update po_vendors
set vendor_name = rtrim(vendor_name);
Reference Documents
234048.1 -
Error has occurred while updating iphoto
error has occurred while updating iphoto
Thanks for sharing. DId you have a question?
There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
- What version of iPhoto.
- What version of the Operating System.
- Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
- History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
- What steps have you tried already to solve the issue.
- Anything unusual about your set up? Or how you use iPhoto?
Anything else you can think of that might help someone understand the problem you have. -
Error code 0x80240031 while updating to 8.1
From last 20 days I am facing this error code 0x80240031 while updating to 8.1 sharp at 50% ...tried almost 50-60times on my ... G500s ... pre-installed os .... I contacted both Microsoft and Lenovo for this issue ... both of them tried to solve it ... Microsoft suggested me to reinstall the whole os. So I contacted Lenovo for the same ...they reinstalled it ... BUT STILL THE PROBLEM EXISTS.... I don’t know what to do m very frustrated ... should I sue Microsoft for not solving or Lenovo..... Because if this issue won’t get solve... I might have to take some legal source to solve my case ...I tired every option available on the web .....as i cant even get an new windows key or DVD...
I tried everything on that link... but still facing the error...
command prompt and type/run: "sfc /scannow" ...no problem
Dism /Online /Cleanup-Image /RestoreHealth.... no problem
Antivirus ..uninstalled .....
i tired the every possible thing on this webiste also
1. http://answers.microsoft.com/en-us/windows/forum/windows8_1-windows_install/windows-81-update-error-...
2. http://www.thewindowsclub.com/error-code-0x80240031-updating-to-windows-8-1 -
A fatal error has occurred while updating your device's software. Please try again.
when the installation process is finished.. the reboot comes nxt and my BB device working now,, after a few minutes, it was appear that "A fatal error has occurred while updating your device's software. Please try again" and i disconnected my device.. my question is.. is this error affect the stability or working of my DEVICE?
I need your answer
Solved!
Go to Solution.Hi pasakaw
Have you intrepted the update process in anyway .. maybe something gone wrong while doing this software update.Currently what is the status of your BlackBerry is it working properly ?
If you feel any problem then you should try an OS reload using desktop software which will fix any software glitchs.
Click " Like " if you want to Thank someone.
If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it. -
A fatal error has occured while updating your device's software
I have a problem I hope you guys can help me.
Blackberry Model: 8820
Device Software version: 4.5.0.55
Desktop Software version: 4.7.0.37
Carrier: Singapore Telecom Mobile Pte Ltd(https://www.blackberry.com/Downloads/browseSoftware.do)
Everytime I start up my desktop software, it would prompt me that there are newer versions for some of the applications in my blackberry such as my browser, brickbreaker etc. So I followed through their instructions to install these updates. When it reached step 3/11, an error would occur while it say it was trying to turn on my radio
Here's the screenshot of the error:
[URL=http://img199.imageshack.us/i/errortac.jpg/][IMG]http://img199.imageshack.us/img199/761/errortac.th.jpg[/IMG][/URL]
But I do observed that @ task 1/11, it switched off my radio. @ task 3/11 it tried to switch back on again. thats when the error occured.
when I unplugged my device after the error, I saw that my mobile connection was off and my blackberry had to re-connect again. I do admit that my area has pretty bad reception, but that cant be the problem right?
On top of that, maybe I also like to pop another 2 questions:
1) Why is it I cant set up my email? I followed the instructions here:
http://na.blackberry.com/eng/support/blackberry101/setup.jsp#tab_tab_email
but my setup wizard dont have the option to select "I want to create or add an email address"
I only gives me the option of the enterprise mail
2) I tried to browse to to te blackberry website using my blackberry, but its says my device is not supported. Any way to solve this?
Message Edited by howb21 on 07-09-2009 12:44 AMdoes this help ?
http://www.blackberry.com/btsc/KB02696
Unable to complete loading operation. Fatal error occurred when updating handheld
The search box on top-right of this page is your true friend, and the public Knowledge Base too: -
Error ORA-01779 while updating view
I am using oracle 9i version is 9.2.0.1.0, While updating i am getting error,which i mention below.
ORA-01779:cannot modify a column which maps to a non key-preserved table
In this view there is no any group function.
Help me please.ORA-01779:
cannot modify a column which maps to a non key-preserved table
Cause: An attempt was made to insert or update columns of a join view which map to a non-key-preserved table.
Action: Modify the underlying base tables directly. -
Total disaster again, 6.1.2. destroyed my battery life, this update my total phone! It locked up while updating, by giving me error code 1602. All the USB crap tha apple indicates is non applicable for me! new cable on a a powerbook, lates itunes version etc. Waht to do now, obviously there is no software anymore on the phone, and Itunes does not recognize the phone anymore!!!!
Error 1604
This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode,put it into Recovery Mode.
Restore and wait for the error.
When prompted, click OK.
Close and reopen iTunes while the device remains connected.
The device should now be recognized in Recovery Mode again.
Try to restore again.
If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.
Error 1600, 1601, 1602
Follow the steps listed above for Error 1604. This error may also be resolved by disabling, deactivating, or uninstalling third-party security, antivirus, and firewall software. See steps in this article for details on troubleshooting security software.
Error 1603 -
Error code A12E1 while updating Creative Cloud
Hello,
The title of this topic says enough, I think. While updating Creative Cloud I get an error code A12E1. What is this and how can I fix this problem?
Thanks!Hi Niels Joormann,
Please follow these steps to fix this issue.
Please launch task manager and check whether any Adobe updater or Acrotry process is running. If yes please close them before you perform these steps.
Download and run Adobe Creative Cloud Cleaner Tool. You can download it from this Website
http://www.adobe.com/support/contact/cscleanertool.html
Once done please rename OOBE Folder to OOBE.old from the mentioned location.
C:\Program Files (x86)\Common Files\Adobe
Download and Install Creative Cloud Desktop App from this Location
https://creative.adobe.com/products/creative-cloud
If none of the above steps work then please create another Admin user Account and try to install Creative Cloud Desktop app there.
Please let us know if it helps.
Regards,
Abhijit -
Installation error occured(20) while updating i touch need help
I am having iTunes version 8 and was trying to update my ipod who's version is 1.1.5 to 1_1.1 but while updating every time got an erro message that "The ipod could not be updated as an unknown error occured(20).
because of this problem iam unable to update my itouch. Please give me some solution.That means you have a jailbroken iphone - per the tos of the forum, you can't get any help here.
-
ERROR CODE 8024404 WHILE UPDATING WINDOWS SERVER 2008 ENTERPRISES EDITION SP1
Hi ,
i am getting error while updating windows updates i have tried disable Escan anti virus i tried again to update windows but same error showingHi,
Based on current situation, please run this Fix tool. Then check if this issue still persists.
Fix the problem with Microsoft Windows Update that
is not working
If still exists, please refer to the following KB and reset Windows Update components. Then monitor the result.
How do I reset Windows Update components?
Meanwhile, you can also use the System Update Readiness tool and then reinstall the update again. For more
details, please refer to this KB.
In addition, regarding to going further analysis, we can check the WindowsUpdate.log file. It may provide more
details. For detailed operations, please refer to the following KB.
How to read the Windowsupdate.log file
Hope this helps.
Best regards,
Justin Gu
Maybe you are looking for
-
When I launch iPhoto, everything seems to be okay, but then a window pops out that says something like, iPhoto cannot launch the library because a newer version of iPhoto has changed it. Please launch the newer version. The thing is, I haven't instal
-
Error in Planning through Workspace
Hey All, When I try to open Classic Planning Administration from workspace Navigate->Administer->Classic Application Administration , I am getting error : Invalid or couldn't find module configuration , when I click on OK I am getting error : require
-
I have a WRT54G ver 8.2 router that is hard wired to 2 desktop computers and wireless to a laptop computer. In the past I would turn the dsl modem, router, and the computers off at night. The next morning,I would turn everything on again. The 2 deskt
-
Pushing connections from the VPN to the router.
I am trying to set up a VPN on Snow Leopard Server. What I have now, when one connects to the VPN, the server assigns an IP address to the one who connects and their connection is sent out from the server. Instead of this, I would like the server to
-
The server failed to resume the transaction. Desc:4500000006
I am calling single store procedure from asp.net C# which basically insert/update data in two different tables. I am using SQL transaction in store procedure. I am getting exception THE SERVER FAILED TO RESUME THE TRANSACTION, DESC:4500000006. THE TR