CO11N Deactivation of Functions for a Confirmation
Hi,
I need to deactivate button "Actual Data" in CO11N.
I read that user exit CONF0001 can be used to deactivate function.
I asked abaper to write code to deactivate function code VOCO , VODO and VORS
but the deactivation is only works in confirmation other that CO11N
bacause when i debug, the exit is not called by CO11N
Is there any exit to deactivate function in CO11N
any idea is welcome
Thanx
Best regards,
Freddy Ha
Hi,
in OPK4 confirmation parameter i set do not propose quantity, i think it work for confirmation except CO11N.
In CO11N must use OPK0
using screen variant didnot set variant for button, menu and field is affected but not button.
I will try to discuss with ABAPER for checking AFRUD and VSDAT
will revert back for the result.
Thx
Best regards,
Freddy Ha
Similar Messages
-
Function Module for cancelling confirmation
Dear all,
Can u please tell me the function module used for cancel confirmation in cn29?
Regards,Hi Kumar,
For excuting the Fuunctional module BAPI_NETWORK_CONF_CANCEL abaper has to write some coding. Discuss with your abaper on this.
For more details on coding search in ABAP fourm.
Regards,
Nag. -
BAPI for Partial Confirmation CO11N
Dear Gurus,
REG : BAPI
How to get the actual activites for partial confirmation of qty
we have tried some bapis like for getting activites we have used
bapi_prodordconf_get_tt_prop
but in this bapi it is calculating total qty i.e, order qty not for the yeild qty.
I need to get the yeild qty planned activites
Tks
MuraliHi,
Check the Bapis
BAPI_PRODORDCONF_CREATE_TT
BAPI_PRODORDCONF_CREATE_HDR
Regards,
Raj. -
Parameters for Order Confirmation
Hi Experts,
How can i bring shift details in the tab general individual entry in the T-code OPK4 (Order Confirmation)...Where is the customization done for this screen...???
Regards,
Joseph.Dear,
SPRO : OPK4 select freely definable screen number & put shift in pushbutton. This will only display shift on CO11N screen
Business function set LOG_PP_SRN_CONF has been activated to enable the use of shift related confirmation subscreens.
Please go through this link.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c0fa9a04-376a-2c10-c396-86d32ac80614&overridelayout=true
http://help.sap.com/erp2005_ehp_03/helpdata/en/46/f2a5ce3cd767f9e10000000a1553f7/content.htm
Regards,
R.Brahmankar -
API/package/procedure/function for updating physical attributes in Org/Mast
I need some kind of procedure or function for updating the weight, volume, and dimensions in the organization and master items forms. We have almost 350,000 items and I want to update them in batch. Is there an API of some kind for this? I would do a simple update but I want to make sure there's no additional logic necessary (other tables that are updated during the process of updating those fields, etc).
Thanks!here is for API's you need to check...
You can use Decimal & UOM Quantity API
These APIs are used to handle item decimal quantities:
Convert from one UOM to another
Validate quantities at input time
Validate quantities at display/output time
Quantity Comparison
Get UOM information
For your convenience, I am giving you the API as below:
/*===========================================================================+
| Copyright (c) 1999 Oracle Corporation |
| Redwood Shores, California, USA |
| All rights reserved. |
+===========================================================================*/
/*-----------------------------------------------------------------------+
|This package contains procedures relevent to item decimal quantity |
|processing. This package contains routines to: |
|(1)validate item quantities based on UOM and decimal precision rules |
|(2)validate whether the UOM controls and decimal precision rules |
| themselves are correct based on functionality planned. For reviewing|
| UOM and decimal quantity functional design details, please visit the|
| following URL: |
| "http//apps-us.oracle.com/inv/development/designs_120/ |
| decimal_precision/decimal_precision.html" |
|But here are a few basics to give background context: |
| |
| "Item Quantity" -- The item's quantity is described by the item |
| identifier, the unit of measure (e.g. grams, kilos, etc), and a |
| number value to indicate the amount in that unit of measure. |
| |
| "Unit of Measure" -- Units of measure belong to unit of measure |
| classes(e.g. weight, volume, length, etc). Each unit of measure class|
| has actual units of measure that belong to that class (e.g. the |
| weight class may have units of measures like, "grams", "kilos", etc).|
| |
| "UOM Conversion" --Users can set up conversion rates between UOMs in |
| them same UOM class, by defining conversions to the base UOM. These |
| are standard conversions. Item-level intra-class conversions may also|
| be defined. When doing intra-class conversions, item-level |
| intra-class conversions are used first if defined, and then standard |
| conversions are used. |
| Users can define inter-class conversions. Inter-class Conversions may|
| also be defined at the lot/sublot levels. For inter-class conversions|
| sublot, lot, and then item inter-class conversions will be used in |
| in order. If lot-lvel conversion is not defined, then item-level |
| conversion is used. A strict hierarchy is imposed. |
| |
| "TU" -- Trasactable Unit.A UOM may have a TU. This implies |
| that when transacting in this UOM, any item's quantities will be |
| forced to be integer multiples of this TU quantity. The TU may also |
| be declared at the item level. The TU quantity at the item level may |
| be different from the UOM level TU, and if defined, item level TU |
| takes precedance. |
| |
| "Decimal Precision"--Users have a choice of setting decimal precision|
| at the base UOM for each UOM class. All other UOMs in that class get |
| get their decimal precisions derived from the base UOM decimal |
| precision, the converison rate, and TUs, if they are |
| being used. |
| |
| |
| "Conversion Rate Tolerance" -- This is a tolerance that may be set |
| when conversion rate cannot be not strictly fixed. Example: |
| 1 Chicken = 2 pounds (plus or minus 0.7 pounds). This 0.7 pounds is |
| the conversion rate tolerance. Conversion rate tolerance is only |
| definable at inter-class UOM conversions, at item or lot/sublot level|
| |
| History |
| 04/08/99 Mansoor Jafri Created Package Spec |
| 04/26/99 Mansoor Jafri Updated with TU at 3 levels as |
| opposed to MTU at 2 and atomic at|
| UOM class level. |
| 04/29/99 Mansoor Jafri Updated document with lot/sublot |
| conversions. Also, removed |
| "atomic" as a separate control, |
| since this can |
| implemented as a TU at base UOM |
| level with an integer quantity. |
| 05/03/99 Mansoor Jafri Updated the package with sublot |
| level control. Also, changed name|
| of DTU to TU, so that it fits |
| better in the "process" market. |
| Also, conformed to BOI API stds. |
+-----------------------------------------------------------------------*/
SET VERIFY OFF
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
CREATE OR REPLACE PACKAGE inv_decimals_pub AS
/* $Header: INVDECPS.pls 118.3 99/05/03 18:12:27 mjafri noship $ */
/*--------------------------------------------------------------------------+
|Procedure validate_compare_quantities(..)
|Returns the quantity converted from the first UOM in the second UOM.
|If quantities in 2 UOMs are already available, then this procedure will
|compare and validate these quantities based on conversion rates
|and UOM and decimal qty controls. This procedure may be used to validate
|scenarios where quatities are entered in dual UOMs. We want to make sure
|quantities are valid based on conversion, TUs, and conversion
|rate tolerances.
|
|Procedure validate_and_compare(
|p_api_version_number IN NUMBER, -- version # of API
|p_init_msg_list IN VARCHAR2, -- whether to initialize list
|p_inventory_item_id IN NUMBER, -- inventory_item_id
|p_organization_id IN NUMBER, -- organization_id
|p_lot_control_code IN NUMBER, -- item's lot control code
|p_lot_number IN VARCHAR2, -- lot number
|p_sub_lot_control_code IN NUMBER, --sub lot control code
|p_sublot_number IN VARCHAR2, -- sublot number
|p_from_quantity IN NUMBER, -- qty in first UOM
|p_from_uom_code IN VARCHAR2, -- UOM of fisrt qty
|p_to_uom_code IN VARCHAR2, -- UOM of second qty
|p_to_quantity_to_check IN NUMBER, -- qty in second UOM
|x_resultant_to_quantity OUT NUMBER, -- calculated qty in second UOM
|x_comparison OUT NUMBER,--Possible values are 1,0,-1,-99
|x_msg_count OUT NUMBER, -- number of messages
|x_msg_data OUT VARCHAR2, -- populated,if msg count = 1
|x_return_status OUT VARCHAR2) -- return status
|
|Note: The comparisons are done in base UOM
| of the UOM class to which the first UOM belongs. x_comparison returns:
|-1 if from_quantity is less than to_quantity (A < B)
| 0 if from_quantity is equal to to_quantity (A = B)
| 1 if from_quantity is greater than to_quantity (A > B)
| -99 if the validations for the first/second quantity failed
| If the UOMs belong to different classes, then users can specify whether
| they want to use the effective interclass UOM conversion tolerance, say, T.
| CASE: p_use_interclass_tolerance = 1
| ------
| Q1 > Q2 if (Q1 - Q2) >= T
| Q1 = Q2 if ABS(Q1 - Q2) < T
| Q1 < Q2 if (Q1 - Q2 ) <= -T
|
|The output variable x_resultant_to_quantity will contain the converted
|quantity
|in the second UOM, using effective conversion rates.
|Usage: In a dual UOM scenario, this api will confirm whether quantities in
|the two UOMs are equal or not, based on x_comparison output variable.
+--------------------------------------------------------------------------*/
Procedure validate_compare_quantities(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2,
p_inventory_item_id IN NUMBER,
p_organization_id IN NUMBER,
p_lot_control_code IN NUMBER,
p_lot_number IN VARCHAR2,
p_sub_lot_control_code IN NUMBER,
p_sublot_number IN VARCHAR2,
p_from_quantity IN NUMBER,
p_from_uom_code IN VARCHAR2,
p_to_uom_code IN VARCHAR2,
p_to_quantity_to_check IN NUMBER,
x_resultant_to_quantity OUT NUMBER,
x_valid_conversion OUT NUMBER,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCHAR2);
/*--------------------------------------------------------------------------+
|Function convert_UOM(..) return NUMBER ;
|Returns the quantity converted from the first unit into the second unit.
|If conversion is not possible, return status is failure.
|Function convert(
|p_api_version_number IN NUMBER,
|p_init_msg_list IN VARCHAR2, -- whether to initialize list
|p_inventory_item_id IN NUMBER, -- inventory_item_id
|p_organization_id IN NUMBER, -- organization_id
|p_lot_control_code IN NUMBER, -- item's lot control code
|p_lot_number IN VARCHAR2, -- lot number
|p_sub_lot_control_code IN NUMBER,
|p_sublot_number IN VARCHAR2,
|p_from_quantity IN NUMBER, -- qty in first UOM
|p_from_uom_code IN VARCHAR2, -- UOM of fisrt qty
|p_to_uom_code IN VARCHAR2, -- UOM of second qty
|x_msg_count OUT NUMBER,
|x_msg_data OUT VARCHAR2,
|x_return_status OUT VARCHAR2)
| return NUMBER ;
|If there is an error, then -99 is returned.
|1) From_quantity must be an absolute value.
|2) From_quantity will be truncated to decimal precision in the from UOM, then
| converted to base UOM in the class,
|3) Then converted to base UOM of the
| to_UOM class,
|4) Then converted to the quantity in to_UOM,
|5) Then truncated to decimal precision of the to_UOM.
+--------------------------------------------------------------------------*/
Function convert_UOM(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
p_inventory_item_id IN NUMBER,
p_organization_id IN NUMBER,
p_lot_control_code IN NUMBER,
p_lot_number IN VARCHAR2,
p_sub_lot_control_code IN NUMBER,
p_sublot_number IN VARCHAR2,
p_from_quantity IN NUMBER,
p_from_uom_code IN VARCHAR2,
p_to_uom_code IN VARCHAR2,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCHAR2) return NUMBER ;
/*--------------------------------------------------------------------------+
| get_uom_properties(..)
| This procedure is used to interrogate the UOM.
| It returns:
| (1) decimal precision at the UOM level
| (2) TU, if defined, at the UOM level
| (3) Atomicity, if defined for the class that this UOM belongs to
| If some of the controls are not defined, null values are returned.
| if the UOM is not found, the return status indicates this.
| Procedure get_uom_properties(
| p_api_version_number IN NUMBER,
| p_init_msg_list IN VARCHAR2,
| p_uom_code IN VARCHAR2,
| x_decimal_precision OUT NUMBER,
| x_uom_TU OUT NUMBER,
| x_uom_class OUT VARCHAR2,
| x_msg_count OUT NUMBER,
| x_msg_data OUT VARCHAR2,
| x_return_status OUT VARCAHR2);
+--------------------------------------------------------------------------*/
Procedure get_uom_properties(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
p_uom_code IN VARCHAR2,
x_decimal_precision OUT NUMBER,
x_uom_TU OUT NUMBER,
x_uom_class OUT VARCHAR2,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCAHR2);
/*-------------------------------------------------------------------------+
| get_item_uom_properties(..)
| This procedure returns a specific item's primary UOM, TU, and tolerance
| Procedure get_item_uom_properties(
| p_api_version_number IN NUMBER,
| p_init_msg_list IN VARCHAR2,
| p_inventory_item_id IN NUMBER,
| p_organization_id IN NUMBER,
| p_lot_control_code IN NUMBER, -- item's lot control code
| p_lot_number IN VARCHAR2,
| p_sub_lot_control_code IN NUMBER,
| p_sublot_number IN VARCHAR2,
| x_primary_uom_code OUT VARCHAR2,
| x_uom_class OUT VARCHAR2,
| x_decimal_precision OUT NUMBER,
| x_item_TU OUT NUMBER,
| x_uom_TU OUT NUMBER,
| x_effective_TU OUT NUMBER,
| x_msg_count OUT NUMBER,
| x_msg_data OUT VARCHAR2,
| x_return_status OUT VARCHAR2 );
| If the item is not a valid one, then this is reflected through the
| return status.
+-------------------------------------------------------------------------*/
Procedure get_item_uom_properties(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
p_inventory_item_id IN NUMBER,
p_organization_id IN NUMBER,
p_lot_control_code IN NUMBER,
p_lot_number IN VARCHAR2,
p_sub_lot_control_code IN NUMBER,
p_sublot_number IN VARCHAR2,
x_primary_uom_code OUT VARCHAR2,
x_uom_class OUT VARCHAR2,
x_decimal_precision OUT NUMBER,
x_item_TU OUT NUMBER,
x_class_TU OUT NUMBER,
x_uom_TU OUT NUMBER,
x_effective_TU OUT NUMBER,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCHAR2 );
/*-------------------------------------------------------------------------+
| Procedure compare_quantities(..)
| Procedure compare_quantities(
| p_api_version_number IN NUMBER,
| p_init_msg_list IN VARCHAR2,
| p_inventory_item_id IN NUMBER,
| p_organization_id IN NUMBER,
| p_lot_control_code IN NUMBER,
| p_lot_number IN VARCHAR2,
| p_sub_lot_control_code IN NUMBER,
| p_sublot_number IN VARCHAR2,
| p_fisrt_qauantity IN NUMBER,
| p_first_uom IN VARCHAR2,
| p_second_quantity IN NUMBER,
| p_second_uom IN VARCHAR2,
| p_use_interclass_tolerance IN VARCHAR2, -- Yes = 1, 2 = No
| x_comaprison_result OUT NUMBER,
| x_msg_count OUT NUMBER,
| x_msg_data OUT VARCHAR2,
| x_return_status OUT VARCHAR2);
|
| This procedure compares the quantities A and B and returns result in the
| output variable x_comparison_result. The comparisons are done in base UOM
| of the UOM class to which the first UOM belongs:
|-1 if quantity A is less than quantity B (A < B)
| 0 if quantity A is equal to quantity B (A = B)
| 1 if quantity A is greater than quantity B (A > B)
| If the UOMs belong to different classes, then users can specify whether
| they want to use interclass UOM conversion tolerance, say, T.
| CASE: p_use_interclass_tolerance = 1
| ------
| Q1 > Q2 if (Q1 - Q2) >= T
| Q1 = Q2 if ABS(Q1 - Q2) < T
| Q1 < Q2 if (Q1 - Q2 ) <= -T
+------------------------------------------------------------------------*/
Procedure compare_quantities(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
p_inventory_item_id IN NUMBER,
p_organization_id IN NUMBER,
p_lot_control_code IN NUMBER,
p_lot_number IN VARCAHR2,
p_sub_lot_control_code IN NUMBER,
p_sublot_number IN VARCHAR2,
p_fisrt_qauantity IN NUMBER,
p_first_uom IN VARCHAR2,
p_second_quantity IN NUMBER,
p_second_uom IN VARCHAR2,
p_use_interclass_tolerance IN VARCHAR2,
x_comaprison_result OUT NUMBER,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCHAR2);
/*-----------------------------------------------------------------------+
| Procedure Validate_Quantity(
| p_api_version_number IN NUMBER,
| p_init_msg_list IN VARCHAR2,
| p_inventory_item_id IN NUMBER,
| p_organization_id IN NUMBER,
| p_lot_control_code IN NUMBER,
| p_lot_number IN VARCHAR2,
| p_sub_lot_control_code IN NUMBER,
| p_sublot_number IN VARCHAR2,
| p_input_quantity IN NUMBER,
| p_UOM_code IN VARCHAR2,
| x_msg_count OUT NUMBER,
| x_msg_data OUT VARCHAR2,
| x_return_status OUT VARCHAR2);
|
| Validates and returns the quantity in this manner (the caller does not need
| to adjust the result):
| 0. Truncate to and validate decimal precision
| 1. Validate quantity with respect to TU controls.
+-------------------------------------------------------------------------*/
Procedure Validate_Quantity(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
p_inventory_item_id IN NUMBER,
p_organization_id IN NUMBER,
p_lot_control_code IN NUMBER,
p_lot_number IN VARCAHR2,
p_sub_lot_control_code IN NUMBER,
p_sublot_number IN VARCHAR2,
p_input_quantity IN NUMBER,
p_UOM_code IN VARCHAR2,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCHAR2);
/*------------------------------------------------------------------------+
| Function Truncate_Quantity(
| p_api_version_number IN NUMBER,
| p_init_msg_list IN VARCHAR2,
| p_inventory_item_id IN NUMBER,
| p_organization_id IN NUMBER,
| p_lot_control_code IN NUMBER,
| p_lot_number IN VARCHAR2,
| p_sub_lot_control_code IN NUMBER,
| p_sublot_number IN VARCHAR2,
| p_input_quantity IN NUMBER,
| p_UOM_code IN VARCHAR2,
| x_msg_count OUT NUMBER,
| x_msg_data OUT VARCHAR2,
| x_return_status OUT VARCHAR2) return NUMBER;
|
| Truncates the quantity to decimal precision of the UOM.
| In case of error conditions, -99 is returned.
+------------------------------------------------------------------------*/
Function Truncate_Quantity(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
p_inventory_item_id IN NUMBER,
p_organization_id IN NUMBER,
p_lot_control_code IN NUMBER,
p_lot_number IN VARCHAR2,
p_sub_lot_control_code IN NUMBER,
p_sublot_number IN VARCHAR2,
p_input_quantity IN NUMBER,
p_UOM_code IN VARCHAR2,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
x_return_status OUT VARCHAR2) return NUMBER;
* show errors package INV_DECIMALS_PUB
* SELECT to_date('SQLERROR') FROM user_errors
* WHERE name = 'INV_DECIMALS_PUB'
* AND type = 'PACKAGE';
commit;
exit; -
Enable Dual control function for FBZ2
Hi,
Its related to Dual control functionality for vendor master data. I got a issue, if I change the sensitive fields for a vendor master and run F110, then it shows exception that vendor master not yet confirmed.
IS it possible to post outgoing payment through transaction FBZ2, in this case?
I have seen some transactions where the clearing document was posted by transfering the payable amount to intercompany or offsetting account and making payment later, without getting any exception, eventhough vendor master change not yet confirmed.hello, anisha.
like you, i have also wondered what the payment block in the customer master is for. after reading the documentation and asking an FI consultant, i gather that this block is apparently used to prevent automatic payment transactions for a customer.
again, why anyone would want to automatically post payments for a customer is an issue i wish to explore. perhaps this applies to scenarios where very many customers pay the exact invoice amount or have the payments guaranteed? or perhaps to prevent automatic offsetting of a customer/vendor account?
regards.
Edited by: jonathan y on May 6, 2009 10:23 AM -
Smartform print program for order confirmation
Hi experts.
I am looking for a smartform print program for order confirmation.
The order confirmation in standard is a script with the name RVADOR01 and I tried to copy and change but I don't know which to eliminate and whcih to keep it.
If any body written the program already please provide me or provide the link to check.
Thanks in advance
Saithis is the processing form.
form processing.
data: lf_fm_name type rs38l_fnam.
data: ls_control_param type ssfctrlop.
data: ls_composer_param type ssfcompop.
data: ls_recipient type swotobjid.
data: ls_sender type swotobjid.
data: lf_formname type tdsfname.
data: ls_addr_key like addr_key.
data: document_output_info type ssfcrespd,
job_output_info type ssfcrescl,
job_output_options type ssfcresop.
perform get_data.
check retcode = 0.
perform set_print_param using addr_key
changing ls_control_param
ls_composer_param
ls_recipient
ls_sender
retcode.
*Get the Smart Form name.
if not tnapr-sform is initial.
lf_formname = tnapr-sform.
else.
message e001(/smb40/ssfcomposer).
endif.
determine smartform function module for invoice
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = lf_formname
importing
fm_name = lf_fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
error handling
retcode = sy-subrc.
if sy-subrc = 1.
message e001(/smb40/ssfcomposer).
endif.
if sy-subrc = 2.
message e002(/smb40/ssfcomposer) with lf_formname.
endif.
perform protocol_update.
endif.
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
is_nast = nast
is_vbdka = vbdka
is_addres = addr_key
importing
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
tables
it_vbdpa = tvbdpa "Item information
it_vbdpau = tvbdpau "Subitem numbers
it_vedpa = tkomservp "Contract Item Validity
it_vedka = tkomservh "Contract Header Validity
it_vedpn = tkomservpn "Contract Item Cancellation Data
it_vedkn = tkomservhn "Contract Header Cancellation DA
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
retcode = sy-subrc.
perform protocol_update.
get SmartForm protocoll and store it in the NAST protocoll
perform add_smfrm_prot.
endif.
endform. "processing -
Hi Gurus,
Can anyone let me know the BAPI name to be used for REM confirmation? I have inputs as Material and Quantty from a 3rd party tool. With only these two inputs, I want system to post GR and GI. All other fields can be defaulted.
Thanks in advance.
SumeetHi Vishal,
Yes. I have been trying the same BAPI since yesterday but facing some issue. In the output I can see confirmation number but not other output. BAPI is not even returing a message.
In the intervals of two attempts I also get an error "Function module MB_CREATE_GOODS_MOVEMENT cannot be executed"
Can you let me know what to check.
Sumeet
Edited by: Sumeet Vaidya on Apr 8, 2011 11:11 AM
Edited by: Sumeet Vaidya on Apr 8, 2011 11:12 AM -
Bapi For Production Confirmation ?
Hi,
I am using "BAPI_PRODORDCONF_CREATE_TT" for production confirmation.
I need to also pass the corresponding goods movement for the order operation. How to achieve this. and also what are the mandatory fields to be supplied for good movement.
Regards,
Navneeth K.Hi Bothra,
Follow the sample code.
DATA : BEGIN OF TIMETICKETS OCCURS 0.
INCLUDE STRUCTURE BAPI_PP_TIMETICKET.
DATA : END OF TIMETICKETS.
DATA : BEGIN OF GOODSMOVEMENTS OCCURS 0.
INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.
DATA :END OF GOODSMOVEMENTS.
*DATA : LINK_CONF_GOODSMOV TYPE BAPI_LINK_CONF_GOODSMOV.
DATA : DETAIL_RETURN TYPE BAPI_CORU_RETURN OCCURS 0 WITH HEADER LINE.
DATA : RETURN TYPE BAPIRET1 OCCURS 0 WITH HEADER LINE.
DATA : POST_WRONG_ENTRIES LIKE BAPI_CORU_PARAM-INS_ERR.
DATA : TESTRUN LIKE BAPI_CORU_PARAM-TESTRUN.
DATA: BEGIN OF LINK OCCURS 0.
INCLUDE STRUCTURE BAPI_LINK_CONF_GOODSMOV.
DATA: END OF LINK.
DATA: BEGIN OF PROPOSE OCCURS 0.
INCLUDE STRUCTURE BAPI_PP_CONF_PROP.
DATA: END OF PROPOSE.
DATA : BEGIN OF LINK_CONF_GOODSMOV OCCURS 0.
INCLUDE STRUCTURE BAPI_LINK_CONF_GOODSMOV.
DATA : END OF LINK_CONF_GOODSMOV.
LOOP AT TIMETKT.
MOVE-CORRESPONDING TIMETKT TO TIMETICKETS.
APPEND TIMETICKETS.
LOOP AT BAPI_ITAB1 WHERE SRL = TIMETKT-SRL.
MOVE-CORRESPONDING BAPI_ITAB1 TO GOODSMOVEMENTS.
CONF_QUAN_UNIT.
CONF_ACTI_UNIT1.
APPEND GOODSMOVEMENTS.
ENDLOOP.
PROPOSE-QUANTITY = 'X'.
PROPOSE-ACTIVITY = 'X'.
PROPOSE-DATE_AND_TIME = 'X'.
PROPOSE-GOODSMOVEMENT = 'X'.
APPEND PROPOSE.
CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
EXPORTING
PROPOSE = PROPOSE
IMPORTING
RETURN =
TABLES
TIMETICKETS = TIMETICKETS
GOODSMOVEMENTS = GOODSMOVEMENTS
LINK_CONF_GOODSMOV = LINK_CONF_GOODSMOV
DETAIL_RETURN = DETAIL_RETURN.
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
POST_WRONG_ENTRIES = '0'
TESTRUN =
IMPORTING
RETURN = RETURN
TABLES
TIMETICKETS = TIMETICKETS
GOODSMOVEMENTS = GOODSMOVEMENTS
LINK_CONF_GOODSMOV = LINK_conf_goodsmov
DETAIL_RETURN = DETAIL_RETURN.
if return-id is initial.
commit work.
endif.
I think it will be helpfull to u.
Regards
Srimanta -
Revision: 20970
Revision: 20970
Author: [email protected]
Date: 2011-03-25 14:26:37 -0700 (Fri, 25 Mar 2011)
Log Message:
Add or enhance include functionality for the following configuration elements:
- Adapters
- Channel definitions
- Security Constraints
- Destinations
- Services
The following elements are now allowed and can specify either the "file-path" attribute or the "directory-path" attribute.
The "directory-path" attribute references a directory of XML files (names ending in .xml) that will be treated as a sequence of include files.
Added unit tests for all the above.
Fixed a bug in the unit test code that was terminating the verification early.
Add the confirmation of the security constraints at the top level.
Updated the example config file with usage examples.
Modified Paths:
blazeds/trunk/modules/common/src/flex/messaging/config/ClientConfigurationParser.java
blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
blazeds/trunk/modules/common/src/flex/messaging/errors.properties
blazeds/trunk/modules/core/src/flex/messaging/config/SecuritySettings.java
blazeds/trunk/modules/core/src/flex/messaging/config/ServerConfigurationParser.java
blazeds/trunk/modules/core/test/src/flex/messaging/config/ConfigurationConfirmation.java
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1c.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_destination_include .xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1f_service_include.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/Confirm1c.java
Added Paths:
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_adapter_include.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_channel_include.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_constraint_include. xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1i.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1j.xml
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/Confirm1i.java
blazeds/trunk/modules/core/test/src/flex/messaging/config/services/Confirm1j.javaSDN is the place to discuss technical problems..
Please avoid such weird post.
G@urav. -
Bapi for final confirmation serviceorder
I'm looking for a bapi which enables me to give a final confirmation to a serviceorder.
in the current scenario people are using cats for hourdeclaration on serviceorders. most of the time it is not known after hours are entered if the job is finished or not. when it's know after a few days the engineer has to declare 0,01 hours to make it possible to give final confirmation.
I 'm searching for a bapi where I can set the final confirmation for the serviceorder
the other alternative is to use IW41 to set the final confirmation only that can't be fully programmed inside cats with bdc
if anybody has any alternatives they are also welcome
kind regards
arthur de smidtwhen I use the BAPI_ALM_CONF_CREATE
bapi I can enter the data already available like
confirmation no order . I also set the indicator for final confirmation but I get the error ARU806 not valid call ??
solution coding in my case
SELECT SINGLE * FROM afru INTO gs_afru
WHERE aufnr EQ h_raufnr
AND vornr EQ wa_sap_catsd-vornr.
* Indien terugmeldingsnummer aanwezig dan eindterurmelding met nummer doen
IF sy-subrc = 0.
gs_timetickets-conf_no = gs_afru-rueck.
gs_timetickets-orderid = gs_afru-aufnr.
gs_timetickets-operation = gs_afru-vornr.
gs_timetickets-fin_conf = 'X'.
APPEND gs_timetickets TO gt_timetickets.
CALL FUNCTION 'BAPI_ALM_CONF_CREATE'
* EXPORTING
* POST_WRONG_ENTRIES = '0'
* TESTRUN =
* IMPORTING
* RETURN =
TABLES
timetickets = gt_timetickets
detail_return = gt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
kind regards
arthur de smidt
Edited by: A. de Smidt on Dec 5, 2008 1:28 PM -
Set Field Selection for Completion Confirmation
I want to change the indicator of one field from "ready to input" to "required"..But i couldnt understand exactly the hierarchy under "Set Field Selection for Completion Confirmation" tab in SPRO. there are 3 parts under that tab;
1-PM: Confirmation - initial screen
2-PM: Confirmation - list and detail
3-PM: Confirmation - parameter
and i also couldnt find the name of my field which is about "codes for causes"..
Thanks...Russ,
I don't think it could be accomplished through configuration or through Transaction variants.
I think the simplest way to accomplish this would be by using one of the below user exits according to your needs.
CONFPM02: Customer-specific entry checks 1
CONFPM03: Customer-specific check by operation selection
CONFPM04: Customer-specific entry checks 2
The other option would be to use the Implicit enhancement functionality(If you are in EC C6.0 or above) to modify the table control field attributes dynamically.
Regards
Narasimhan -
'BAPI_PRODORDCONF_CANCEL" for cancelling confirmation
Hi,
We are using customized report for Production order confirmation . Below are steps
1. Goods issue
2. Calling transaction Co11 for confirmation (BDC)
3 Goods receipt using BAPI_GOODSMVT_CREATE
while running the program , it throws the "Order processed by RFC_USER" . We have tried enquque, dequeue , wait but error pops up randomly.
We have carried out few steps but still we are getting error sometimes.
The issue is that goods issue & confirmation is happening but not goods receipt hence we are are now trying to revert the goods issue & confirmation through "BAPI_PRODORDCONF_CANCEL" . i have pasted my code , please suggest if by using "BAPI_PRODORDCONF_CANCEL"
will it revert goods issue & confirmation .
SELECT RUECK RMZHL
from AFRU
INTO IT_AFRU
WHERE AUFNR = zaufnr
AND ERNAM = Sy-uname
AND ERSDA = sy-datum .
SORT IT_AFRU descending RUECK RMZHL.
DO N Times. " N=2
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = ls_goodsmvt_header
goodsmvt_code = ls_goodsmvt_code"'02' "ls_goodsmvt_code
IMPORTING
goodsmvt_headret = ls_goodsmvt_headret
materialdocument = lv_materialdocument1
TABLES
goodsmvt_item = lt_goodsmvt_item1
return = lt_return.
CLEAR : IT_ENQ, IT_ENQ[],wa_enq.
READ TABLE lt_return INTO lwa_return WITH KEY type = 'E'.
If sy-subrc = 0 .
Count = Count + 1.
IF Count < N .
CLEAR : ls_goodsmvt_headret,lv_materialdocument2.
CLEAR : lt_return, lt_return[].
ELSE.
READ TABLE IT_AFRU into WA_AFRU index 1.
CALL FUNCTION 'BAPI_PRODORDCONF_CANCEL'
EXPORTING
CONFIRMATION = WA_AFRU-RUECK
CONFIRMATIONCOUNTER = WA_AFRU-RMZHL
* POSTG_DATE =
* CONF_TEXT =
IMPORTING
RETURN = ZRETURN
LOCKED = ZLOCKED
CREATED_CONF_NO = ZCREATED_CONF_NO
CREATED_CONF_COUNT = ZCREATED_CONF_COUNT
ENDIF.
else .
EXIT.
ENDIF.
* READ TABLE lt_return INTO lwa_return WITH KEY type = 'E'.
* If sy-subrc NE 0 .
* EXIT.
* ENDIF.
ENDDO.I am getting error while cancelling the confirmation "Order Processed by RFC_USER"
But it goes to BAPI_TRANSACTION commit but the problem is confirmation is not cancelled(commit does not happen) .
when i try putting breakpoint in bapi_transaction_commit , may be while debugging it gets more time and
then confirmation is cancelled only during debugging . Please help me with below code to cancel confirmation
CALL FUNCTION 'BAPI_PRODORDCONF_CANCEL'
EXPORTING
CONFIRMATION = WA_AFRU-RUECK
CONFIRMATIONCOUNTER = WA_AFRU-RMZHL
POSTG_DATE = sy-datum
* CONF_TEXT =
IMPORTING
RETURN = ZRETURN
LOCKED = ZLOCKED
CREATED_CONF_NO = ZCREATED_CONF_NO
CREATED_CONF_COUNT = ZCREATED_CONF_COUNT.
If SY-SUBRC = 0 .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF. -
Authorization for order confirmation
Hi Gurus,
Can we assigned different Users for the confirmation for individual opeartions.
Ex:
I have two opeartions in side of order
0010 ......I want only USER 'A' can confirmed this opeartion through CO11N. System will not alow any other user to do confirmation except 'A' ...........
0020 ....I want only USER 'B' can confirmed this opeartion through CO11N.
Plz remember that order is same .
Thanks in advance
GannuHi,
You can also use the field "Personal number" field in CO11N for your Enhancements.
There are some User Exits for CO11N:
CONFPP01 PP order conf.: Determine customer specific default values
CONFPP02 PP order conf.: Customer specific input checks 1
CONFPP03 PP order conf.: Cust. specific check after op. selection
CONFPP04 PP order conf.: Customer specific input checks 2
CONFPP05 PP order conf.: Customer specific enhancements when saving
CONFPP06 PP Order Confirmations: Actual Data Transfer
CONFPP07 Single Screen Entry: Inclusion of User-Defined Subscreens
You evaluate with your ABAPers and in some of the exits, you can have your coding so that system will check.
Hope this helps..
Regards,
Siva -
Activating/Deactivating Invoicing Functions
Hi Experts,
We have activated the BI content data source 0FC_INVDOC_00 for Invoicing data. When i execute the data source from RSA3 it gives 0 records. Based on my analysis found the following links.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/1ed395e57d2be8e10000000a1553f7/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/540445c277321ae10000000a422035/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/4d3eb20420321ae10000000a422035/frameset.htm
But its interesting i am not able to find the below path from SPRO settings to activate / Deactive invoicing functions...
see Implementation Guide for Contract Accounts Receivable and Payable -> Integration ->Invoicing in Contract Accounts Receivable and Payable -> Invoicing ->Invoicing Processes ->Define Invoicing Processes
Can any one help me.
Regards,
Ravi Kumar GarreHi
Thanks for your help.
However, finally i need to assign invoicing functions to invoicing processes and types by using Define nvocing Process tab which i could not see there.
Any further assist highly appreciated.
Regards,
Ravi Kumar Garre
Maybe you are looking for
-
Macbook late 2007 dying?
Hi! I have a late 2007 macbook and until last year it worked fine. It started to freeze and the beach ball kept appearing more and more, until I restarted it one day and I got the problem with the grey screen with the apple logo and de progress bar t
-
I don't want iCloud. How do I get iTunes to stop popping up the panel that asks me if I want to download the iCloud Control Panel? I'm using iTunes 11 on Windows Vista.
-
Anybody know how to enter scientific notation in numbers for ipad?
-
MSS Compensation Planning Notes Column Stroing garbage
Hi , Notes column in Compensation Planning ( MSS 600 , EP 7) when edited and long text ( > 78 )is entered is storing garbage. I know the line/ row length of a the table communication the rfc is 78 fixed. The problem is that the code below is correc
-
Anytime I attempt to invalidate a session, I get the following exception: javax.faces.FacesException: #{backing_userInfo.commandLink1_action}: javax.faces.el.EvaluationException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.l