UDO MasterData and Deails Data
Hi,
I've a UDO linked with a custom form designed with Screen Painter. In order to add a new record I press CTRL+A keys so the Form's Mode is changed to fm_ADD_MODE.
Ok!
On the custom form I've a EDIT field where I should write manually an Item Code. But If I don't know that code, I would like to search it through an Items list (for example writing the * (asterisk) on that field I would like to show the form which allow me to look for the Item code).
How can I do this?
Thanks in advance.
Piero
Hi Piero,
If you want to display a list like in B1 then you have to create a UDO containing this list of records.
After that you only have to use the ChooseFromList object, new in the 2005 version.
Here you have a sample on how to use it:
' Add ChooseFromList to the form
oCFLCPuo = SB1_App.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
oCFLCPuo.ObjectType = "TTT_UDOMD" 'Code of your UDO containing the list
oCFLCPuo.UniqueID = "NM_UOCFL" 'String that you fix
oCFLuo = oForm.ChooseFromLists.Add(oCFLCPuo)
'Add your EditText to the form as usual
oItem = oForm.Items.Add("EdTxtUO", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oItem.Left = 50
oItem.Top = 50
oEdit = oItem.Specific
'Bind your EditText as you need (here UDS for example)
oEdit.DataBind.SetBound(True, "", "ET_UDS_UO")
'Link CFL to EditText
oEdit.ChooseFromListUID = "NM_UOCFL"
oEdit.ChooseFromListAlias = "Code"
Don't forget to listen the event et_CHOOSE_FROM_LIST and copy the value selected into the DataSource of your EditText:
oForm.DataSources.UserDataSources.Item("ET_UDS_UO").Value = eventCFL.SelectedObjects.GetValue(0, 0)
Hope it helps
Trinidad.
Similar Messages
-
We use the 0HR_PA_OS_1 as an extractor for both masterdata and transaction data. To reduce the loadingtime I would like to know if we can populate both the info.object and the Info cube from the same load. Technical it should be no problem, but the infoobject 0HRPOSITION is masterdata in the Info cube using the same extractor, and masterdata should alsways be loaded before transaction data.
Any advice?
TomWe have daily load process chains to load HR data. And we have following sequence
Attribute Data Load -> Text Data Load -> Attribute change Run -> Transaction Data Load.
0HR_PA_OS_1 (for 0HRPOSITION) gets loaded in attribute load local PC, and in Transaction Data Load PC we have DTP that loads from PSA to cube 0PAOS_C01.
Yes, masterdata should always be loaded before transaction data, this is because of SIDs generation and also if u r using 'Read master Data' in any of transactional transformation mapping, then this 'Read master Data' should happen after master data (0HRPOSITION) is active (after Attribute change Run). -
Loading masterdata and transaction data from same flat file
hi all,
how can i load master data and transaction data from the same flatfile at a time.I am afraid it is possible.
Go thru this Uploading Master & Transaction Data together from Flat File -
Hi everyone,
I have a problem to load a matrix.
I have a form whith type x, uniqueID y and objectType z (z is an UDO)
The UDO and the table are MasterData
Then, I have a matrix with two columns; one for a Code, the other for the Name.
Tha columns have:
Alias = Code / Name
DataBound = true
Table = @NameOfTable
But the matrix doesn't load the values from ddbb.
What I Do wrong?
Thanks
CarlesCarles,
You may want to review the SDK sample for Matrix and Date Sources as this may help you. This is part of the SDK sample code. Click Start > All Programs> SAP Business One > SDK > Samples. Here you can then look at the COM UI folder for VB.Net and you will see 06.MatrixAndDataSources.
Eddy -
Hi everybody,
I have some weeks killing my brain trying to write an UDO through code but I don't know how to...
Here is my situation:
I need to write an UDO when an invoice is added, this is going to be like an historic about some UDF and some invoice information. I need an UDO because the client can't edit this information.
I'm tired, I tried UDT but this give me a error (You have to chose the series from the menu....), I have no way with the UDO object because it is only for metadata, I can't execute an Insert or update (update after adding data with the default form) and I need this process automatically.
I need some urgent Help.... D:
Thanks.
Enriquillo GuigniHello:
You have to do it through RecordSet. It is not posible with UDT. The problem is that you have to be sure the docentry and the docnum when you are going to maKe the insert. Later you cant add new entries by the default form because the information in ONNM is not correct because this information is updated automatically by SBO when you add a new entry and what you are doing is by recordset and it is not autorized by SAP that you update the information of your UDO Docentry.
Best Regards
Guillermo -
Relation between master and transaction data
Hi experts,
I have a basic question how the relation between masterdata and transction data is maintained in R/3. As I know first we extract master data and later transaction data in a typical R/3 based scenario.
1.How does BW knows that , the transaction data are related masterdata in the same sense as in R/3 ?
I am involved in an enhancement of R/3 extractor. I need to derive 3 more fields and map it to info objects in BW. Cld any one explain me ( with an example plz) how these alignments to be made. How can I establish relation b/w derived fields and transaction data during extractions ?
regs
D BretHi Dave.
Let's see if I can get all of your questions answered. First, when Transactional Data is loaded, BW checks to see if a SID exists for each characterisatic field & value in the load. If one doesn't, it either creates a SID (Surregate ID) in the master data tables (default action) or the load fails (if the enforece referential intgegrity flag is set). It's better to load master data first in either case as it will improve the performance of the transactional load.
In terms of R/3, the data has similar relationships as in BW. There are master data tables and transactional data tables. The difference is that while R/3 uses ~1 master data table per field, BW uses more. Same thing for transactional data.
As for your enhancement, if everything you need for the derivation of the extra field is in R/3, then you can enhance the extractor in RSA6 and do the mapping in R/3. Once you replicate the DataSource to BW and reconnect the transformation & update rules, the load should work. If you can give a bit more information on what sort of enhancement you are attempting, I can give a better example.
Cheers,
Adam -
Managing Org units and Master Data in project structure
How are Org units and Master data managed at the project structure? What would be the appropriate place holders for them in the structure. Should we manage it at the top of the project structure or within the business scenarios/processes. On what basis should we decide this? How would this impact in case of a global template rollout?
Please share your experiences regarding this.
Thanks.
Mikeany talented guy do this way.
i think that ur working in E2E project work
before singoff ur business process u should give to ur users master data templets..they collect for masterdatas in before realization phase...that time u should know how many specifications is there and in spections how many in quantitative and how many qualitative u will indentify. if any query let me back.
Edited by: Lakshmiananda prasad on Oct 6, 2009 11:48 AM -
Bi 7.0 for cube and master data steps
hi friends,
can u give me step by step comparision between bi 7.0 and bi 3.0 for cube ods and master data, ple explaing me what are the steps difference for those in bi 7.0 .
and reporting is same or any difference in bi 7.0 .
other than sap.help.com material, if u have any other or any screen shots. ple send me.
Thanking u
suneel.what abt master data, in master data we are using only transfer rules, here also we are using transformation and dtp again.
Yes we would be using transformations and DTP's on the masterdata too. but the system would prompt to make IO a infoprovider in order to use the new functionality. There is another work around for it, but we can discuss it later, orelse search the forum for that option, i have replied to couple of questions regarding that.
what abt reporting any things other than calculated kf restricted kf, filters rows columns, free chaststics, variables, any chnages in screen.
The basic functionality of all the above mentioned objects havent changes, and the query designer itself, there are hell a lot of changes in the appearance and it will take a while to get used to it and find your way with all the functionalities.
i have doubt bps menas businees planning simulation what is this, bec i have idea we can use transactional cube and transactional ods for write accress for planninmg also
BPS is something I have no clue abt... (you dont see me answering in Business planning forum) -
Problem in Master Data and Master Data Lines
Hi All
I'm facing a big problem...I have a UDO with object type as Master.....As master table and master data line table has code field in common the value for this column should be same....but the problem arises here...it happenes that when i enter the data Code field of master data table has different value from code field of master data lines...
Any one can please help........
ThanksHi Pati,
After posting the message did you get a delivery confirmation reply? If not, you need to open a new message saying you have yet to get a answer for your previous message (and state the previous message number).
Then sill you get no answer, you need to get in contact with your SAP Business Partner (if you're a customer) or your Channel Partner (if your a SAP Business Partner).
Regards,
Vítor Vieira -
Deleting UDO Masterdata doesn't delete ChildTables
Hi there
Just recognised when clicking "remove" on my Master UDO with linked Childs it just deletes the masterdata and leave the childs. This produces orphaned childs.
But maybe i'm just doing something wrong?
ThanksHi Curtis
Yes i can. had to implement it myself:
private void AddLine()
if (contextMtx != null) {
string dataSourceName = contextMtx.Columns.Item(0).DataBind.TableName;
if (dataSourceName != "") {
SAPbouiCOM.Form form = (SAPbouiCOM.Form) application.Forms.ActiveForm;
form.DataSources.DBDataSources.Item(dataSourceName).Clear();
contextRow = contextMtx.RowCount;
contextMtx.AddRow(1,contextRow+1);
ClickFirstColumn();
private void DelLine()
if (contextMtx != null) {
string dataSourceName = contextMtx.Columns.Item(0).DataBind.TableName;
if (dataSourceName != "") {
SAPbouiCOM.Form form = (SAPbouiCOM.Form) application.Forms.ActiveForm;
form.DataSources.DBDataSources.Item(dataSourceName).Clear();
contextMtx.DeleteRow(contextRow);
form.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE;
private void ClickFirstColumn()
foreach (SAPbouiCOM.Column col in contextMtx.Columns) {
if (col.Editable && col.Visible && col.Width>0) {
col.Cells.Item(contextRow+1).Click(SAPbouiCOM.BoCellClickType.ct_Regular,0);
break;
Greets -
Null and no data in field value
I transferring sql from MS Access to Oracle 9i.
In Access I have this
select * from tableOne where firstname <> ''
and firstname & '' = ''The firstname field can be edited where it could have data and the data could be deleted so I am trying to select records where firstname is not null and it has no data in it.I transferring sql from MS Access to Oracle 9i.
In Access I have this
select * from tableOne where firstname <> ''
and firstname & '' = ''
select * from tableOne where firstname IS NULL;
- or -
select * from tableOne where firstname IS NOT NULL;
as appropriate.
In Oracle there is no difference betwen being NULL and having data of length '0' -
Problem with item and/or data during page-processing-PS/SQL
Greetings!
On my page I have a custom report (from 2 tables) and a small form-field, that adds and edits data in the report. After generating the form with the wizard I added an extra item, to store the id from one of the tables from the report data.
Now, on submit a calculation should take place, that updates data according user input with a procedure in Page-Prosseses:
declare a number;
begin
case :PLATZ
when 1 then a:=100;
when 2 then a:= 50;
else a:=25;
end case;
update TBL_MITGLIEDER set TURNIERPUNKTE = TURNIERPUNKTE + a
where ID_MITGL = :P14_ID_MITGL;
end;
:PLATZ is user selected (1,2,3), :P14_ID_MITGL stores the reference to TBL_MITGLIEDER (and shows the change, when I select another record)
As I understand, that process should also run, when I submit a chance, but nothing happens then.
But when I try to save a new record (which worked without any problems before adding that process), I get this error message:
ORA-06550: line 1, column 64: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table TBL_TURNIERSIEGER.
Then, when I go back into the app-builder and try to run the page again, I get this message:
ORA-01403: no data found
Error Unable to fetch row.
I am not sure, if you guys have all the information you need, to know whats going on. Maybe this has to do with session-id and the whay, items are updated. I hope you can help me.
Thanks, best regards,
tobiFirst can you please post all log file errors
>> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
2. You can try reinstall from start (In this case you have to make sure that you un-install all)
[Personal Site] [Blog] [Facebook] -
Post Author: tadj188#
CA Forum: Formula
Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
Background:
1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using subreports. A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report with their respective detail lines). I had multiple subreports and each subreport became one union.
Created and tested, already:
1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
Issue:
1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
Other Ideas Appreciated:
1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
Thank you.
Tadjexport all image of each page try like this
var myDoc = app.activeDocument;
var myFolder = myDoc.filePath;
var myImage = myDoc.allGraphics;
for (var i=0; myImage.length>i; i++){
app.select(myImage[i]);
var MyImageNmae = myImage[i].itemLink.name;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
alert(myImage[i].itemLink.name) -
How to update link and import data of relocated incx file into inca file?
Subject : <br />how to update link and import data of relocated incx file into inca file.?<br />The incx file was originally part of the inca file and it has been relocated.<br />-------------------<br /><br />Hello All,<br /><br />I am working on InDesignCS2 and InCopyCS2.<br />From indesign I am creating an assignment file as well as incopy files.(.inca and .incx file created through exporing).<br />Now indesign hardcodes the path of the incx files in inca file.So if I put the incx files in different folder then after opening the inca file in InCopy , I am getting the alert stating that " The document doesn't consists of any incopy story" and all the linked story will flag a red question mark icon.<br />So I tried to recreate and update the links.<br />Below is my code for that<br /><br />//code start*****************************<br />//creating kDataLinkHelperBoss<br />InterfacePtr<IDataLinkHelper> dataLinkHelper(static_cast<IDataLinkHelper*><br />(CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)));<br /><br />/**<br />The newFileToBeLinkedPath is the path of the incx file which is relocated.<br />And it was previously part of the inca file.<br />eg. earlier it was c:\\test.incx now it is d:\\test.incx<br />*/<br />IDFile newIDFileToBeLinked(newFileToBeLinkedPath);<br /><br />//create the datelink<br />IDataLink * dlk = dataLinkHelper->CreateDataLink(newIDFileToBeLinked);<br /><br />NameInfo name;<br />PMString type;<br />uint32 fileType;<br /><br />dlk->GetNameInfo(&name,&type,&fileType);<br /><br />//relink the story <br />InterfacePtr<ICommand> relinkCmd(CmdUtils::CreateCommand(kRestoreLinkCmdBoss)); <br /><br />InterfacePtr<IRestoreLinkCmdData> relinkCmdData(relinkCmd, IID_IRESTORELINKCMDDATA);<br /><br />relinkCmdData->Set(database, dataLinkUID, &name, &type, fileType, IDataLink::kLinkNormal); <br /><br />ErrorCode err = CmdUtils::ProcessCommand(relinkCmd); <br /><br />//Update the link now <br />InterfacePtr<IUpdateLink> updateLink(dataLinkHelper, UseDefaultIID()); <br />UID newLinkUID; <br />err = updateLink->DoUpdateLink(dl, &newLinkUID, kFullUI); <br />//code end*********************<br /><br />I am able to create the proper link.But the data which is there in the incx file is not getting imported in the linked story.But if I modify the newlinked story from the inca file,the incx file will be getting update.(all its previous content will be deleted.)<br />I tried using <br />Utils<IInCopyWorkflow>()->ImportStory()<br /> ,But its import the incx file in xml format.<br /><br />What is the solution of this then?<br />Kindly help me as I am terribly stuck since last few days.<br /><br />Thanks and Regards,<br />Yopangjo
>
I can say that anybody with
no experience could easily do an export/import in
MSSQLServer 2000.
Anybody with no experience should not mess up my Oracle Databases ! -
Historic and Current data for Master data bearing objects
Hi All,
We are trying to implement type 2 dimensions for all the master data bearing characteristics, where we require historic and current data available for reporting. the master data can have a number of attributes and all of them can be time dependent. We are not getting any 'datefrom' or 'dateto' from the source system.
For example:
For Example: The table below shows data entering BI at different dates.
Source Data day of entering BI
MasterID ATTR1 ATTR2
123506 Y REWAR day1
123506 N REWAR day4
123506 Y ADJUST day4
123506 N ADJUST dayn
The field 'day of entry into BI' is only for your understanding; we do not get any date fields from the source. SID is the field we are generating for uniqueness. It is a counter. EFF_DATE would be the current date for all the data. EXP_DATE would be 31.12.9999 until the attributes change. SID and MasterID together would be the key.
On day 1 the following data enters BI,
day 1
SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
1 123506 Y REWAR 2/10/2009 12/31/9999
On day 4, 2 data records enter with same PID,
SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
2 123506 N REWAR 2/13/2009 12/31/9999
3 123506 Y ADJUST 2/13/2009 12/31/9999
the EXP_DATE of the record of day 1 needs to be changed to current date.
Also there are two records entering, so latest record would have EXP_DATE as 31.12.9999. And the EXP_DATE of the first record on day 4 should change to the current date.
so the following changes should happen,
CHANGE
SID MasterIDATTR1 ATTR2 EFF_DATE EXP_DATE
1 123506 Y REWAR 2/10/2009 2/13/2009
CHANGE
SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
3 123506 Y ADJUST 2/13/2009 2/22/2009
On day n, one data record enters with same PID,
SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
4 123506 N ADJUST 2/22/2009 12/31/9999
The change is ,
CHANGE
SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
3 123506 Y ADJUST 2/13/2009 2/22/2009
The data expected in P-table is as below, on Day n or after Day n, untill any other record enters for this MasterID,
1 123506 Y REWAR 2/10/2009 2/13/2009
2 123506 N REWAR 2/13/2009 2/13/2009
3 123506 Y ADJUST 2/13/2009 2/22/2009
4 123506 N ADJUST 2/22/2009 12/31/9999
Has anyone worked on type 2 dimensions earlier? Or any ideas to implement this logic would be appreciated.
Regards,
SudeeptiCompound the Master ID with eff date and other attribute as superior objects
so you will get P-table as
ATTR1 ATTR2 MAT ID
1 2/10/2009 2/13/2009 123506 Y REWAR
2 2/13/2009 2/13/2009 123506 N REWAR
3 2/13/2009 2/22/2009 123506 Y ADJUST
4 2/22/2009 12/31/9999 123506 N ADJUST
Maybe you are looking for
-
In the past it was possible to delete songs/tones from iTunes but this no longer seems to be the case. Is it possible to delete songs or tones if they are not duplicated - I just no longer want them in my library?
-
I had been using my unlocked iPhone4s in Australia for few months and it worked with every carriers. Now I'm in Taiwan and I cannot use it. What should I do?
-
Virtual Wireless LAN Controller and 1602E: No SSID
Hello, I am trying to troubleshoot a customer's issue remotely. They have vWLC 7.4, and a 1602E AP, running the 7.4 LWAPP image, successfully joined. Whatever is tried, the SSID configuration is not pushed to the AP. Other configuration changes get
-
I'm using ActionScript (in Flex Builder 2) to add BarChart and ColumnChart components to my UI at runtime. If I set the chart's GridLines.styleName to a value in an .css file, an extraneous line (a gridline ?) shows up in the chart. If I use GridLine
-
Can't get Memory allocation, FPS, ActionScript, ...
Hello, I'm using Flash Develop 4.4.2 with Flash Player content debugger 11.7 I enabled avanced telemetry with a pluging but in Adobe Scout I didn't get Memory allocating, actionscript, etc. I also enabled Memory allocating, actionscript and the Advan