Expression with qualified table fields
Hi all!
I have 2 doubts concerning the free-form search and expressions using qualified table.
We're implementing SRM-MDM Catalog. Here is the scenario
The search is done in the Main Table (Products). The qualified table (Contract) has the following fields:
Contract ID: Non-Qualifier
Contract Item: Non-Qualifier
Contract Category: Non-Qualifier
Lower Bound: Non-Qualifier
Amount: Qualifier
Currency: Qualifier
Obsolete: Qualifier
There are 2 records in the Contract table assigned to the Product in main table:
123-1-Normal-1-100-BRL-False
456-1-Normal-1-250-BRL-True
1st doubt:
Using the free-form search, if I set the field Contract-Amount to be less than 150, only the record 123-1-Normal-1-100-BRL is listed in the result, which is ok. But if I enter in the expression option the formula Contract.AMOUNT<150, both records are listed:
123-1-Normal-1-100-BRL
456-1-Normal-1-250-BRL ???
Is this formula wrong?
2nd doubt:
The Contract info isn't a mandatory information. It's ok to have a product in the main table without a contract assigned to it. This can happen for example if all contracts for a product are obsolete. In the named search, if I select all products where obsolete equals to 'FALSE', only the records of the main table that have at least one valid contract are listed. As the contract info isn't mandatory, I was expecting a different behavior. Also the records that don't have a valid contract should be listed, but the contract information should be blank. Is there a way to do that?
Thanks!
check out these tables,
VBAK Header Data
VBAP Item Data
VBAG Release Data by Schedule Line in Sch.Agrmt.
VBUK Header Status and Administrative Data
VBUP Item Status
VBRL SD Document: Invoice List
VBPA Partner
VBKD Business Data
VBKA Sales activities
VBEP Schedule Line Data
VBRK Billing: Header Data (invoice)
VBRP Billing: Item Data (invoice)
VBFA Sales Document Flow
VTTP Shipment item
regards,
seenu
Similar Messages
-
Problem with Qualified lookup field
Hi all
I have one qualified lookup field in main table of the repository. when i created the iview for ItemDetails then i selected all the fields of the main table which includes the qualified look up field . but when i see the preview then i am not able to see the field of qualified lookup field in the preview. it is not displaying but i selected the same field.
please help me out on Can we enter the data in the qualified table field which is part of main table in the repository while creating the record??
but i am able to edit the qualified lookup field which is part of main table. but the only problem while creating the record it is not displaying me the qualified lookup field. please help on this........
Thanks
Regards
SunilHi Sunil,
It will not allow you to add the qualified lookup value in the main table record directly.
As the qualified lookup field in the mai table links the main table record with the qualified table fileds.
You will only be able to view the non-qualifier field values in the main table but the qualifier value for that particular record will be visible in the qualifier table only.
So as to populate the lookup qualifier you need to create the main rec then you can establish the link and populate the qualified table fields.
Hope it helps
Kindly reward points if found useful
Thanks
Simona -
Hi all
Can we able to enter the data in Qualified table field while creating the record in portal thru iView??
if posssible please let me know how to do the same in portal, i mean which type of iview we need to use to achieve the same??
Regards
SunilHi Sunil,
As mentioned above you need to use Item details iView and select the desired Qualified table fields which are part of your main table. Now select the Relationship and Qualifed Display Fields radio button. Here a seperate entry will be made for each lookup Qualified field (which is part of main table) which you have selected in the item details view.
Now select a particular Qualified field radio button and select the EDIT button.
Now you will be able to select all the desired Qualifiers and Non-qualifiers from the Available Columns.
I have tried this scenerio at my end and its working fine.
Regards,
Kaushik Koli. -
Mapping issue with Qualifier table
Hi,
1. I have an issue after mapping all 3 non-qual flds of a qualifier table in main table getting the compound fld enabled but selecting it , not mapping automatically to the appropiate compound field in the destination side, but giving an error message
"unable to retrieve source record".
2. The second issue is that after mapping some of the fields and qualified table and loading the maintable data, saving the map but subsequently when trying to open the saved map , it is coming out with the usual main error window
SAP MDM Import Manager
SAP Import manager has encountered a problem and needs to close.
We are sorry for the inconvenience.
Debug Close
Appreciate your help/suggestion on this issues.
regards
-reoAnswer for Qn2:
First you have to map all the display fields to individual Source Fields..
Once you have mapped all the dispaly fields of the Qualified Table, you have to do value mapping for the Fields that require Value Mapping.
Ex: Source Field A -> Destination Display Field 1
Source Field B -> Destination Display Field 2
Source Field C -> Destination Display Field 3
Now Value Mapping where required should be done.
Once the value mapping is done, then you can create a Compound Field.
If you have done the previous steps correclty, then the compound field name is enabled for you to create Compound Field.
Now map the newly created Compound Field to the Qualified Lookup field of the main table.
Now you have to click on the Automap for value mapping.
Hope this helps.
Please reward if you find this helpful -
Can we Sum the Values in the Qualified table Fields??
Hi All,
I have a requirement where..Each material has multiple UOM's, So designed it as Qualified Table.
UOM is a Qualified table.
UOM Type is NON Qualifier.
Weight Qualifier - Integer field
Length Qualifier - Integer Field
Now in main table there is a field called Net Weight.
I need to write a validation which checks Whether Sum of ''Weight'' in Qualfied table is Equal to ''Net Weight'' for that record.
So if there are 5 UOM for 1 material, then the validation should check whetehr the Sum of all 5 Weights in QT is equal to ''Net Weight'' Field in Main table!!!
Did anyone faced a similar issue, If yes How did you solve it!!
Please Help!!
KR
JohnHi John,
Try this:-
Net Weight = SUM(UOM.Weight)
Here SUM is the standard function thats u need to select from list of functions.
Please let us know if it works..
Thanks,
Mahi -
Generic Extraction By Using function Module with Three Table fields?
Hi,
I need to bring the data from three tables by using function module.
Tables: VBAK, VBAP, VBUK.
Fields are: VBELN, ERDAT, NETWR, WEARK, POSNR, MATNR, FKART, FKTYP.
i referred some of the documents in SDN, it explained by using two table fields.
Please help me.hi, the below pseudo code should help you on creating the logic. It's based on the how to paper. So i just used the parts of intrest. You need to copy the rest form the document. Please notice that this is pseudo code. if you just copy/paste, it will not work.
IF s_counter_datapakid = 0.
OPEN CURSOR WITH HOLD s_cursor FOR
SELECT fields FROM table1 WHERE condition
ENDIF. "First data package ?
* Fetch records into interface table.
* named E_T_'Name of extract structure'.
FETCH NEXT CURSOR s_cursor
INTO TABLE e_t_data
PACKAGE SIZE s_s_if-maxsize.
IF sy-subrc EQ 0.
SELECT fields FROM table2 WHERE condition into itab2 for all entries in e_t_data
SELECT fields FROM table3 WHERE condition into itab3 for all entries in e_t_data
loop at e_t_data
read itab2. move corresponding fields to e_t_data
read itab3. move corresponding fields to e_t_data
collect e_t_data.
endif.
IF sy-subrc <> 0.
CLOSE CURSOR s_cursor.
RAISE no_more_data.
ENDIF.
s_counter_datapakid = s_counter_datapakid + 1.
ENDIF. "Initialization mode or data extraction ? -
Problem with fetching table field
Hi all, im explaining the problem, please provide me the query.
i am having the follong tables
1)location table contains one PK(loc_id)and authorization field, etc.
2)accont table contain one FK(loc_id) and hrid , attuid fields etc
3)LINE table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
4)TRUNK table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
5)NODAL_TSG table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
6)REMOTE_CALL_FWD table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
7)Order2misc table contains FK(SER_LOC_ID) of Location table
PIC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
PLOC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
i need to send an authorization field value to another interface.
condition
===========
if(LOCATION.AUTHORIZATION using Account.loc_id is not null and LINE.INTERLATA_PIC_FREEZE not equal to 'F' and LINE.INTRALATA_PIC_FREEZE not equal to 'F' and similaraly for TRUNK, NODAL_TSG and REMOTE_CALL_FWD table fields)
else
fetch the authorization field from
LOCATION.AUTHORIZATION using Order2misc.ser_loc_id
=======
please provide me the query.
thanks in advanceHI thanks for ur reply
i tried lmy best.
im able to put that into 2 queries, but i need to join both of them in single query
query-1
======
Select l.authorization
from location l JOIN ACCOUNT a on a.loc_id = l.loc_id
and l.authorization is not null
where not exists
select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
query--2
=======
Select l.authorization
from location l JOIN order2misc o on o.ser_loc_id = l.loc_id
and l.authorization is null
where exists
select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
================
i need a single query. and correct me if the above query's are wrong -
Validation expression, with a Boolean field
Hello,
My issue is as follow: I want to make sure that if attribute 'A' = "1"; then attribute 'B' has values.
Note: attribute 'A' is boolean.
I did not succeed in setting up such a formula [I succeeded in setting up the opposite formula only:
IF(Attribute 'A',IS_NULL(Attribute B))
Thx for any help,
Rémi DusaudHi Remi,
attribute 'A' is a field of type Boolean in main table, right which has two values 1 and some other value, right?
if this is right then i hope you have also set True Value as 1 and False Value as something in MDM Console. Because Boolean field has only two values which you can set through Console by default True value = TRUE and False Value = FALSE, here you need to change it to 1 and other value as per your requirement.
For the same this expression works as given by me in above post.
If this is really Attributes, name as Attribute 'A' and Attribute 'B' in taxonomy mode of data manager.
and by Boolean you mean here that Attribute of type Text but has two values 1 and some other value.
if this is true then you want a record in maintable is associated with a category which is linked with these two Attributes, and if Attribute 'A' has Attribute Value as 1 then Attribute B should not be null, in this case firstly you have to create a validation and then right click on this validation and then Add Branch select here Branch Value(category which is linked with these two attributes). a new validation gets created with this branch Value.
now write expression in this Branch validation expression as same:
IF(attribute 'A' = "1", IS_NOT_NULL(attribute 'B'))
But here you need to select Attribute 'A' and Attribute 'B' from Attributes Tab in validation expression.
and select "1" from Text Values Tab in validation expression.
let me know if you still face, in both ways this expression is working fine at my end.
Regards,
Mandeep Saini -
Problem with accesing table field in subroutine
Hello All,
I am calling a subroutine multiple times and everytine passing 2 different tables (with different structures) int he subroutine.
PERFORM fill_itabs TABLES t_adnat_bus_in
gt_adnat_bus_in_dummy
USING p_filename..
PERFORM fill_itabs TABLES t_adcust_ban_in
gt_adcust_ban_in_dummy
USING p_filename.
The following is the subroutine definition.
FORM fill_itabs TABLES p_t_table
p_t_table_dummy
USING p_filename .
p_t_table_dummy[] = p_t_table[].
SORT p_t_table_dummy BY cust_id.
ENDFORM.
I am getting a syntax error which states -
<u><b>"The specified type has no structure and therefore no component called "cust_id"."</b></u>
The problem is the structure of the table passed to subroutine is different in the
different times when it is called and so in subroutine defintion I cannot mention an explicit structure for the table.
Could anyone please suggest how to avoid this?
Regards,
Indrajit.Hi Indrajit,
you can add one more formal parameter to the subroutine, which will act as a flag.
while calling the subroutine, you can set the flag if cust_id field is there in the structure of the table, else dont set the flag.
And in the the subroutine, put check on the flag status before writing
p_t_table_dummy[] = p_t_table[].
SORT p_t_table_dummy BY cust_id.
Ex:
FORM fill_itabs TABLES p_t_table
p_t_table_dummy
USING p_filename
p_flag.
if p_flag eq 'X'.
p_t_table_dummy[] = p_t_table[].
SORT p_t_table_dummy BY cust_id.
endif.
ENDFORM. -
AUTO Populate a Form's Field with MySQL Table Field(s) Data
Hi,
I can easily make forms that add, edit/update, delete.
But I want to be able to populate a form field (usually a popup field) with a selection of records from a specific table.
Say I have a table: CARS
That has fields: MODEL, MANUFACTURER, PRICE
I want to populate the form field named Model with all the CARS:MODEL values in the table.
...and some times...
I want to populate the form field named Model with all the CARS:MODEL values in the table where CARS:PRICE < 20,000
Now, I am fine with the whole HTML, MySQL, PHP programming and can do this all by long-hand coding.
But I'd like to speed it all up and use Dreamweaver! :-)
AND I'd like the edit/update forms to also selected the current records value and make it SELECTED whilst also holding all the other values..., using Dreamweaver.
I can do this all by long-hand coding, but I'd like to speed up my development (and colleagues) and use Dreamweaver! :-)
I hope all we need is a pointer to which menu items to use for this way of working within Dreamweaver...
Thank you,Take a look at DW's Dynamic Form Elements server behaviors.
-
Problem with modifying table field with SQL
In a particular table, there are some values that end with a null character (ascii(0)) and we don't want them null-terminated. I've been trying to use the following SQL statement to find those fields and then remove the null character from the end (each record has a 'field_id' field and the 'value' field which holds the actual value of that field_id):
update num_data
set value = substr(value,1,instr(value,ascii(0))-1)
where field_id = 'FIELD1'
select field_id
from num_data
where ascii(substr(value,length(value),1)) = 0
All it does is execute for several minutes before I just have to interrupt it, and no changes are made.I see I messed up; the query should have been:
update num_data
set value = substr(value,1,instr(value,ascii(0))-1)
where field_id in
select field_id
from num_data
where ascii(substr(value,length(value),1)) = 0
But since I wrote this note, I ran that query again, and it worked as I wanted it to; maybe our DB was running slow at that time, though I waited a few minutes for results.
I appreciate you two taking the time to respond. -
hi!
can someone help me in finding the following fields from vendor tables:
confirmed sales order quantity
on order sales order quantity
open PO quantity
moving average price
outstanding delivery PO
thanks,
Srikanth.check out these tables,
VBAK Header Data
VBAP Item Data
VBAG Release Data by Schedule Line in Sch.Agrmt.
VBUK Header Status and Administrative Data
VBUP Item Status
VBRL SD Document: Invoice List
VBPA Partner
VBKD Business Data
VBKA Sales activities
VBEP Schedule Line Data
VBRK Billing: Header Data (invoice)
VBRP Billing: Item Data (invoice)
VBFA Sales Document Flow
VTTP Shipment item
regards,
seenu -
Issue in Mapping Qualified Table in Import Manager
Hi Experts
I have extracted Customer data from R/3 ECC, I could successfully loaded reference data, but when trying to load Main table data (Using DEBMDM06 MAP) I am getting mapping issues with Qualified table (Sales Data and Bank Details).
Error Messages
Map 'Sales Data' field to import qualifier(s)
Map 'Bank Detals' field to import qualifier(s)
I have checked and found that all the field and value mapping is in place, If i remove mapping for the qualified table fields then the data is ready to import.
What is the issue, and how do I import Qualified Table data.
Appreciate your inputs
Gaurav.Hi vickey ,
Kindly go through the below link it will help you understand better the mapping the workinga nd importing of Qualified tables:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00a15239-684e-2b10-b8ae-b936b7d1c1fe
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c03240fa-cc3e-2b10-aa9a-a5798e319a6e(Qualified importing with main table)
Hope It Helped
Thanks & Regards
Simona Pinto -
Change tracking on qualified table
Hi
We are using MDM 5.5 SP05. I want to track changes made to a field on a qualified table. I have enabled the track changes option on the console for a field with qualifier flag set to yes .Any changes I make to that field are not being recorded in the A2I_CM_History table. I m able to see records for the changes made to the main table record.
Is there some additional step required to track changes on the qualified table fields.
Regards,
PrashantaIf you working on MDM 5.5 SP03 and the field which you track for change is <b>Non-multilingual text fields</b> then you will have this problem. check this note
<a href="https://websmp203.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=914190&_NLANG=E">Note 914190 - MDM 5.5 SP03 Patch01 Release Note</a>
Regards,
sanjay. -
FM to find Search help for a table field
Hello Colleagues,
is there any function module which would return the search help associated with a table field ?
I tried with the FM F4IF_DETERMINE_SEARCHHELP but it returns search help that is associated with either to table field DE or search helps associated with the value table fields. I need to find only
the search helps that are associated with a table field but not the value tables or fixed values.
For ex. If i pass table_name = 'SFLIGHT' and field_name='CARRID' then it should return me S_CARRIER_ID. but if i pass field_name='CONNID' then it should return nothing..
Best Regards, JVRHi Kishore,
Use the Function Modulein the F4 help associated with a table field ...
CALL FUNCTION ' HELP_VALUE_GET"
EXPORTING
fieldname = 'CARRID' "field name in the table you refer
tabname = 'SFLIGHT' "Table name
IMPORTING
select_value = S_CARRIER_ID. "Selected field
Regards,
Prabhudas
Maybe you are looking for
-
HP Officejet Pro L7590 won't print correctly after it sits a few days
I have a HP Officejet Pro L7590 All In One. It all of a sudden will not print correctly after it sits a few days. I purchased a new black/yellow printhead recently and it did print well for about a week. If it sits a few days, it acts up again. A
-
I have tried to load Java Script so that i can watch things on the BBC i player. I have followed the instructions for loading Java Script as told on the BBC i player i.e i have a ticked box for Java Script but i still can't watch things on the i play
-
Is it possible to call DEFAULT.LGF script From SEND and REfresh Schedules
hello Usually, when user sends data from an excel input schedule, Default.LGX logic script is automatically executed. I'd like to have Default.LGF script executed instead. Is it possible ? How ? (I don't want users to launch DM packages). Thanks. R.
-
Hi, I have been using jsfl to help out with my daily development routines. I just recently wondering if I can have jsfl coded in the custom flash components. I tried to do it, but so far unsuccessful. So I am wondering if this is even possible. I am
-
Is there a feature in iCS that shows only the time scheduled/available on my calendar?
Is there a filter mode that will mask the content of my schedule and show only the time scheduled/available? <P> This feature, which will be called "free/busy" time, will be included in the next major release of iPlanet Calendar Server. There will be