Load table values in the characteristics
Hi Gurus
I have created a characteristics (Employee) and assigned this characteristic to a class. I need to load all the table (field) values in the characteristics (for example, table name: PA0001 & field: PERNR). Whenever i create a document in CV01N the values should be automatically loaded in the field EMPLOYEE (in Additional Data Tab) from the table PA0001. Can anyone guide me how can we meet this requirement. Is it the standard behavior?
Thanks & Regards
Vasim Raja. R
Hi,
You can achieve it by Other Value Check using Function Module option. Refer to the link below how you can implment the same.
Characteristic date - calendar
Take the help of an abaper from your team.
Cheers
Amit
Similar Messages
-
Function module for retrieving values of the Characteristics?
Hi,
is there a function module for retrieving values of the Characteristics?
will reward,
regards,
M.Hello,
Check this.
L_OBJECT = G_T_STPO-IDNRK.
*--- Merkmale incl. Bewertung zum Objekt/Klassenart lesen ----------*
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASSTEXT = 'X'
CLASSTYPE = '300'
FEATURES = 'X'
LANGUAGE = SY-LANGU
OBJECT = L_OBJECT
INITIAL_CHARACT = ' ' "keine unbewertete M.
OBJECTTABLE = 'MARA'
KEY_DATE = SY-DATUM
* NO_VALUE_DESCRIPT =
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = 'X'
TABLES
T_CLASS = H_CLASS
T_OBJECTDATA = H_CLOBJDAT
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4.
Regards,
Vasanth -
How to update the table value in the valuechange event?
I have an input field in the datatable with the valueChangeListener
<rich:dataTable id="cart" value="#{cart.cartList}" var="item">
<h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
<h:outputText value="#{item.errorMsg}"> </h:outputText>
in the backing bean
Item item = (Item) model.getRowData();
// do some update, if the cost too larger, change to max_cost
item.setCost(max_cost);
item.setErrorMsg("Error Msg");
After calling the valuechange method, the screen output doesn't update the cost.
How to update the table value in the valuechange event?As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.
-
Variant network depending on the value of the characteristics.
Hi,
I want to create a project from a sales order for a configurable material. The problem is that the network should be slightly different depending on the value of the characteristics used in the configurable material. For example, it could happen that one operation should not be executed, or that this operation should take longer because of the characteristics.
How should I proceed?
Thanks in advance.
Regards,
Luis.Thanks for your answers, but I needed a more specific answer. Anyway, in the end I found the solution:
- I had to create a configuration profile for the standard network (CU41), and then I had to assign the same class as the one assigned to the configuration profile of the configurable material.
- Then, I run t-code CN02, and I had to select one operation and then I clicked "Extras --> Object Dependencies --> Editor". And finally, I just chose the dependency type and filled it with its corresponding code.
Still, I have a problem:
- Is it possible to set the value of the Normal Duration (or any other parameter of the operation) depending on the value of one characteristic?
For example: The value of my characteristic A is 2, so I want to set Normal Duration = 10*(Value_of_A) = 20 for the first operation of the standard network. Is it possible in standard SAP???
Thanks! -
Advanced Table values in the review page.
Hi Everyone,
Can you please suggest how i can view all the values of the advanced table in the Review page? User can add any number of lines in the advanced table. So basically whats the procedure to show all those values in the review page? To show all the other items of the linen the review page, i created messageStyleText items in the review page and getting the values from the other page.
Thank you.As my understanding , you are going with Advanced table for a review page. As this review page you need readonly for row of Adv table.
For this set readonly property true either by programatically or Declaretically for item of table. table will show all rows base on VO Object.
Thanks -
Passing of internal table values to the select statement as SETS
Hi All,
Is there any way that i can restrict the values of a internal table to be passed to a select statement set by set..
say for eg: if a itab has 1000 entries i want the first 500 to be going out in a select statement as a comparision for all entries and then the next set of 500 to go out..
Please let me know.. this is very urgent..<b>Appending Several Lines</b>
You can also append internal tables to index tables using the following statement:
APPEND LINES OF <itab1> TO <itab2>.
This statement appends the whole of ITAB1 to ITAB2. ITAB1 can be any type of table, but its line type must be convertible into the line type of ITAB2.
When you append an index table to another index table, you can specify the lines to be appended as follows:
APPEND LINES OF <itab1> [FROM <n1>] [TO <n 2>] TO <itab2>.
<n 1 > and <n 2 > specify the indexes of the first and last lines of ITAB1 that you want to append to ITAB2.
This method of appending lines of one table to another is about 3 to 4 times faster than appending them line by line in a loop. After the APPEND statement, the system field SY-TABIX contains the index of the last line appended. When you append several lines to a sorted table, you must respect the unique key (if defined), and not violate the sort order. Otherwise, a runtime error will occur.
Then u can use <b> FOR ALL ENTRIES</b> in select query.
regards
vinod -
How to diplay the kna1 table values in the xd03 screen
Hi,
I have added a field in the xd03 screen, and created that field in the kna1 table.
Now i need to get that value from kna1 to the screen when i enter xd03 transactionl with a customer number.Can anybody tell me where to write the logic and some code sample if anybody having......
thanks in advance
kpTransaction Code - XD03 Display Customer (Centrally)
Exit Name Description
SAPMF02D User exits: Customer master data
No of Exits: 1
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
How to load this value into the master data display attribute
Hi ,
Please share me the knowldege how to load this kind of data into master data display attribtes ..
Raj + Ravi Ltd (PCG: 13592)
While loading this data ,i got the error message stating that '+' should not be part of the attributes and () should not be part of the attribute ..but i need all the information as it is available in the example data .
Do i need to maintain RSKC Settings else some other things required ..
Please guide me ..
Regards,
RajHI,
Maintain these symbols in RSKC and try to reload the data.... -
Define the Characteristics of the validity table for non-cumulatives
Hi Friends,
Here I am designing MultiProvider ( ZCA_M01), based on the Two Business content info cubes (0IC_C03 & 0SD_C03 ) & one customized info cube (ZPUR_C01).
I done Identification for char & keyfigures also.
When i trying to activating the Multiprovider, here i am getting the error , error message is : Define the Characteristics of the validity table for non-cumulatives.
Even here I am attaching the error message help also.
Message no. R7846
Diagnosis
The InfoCube contains non-cumulative values. A validity table is created for these non-cumulative values, in which the time interval is stored, for which the non-cumulative values are valid.
The validity table automatically contains the "most detailed" of the selected time characteristics (if such a one does not exist, it must be defined by the user, meaning transfered into the InfoCube).
Besides the most detailed time characteristic, additional characteristics for the InfoCube can be included in the validity table:
Examples of such characteristics are:
A "plan/actual" indicator, if differing time references exist for plan and actual values (actual values for the current fiscal year, plan values already for the next fiscal year),
the characteristic "plant", if the non-cumulative values are reported per plant, and it can occur that a plant already exists for plant A for a particular time period, but not yet for plant B.
Procedure
Define all additional characteristics that should be contained in the validity table by selecting the characteristics.
In the example above, the characteristics "plan/actual" and "plant" must be selected.
The system automatically generates the validity table according to the definition made. This table is automatically updated when data is loaded.
Please take as a high priority.
Thanks & Regards,
Vanarasi Venkat.Hi Venkat,
If you want to include 0IC_C03 cube in your multi provider the you must make sure that the time characterestics ( 0CALDAY, 0CALMONTH ....) are present in all of the other info providers which you are including in the MP. The Time char to choose depends upon the Inventory cube in which you have mentioned during the definition. As you are using the standard cube 0IC_C03 it has the time char as 0CALDAY. Try to include this in all the other info providers and dont include more tha one Non-cumulative in the MP.
Try this and see if it helps.... -
Hi,
I have designed the GUI, which contains JTable.
Every time the table is loaded with some values dynamically, after doing some operation.
The table values are first stored in the vector and set to DefaultTableModel.
The DefaultTableModel contains two vectors, in which first vector will have row values and
second vector has column name (or heading, always it is four).
The problem is only 40 row's values are visible in GUI.
Not able to move the scroller down to see the table values after the 40th row.
Please suggest me in what way i can correct this problem.
Thanks & Regardscalvino_ind wrote:
kathyayini wrote:
Its not stupid.
I know that there are more than 40 rows.
Because i have displayed the values which are loaded into table and also i am writing the table as excel file.
Don't act to smart.he wasn't acting smart, but actually acting dumbYeah as if your first comment asking whether he added a JScrollPane was much smarter, especially because the OP mentioned that he has a scroller in the GUI...
Be it as it is, you could post the relevant code snippet here. -
Fetch table value in BEX Web report using Javascripts, and assign condition
Hi Gurus,
I am currently using WAD 3.5. I need to change the web report to behave like below :-
1. Default layout (Field A B C) with condition A & B activated.
2. If the drilldown Field B and C is removed, leaving only field B alone in the report drilldown, deactivate condition A & B, Activate condition C & D.
3. the above can be reversed where user drilldown field B & C into the layout, the condition A & B need to then be activated back.
So I believe this can be done using Javascript. So my questions are below
1.) How do i fetch table value for the navigationblock ? with navigationblock i am able to know what are the columns are in the drilldown (i will not display free characteristics, so ignore this part). how do i read the content of NAVIGATIONBLOCK_1 as shown in following code? using javascript.
<P><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="NAVIGATIONBLOCK_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="SHOW_FREE_CHARACTERISTICS" value=""/>
<param name="SHOW_NAVIGATION_ICONS" value=""/>
<param name="SHOW_FILTER_ICONS" value=""/>
ITEM: NAVIGATIONBLOCK_1
</object></P>
2.) After question 1.) is done, please advice how do i activate/deactivate the conditions? based on the fields found in above. Maybe I can use IF navigationblock_1 contain field A only, then set condition A & B , etc.
<p><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="CONDITIONLIST_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CONDITION"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
ITEM: CONDITIONLIST_1
</object>
I would appreciate if we can solve Question 1 first before proceed to 2.)
Please advise. ThanksHi JTi,
what i have understood from your requirement is that you want to access the web item table_1 in javascript, you can get that as below:
Add
<span>
tag before your web item and set its id to table.
<span id = "table">
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value=""/>
<param name="CAPTION" value="jezel"/>
<param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
<param name="BLOCK_SIZE" value="0"/>
<param name="SHOW_PAGING_AREA_BOTTOM" value=""/>
ITEM: TABLE_1
</span>
In javascript access it as :
var mytable = document.getElementsById("table");
Hope this helps
Thanks
Dipika -
External Loader Table - Merging Data
Hi,
We have a legacy system that is Cobol based and it produces flat files that we ftp into a directory on our Oracle server.
I have created an external loader table, that has the location set to the specific files in that directory - currently holding about 5.6 million records.
The files contain patient data from mulitple sites, so I am trying to bring them all together into three different tables;
1) Patient_Id
2) Patient
3) Patient_Address
Patient_Id holds one global identifier for each patient (GUI).
I have written three merge statements, but the performance seems to be pretty shocking. An example of one is below:
--MERGE RECORDS INTO E2E_PATIENT WHERE SITE ID MATCHES THAT IN FILENAME
MERGE INTO E2e_Patient p
USING (SELECT p.Pat_Id,
m.Title,
m.Forenames First_Name,
m.Surname,
m.Gender,
Pkg_Private_E2e.Fnc_Convert_Mdx_Dob(m.Dob,
'YYYYMMDD') Dob
FROM Mdx.e_Mpieghg1 m
INNER JOIN Commons.t_Site_Codes Sc
ON Sc.Medax_Site_Code = m.Site
INNER JOIN E2e_Patient_Id p
ON p.Local_Pas_Id = m.Mpi
AND p.Site_Id = Sc.Siteid
AND p.Sorce = 'MDX') m
ON (p.Pat_Id = m.Pat_Id)
WHEN MATCHED THEN
UPDATE
SET p.Title = m.Title,
p.First_Name = m.First_Name,
p.Surname = m.Surname,
p.Gender = m.Gender,
p.Dob = m.Dob
WHEN NOT MATCHED THEN
INSERT
(Pat_Id,
Title,
First_Name,
Surname,
Gender,
Dob)
VALUES
(m.Pat_Id,
m.Title,
m.First_Name,
m.Surname,
m.Gender,
m.Dob);
COMMIT;If I run the merge on exactly the same data, it seems to be updating all records again - even though there are no changes - is this how the merge works?
Are there any other ways of increasing performance?
Regards
Mark
Edited by: Lloydy76 on 04-Feb-2011 04:07Dan's approach might be a better way, but if there are a fairly large number of records coming in that do not need to be updated or inserted, then another approach might be to add a predicate to the when matched clause to avoid the updates when nothing has changed. Something like:
WHEN MATCHED THEN
UPDATE
SET p.Title = m.Title,
p.First_Name = m.First_Name,
p.Surname = m.Surname,
p.Gender = m.Gender,
p.Dob = m.Dob
WHERE p.Title != m.Title or
p.First_Name != m.First_Name or
p.Surname != m.Surname or
p.Gender != m.Gender or
p.Dob != m.DobJohn -
Hi,
I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values. The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB. ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
How can I see all the values in the line I select in the return table?
My code is as follows:
DATA: tbl_cawnt LIKE cawnt OCCURS 0,
wa_cawnt LIKE cawnt,
BEGIN OF tbl_list OCCURS 0,
atinn LIKE cawnt-atinn,
atzhl LIKE cawnt-atzhl,
atwtb LIKE cawnt-atwtb,
END OF tbl_list,
wa_list LIKE tbl_list,
tbl_return LIKE ddshretval OCCURS 0,
wa_return LIKE ddshretval,
tbl_fields LIKE dfies OCCURS 0,
tbl_dynp LIKE dselc OCCURS 0.
REFRESH: tbl_list, tbl_cawnt.
SELECT atinn atzhl atwtb
FROM cawnt
INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
WHERE spras EQ sy-langu.
LOOP AT tbl_cawnt INTO wa_cawnt.
CLEAR wa_list.
MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
wa_cawnt-atinn TO wa_list-atinn,
wa_cawnt-atzhl TO wa_list-atzhl.
APPEND wa_list TO tbl_list.
ENDLOOP.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ATWTB'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = tbl_list
return_tab = tbl_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Thanks!Hi,
Use the structure DYNPFLD_MAPPING
With this internal table you can easily define that you want to return
other columns of the hit list in addition to field RETFIELD to the
screen.
In this IT you can MAP the screen fields to the serch help screen fields this has three fields
FLDNAME this is the field anme from the search help
FLDINH This has to be blank which would be field with the field value that you want to map
DYFLDNAME THis is the screen field name.
So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
Regards,
Himanshu -
How to populate the attribute of the characteristics in Contract?
Hi Experts,
I need to populate the attribute "Truck Net Value" of the characteristics during the Contract creation with reference to Sales Order. Brief description of the scenerio:
We are using a variant material in the Sales Order. This material has different attributes which the end user need to populate during the SO creation. Now I have to create a Contract with reference to Sales Order. While creating the Contract with reference to Sales Order I want to populate the attribute "Truch Net Value" of the Sales Order with some value and update the Sales Order. So to update the attibute of the Sales Order during Contract Creation. Is there any function module that I can use for this purpose? I know where to write the code in the standard program? But I don't know how to populate the attibute?
Thanks
MANHi,
Welcome to SCN!!!
After the contract is created, you can call the BAPI BAPI_SALESORDER_CHANGE along with COMMIT to change the order texts. Alternatively you can use FMs SAVE_TEXT and COMMIT_TEXT to change any kind of texts.
You can check the parameters to be passed by placing the breakpoints in these FMs, change and save the text manually from VA02 in the sales order.
Thanks,
Vinod. -
Passing values to the TEXT AREA in .HTML page.
Hi,
I have data in internal table and in context node in custom CRM component.
I want to display this data in the textarea field. Is it possible to display this data in the text area? Should we use JAVASCRIPT for this one?
Can anyone please give me the smaple code for passing the values to the text area?
Please help me.
Regards,Hi Pushpa,
You can set the internal table values to the text area field using SET_PROPERTY method .
Check for the context node in which that text field is there ,then get that context nodes current entity .Next set required values to that text area field.
Regards
Anitha
Maybe you are looking for
-
Project Pro hangs while opening a schedule from Project 2010 server.
Hi, We have an issue with opening a schedule from Project server 2010. Project client is not responding. when we try to open schedule in PWA. I am getting unable to open file do you want to open in default view. No matter which view I choose keep get
-
This Ipod i bought at a garage sale for 25$. i went home and plugged it into my computer an it wont read on my computer at all wether its itunes or windows. what can i do to make it show on my pc. i tried to register it and it told me that its linked
-
Your Suggestions on Adding External LCD / LED Monitors to MacBook Pro?
My current work station is a PowerPC G4 Dual 867Mhz with dual 19" CRT displays. I use this for design work (Adobe Illustrator); photo restoration (Photoshop); & online sales. I was down to my last two CRT monitors, and wanted to perhaps start porting
-
Mac mini start up shut down code
I appreciate the two responses, from '300Tech' and TITOUMAX to my original question. I was reluctant to take the "sudo halt" terminal suggestion since a warning loomed over the danger of losing data. I was unable to post a copy of the code sequences
-
Adobe Premier Pro CC won't write tracks in Audio Clip Mixer
Hi! For some reason the Audio Clip Mixer controls aren't functioning after I "write" the track in mix down. The track reverts to "touch" upon play back, but nothing took hold. Any suggestions? Is there something I need to enable first to make the