How to insert value in UserDefine MasterData table ?
dear all ,
I have added a userdefine table ABC and columns (Code,Name,DocEntry,Object,U_Code,U_Name).
I want to insert value in ABC table .i can't understand how to assign 'DocEntry' column value
i am using
SAPbobsCOM.UserTables oUserTabItems = (SAPbobsCOM.UserTables)oCompany.UserTables;
SAPbobsCOM.UserTable oUserTabItem = (SAPbobsCOM.UserTable)oUserTabItems.Item("WITM");
oUserTabItem .Code = SimpleProdEntity.sku;
oUserTabItem.Name = "1ffd";
oUserTabItem.DocEntry =1; not work
oUserTabItem.UserFields.Fields.Item("DocEntry ").Value =1; not work
how to assign 'DocEntry' column value
oUserTabItem.UserFields.Fields.Item("U_Code").Value = "ffhj dfsdf";
oUserTabItem.Add();
plz help........
Hi
You have to register your UDO first. Then you can use this code for inserting values
Dim oCompany As SAPbobsCOM.Company = B1Connections.diCompany
Dim oGeneralService As SAPbobsCOM.GeneralService
Dim oGeneralData As SAPbobsCOM.GeneralData
Dim oGeneralParams As SAPbobsCOM.GeneralDataParams
Dim oCmpSrv As SAPbobsCOM.CompanyService
oCmpSrv = oCompany.GetCompanyService
oGeneralService = oCmpSrv.GetGeneralService("UDO") ' UDO unique id
oGeneralParams = oGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralDataParams)
oGeneralData = oGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralData)
oGeneralData.SetProperty("Code", "1")
oGeneralData.SetProperty("Name", "1")
oGeneralData.SetProperty("U_Code", "code")
oGeneralData.SetProperty("U_Name", "Name")
oGeneralParams = oGeneralService.Add(oGeneralData)
Regards
Arun
Similar Messages
-
How to insert values in the standard table
Hi Experts,
I have a Standard table ( Info structure ), its called S551. It having 20 fields, Now i want to insert some 1000 records inthat table from Excel sheet, can any one plz help this.
If i tried in se11, with create entries option its not allowing to insert the values manually inthat table.
Plz help this. Point will be sure.
MohanaHi Mohana,
U can't insert the records directly in to the standard data base table. Also it is not advisable. It is always better to use BAPI/BDC to upload mass data.
I advise to write a small program for this.
Upload the excell file to internal table which is having same structure of S551.
use FMs TEXT_CONVERT_XLS_TO_SAP or GUI_UPLOAD for uploading data from excell to internal table.
INSERT/MODIFY S551 FROM itab.
Make sure that ur excell file structure and internal table structure matches and
U have values for all the primary keys of the table and don't have duplicates(primary key).
Thanks,
Vinod. -
How to insert into more than one table at a time also..
hi,
i am a newbee.
how to insert into more than one table at a time
also
how to get a autoincremented value of an id say transactionid for a particular accountid.
pls assume table as
transactionid accountid
101 50
102 30
103 50
104 35
i want 102 for accountid 30 and 103 for accountid 50.
thank u@blushadow,
You can only insert into one table at a time. Take a look here :
Re: insert into 2 tables
@Raja,
I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
Insert, extract... ? Can you clarify your job ?
Nicolas. -
How to insert data into the mysql table by giving as a text file
Hi,
Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
Thanks:)At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).
-
How to insert a record in ROOSPRMSC table? (accidentally deleted)
Calling an InfoPackage in BW causes short dump, while fixing the short dump issue, accidentally
deleted the "ROOSPRMSC" table entries.
Could you tell me how to insert a record in "ROOSPRMSC" table???Hi Senthil,
Regards,
Phani Raj Kallur
Message was edited by: Phani Raj Kallur -
How to insert Legacy data into QP_RLTD_MODIFIERS table?
How to insert Legacy data into QP_RLTD_MODIFIERS table in R12 instance.
I would use the API QP_Modifiers_PUB.Process_Modifiers for pushing legacy pricing data into R12. QP_RLTD_MODIFIERS is only used for certain types of discounts (in my prod environnment, only promos have data in this table).
-
Hi,
In Jdeveloper 12c I am trying to create a task flow where I have taken 3 pages to insert values in a table. On first page when I put data control of 2 columns as input with label, then on bindings tab I created an action as CreateInsert.
Now when I am trying to create invoke action in executables then this option is not available.
How can I create this task flow where values can be inserted in the table on the 3rd page fragment on commit button???
All 3 pages have data control input boxes to insert values in the table.Hi,
Right click on the task flow page activity, click create page def and add there. If your activity is a page, then you can select the page and generate the pagedef as well.
Then you can add the executables.
Thanks. -
Hi Experts,
We checked in the debugger that the values 105,106 &107 are not added in the virsa_cc_config table.
Where to add the values in the table? In J2ee database or in server database (which is oracle for us)? When we searched in oracle data base this table doesnot exist.
So we believe it has to be inserted in J2EE database. If yes, can somebody help us how to check and insert the values in the respective table in J2ee database
Thanks and Best Regards,
Srihari.KDear Sri,
Yes this table resides in database where GRC is installed.
To insert these lines, you need to login into GRC server-
if it is windows goto -
sqlplus /nolog
connect /as sysdba
run this command
INSERT INTO SAPSR3DB.VIRSA_CC_CONFIG (CNFGPARAM, CNFGSEQ, CNFGVALUE) VALUES
('105', 0, 'http')
INSERT INTO SAPSR3DB.VIRSA_CC_CONFIG VALUES ('106', 0, '<port number>', 'J2EE Engine Port')
INSERT INTO SAPSR3DB.VIRSA_CC_CONFIG VALUES (107, 0,'http://<fully qualified hostname>:<port number>/webdynpro/dispatcher/sap.com/grc~ccappcomp/BgJobStart','BgJobStart URL')
Commit;
Put your hostname and port accordingly and run.
Let me know if it works.
Regards,
Sabita -
How to insert data from different internal table into a data base table
hi all,
I want to insert a particular field in an internal table to a field in a data base table.Note that the fields in the internal table and database table are not of the same name since i need to insert data from different internal tables.can some one tell me how to do this?
in short i want to do something like the foll:
INSERT INTO ZMIS_CODES-CODE VALUE '1'.
*INSERT INTO ZMIS_CODES-COL1 VALUE DATA_MTD-AUFNR .(zmis_codes is the db table and data_mtd is the int.table)REPORT ZINSERT.
tables kna1.
data: itab LIKE KNA1.
data lv_kUNAG LIKE KNA1-KUNNR.
lv_kuNAG = '0000010223'.
ITAB-kuNNR = lv_kuNAG.
ITAB-name1 = 'XYZ'.
INSERT INTO KNA1 VALUES ITAB.
IF SY-SUBRC = 0.
WRITE:/ 'SUCCESS'.
ELSE.
WRITE:/ 'FAILED'.
ENDIF.
Here lv_kunag is ref to kna1 kunnr passed in different name
In internal table .
Try and let me know if this logic dint work. -
How to insert data from file to table??
I need to know that how can i insert data in multiple column through file. I can simply insert data in one column table but couldnt find out the way to put data in all column.
My data store in a file
************************************************text.txt***************
133, shailendra, nagina, 14/H, 45637, 9156729863
**************************************************************my_data(table)**********
trying to insert into below table...
id, name, last_name, add, pin. mob
Let me know if anything else needed..:)Hi Shailendra,
Actually, in SQL Developer, you can open a connection to the target schema, right-click on the Tables node in the navigator tree view, select Import Data, then use the Data Import Wizard. It is extremely flexible. It looks like you have a comma separated variable file, so if you select Format: csv and Import Method: insert it will probably work just fine.
To minimize the chance of errors during import, pick a preview limit value so the wizard can examine the size and data type of all columns in as many data rows as possible, then review the data type/size for each column in the next wizard page and override as necessary. For date columns it is also important to choose the appropriate format mask.
Hope this helps,
Gary
SQL Developer Team -
The best way to insert values in a Nested Table
Hi!
I want to insert values from a SQL-query in a Nested Table.What's the best way to do it?
In addition,the only way that I've found is doing a query and when I've got the query result I insert it into the Nested Table.For instance:
FOR cur_row IN (SELECT id,nstreet from example Where id=3) LOOP
--here I'm inserting the values of the query in the nested table.
-- VarNestedTable is a Nested Table of Row_Type.
--Row_Type is an object with two fields:Id,Nstreet
VarNestedTable.extend;
VarNestedTable(Coincidents.Last):= Row_type(cur_row.id,cur_row.nstreet);
END LOOP;How to Use Tables: Creating a Table Model.
very bad example:
class DataObject {
String name, age, numberOfMonkeys;
class DOTableModel extends AbstractTableModel {
final String[] COLUMN_HEADER = { "Name", "Age", Monkeys" };
List dataObjects;
public String getColumnName(int column) {
return COLUMN_HEADER[ column ];
public int getRowCount() {
return dataObjects.size();
public int getColumnCount() {
return COLUMN_HEADER.size();
public Object getValueAt(int row, int column) {
DataObject do = dataObject.get( row );
switch( column ) {
case 0: return do.name;
case 1: return do.age;
case 2: return do.numberOfMonkeys;
} -
How to enter values to a database table with data type 'LCHR'?
Hello All,
I have created a database table with five fields, of which the last field is 'Value' field in which i have to enter text with a maximum of 1000characters. I have also specified a 'Length' field preceding the 'Value' field.
The datatype specified for the 'Length' field is 'INT2' and for the value field is 'LCHR' with length 1000.
When i tried inserting values to the table through a report, the report is giving an error that 'Literals that take up more than one line are not permitted', which means 255characters.
Also, when i entered a short text which is less than 250 characters to the 'Value' field,, the report is working fine and the table entry is visible.
Can anyone help me in this?
It would be really helpful if you explain how to use 'LCHR' data type in tables and how to enter values to such a field with more than 255characters.
Thanks in Advance,
ShinoHi shino,
Alternatively,
you can use STRING instead of LCHR.
I too have tried with LCHR and am facing the same issue.. i am not sure why its coming..
i have tried STRING and its working perfectly.
wa-key_field = 'IN4'.
CONCATENATE 'Long text over 200 chars length '
'another Long text over 200 chars length '
'another Long text over 200 chars length '
INTO wa-long_text.
wa-len = strlen( wa-long_text ).
INSERT zshino_table from wa.
SELECT * FROM zshino_table INTO table it.
clear wa.
LOOP AT it INTO wa.
WRITE:/ wa-len, ' ' , wa-long_text.
ENDLOOP.
Also, remember to set the type of the database field as String.
hope this was of some help,
thanks and regards,
Sagar. -
How to insert 'S&L' in a table
How to insert the value 'S&L' in table.
I am getting error at '&'.
Thanks in advance.
SriniThose would all work fine in something like SQL*Plus,
but what about when the record is being inserted
using an application? I am making a website using
ASP.NET that uses an Oracle database, and the SET
DEFINE OFF command is not really and SQL command, it
is an SQL*Plus command.But AFAIK only sqplus treats it as a substition variable anyway, though I don't really know asp.net well enough to say for sure.
Is there any way to write an
INSERT statement that can insert a record without the
need for a SET command (in other words, using only
commands that Oracle understands)? Thanks.to be certain you could use
insert into t values ('S' || chr(38) || 'L'); -
How to insert multiple records into a table?
hi all
i have a table that name is : TiketsItem
now i want to 100 records insert my table
for example : TicketsHeaderRef=52000
Active=False
TicketsItemId=45000 to 45100
how to insert TicketsItemId 45000 to 45100 in my table
thanks all
Name of Allah, Most Gracious, Most Merciful and He created the humanSo, you just want to insert the serialized data into the table, without useDate or WKRef? I'm assuming these values will be updated later?
Try something like this:
DECLARE @TicketsHeader TABLE (TicketsItemID BIGINT, ticketsHeaderRef BIGINT, active BIT, useDate DATETIME, WKRef SMALLINT)
DECLARE @startInt BIGINT = 45000
WHILE @startInt <= 45100
BEGIN
INSERT INTO @TicketsHeader (TicketsItemID, ticketsHeaderRef, active)
VALUES (52000, @startInt, 0)
SET @startInt = @startInt + 1
END
SELECT *
FROM @TicketsHeader
thanks
i edited your codes:
DECLARE @TicketsItem TABLE (TicketsItemID BIGINT, ticketsHeaderRef BIGINT, active BIT, useDate DATETIME, WKRef SMALLINT)
DECLARE @startInt BIGINT = 45000
WHILE @startInt <= 45100
BEGIN
INSERT INTO @TicketsItem (TicketsItemID, ticketsHeaderRef, active)
VALUES (@startInt,52000 , 0)
SET @startInt = @startInt + 1
END
when i execute:
SELECT * FROM TiketsItem
i do not see any records inserted in TiketsItem
how to solve it?
Name of Allah, Most Gracious, Most Merciful and He created the human -
How to insert values using pushputtons in text item & fetch data based on
Dear friends,
I want to insert values in the Text item using pushbutton e.g to insert 05CST884 into text item using pushbuttons '0' '5' 'C' 'S' 'T' '8' '8' '4' (alpha numeric buttons) in the layout editor and then fetch data based on the number entered with that of one in the table in the another text item2 in the layout editor.
Suggestions regarding how to develop and use effective triggers are welcome.At the block level (for the control block where all your push buttons are, let's call it block1) create a WHEN-BUTTON-PRESSED trigger. Your [A-Z] and [0-9] buttons should be on a dedicated non-database datablock to reduce problems. As stated previously, this trigger should just contain the code:
:block2.text_item := :block2.text_item||get_item_property(:system.trigger_item, label);
Also on the pushbutton block, create a backspacve button with its own dedicated WHEN-BUTTON-PRESSED trigger containing:
if length(:block2.text_item) > 0 then :block2.text_item := substr(:block2.text_item, 1, length(:block2.text_item)); end if;
This will hopefully erase the last character entered.
block2 should be based on the database table (see Property Palette --> Database) you wish to query and text_item should be based on the database item which contains the code you entered. All the other database items you wish to displayshould also be added to block2.
Add another FIND push button to block1 with the code:
go_block('block2');
execute_query;
Without writing the whole thing for you, I'd suggest you get a decent Forms tutorial book to guide you through the basics (Oracle Forms Developers Handbook).
Maybe you are looking for
-
Indesign CC Envelopes do not print correctly.
MacBook Pro 2.2 mavericks 10.9.2. I am printing 1/4 page envelopes and they cannot find the correct print size. I have crated a 5.75" X 4.287" to match the envelopes I an using. The page loads correctly and using "Define by Driver" most of the print
-
RAW (NEF) files from Nikon D3200
I previously had a D3000 and was able to open NEF files in Elements 9 with ACR. Now, Having upgrade to a D3200, Elements 9 won't open or even recognise the NEF files. I have contacted Nikon, but they say that the files from the D3200 are 'not compati
-
Indesign only prints one thumbnail
I'm trying to print thumbnails with the thumbnails print option in Indesign CS5, but I only get one thumbnail in the upper left corner on the print. The same thing happens when I export to PDF with the "Embed Page Thumbnails" option checked. Need som
-
A proplem when create a directory
hi guys i'd like to create a directory and load the files from it but i got some errors as following SQL> create directory db2 as 'c:\az'; Directory created. SQL> BEGIN 2 DBMS_XMLSCHEMA.registerSchema( 3 SCHEMAURL=>'http://homepagezz.com/Movies.xsd',
-
Post production quantities using MIGO
Hello Experts, I have an IDOC with the details below: Document date Posting Date Plant Material Quantity Movement Type etc... I want to know the steps to post the production quantities using MIGO. Is there any BAPI to do this job? please help me. Th