How to autoincrement data in jdeveloper using postgres
hi..Can anyone help me about my prob.? I need to know how to auto increment records in jdeveloper using postgres.. hope u can give me sample codes which i can use as my reference.. hope for your immediate reply..thankz..=)
Hi,
the same problem is presented when using SQLServer and MySQL with ADF. There are a few things like 'Refresh After Insert' in the entity objects, but it doesn't seem to do anything. Aside from that the container will expect a unique value to be created when you add a row entity to the ViewObjects iterator and not after you perform an insert.
A workaround i have used is to create a sequences table containing the columns table_name and last_number. Write a helper class which connects to the database in a seperate session increments and updates the last number. The helper class is called by the create method of the entity object to assign your new value to the primary key column.
it's not ideal, but it does work.
regards,
Brenden
Similar Messages
-
How to upload data into IT0000 using ABAP-HR program
Hello,
I'm required to upload data into multiple infotypes [IT000, 0001, 0002, etc] using single input text file. Can anyone able to guide me, how to upload data into IT0000 using ABAP program ?
Thanks in advance.
Regards
Prabhakar.
Message was edited by:
Prabhakara MuthyalExample code for HR_MAINTAIN_MASTERDATA to COPY IT0002
DATA: INT_0002_FINAL TYPE STANDARD TABLE OF PA0002 WITH HEADER LINE.
DATA: VALUES LIKE PPROP OCCURS 10 WITH HEADER LINE,
RETURN LIKE BAPIRETURN1,.
LOOP AT INT_0002_FINAL.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-PERNR'.
VALUES-FVAL = INT_0002_FINAL-PERNR.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-BEGDA'.
VALUES-FVAL = INT_0002_FINAL-BEGDA.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-ENDDA'.
VALUES-FVAL = INT_0002_FINAL-ENDDA.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-nachn'.
VALUES-FVAL = INT_0002_FINAL-NACHN.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-gblnd'.
VALUES-FVAL = INT_0002_FINAL-GBLND.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-vorna'.
VALUES-FVAL = INT_0002_FINAL-VORNA.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-rufnm'.
VALUES-FVAL = INT_0002_FINAL-RUFNM.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-name2'.
VALUES-FVAL = INT_0002_FINAL-NAME2.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-inits'.
VALUES-FVAL = INT_0002_FINAL-INITS.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-famst'.
VALUES-FVAL = INT_0002_FINAL-FAMST.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-gbdat'.
VALUES-FVAL = INT_0002_FINAL-GBDAT.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-sprsl'.
VALUES-FVAL = INT_0002_FINAL-SPRSL.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-anzkd'.
VALUES-FVAL = INT_0002_FINAL-ANZKD.
APPEND VALUES.
VALUES-INFTY = '0002'.
VALUES-FNAME = 'P0002-natio'.
VALUES-FVAL = INT_0002_FINAL-NATIO.
APPEND VALUES.
* maintain master data
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
PERNR = INT_0002_FINAL-PERNR
ACTIO = 'COP'
BEGDA = INT_0002_FINAL-BEGDA
* ENDDA = INT_0002_FINAL-ENDDA
SUBTY = SPACE
NO_ENQUEUE = SPACE
DIALOG_MODE = '0'
TCLAS = 'A'
IMPORTING
RETURN1 = RETURN
TABLES
PROPOSED_VALUES = VALUES
* MODIFIED_KEYS =
EXCEPTIONS
OTHERS = 1.
IF RETURN IS INITIAL.
WRITE:/' Done....'.
ELSE.
WRITE:/ RETURN-ID, RETURN-TYPE, RETURN-NUMBER, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2, RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
ENDIF.
CLEAR VALUES.
REFRESH VALUES.
ENDLOOP. -
How to retrieve data from MDM using java API
hi experts
Please explain me the step by step procedure
how to retrieve data from MDM using java API
and please tell me what are the
important classes and packages in MDM Java API
thanks
ramuHi Ramchandra,
You can refer to following links
MDM Java API-pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
webinr of java API
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
Following Fourm Threads will also help.
Java API
Java API
Re: usage of java API ,
Matching Record
Need Java API for Matching Record
Thanks and Regards,
Shruti.
Edited by: Shruti Shah on Jul 16, 2008 12:35 PM -
How to avoid data repetation when using select statements with innerjoin
how to avoid data repetation when using select statements with innerjoin.
thanks in advance,
satheeshyou can use a query like this...
SELECT DISTINCT
frg~prc_group1 "Product Group 1
frg~prc_group2 "Product Group 2
frg~prc_group3 "Product Group 3
frg~prc_group4 "Product Group 4
frg~prc_group5 "Product Group 5
prc~product_id "Product ID
txt~short_text "Product Description
UP TO 10 ROWS
INTO TABLE l_i_data
FROM
Joining CRMM_PR_SALESG and
COMM_PR_FRG_ROD
crmm_pr_salesg AS frg
INNER JOIN comm_pr_frg_rod AS prd
ON frgfrg_guid = prdfragment_guid
Joining COMM_PRODUCT and
COMM_PR_FRG_ROD
INNER JOIN comm_product AS prc
ON prdproduct_guid = prcproduct_guid
Joining COMM_PRSHTEXT and
COMM_PR_FRG_ROD
INNER JOIN comm_prshtext AS txt
ON prdproduct_guid = txtproduct_guid
WHERE frg~prc_group1 IN r_zprc_group1
AND frg~prc_group2 IN r_zprc_group2
AND frg~prc_group3 IN r_zprc_group3
AND frg~prc_group4 IN r_zprc_group4
AND frg~prc_group5 IN r_zprc_group5.
reward it it helps
Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM -
How to Export data from webdynpro using Jecxcel
Hi ,
Can anyone help me how to export data from web dynpro using Jexcel. kindly send me the related links.
ThanksHi Sandeep,
Have you refered in the blogs?
U can find may more document related to this.the below blog helps u in
Exporting Data from Web Dynpro in Different Formats Using Open Source (POI, JExcel, iText) APIu2019s.
https://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/b030e7fb-2662-2b10-0dab-c4aa52c3550b
Regards
Supraja -
How to upload data for me01 using lsmw recording method
*dear expert please tell me the complete procedure for how to upload data in me01 transaction using lsmw recording method.
Moderator Message: Duplicate post locked.
Edited by: Vinod Kumar on May 8, 2011 7:56 PMHi,
To be honest I don't understand your question. When You execute LSMW and create project, then all steps are shown in a very clear way with good description. With which one you have problems?
Best regards
Marcin Cholewczuk -
How much internet data does FaceTime use on mac
i want to know how much internet data facetime uses on mac
A five minute FaceTime call, over 3G, will use, give or take, about 15MB's of data.
-
How to maintain data in scrren using ztable
how to update data in ztable by using program...
plz send a model problem...
i m creating screen(SE51) with ztable fields how to maintain data in that screen. also i m creating transaction for that screen..Hi
There sample programes given SAP itself.
Go to SE80 and select package as SDWA and press enter
You will see whole list of screen sample programs, you can modify the code little bit to suit the tables u want to update.
Regards
Balaji -
How to pass data to a used DC.
Hi,
I have a Component which re-uses another component, how can I pass data to the used component?
Do I need to create an event?
Brayden.Hi Brayden,
You don't need to create an event to pass data to a used component. You can simply map the interface controller's context of the used component. Just go to the properties tab of parent component and add the used components interface controller as a "required controller". This will then allow you to map data between them.
Best Regards,
Austin -
How to upload data into CRM using batch job
Hello,
I got some problem and need some hints.
I am uploading data from a flat text file (product data) into CRM using thefunction module GUI_UPLOAD. My program starts with a selection screen whereI enter the path and the filename of the program, then I click start, and
the data is transferred in CRM. This works perfect, and I can automaticallycreate service products in CRM.
Here comes the PROB:
But now I want to automize this procedure using a batch job that automatically picks up the file from the server and processes it automatically without any user interaction. BUT I always get an error saying that my function module GUI_UPLOAD can't run in batch mode. So
anyone has an idea how to do this? Any other function modules that can run in batch mode? Any other ideas?
Thx very much for ur help on this.Hi Bill,
GUI_UPLOAD, like the name says, uses the SAPGUI to upload the data to theserver.. and in a batch job, you don't have the connection to a SAPGUI.
So you should use following kind of coding:
DATA MSG(100).
OPEN DATASET "FILENAM" FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE
MSG.
IF sy-subrc = 0.
DO.
READ DATASET "FILENAM" INTO [Your internal table].
IF sy-subrc <> 0.
EXIT.
ENDIF.
APPEND [Your internal table]P_DATA.
ENDDO.
ENDIF.
The file should then be available on the server.
Regards -
How to upload data for me01 using LSMW BDC METHOD
*hi export please tell me the complete procedure for uploading data in me01 using LSMW BDC METHOD*
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on May 8, 2011 10:06 PMHi,
To be honest I don't understand your question. When You execute LSMW and create project, then all steps are shown in a very clear way with good description. With which one you have problems?
Best regards
Marcin Cholewczuk -
How save & retrive data from database using flex, coldfusion, sql server
hi , i am very new in flex, i am trying to insert data in
database using flex2, coldfusion, sql server. any one can help me
please. or give me any example.Hi try to goto the following sites, you will get some
direction to think
http://weblogs.macromedia.com/pent/archives/2006/11/example_of_flex.cfm
http://pdxphp.org/node/258
Good Luck -
How to purge data cache table using command line
Hi:
Is there a way to purge the data cache table using command line?
thanks!Thanks, Mike.
I'm thinking about the ldconsole provided with ALDSP.
The ldconsole has a link for purging the cache. Is there anything I can leverage from there? Is it a JMX component that I can call? -
How to monitor Data downloaded, bandwidth used, Url hit in Client machine through SCOM
Hi,
Is there is any way which can monitor Data downloaded, bandwidth used, Url hit in Client machine(windows 7 and Windows 8.1) through SCOM.adawson wrote:
Hi,
I installed and running ebusiness suite 12.1.1 in Oracle Linux server 6.3, below is the url I used to run ebs in the Linux Server,
http://aserver.localdomain:8000/OA_HTML/AppsLogin
Can you access this URL on the server itself? Do you see the login page on the server?
I need to access the ebs from my laptop which is having windows 7 operating system.
My laptop (with IP Address 10.0.0.4) is connected to network and I can ping with my linux server's IP Address- 10.0.0.2 (ping 10.0.0.2 works)
but when I ping from my laptop with the server 's hostname ( ping aserver.localdomain) it says "ping request could not find host aserver.localdomain" .What if you access http://10.0.0.2/OA_HTML/AppsLogin from the client, can you see the main login page then?
when I tried to access the url "http://aserver.localdomain:8000/OA_HTML/AppsLogin" from the laptop ebs page is not opening.
Please post the contents of the hosts file on the server and the client.
Is there any configuration to be made in Linux server where ebs is installed or tell me what things to be done to access ebs from another system.Just make sure the firewall is disabled on the Linux server.
I also have static ip configured in my router, So tell me what settings to be made to access this same ebs through internet.You do not need an internet access here since your server and client on the same network.
Thanks,
Hussein -
How to get data from Oracle using Native SQL in SAP.. Problem with date
Hi Masters.
I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
I wrote this code and it works fine without the statement of where date > '01-09-2010'
But i need that statement on the select. I read a lot about this issue, but no answer.
My code is (this code is in SAP ECC 6.0)
DATA: BEGIN OF datos OCCURS 0,
id_numeric(10),
component_name(40),
comuna(10),
record_id(10),
status,
sampled_date(10),
END OF datos.
DATA: c TYPE cursor.
EXEC SQL.
connect to 'LIM' as 'MYDB'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'MYDB'
ENDEXEC.
EXEC SQL PERFORMING loop_output.
SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
into :datos from lims.SAMP_TEST_RESULT
where date > '01-09-2010'
ENDEXEC.
EXEC SQL.
disconnect 'MYDB'
ENDEXEC.
How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
Any help
RegardsPlease refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]
Maybe you are looking for
-
AR Open Items and Aging question
Hi I have one question on AR Open Items aging. If Doc 100000 is posted on 4/1 with amount 25. Suppose it is cleared on 4/8. Now i get two records to BI. One will replace the existing record with Clearing Doc no and other one new posting for the clear
-
Error while executing UNIX script from BODS - exit code 127
I am trying to execute a unix script by calling it in BODS job. It is giving an error saying Program terminated with exit code 127. The same script when i am executing in UNIX it is working fine. I am unable to trace the issue.
-
Ich verwende bereits einen HP ZR2440w via Thunderbolt. Wie schließe ich dazu einen zweiten, identischen Monitor am besten an ? Der Monitor läuft auf 1920x1200 Danke und Gruß
-
How do I restore the data from my time capsule to the new mac book pro
How do I restore dat from time capsule to mynew macbook pro?
-
Dualband AEBS and 7.4.2 - Videoplayback still stutters
I had a working mediacenter using my MBP, the "old" AEBS N, and an attached USB Airdisk whrer I'm storing my movies. Then I replaced the AEBS with the new dualband one (the minute it came out) because of 2 iPhones in my household which constantly mad