Help search Characteristic value
Hi gurus,
I need one help search for all existing characteristic values in the system. I have a chareacteristic name, lets say XPTO and i want to show all existing values in the system that XPTO has in the AUSP.
Can someone help?
Thk,
Regards
Hi friend there is no serach help for your characteristic value and the characteris name ....
so one thing you have to create a serach help it and attach to there data element ....
if you want you see it by pressing in the F4 help .. it wont work because there is no seaarch help ......
Girish
Similar Messages
-
Easy DMS Search - Characteristic Value Format
Hi,
I am having an issue when conducting a document search using classification with a date characteristic. More specifically, when BAPI_DOCUMENT_GETLIST2 is called, the characteristic value is formatted as DD.MM.YYYY. When the user setting format is MM/DD/YYYY, the search does not yield any results. Does anyone know where EasyDMS derives the format it uses when calling the BAPI and how this may be changed?
Thanks,
AdamYou may extract the info using vs studio 2005, by referring the EasyDMSExplorer.tlb file supplied in EasyDMS Installtion. See wiki http://wiki.sdn.sap.com/wiki/x/cAHEB for example.
-
Help required: characteristic values of material
Hi all,
My requirement is to print description of the articles shipped.
The print program is RVADTR00 (print prg for transaction VT02N)
The description of articles means the characterstics
The logic mentioned is as follows:
(Go to KSML, for class# XXXX, to get the internal characterstic KSML-IMERK.
Use IMERK to get all the characterstic values from table CAWN, CAWN-ATWRT)
Now my question is, does the standard program retreive these values into any structure.
Else, do I have to use the above mentioned logic, If yes can you tell me if
there are any standard function modules to find the characterstic values of the class to
which the material belongs.
ThanksHi,
Your logic should work but I would prefer to use BAPI_OBJCL_GETDETAIL or function module CLAF_CLASSIFICATION_OF_OBJECTS to get what you need.
Hope this helps.
H Narayan -
Dump when trying to display characteristic values in QUERY DESIGNER
Hi Experts,
Life seems to become a struggle with 7.0 for me :-(.
My current problem:
If I try to display characteristic values in Query Designer (left section of screnn, wthin dimensions) system dumps frequently.
It's that kind of dump, that doen't help really (to my oponion)_
What happened?
The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_RSBOLAP_BICS_SERVICES======CP' has to be
terminated.
How to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
"CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
"HANDLE_UNCAUGHT_EXCEPTION"
... etc.
BW 79, SP21
GUI 7100.4.14.3136
Any ideas?
Thanks in Advance and Regards
JoeHi Vikram,
Thanks for reply. Reinstalling GUI was successful, but - error still occurs. ..
Regards
Joe
Edited by: J.F.B. on May 28, 2010 3:02 PM -
Table which contain F4 values of Characteristic VALUE field
Hi,
I know the characteritic tables are AUSP, CABN and CAWN. Can someone tell me the table in which the possible values for a Characteristic Value field are given (Values that appear when we click F4 Values)?
Thanks.
Tushar.There is none. I created a custom search help for all our major characteristics.
1) Create a database view joining CABN, CAWN, CAWNT.
Join condition should look like this.
CABN MANDT = CAWN MANDT
CABN ATINN = CAWN ATINN
CAWN MANDT = CAWNT MANDT
CAWN ATINN = CAWNT ATINN
CAWN ATZHL = CAWNT ATZHL
The view fields are like this..
ATINN NUMC 10 Internal characteristic
ATZHL NUMC 4 Int counter
ATWRT CHAR 30 Characteristic value
ATWTB CHAR 30 Characteristic value description
Selection Conditions are like this.
CABN ATNAM EQ 'DOOR_GROUP'
In this example, it is a search help for the characteristic "DOOR_GROUP". Here you would substitute your characteristic name.
Ok now you have a database view for the certain characteristic.
Create a custom elementary search help via SE11, in the Selection Method, use the database view that you just created.
Parameter values should be like so...
ATWRT X X 1 0 ATWRT
ATWTB X 2 0 ATWTB
Now you have your search help.
Create a data element via SE11, under the search help declaration get the parameters as
Name <Your Search Help Name>
Parameters ATWRT
Now you have your data element. You can tie this to a database field or structure or whatever. In my case, its a structure.
Now in my program...
report zrich_0002 .
parameters: p_drgrp type zchar-door_group.
I have a parameter which is TYPED as my field in my structure, of course this field in my structure uses the data element created eariler.
Do it this way, you only have to worry about it once. It can then be used all over the system. You don't have to have a bunch of calls to F4IF_INT_TABLE_VALUE_REQUEST to handle the F4.
Make sense?
Regards,
Rich Heilman -
Populate Batch characteristic values in create sales order BAPI
Can anybody help me in populating the batch characteristic values using BAPI_SALESORDER_CREATEFROMDAT2?
I have checked the related notes provided by SAP, like, 567348 but it will be great if someone can send some code snippet on this.Subramanian, Brad and Raja.
Thanks for your suggestions its were useful, with
these i can resolve my problem.
!!! Best Regards !!!
Raja
I used the se37 to test bapis, is more easy and fast !!
and you can save data like variant, and you can simulate the real execution without write any code abap,
and re-process the times that you need,
when you know what fields you need you write your abap code faster.
Thanks !!!
Message was edited by: Noemi Huerta -
Slow dataload into Infocube- Conversion of Characteristic values to SIDs
Hi All,
we are facing a slow delta load issue when loading from a DSO into an InfoCube ( approx 150,000 recs).
After checking the monitor found that
- The Conversion of Characteristic values to SIDs is taking time
- The Start Routine time is real quick ( in secs)
The underlying DSO is hugh and there is no SIDs Generation upon Activation flag set for it
Master data is loaded first and than we are loading the transaction data.
i've tried refreshing the stats of the Cube, Reduce the size of the data package,
Deletion of Indexes than Loading and recreation of Indexes, no joy at all.
Any comments and recommendations are much appreciated.
Thanks,
NatalieHi Natalie,
The problem for your slow delta load from DSO to cube is because the SIDs Generation upon Activation flag is unchecked at DSO level .
Becasue of which your activation is faster but your loading from DSO to cube will be slower as you only mentioned that SIDs are being generated .
One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
Are there any secondary indexes also in DSO ?
You can try deleting them also during loading the data from DSO to cube .
I guess your change log table is also huge in this case . If possible we can think of deleting the log table also . Then for the new records let it get filled .
Hope the above reply was helpful.
Regards,
Ashutosh Singh .
Edited by: DEADLOCKS on Apr 21, 2011 5:08 PM -
Conversion of Characteristic Values to SIDs. Load Very slow
Hi Experts,
We have a slow load issue when loading from a Write-Optimized DSO into an InfoCube. 8 millon recs in 10 hours.
We check the start, end, and rules routines and every is ok but for all the package the load was very slow in the Conversion of Characteristic Values to SIDs.
Can any help me with this?
Thanks a lot,
AlejandroHi,
It is because the SIDs Generation upon Activation flag is unchecked at DSO level .
One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
Are there any secondary indexes also in DSO ?
You can try deleting them also during loading the data from DSO to cube .
Also load your master data first and activate it before loading it to cube.
Thanks, -
Search bar value from Interactive Report
Could someone help me to acces the value entered in the search bar and pass it to another page?
Basically our apex interactive reports has a link which allows to edit single records. However customer is looking to edit multiple records at the same time and I am thinking if I can pass the search bar value to an tabular form, then it will allow to update multiple records
Thanks
Rajesh AlexHi Rajesh,
There are a set of views that seem to contain the data for the IR:
APEX_APPLICATION_PAGE_IR
APEX_APPLICATION_PAGE_IR_CAT
APEX_APPLICATION_PAGE_IR_CGRPS
APEX_APPLICATION_PAGE_IR_COL
APEX_APPLICATION_PAGE_IR_COND
APEX_APPLICATION_PAGE_IR_RPT
You could have a look through these to see if any help.
Andy -
Hi. i used Function module to change Characteristic values of a sales order
hi. i used Function module to change Characteristic values of a sales order..
but sales order's Characteristic values didn't change.
And the Function module doesn't occur any log message.
please tell me wrong code, and how to solve this problem.
if i have wrong method, what data can i pass to change the characteristic values
DATA: LT_E1CUVAL TYPE TABLE OF E1CUVAL.
DATA: WA_E1CUVAL TYPE E1CUVAL.
DATA: LS_CFG_HEAD LIKE CUXT_CUCFG_S,
LS_INSTANCES LIKE CUXT_CUINS_S,
LS_VALUES LIKE CUXT_CUVAL_S,
LS_E1CUCFG LIKE E1CUCFG,
LS_E1CUINS LIKE E1CUINS,
LS_E1CUVAL LIKE E1CUVAL,
LS_PROFILE LIKE E1CUCOM,
LS_VBAP LIKE VBAP,
L_CUOBJ LIKE INOB-CUOBJ,
L_ATINN LIKE CABN-ATINN.
DATA: LT_INSTANCES LIKE CUXT_CUINS_S OCCURS 0,
LT_PART_OF LIKE CUXT_CUPRT_S OCCURS 0,
LT_VALUES LIKE CUXT_CUVAL_S OCCURS 0,
LT_VAR_KEYS LIKE CUXT_CUVK_S OCCURS 0,
LT_KSML LIKE KSML OCCURS 0 WITH HEADER LINE,
BEGIN OF LT_CLINT OCCURS 0,
CLINT LIKE KSSK-CLINT,
END OF LT_CLINT.
DATA: LT_CUIB LIKE CUIB_CUOBJ_S OCCURS 0 WITH HEADER LINE.
DATA: E_ROOT_INSTANCE TYPE CUXT_INSTANCE_NO.
DATA: EV_ROOT_PERSIST_ID TYPE IBEXTINST_DATA-EXT_INST_ID.
DATA: EV_CFG_HAS_CHANGED TYPE XFELD.
DATA: EV_HANDLE_APPL_LOG TYPE BALLOGHNDL.
DATA: L_CUOBJ_NEW TYPE CUOBJ.
DATA: L_OWNER TYPE IBXX_BUSINESS_OBJECT.
REFRESH LT_E1CUVAL.
CLEAR LS_VBAP.
SELECT SINGLE CUOBJ INTO CORRESPONDING FIELDS OF LS_VBAP
FROM VBAP WHERE VBELN = I_VBELN
AND POSNR = I_POSNR.
IF SY-SUBRC <> 0.
RAISE INSTANCE_NOT_FOUND.
ENDIF.
REFRESH LT_CUIB. CLEAR LT_CUIB.
LT_CUIB-INSTANCE = LS_VBAP-CUOBJ.
APPEND LT_CUIB.
CALL FUNCTION 'CUCB_INITIALIZER'
EXPORTING
IT_INSTANCES = LT_CUIB[].
CALL FUNCTION 'CUXI_GET_SINGLE_CONFIGURATION'
EXPORTING
I_ROOT_INSTANCE = LS_VBAP-CUOBJ
IMPORTING
E_CFG_HEAD = LS_CFG_HEAD
ES_PROFILE = LS_PROFILE
ET_RETURN = ET_RETURN
TABLES
E_TAB_INSTANCES = LT_INSTANCES
E_TAB_PART_OF = LT_PART_OF
E_TAB_VALUES = LT_VALUES
E_TAB_VAR_KEYS = LT_VAR_KEYS
EXCEPTIONS
INVALID_INSTANCE = 1
NO_ROOT_INSTANCE = 2
INSTANCE_IS_A_CLASSIFICATION = 3
INTERNAL_ERROR = 4
NO_PROFILE_FOUND = 5
INVALID_DATA = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
CASE SY-SUBRC.
WHEN 1.
RAISE INSTANCE_NOT_FOUND.
WHEN 3.
RAISE INSTANCE_IS_A_CLASSIFICATION.
WHEN OTHERS.
RAISE INVALID_DATA.
ENDCASE.
ELSE.
LOOP AT LT_VALUES INTO LS_VALUES.
IF LS_VALUES-CHARC = 'SAP_MILLCA_PACKAGING'
OR LS_VALUES-CHARC = 'PD_CA_PACKING_DM'.
LS_VALUES-VALUE = '7100010'. "This is test data
MODIFY LT_VALUES FROM LS_VALUES.
ELSE.
DELETE LT_VALUES WHERE CHARC = LS_VALUES-CHARC.
ENDIF.
CLEAR LS_VALUES.
ENDLOOP.
ENDIF.
영업정보 특성 변경
CALL FUNCTION 'CUXI_SET_SINGLE_CONFIGURATION'
EXPORTING
I_CFG_HEADER = LS_CFG_HEAD
I_ROOT_INSTANCE = LS_VBAP-CUOBJ
I_PLANT =
I_STRUCTURE_EXPLOSION_DATE =
I_STRUCTURE_EXPLOSION_APPL_ID =
I_LOGSYS =
IS_PROFILE = LS_PROFILE
IV_ONLY_SINGLE_LEVEL =
IV_HANDLE_APPL_LOG =
IV_OBJECT_APPL_LOG = 'CIF'
IV_SUBOBJECT_APPL_LOG = 'T_CNFG'
IMPORTING
E_ROOT_INSTANCE = E_ROOT_INSTANCE
EV_ROOT_PERSIST_ID = EV_ROOT_PERSIST_ID
EV_CFG_HAS_CHANGED = EV_CFG_HAS_CHANGED
EV_HANDLE_APPL_LOG = EV_HANDLE_APPL_LOG
ET_RETURN = ET_RETURN
TABLES
I_TAB_INSTANCES = LT_INSTANCES
I_TAB_PART_OF = LT_PART_OF
I_TAB_VALUES = LT_VALUES
I_TAB_VAR_KEYS = LT_VAR_KEYS
I_TAB_BLOB =
EXCEPTIONS
NO_CONFIGURATION_DATA = 1
NO_ROOT_INSTANCE = 2
INVALID_INSTANCE = 3
INSTANCE_IS_A_CLASSIFICATION = 4
INTERNAL_ERROR = 5
NO_PROFILE_FOUND = 6
INVALID_DATA = 7
OTHERS = 8
IF SY-SUBRC <> 0.
CASE SY-SUBRC.
WHEN 1.
RAISE NO_CONFIGURATION_DATA.
WHEN 3.
RAISE NO_ROOT_INSTANCE.
WHEN 3.
RAISE INVALID_INSTANCE .
WHEN 3.
RAISE INSTANCE_IS_A_CLASSIFICATION.
WHEN 3.
RAISE INTERNAL_ERROR.
WHEN OTHERS.
RAISE INVALID_DATA.
ENDCASE.
ENDIF.
COMMIT WORK.
save configuration with next commit
CLEAR: LS_INSTANCES.
READ TABLE LT_INSTANCES INTO LS_INSTANCES INDEX 1.
L_OWNER-OBJECT_TYPE = LS_INSTANCES-OBJ_TYPE.
L_OWNER-OBJECT_TYPE = 'PVS_POSVAR'.
L_OWNER-OBJECT_KEY = LS_INSTANCES-OBJ_KEY.
CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
EXPORTING
ROOT_INSTANCE = LS_VBAP-CUOBJ
ROOT_OBJECT = L_OWNER
IMPORTING
NEW_INSTANCE = L_CUOBJ_NEW
EXCEPTIONS
INVALID_INSTANCE = 1
INVALID_ROOT_INSTANCE = 2
NO_CHANGES = 3
OTHERS = 4.
IF SY-SUBRC > 1 AND SY-SUBRC <> 3.
CLEAR LS_VBAP-CUOBJ.
RAISE INTERNAL_ERROR.
ELSEIF SY-SUBRC = 1.
LS_VBAP-CUOBJ = L_CUOBJ_NEW.
ENDIF.
What's wrong?
help me to solve this problem.
Thanks a lot.<b>SD_SALES_DOCUMENT_READ</b> Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties)
<b>SD_SALES_DOCUMENT_READ_POS</b> Reads sales document header and item material: tables VBAK, VBAP-MATNR
<b>SD_DOCUMENT_PARTNER_READ</b> partner information including address. Calls SD_PARTNER_READ
<b>SD_PARTNER_READ</b> all the partners information and addresses
<b>SD_DETERMINE_CONTRACT_TYPE</b>
In: at least VBAK-VBELN
Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT
<b>SD_SALES_DOCUMENT_COPY</b>
<b>RV_ORDER_FLOW_INFORMATION</b> Reads sales document flow of sales document after delivery and billing
SD_SALES_DOCUMENT_SAVE create Sales Doc from the copied document
SD_SALES_DOCUMENT_ENQUEUE to dequeue use DEQUEUE_EVVBAKE
RV_DELIVERY_PRINT_VIEW Data provision for delivery note printing
SD_PACKING_PRINT_VIEW
SD_DELIVERY_VIEW Data collection for printing
called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW
RV_BILLING_PRINT_VIEW Data Provision for Billing Document Print
regards
vinod -
Issue in Custome FM of Characteristic Value
Hi All,
I have created Custom FM for possible values of Characteristic.
Its working fine in all transaction except CU60.
In Cu60 Transaction if user click on F4 for characteristic value My custom help popup is coming. when user select any of the value its populating in table maintenance. But Issue the issue is when user is saving those value those value are not saving in table maintenance.
Please tell me if I need to do any addition stuff.
I have created FM using below SAP Doc.
Function Module for Checking Values
In this field, you can enter the name of a function module for checking characteristic values entered by the user. The function module can be created in any function group.
The following restrictions apply:
The function module must use the standardized interface.
The function module name cannot have more than 27 characters.
This allows names to be inferred for further function modules: for the possible entries on the value assignment screen, and for copying language-dependent value descriptions:
Function module for possible entries
<function module for value check> + suffix "_F4"
Function module for language-dependent value descriptions
<function module for value check> + suffix "_DC"
Interface for Function Module for Checking Values
Import Parameters:
CHARACT_NO LIKE CABN-ATINN Internal characteristic number
CHARACT LIKE CABN-ATNAM Characteristic name
VALUE LIKE CAWN-ATWRT Value to be checked
Exceptions:
NOT_FOUND Value not found
Interface for Function Module for Possible Entries
Import Parameters:
CHARACT_NO LIKE CABN-ATINN Internal characteristic number
CHARACT LIKE CABN-ATNAM Characteristic name
DISPLAY Display values only,
if DISPLAY = 'X'
ADDITIONAL_VALUES LIKE CABN-ATSON Additional values allowed
if ADDITIONAL_VALUES = 'X'
(if you want the possible
entries dialog box to contain an
additional line for entry)
MULTIPLE_VALUES LIKE RCTMV-ATLIS Multiple values allowed
LANGUAGE LIKE SY-LANGU Language indicator
DISPLAY_WITH_LANGUAGE Display value with description
Tables
VALUES LIKE RCTVALUES Selected values
When you call this table, it
contains existing values.
Deleted values have status 'D'
in the table.
New values have status 'I'
in the table.
The function module must also let you display and select values using the possible entries pushbutton. To display possible entries, you can use function modules in function group SHL3, such as HELP_VALUES_GET_WITH_TABLE_EXT. The content is described in the function module documentation.
Interface for Function Module for Language-Dependent Value Descriptions
Import parameters
CHARACT_NO LIKE CABN-ATINN Internal characteristic number
CHARACT LIKE CABN-ATNAM Characteristic name
VALUE LIKE CAWN-ATWRT Value to be checked
LANGUAGE LIKE SY-LANGU System language
Exceptions
NOT_FOUND Value not found
If you use this function module after the function module for checking values, the language-dependent description of the value is copied to the value assignment screen.
Note
Please note that the program code must be based on the predefined interfaces. If your program is not based on these interfaces, the program may terminate with a short dump.
Please note also that the function module cannot take into account any restrictions on allowed values that are due to inheritance or object dependencies, because the function can only read data that is already saved to database tables. The function cannot read current user entries.I have Created two FM Function Module for Checking Values and Function Module for Possible Entries
-
Copy BOM Component Characteristic value in material PR created by MRP Run
Dear Gurus,
My requirement is I have materials like thread to maintain color characteristic i have create class - color- class type is 023 , now i want user should able to maintain characteristic value in BOM component (thread) of semifinish material. FG , SFG are not having any characteristic.
Now in PR and PO we can maintain characteristic value in Material Data --->Configuration tab , Configuration tab will come only when there is tick in material is configurable at material basic data 2 view of thread and in CU41 I have to maintain material for class type 300 - Variant , then in class assignment i have select class type 300 and 023 both and maintain class , both are having same characteristic please make me correct if i am doing wrong process, if i am not maintaining class assignment 300 in CU41, in manual PO system not allowing to enter characteristic value in configuration tab . so i maintain both class assignment 300 and 023.
Now for manual PR and PO system showing configuration tab and from PO configuration tab characteristic value is coming in MIGO automatically but when i am running MRP for finish material the auto PR generated by system for material thread is not showing configuration tab in Material Data of PR. I have maintain characteristic value in BOM --->Extra--->Batch Classification. Please guide me how to archive this.
Thanks & Regards
Akshay.Akshay kukde,
Still i am unable to understand the reason for maintaining a characterstic value for a batch through BOM, I hope you are not changing BOM for every purchase order ?
can you explain what you expect by maintaing this one value for batch characterstic?
you can have many other simple option like
1) Create a material with colour included in it ex, Thread_red, Thread _green etc and use them in BOM
2) Use text in BOM to hold this discription for colour
3) Use batch management, class 023 in material master classification , defalut value for colour, purchase order will be created and while doing GR you can change in colur if its different then default you set earlier.
Akshay kukde wrote:
if i am creating PR Manually -ME51N , system showing configuration tab , where i can maintain characteristic value , which then reflecting in PO and from PO to MIGO
The above scenario I have tried by maintaining class type 023 and same characteristic in material Master. but result is same for auto generate PR by MRP- configuration tab is missing.
My requirement in this case is characteristic value should flow from BOM to PR generated by MRP.
when you manualy create PR you Thread material is consider to be a configurable material and thats why you are able to input configuration value, otherwise as soon as you put this configurable material inside a BOM of normal materila it loost its configuration feature, if you want you can create your parent material also as configurable material, assign same class to it and create configuration profile and take MRP run this time you will get PR with configuration tab as your thread get configuration derived from parent.
Hope above details may help you.
Check and reply, also mark replies helpful if it helps you.
Thanks
Ritesh -
Characteristic Value Assignment in Sales order
Hi Pals,
I am using the Variant configuration scenario in the sales order. My problem is, when ever i try creating a new sales order and enter a material, it suppose to display the Characteristic Value Assignment screen but for me it is showing the "Display Characteristic Values" Screen. Because of this i am unable to enter the data at the sales order level. what might be the problem for this case.
Kindly help me out in this issue.
Thanks & Regards,
Srinivas.DDear,
I hope the following link will help u in giving a good understanding of Characteristic values
help.sap.com/printdocu/core/Print46c/en/data/pdf/CACLCHR/CACLCHR.pdf
Regards,
R.brahmankar -
How to copy characteristic values from Purchase Order to MIGO Goods Receipt
Dear all,
I have a configurable material X,
then i create a purchase order for that material and then i input characteristic value in the Purchase Order transaction and save it
However when i do the Goods Receipt transaction via MIGO and using the Purchase Order number that i have created, after i entry the batch number and want to check the classification, the characteristic value are blank, so it is not copied from the Purchase Order
I've tried guide from
http://help.sap.com/saphelp_erp60_sp/helpdata/en/92/9b4a23a46411d6b28300508b5d5c51/content.htm
but i do not find the configuration for copying rule
Is there any one who can resolve this problem??
Regards,
MarufatHi,
You define the copying rules for a movement type in Customizing for Batch Management under Batch Valuation , Valuation for Goods Movement in Inventory Management , Activate Batch Classification for Goods Movements in IM. Please refer below link. Thanking you.
http://help.sap.com/saphelp_me52/helpdata/EN/47/39867251500aa7e10000000a114a6b/content.htm -
Characteristic values in BAPI_SALESORDER_CHANGE
Hi,
I want to add new configurable item in existing sales order with charactersitic values.
Iam using bapi BAPI_SALESORDER_CHANGE.
Iam now able to insert configurable item in existing sales order.
But the characteristic values are not getting stored.
Latest code is attached. What else is missing for storing characteristic values ?
select maximum item number in sales order
SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
INTO MAX_POSNR
WHERE MANDT = SY-MANDT AND
VBELN = I_SORDER.
TMP_POSNR = MAX_POSNR + 10.
WA_HDRX-UPDATEFLAG = 'U'. "update
SALES_DOC = I_SORDER.
item data
WA_ITEM-ITM_NUMBER = TMP_POSNR.
WA_ITEM-MATERIAL = 'LEFTEYE'.
WA_ITEM-PLANT = I_STORE.
WA_ITEM-SHIP_POINT = I_STORE.
APPEND WA_ITEM TO IT_ITEM.
WA_ITEMX-ITM_NUMBER = TMP_POSNR.
WA_ITEMX-UPDATEFLAG = 'I'. "add
WA_ITEMX-MATERIAL = 'X'.
WA_ITEMX-PLANT = 'X'.
WA_ITEMX-SHIP_POINT = 'X'.
APPEND WA_ITEMX TO IT_ITEMX.
Schedule lines
WA_SCHD-ITM_NUMBER = TMP_POSNR.
WA_SCHD-SCHED_LINE = TMP_POSNR.
WA_SCHD-REQ_DATE = SY-DATUM.
WA_SCHD-REQ_QTY = 1.
WA_SCHD-SCHED_TYPE = 'CN'.
APPEND WA_SCHD TO IT_SCHD.
WA_SCHDX-ITM_NUMBER = TMP_POSNR.
WA_SCHDX-SCHED_LINE = TMP_POSNR.
WA_SCHDX-REQ_DATE = 'X'.
WA_SCHDX-REQ_QTY = 'X'.
WA_SCHDX-SCHED_TYPE = 'X'.
APPEND WA_SCHDX TO IT_SCHDX.
config & characteristic values
WA_VALUE-CONFIG_ID = '000001'.
WA_VALUE-INST_ID = '00000001'.
WA_VALUE-CHARC = 'PRES_DIST_SPH'.
WA_VALUE-VALUE = '3.2'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = '000001'.
WA_INST-INST_ID = '00000001'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
WA_INST-QUANTITY_UNIT = 'NO'.
APPEND WA_INST TO IT_INST.
WA_REF-POSEX = TMP_POSNR.
WA_REF-CONFIG_ID = '000001'.
WA_REF-ROOT_ID = '00000001'.
APPEND WA_REF TO IT_REF.
WA_PART-CONFIG_ID = '000001'.
WA_PART-PARENT_ID = '00000001'.
WA_PART-INST_ID = '00000001'.
WA_PART-OBJ_TYPE = 'MARA'.
WA_PART-CLASS_TYPE = '300'.
WA_PART-OBJ_KEY = 'LEFTEYE'.
APPEND WA_PART TO IT_PART.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALES_DOC
ORDER_HEADER_INX = WA_HDRX
TABLES
RETURN = IT_RET
ORDER_ITEM_IN = IT_ITEM
ORDER_ITEM_INX = IT_ITEMX
ORDER_CFGS_REF = IT_REF
ORDER_CFGS_PART_OF = IT_PART
ORDER_CFGS_INST = IT_INST
ORDER_CFGS_VALUE = IT_VALUE
SCHEDULE_LINES = IT_SCHD
SCHEDULE_LINESX = IT_SCHDX.
READ TABLE IT_RET INTO WA_RET WITH KEY TYPE = 'E'.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
I get the following messages from BAPI :
ORDER_HEADER_IN has been processed successfully.
ITEM_IN has been processed successfully
The sales document is not yet complete: Edit data
TIL-Direct Sales TINDC01372 has been saved
What else is missing ? Any help is appreciated.
thanks,
Nagarajan.JHello Nagarajan,
I have used this BAPI in my last task. You are passing the values correctly. I will tell you why it is giving like that message.
Whenever we will create a sales order in VA01 transaction, you will get a message like "The sales order is not complete, would you like to EDIT" while saving the sales order.... This is because of not providing complete data required for careation of sales order.
Try to implement the changes manually in VA02, if you get same errors, then you can find your code is correct.
Even I got same type of messages when changing a sales order to change the Rejection Reason for the items.
Best Regards,
Sasidhar Reddy Matli.
Edited by: Sasidhar Reddy Matli on Jul 31, 2008 2:20 PM
Maybe you are looking for
-
Problem adding a new field to existing BPS planning layout
Hi I am new to BPS and planning I have a requirement to add a new field which has values maintained as 0 and 1 to an existing planning cube.The user wants this new field in the existing planning layout where in he can enter the values for this field
-
Web service Response data - how to extract fields from XMl returned
Hi, I am using a web service in adobe forms to get currency , by entering country name. I generated the fields i form by clicking on 'Generate fields ' it automatically generated the biding. The problem is that in response field , i get the whole
-
Why do i have a black frame on my Imac?
Can someone please tell me how to get rid of the black retangular frame frame n my screen? It suddenly appeared and everytime I move my mouse it moves with it.
-
I hav installed the J2SDK compiler to compile my test.java. Then it created succesfully the test.class. Then I make it viewable on web by this following code <applet code="test.class" width=980 height=550></applet>. My problem is when I view it on we
-
Where is all the support information on GOOP
There appears to be a shortage of support information for using GOOP in LabVIEW. Does anyone know where I can find more on GOOP and are there any developers out that are using it.