I do not obtain to change value in price conditions bapi CHANGE_SALES_ORDER
Hi all,
We are developing a new solution using this RFC to maintain Sales Orders from the Legacy System.
In some situations, it will be necessary to change values of the Item Price Conditions in Sales Orders already created, in order to attend a Legacy Systems requests.
We tried to use the follow keys, but without a good result:
IX_KONVKOMX-UPDKZ = D (Delete) - Doesn't works
IX_KONVKOMX-UPDKZ = U (Update) - Insert a new line in Pricing
IX_KONVKOMX-UPDKZ = I (Insert) - Works as U (Update)
Could you please clarify why the key "U" doesn't works as Update and
if there is any way to make this kind of modification?
I verified you vary answers in this forum, but none was useful.
Thanks a lot
example:-
*& Report ZSALESORDER_CHANGE
REPORT ZSALESORDER_CHANGE MESSAGE-ID 38.
Selection Screen Definitions *
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
Internal Tables/Structures/Variables for calling BAPI. *
DATA: i_hdr TYPE bapisdh1,
i_hdrx TYPE bapisdh1x,
i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
wa_ret TYPE bapiret2.
DATA: BEGIN OF i_sched OCCURS 10.
INCLUDE STRUCTURE bapischdl.
DATA: END OF i_sched.
DATA: BEGIN OF i_schedx OCCURS 10.
INCLUDE STRUCTURE bapischdlx.
DATA: END OF i_schedx.
START-OF-SELECTION Event *
START-OF-SELECTION.
*" Initialize internal tables.
REFRESH: i_sched, i_schedx, i_ret.
CLEAR: i_sched, i_schedx, i_ret.
*" Fill required ORDER_HEADER_IN data.
i_hdrx-updateflag = 'U'.
*" Fill required SCHEDULE_LINES data.
i_sched-itm_number = p_posnr.
i_sched-sched_line = p_etenr.
i_sched-req_qty = p_reqqty.
i_schedx-updateflag = 'U'.
i_schedx-itm_number = p_posnr.
i_schedx-sched_line = p_etenr.
i_schedx-req_qty = 'X'.
APPEND i_sched.
APPEND i_schedx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = i_hdr
order_header_inx = i_hdrx
TABLES
return = i_ret
schedule_lines = i_sched
schedule_linesx = i_schedx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP.
Similar Messages
-
Change orders item price conditions
Hi all !!
I have to change/update orders item price condition in a report.
I think is possible calling the function CRM_ORDER_MAINTAIN but I do not manage to do that.
The CT_INPUT_FIELDS have these values:
REF_GUID = item guid
REF_KIND = 'B'
OBJECTNAME = 'PRIDOC'
Is it correct ?
Which others parameters have to be passed to the function?
Thanks in advance for your help!!
Elenaexample:-
*& Report ZSALESORDER_CHANGE
REPORT ZSALESORDER_CHANGE MESSAGE-ID 38.
Selection Screen Definitions *
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
Internal Tables/Structures/Variables for calling BAPI. *
DATA: i_hdr TYPE bapisdh1,
i_hdrx TYPE bapisdh1x,
i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
wa_ret TYPE bapiret2.
DATA: BEGIN OF i_sched OCCURS 10.
INCLUDE STRUCTURE bapischdl.
DATA: END OF i_sched.
DATA: BEGIN OF i_schedx OCCURS 10.
INCLUDE STRUCTURE bapischdlx.
DATA: END OF i_schedx.
START-OF-SELECTION Event *
START-OF-SELECTION.
*" Initialize internal tables.
REFRESH: i_sched, i_schedx, i_ret.
CLEAR: i_sched, i_schedx, i_ret.
*" Fill required ORDER_HEADER_IN data.
i_hdrx-updateflag = 'U'.
*" Fill required SCHEDULE_LINES data.
i_sched-itm_number = p_posnr.
i_sched-sched_line = p_etenr.
i_sched-req_qty = p_reqqty.
i_schedx-updateflag = 'U'.
i_schedx-itm_number = p_posnr.
i_schedx-sched_line = p_etenr.
i_schedx-req_qty = 'X'.
APPEND i_sched.
APPEND i_schedx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = i_hdr
order_header_inx = i_hdrx
TABLES
return = i_ret
schedule_lines = i_sched
schedule_linesx = i_schedx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP. -
Fix value header price condition
Hi all,
We have a header condition price that is a fix value. However, it takes into account the number of positions.
For example, let's say that this price condition is 1. There are 10 positions and the price of all of them is 10, so the gross amount is 100. The value of this condition is 1x10 (number of positions) instead of 1.
Does anybody know why this price condition takes into account the number of positions if it is a header fix value?
Thanks in advanced.
MarSystem does not make any changes to existing document. All the changes are applicable to documents created after changing material master etc...so in your case there will be no change on existing PO and corresponding Goods receipts.
-
Not able to change values in the Property Inspector
Hello!
Can some one please help me with this. I was working in
Director when I noticed that all of a sudden I wasn't able to
change the values in the property inspector, specifially the sprite
properties such as the x and y coordinates and the width and
height. I'll type in a value and then I will get an error sound and
it will revert to the previous value. How can I fix this??
Thanks!Hi Ringerz,
I've seen the PI lock up sometimes. What usually works is to
switch to List Viw
Mode. Never have trouble there. Then, close Director and
reopen. Think it's jus a
bug that hasn't been fixed yet.
regards
Dean
Director Lecturer / Consultant / Director Enthusiast
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au
email: [email protected] -
Dropdown by key does not allow to change values
Hi experts,
I have drop down by key and input field in ALV coulmn as cell variants.
The input field is editable but i cannot change the values of drop down. The list of drop down is filled.
Could you plz suggest me some solution.
Regards,
Arti.WHEN 'FIELD'.
CLEAR lr_col_header.
lr_col_header = ls_column-r_column->create_header( ).
lv_field_header = zcl_zxa_str=>get_otr( 'Z45/FIELD_HEADER' ).
lr_col_header->set_text( lv_field_header ).
lr_col_header->set_tooltip( lv_field_header ).
CREATE OBJECT lr_drdn_by_key
EXPORTING
selected_key_fieldname = ls_column-id.
lr_drdn_by_key->set_selected_key_fieldname( 'DRP_DWN_VALUES' ).
lr_drdn_by_key->set_key_visible( abap_true ).
wd_this->add_cell_variant( io_column = ls_column-r_column
io_cell_editor = lr_drdn_by_key
iv_variant_column_name = 'CELL_VARIANT'
iv_variant_key_value = 'DROPDOWN_BY_KEY' ).
CREATE OBJECT lr_input_field
EXPORTING
value_fieldname = ls_column-id.
wd_this->add_cell_variant( io_column = ls_column-r_column
io_cell_editor = lr_input_field
iv_variant_column_name = 'CELL_VARIANT'
iv_variant_key_value = 'INPUT_FIELD' ). -
Changing value EBAN-BADAT with bapi BAPI_REQUISITION_CHANGE.
Now, a real question.
I need to modify the value of the field BADAT from EBAN.
Do you know if I can do that using bapi BAPI_REQUISITION_CHANGE.
Thanks!!!!Hi,
You can use the FM BAPI_REQUISITION_GETDETAIL to get the details and BAPI_REQUISITION_CHANGE to change the same.
Else you can go for the FMs
MASS_CHANGE_PURCHASE_REQ
ME_UPDATE_REQUISITION
to update EBAN Table's entries.
Regards,
S.Dakshna Nagaratnam -
Join is not working for NULL values on join condition
HI ,
I have the following problem .
SQL> select *from a;
X Y
1
2
3
4
SQL> select *from b;
B Y
1
2
SQL> select f.x,f.y,s.b from a f,b s
2 where f.x=s.b(+);
X Y B
1 1
2 2
4
3
SQL> select f.x,f.y,s.b from a f,b s
2 where f.x=s.b(+)
3 and f.y=s.y;
no rows selected
So now if i include one more join condition where in null = null situation arises , it is now working.
Simply saying its not treating ( 1 and null ) and ( 1 and null ) are same.
What is the solution.Is this a expected behaviour.
Thanks
Pramod GarreHI
I want something like this
SQL> select f.x,f.y,s.b from a f,b s
2 where f.x=s.b(+);
X Y B
1 1
2 2
4
3
SQL> select f.x,f.y,s.b from a f,b s
2 where f.x=s.b(+)
3 and f.y=s.y;
Instead of "now Rows " i have to get
X Y B
1 1
2 2
4
3
Is there is any way to do this.
Thanks
Pramod -
I cut out some photos of my library, but on the iPad, although Ihave synchronized after the changes, it always displays the oldversions of my images (those not changed).
Simon:
As Tubby pointed out, your dbms_output commands do not display the value you selected in the trigger. Your trigger based demonstration needs to be more like:
SQL> SELECT * FROM t;
ID DT
1 05-SEP-2009
2 17-JUL-2009
SQL> CREATE TRIGGER t_ai
2 AFTER INSERT OR UPDATE ON t
3 FOR EACH ROW
4 DECLARE
5 PRAGMA AUTONOMOUS_TRANSACTION;
6 l_dt t.dt%TYPE;
7 BEGIN
8 SELECT dt INTO l_dt
9 FROM t
10 WHERE id = :new.id;
11 DBMS_OUTPUT.Put_Line ('ID: '||:new.id);
12 DBMS_OUTPUT.Put_Line ('Old dt: '||:old.dt);
13 DBMS_OUTPUT.Put_Line ('New dt: '||:new.dt);
14 DBMS_OUTPUT.Put_Line ('Aut dt: '||l_dt);
15 END;
16 /
Trigger created.
SQL> UPDATE t SET dt = sysdate WHERE id = 2;
ID: 2
Old dt: 17-JUL-2009
New dt: 25-OCT-2009
Aut dt: 17-JUL-2009
1 row updated.So, the automomous transaction select did not see the changed value of dt.
I know you are just trying to understand automomous transactions here and would never do sometihg like this in production right? :-)
Your trigger, as written, has some interesting side effects because of the automomous transaction. For example:
SQL> INSERT INTO t VALUES(3, sysdate - 25);
INSERT INTO t VALUES(3, sysdate - 25)
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "OPS$ORACLE.T_AI", line 5
ORA-04088: error during execution of trigger 'OPS$ORACLE.T_AI'
SQL> UPDATE t SET id = 3 where trunc(dt) = TO_DATE('05-Sep-2009', 'dd-mon-yyyy');
UPDATE t SET id = 3 where trunc(dt) = TO_DATE('05-Sep-2009', 'dd-mon-yyyy')
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "OPS$ORACLE.T_AI", line 5
ORA-04088: error during execution of trigger 'OPS$ORACLE.T_AI'John -
"An autonomous transaction does not see any changes made by main transact"
Hi,
I'm trying to reproduce the "An autonomous transaction does not see any changes made by main transaction" reffered on :
Oracle® Database Application Developer's Guide - Fundamentals
10g Release 2 (10.2)
Part Number B14251-01
chapter 2 SQL Processing for Application Developers
Paragraph : Autonomous TransactionsI set up a simple case...
create table emp_ as select * from emp
begin
update emp_ set hiredate=hiredate+100 where empno=7934;
end;
create or replace trigger trg_emp_
after insert or update on emp_
for each row
declare
pragma autonomous_transaction;
emp_var emp.hiredate%type;
begin
select hiredate
into emp_var
from emp_
where empno=:new.empno;
dbms_output.put_line('empno: '||:new.empno);
dbms_output.put_line('old hiredate: '||:old.hiredate);
dbms_output.put_line('new hiredate: '||:new.hiredate);
end;Prior to any change...
SQL> select empno,hiredate from emp_;
EMPNO HIREDATE
5498 21/4/1982
5499 11/10/1981
5411 10/10/1981
5410 10/10/1982
7369 17/12/1980
7499 20/2/1981
7521 22/2/1981
7566 2/4/1981
7654 28/9/1981
7698 1/5/1981
7782 9/6/1981
7788 19/4/1987
7839 17/11/1981
7844 8/9/1981
7876 23/5/1987
7900 3/12/1981
7902 3/12/1981
7934 23/1/1982After the change...
SQL> begin
2 update emp_ set hiredate=hiredate+100 where empno=7934;
3 end;
4 /
empno: 7934
old hiredate: 23/01/82
new hiredate: 03/05/82
PL/SQL procedure successfully completedAccording to the Oracle doc the select of the autonomous transaction should not see the change made to the hiredate column of the table in the main transaction(in the anonymous block)....
What may i do wrong..????
Thank you,
SimSimon:
As Tubby pointed out, your dbms_output commands do not display the value you selected in the trigger. Your trigger based demonstration needs to be more like:
SQL> SELECT * FROM t;
ID DT
1 05-SEP-2009
2 17-JUL-2009
SQL> CREATE TRIGGER t_ai
2 AFTER INSERT OR UPDATE ON t
3 FOR EACH ROW
4 DECLARE
5 PRAGMA AUTONOMOUS_TRANSACTION;
6 l_dt t.dt%TYPE;
7 BEGIN
8 SELECT dt INTO l_dt
9 FROM t
10 WHERE id = :new.id;
11 DBMS_OUTPUT.Put_Line ('ID: '||:new.id);
12 DBMS_OUTPUT.Put_Line ('Old dt: '||:old.dt);
13 DBMS_OUTPUT.Put_Line ('New dt: '||:new.dt);
14 DBMS_OUTPUT.Put_Line ('Aut dt: '||l_dt);
15 END;
16 /
Trigger created.
SQL> UPDATE t SET dt = sysdate WHERE id = 2;
ID: 2
Old dt: 17-JUL-2009
New dt: 25-OCT-2009
Aut dt: 17-JUL-2009
1 row updated.So, the automomous transaction select did not see the changed value of dt.
I know you are just trying to understand automomous transactions here and would never do sometihg like this in production right? :-)
Your trigger, as written, has some interesting side effects because of the automomous transaction. For example:
SQL> INSERT INTO t VALUES(3, sysdate - 25);
INSERT INTO t VALUES(3, sysdate - 25)
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "OPS$ORACLE.T_AI", line 5
ORA-04088: error during execution of trigger 'OPS$ORACLE.T_AI'
SQL> UPDATE t SET id = 3 where trunc(dt) = TO_DATE('05-Sep-2009', 'dd-mon-yyyy');
UPDATE t SET id = 3 where trunc(dt) = TO_DATE('05-Sep-2009', 'dd-mon-yyyy')
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "OPS$ORACLE.T_AI", line 5
ORA-04088: error during execution of trigger 'OPS$ORACLE.T_AI'John -
Hello,
We recently upgrade our SQL Server 2012 SP1 (64bit) dev edition to standard edition, after we purchased the required licence and it was deployed in production.
Since the edition change, we are now receiving the following error, with some of our jobs, which have an e-mail step in them, which is causing the jobs to fail.
Msg 14661,Level 16, State 1, Procedure sp_send_dbmail, Line 517
Query execution failed: Msg 15404, Level 16, State 19, Server BL-SVR15, Line 1
Could not obtain information about Windows NT group/user 'BLUELIZARD\savaa', error code 0x6e.
Any ideas how to fix this issue? We were also having a similar error, when executing the jobs, but changing the job owner to SA has fixed this issue.
Thanks,
Andy.Hi,
Which user account you used for SQL Server service, domain account or local account?
If it is domain account, are you able to log in to a machine with it?
Make sure that the password of account is not expired.
Also, grant the user Allowed to Authenticate permission and see how it helps.
Refer to the below article:
http://geeks.ms/blogs/ozonicco/archive/2013/01/14/208266.aspx
Thanks.
Tracy Cai
TechNet Community Support -
I am not able to change exportfolders value in MBeans for FRConfig.cmd for Hyperion 11.1.2 Financial reporting .
When I enter the value , it just vanishes. Am I missing something here.?
I need to set export path for PDF generation in Hyperion financial report for batches.Edit FRConfig.cmd and update
set EPM_ORACLE_INSTANCE=%MIDDLEWARE_HOME%\user_projects\epmsystem1
update epmsystem1 to the correct epm instance name
Cheers
John
http://john-goodwin.blogspot.com/ -
Not able to change the value in 'sold to party' once disabled.
Hi,
I am validating the Business partner entered in the 'sold to party' field while creating a sales order in webclient UI.
The error message pop up as expected but the field becomes disabled. I tried changing the field to editable by setting rv_disabled = 'FALSE' in method GET_I_SOLDTO_NAME.
Now the field is editable but it does not take the new value which i enter. it takes the old value only.
How do i make the field to accept new values?
Thanks in advance.
Regards
Shanthi.Hi Shanthi,
Just check small config in your Partner determination profile if it helps you:
Path: SPRO->CRM->Partner Processing->Define Partner Determination Procedure-
Open you Partner determination Profile and go in details Sold-to-party partner and Mark Check box Changable to allow to make changes in partner.
Regards,
Dipesh. -
Not able to get changed values in the SAVE EVENT in ServHPartnerDet view
Hi Experts,
I am new CRM WEB IC, i have requirement like need to access four IBASE fields from BupaIbaseDetail and need to display those fiedls in ServHPartnerDet view. I am able display the fields and its values in the target view. But when user press change button and changes those four fields and press save button not able get the changed values in to the SAVE EVENT.Anyone please help me in this.
IBHEADER , IBASEADDRESS are the CONTEXT NODE CREATED in target view. I have binded IBHEADER to CuCoIbase custom controller and getting four fields data from IBASEADDRESS. below is the code for CREATE_CONTEXT_NODES.
METHOD create_ibaseaddress.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_CRM_IC_SERVHPDET_CN00'
model_id = 'IBaseAddress' ). "#EC NOTEXT
ibaseaddress ?= model.
CLEAR model.
coll_wrapper =
ibheader->get_collection_wrapper( ).
TRY.
entity ?= coll_wrapper->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
IF entity IS BOUND.
TRY.
entity_col = entity->get_related_entities(
iv_relation_name = 'FirstLevelComponent' ).
CATCH cx_crm_genil_model_error.
ENDTRY.
TRY.
entity ?= entity_col->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
CLEAR entity_col.
IF entity IS BOUND.
TRY.
entity_col = entity->get_related_entities(
iv_relation_name = 'ComponentAddress' ).
ibaseaddress->set_collection( entity_col ).
CATCH cx_crm_genil_model_error.
ENDTRY.
ENDIF.
ENDIF.
ENDMETHOD.Code i have written in the CREATE_CONTEXT_NODE method for my custom context nodes( IBHEADER,IBASEADDRESS).
this CREATE_IBHEADER some data related to IBASE header then from this reading the IBASEADDRESS contextnode fields for displaying in the ServHPartnerDet. It is working fine but After changing the four fields values in the ServHPartnerDet view and trying to save, then context is not reading the new values it gives the old values only.
TRY.
lr_coll_wr = ztyped_context->ibaseaddress->get_collection_wrapper( ).
IF lr_coll_wr IS BOUND.
lr_entity ?= lr_coll_wr->get_current( ).
ENDIF.
CATCH cx_crm_genil_model_error.
ENDTRY.
CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'BUILDING'
IMPORTING
ev_result = lw_building.
the building has got result of old value no the new value.
method CREATE_IBHEADER.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_CRM_IC_SERVHPDET_CN01'
model_id = 'IBHEADER' ). "#EC NOTEXT
IBHEADER ?= model.
CLEAR model.
bind to custom controller
DATA:
cuco TYPE REF TO cl_crm_ic_cucoibase_impl,
cnode TYPE REF TO cl_bsp_wd_context_node.
cuco ?= owner->get_custom_controller(
'CuCoIbase' ). "#EC NOTEXT
cnode ?=
cuco->typed_context->ibaseheader.
coll_wrapper = cnode->get_collection_wrapper( ).
ibheader->set_collection_wrapper( coll_wrapper ).
endmethod. -
Swf in IE 7 not changing value when variable value in flashvar changes...
Hi Friends,
Below is decription of the file
1. I have a flash file which is loading php variable through flash vars.
2. The flash var variable contains the .txt filename in which data is kept.
3. When I open the php page the swf loads with variable having .txt filename and value containing swf path.
4. I have created timer in flash which check for change of value.
5. When value changes the other flash file loads.
6. All this works fine in all browsers except IE 7
ONLY ISSUE WITH IE 7 is
1. The swf not changing when value changes.
WHAT I NOTICED
1. When we click to load another tab in the same IE 7 browser the changed value that is another swf loads.
WHAT I THINK
1. Refreshing browser when value changes will solve the issue in IE7.
Pls. let me know your suggestion and if possible solution to this issue.
Thanks in advance.
With Regards,
Sagar S. Ranpisecopy and paste your embedding html code.
-
photoshop elements 12 will not let me change the size values in pixels or ht and widlth, or resolution. How can I fix this? I have used this many times in the past and it has worked fine, but not today.
That did not change anything. But think I may have discovered part of the
problem. I found that if I use the numbers on the top of my keyboard,
rather than the side, it will change the numbers. So may actually be an
issue with a defective keyboard. will try to address that. thank you for
your help. The problem seemed to be patched for the moment
On Tue, Apr 21, 2015 at 11:50 AM, Deborah Burow <[email protected]>
Maybe you are looking for
-
Mail going to junk folder is not marked as junk
I have an automated email that I get occasionally. Without exception it ends up in the junk folder. However, even sitting in the junk folder, the message itself is not marked as junk. I've turned off all rules, and they still go to the junk folder. A
-
Is it possible to add a button into the spliter area of a JSplitPane?
I want to have a button in the spliter area of the JSplitPane. the purpose is to add an item from the upper component to the lower component. is it possible to do it in this way?
-
Which is Better? Mac or PC?
Which is Better? Intel iMac Mac OS X (10.4.5)
-
No video with Handbrake using Snow Leopard
Hi, I have a Macbook without Snow Leopard - version 10.5.8 I just got a Mac Mini with Snow Leopard. My Handbrake ( version 0.9.4 i386) works fine with my Macbook. I have the same version on the Mac Mini but after encoding I do not get any video - jus
-
How to install java 8 on os x yosimite?
?